/* ============================================
   mediaXtreme LLC - Landing Page Styles
   Ultra-dark premium SaaS portfolio theme
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #0a0c10;
  color: #f0f3f8;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------- Background Noise Texture ---------- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ---------- Gradient Mesh Background ---------- */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 800px 600px at 15% 10%, rgba(0, 112, 243, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 600px 500px at 85% 30%, rgba(99, 102, 241, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 700px 500px at 50% 80%, rgba(0, 112, 243, 0.03) 0%, transparent 70%);
}

/* ---------- Container ---------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 12, 16, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(32, 38, 54, 0.6);
  transition: background 0.3s ease;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.125rem;
  color: #f0f3f8;
  letter-spacing: -0.02em;
}

.navbar-logo span {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #8a96a8;
  transition: color 0.25s ease;
  position: relative;
  white-space: nowrap;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #0070f3;
  transition: width 0.3s ease;
  border-radius: 1px;
}

.navbar-links a:hover {
  color: #f0f3f8;
}

.navbar-links a:hover::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #f0f3f8;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 60px;
  overflow: hidden;
}

/* Animated gradient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  animation: orbFloat 12s ease-in-out infinite;
  pointer-events: none;
}

.hero-orb--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 112, 243, 0.5) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.hero-orb--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
  bottom: -50px;
  right: -80px;
  animation-delay: -4s;
  animation-duration: 15s;
}

.hero-orb--3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 200, 255, 0.25) 0%, transparent 70%);
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: -8s;
  animation-duration: 18s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.05); }
  50% { transform: translate(-20px, 30px) scale(0.95); }
  75% { transform: translate(15px, 15px) scale(1.02); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

/* Hero Logo - Super big centered above title */
.hero-logo {
  display: block;
  width: 280px;
  height: auto;
  margin: 0 auto 32px;
  filter: drop-shadow(0 0 40px rgba(0, 112, 243, 0.25));
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #f0f3f8 0%, #c8d0e0 50%, #0070f3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #8a96a8;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ---------- Category Sections ---------- */
.category-section {
  padding: 100px 0 40px;
  position: relative;
  z-index: 1;
}

.category-header {
  text-align: center;
  margin-bottom: 60px;
}

.category-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #f0f3f8;
}

.category-header .accent-line {
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #0070f3, #3b9dff);
  margin: 0 auto;
  border-radius: 2px;
}

/* ---------- Card Grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---------- Product Card ---------- */
.product-card {
  background: #131722;
  border: 1px solid #202636;
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.35s ease,
              box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 112, 243, 0), transparent);
  transition: background 0.35s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 112, 243, 0.4);
  box-shadow: 0 8px 40px rgba(0, 112, 243, 0.1),
              0 0 0 1px rgba(0, 112, 243, 0.15);
}

.product-card:hover::before {
  background: linear-gradient(90deg, transparent, rgba(0, 112, 243, 0.5), transparent);
}

.card-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0070f3;
  background: rgba(0, 112, 243, 0.1);
  border: 1px solid rgba(0, 112, 243, 0.2);
  border-radius: 6px;
  padding: 4px 10px;
  margin-bottom: 16px;
  align-self: flex-start;
}

.product-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: #f0f3f8;
}

.product-card p {
  font-size: 0.9rem;
  color: #8a96a8;
  line-height: 1.7;
  margin-bottom: 24px;
  flex-grow: 1;
}

.card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0070f3;
  background: transparent;
  border: 1px solid rgba(0, 112, 243, 0.3);
  border-radius: 10px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease,
              box-shadow 0.3s ease;
  align-self: flex-start;
}

.card-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.card-btn:hover {
  background: #0070f3;
  color: #ffffff;
  border-color: #0070f3;
  box-shadow: 0 4px 20px rgba(0, 112, 243, 0.3);
}

.card-btn:hover svg {
  transform: translateX(3px);
}

.product-card:hover .card-btn {
  background: #0070f3;
  color: #ffffff;
  border-color: #0070f3;
  box-shadow: 0 4px 20px rgba(0, 112, 243, 0.3);
}

.product-card:hover .card-btn svg {
  transform: translateX(3px);
}

/* ---------- Footer ---------- */
/* ---------- Legal / Info Pages ---------- */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 140px 24px 80px;
}

.legal-page h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-page .legal-date {
  font-size: 0.85rem;
  color: #6b7a8d;
  margin-bottom: 32px;
}

.legal-page h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-top: 32px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.legal-page p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #9ca3af;
  margin-bottom: 16px;
}

.back-home {
  display: inline-block;
  margin-top: 40px;
  padding: 12px 32px;
  background: rgba(0, 112, 243, 0.12);
  border: 1px solid rgba(0, 112, 243, 0.3);
  border-radius: 8px;
  color: #0070f3;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.back-home:hover {
  background: rgba(0, 112, 243, 0.22);
  border-color: #0070f3;
}

.legal-footer {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 24px;
  border-top: 1px solid #202636;
  font-size: 0.8125rem;
  color: #6b7a8d;
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 80px;
  padding: 48px 0;
  border-top: 1px solid #202636;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy {
  font-size: 0.8125rem;
  color: #8a96a8;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.8125rem;
  color: #8a96a8;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: #0070f3;
}

/* ---------- Fade-in animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive: Tablet ---------- */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .navbar-links {
    gap: 24px;
  }

  .navbar-links a {
    font-size: 0.8125rem;
  }
}

/* ---------- Responsive: Mobile ---------- */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .navbar-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(13, 15, 21, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 100px 32px 32px;
    gap: 0;
    border-left: 1px solid #202636;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 999;
  }

  .navbar-links.open {
    right: 0;
  }

  .navbar-links a {
    font-size: 1rem;
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid rgba(32, 38, 54, 0.4);
  }

  .navbar-links a::after {
    display: none;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .category-section {
    padding: 60px 0 20px;
  }

  .category-header {
    margin-bottom: 36px;
  }

  .hero {
    padding: 100px 20px 40px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .product-card {
    padding: 24px 20px;
  }

  .hero-logo {
    width: 180px;
    margin-bottom: 24px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

/* ---------- Mobile overlay ---------- */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.mobile-overlay.active {
  display: block;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0c10;
}

::-webkit-scrollbar-thumb {
  background: #202636;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2a3046;
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(0, 112, 243, 0.3);
  color: #f0f3f8;
}

/* ---------- Contact & Investor Modal ---------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  position: relative;
  max-width: 540px;
  width: 90%;
  background: #131722;
  border: 1px solid #202636;
  border-radius: 16px;
  padding: 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.modal-box--wide {
  max-width: 680px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #8a96a8;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.25s ease;
  padding: 0;
}

.modal-close:hover {
  color: #f0f3f8;
}

.modal-box h2 {
  color: #f0f3f8;
  margin-bottom: 8px;
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-sub {
  color: #8a96a8;
  margin-bottom: 24px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Form row - side by side inputs */
.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
}

.form-group {
  margin-bottom: 16px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: #0a0c10;
  border: 1px solid #202636;
  color: #f0f3f8;
  padding: 14px 16px;
  border-radius: 8px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.25s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #4a5568;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #0070f3;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-submit-btn {
  width: 100%;
  background: #0070f3;
  color: #ffffff;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  cursor: pointer;
  transition: background 0.3s ease;
}

.form-submit-btn:hover {
  background: #0056b3;
}

/* ---------- Investor Modal Content ---------- */
.investor-content {
  text-align: left;
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 15px;
}

.investor-content h3 {
  color: #f0f3f8;
  font-size: 1.1rem;
  margin-top: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 6px;
  font-weight: 600;
}

.investor-assets {
  color: #8a96a8;
  font-size: 0.9rem;
  margin: 6px 0 16px;
  line-height: 1.6;
}

.investor-intro {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #8a96a8;
}

.investor-contact {
  margin-top: 25px;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
  text-align: center;
  color: #8a96a8;
}

/* Investor scrollbar styling */
.investor-content::-webkit-scrollbar {
  width: 6px;
}

.investor-content::-webkit-scrollbar-track {
  background: transparent;
}

.investor-content::-webkit-scrollbar-thumb {
  background: #202636;
  border-radius: 3px;
}

/* ---------- Language Selector ---------- */
.lang-selector {
  position: relative;
  display: inline-flex;
}

.lang-trigger {
  background: transparent;
  border: none;
  color: #8a96a8;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.25s ease, background 0.25s ease;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  white-space: nowrap;
}

.lang-trigger:hover {
  color: #f0f3f8;
  background: rgba(255, 255, 255, 0.05);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #131722;
  border: 1px solid #202636;
  border-radius: 10px;
  padding: 8px 0;
  min-width: 160px;
  display: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 1001;
}

.lang-dropdown.open {
  display: block;
}

.lang-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 16px;
  background: transparent;
  border: none;
  color: #8a96a8;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-dropdown button:hover {
  background: rgba(0, 112, 243, 0.1);
  color: #f0f3f8;
}

.lang-dropdown button.active {
  color: #0070f3;
}

/* ---------- Modal Responsive ---------- */
@media (max-width: 768px) {
  .modal-box {
    padding: 28px 20px;
    width: 94%;
  }

  .modal-box--wide {
    max-width: 94%;
  }

  .investor-content {
    max-height: 60vh;
    padding-right: 8px;
  }

  .lang-selector {
    width: 100%;
  }

  .lang-trigger {
    width: 100%;
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(32, 38, 54, 0.4);
    border-radius: 0;
  }

  .lang-dropdown {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    background: rgba(13, 15, 21, 0.5);
    border-radius: 8px;
    margin-top: 4px;
  }
}
