:root {
  /* Core brand palette mapped from identity */
  --navy-900: #0a1929;
  --navy-800: #102e46; /* Base brand navy */
  --navy-700: #174765;
  --teal-500: #138a7c;
  --teal-400: #20b2aa;
  --teal-300: #62dfbf; /* Bright accent teal */
  --blue-600: #124bbb;
  --blue-500: #185ef0;

  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --border-subtle: #e2e8f0;

  --text-main: #142d43;
  --text-muted: #64748b;
  --text-light: #f8fafc;

  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
}

.brand {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--navy-800);
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand b {
  color: var(--teal-500);
}
/* Specifically for dark header contexts */
.site-footer .brand {
  color: white;
}
.site-footer .brand b {
  color: var(--teal-300);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.03em; margin-bottom: 1.25rem; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -0.02em; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 9px;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 0;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--blue-500);
  color: white;
  box-shadow: 0 4px 12px rgba(24, 94, 240, 0.2);
}
.btn-primary:hover {
  background-color: var(--blue-600);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(24, 94, 240, 0.25);
}

.btn-secondary {
  background-color: #edf2f8;
  color: var(--navy-800);
}
.btn-secondary:hover {
  background-color: #e2e8f0;
}

.btn-large {
  padding: 14px 28px;
  font-size: 1.1rem;
}

.full-width {
  width: 100%;
}

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--navy-800);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.landing-language {
  flex-shrink: 0;
}
.landing-language .mrx-language {
  padding: 0;
  border: 0;
  background: transparent;
}
.landing-language .mrx-language span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.landing-language .mrx-language select {
  min-height: 40px;
  max-width: 136px;
  background: var(--bg-surface);
  color: var(--navy-800);
  border-color: var(--border-subtle);
}
.nav-login {
  text-decoration: none;
  color: var(--navy-800);
  font-weight: 600;
}
.nav-login:hover {
  color: var(--blue-500);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--navy-800);
  cursor: pointer;
  padding: 8px;
}

.mobile-nav {
  display: none;
  padding: 20px 24px;
  background: white;
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-nav.open {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-nav a {
  text-decoration: none;
  color: var(--navy-800);
  font-weight: 500;
  font-size: 1.1rem;
}
.mobile-nav hr {
  border: 0;
  border-top: 1px solid var(--border-subtle);
  margin: 8px 0;
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .landing-language {
    margin-left: auto;
    margin-right: 8px;
  }
  .landing-language .mrx-language select {
    max-width: 120px;
  }
  .mobile-menu-btn { display: block; }
}

/* Hero */
.hero {
  padding: 80px 24px;
  background: radial-gradient(circle at top right, #e2f0fc, var(--bg-page) 50%);
  overflow: hidden;
}
.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  padding: 6px 12px;
  background: #eef5fc;
  color: var(--blue-600);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
  border: 1px solid #d4e5f7;
}
.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 480px;
}
.hero h1 {
  overflow-wrap: anywhere;
  hyphens: auto;
}
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.hero-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* CSS UI Mockup */
.ui-window {
  background: white;
  border-radius: 12px;
  border: 1px solid #dce4ed;
  box-shadow: 0 24px 48px rgba(16, 46, 70, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transform-origin: center right;
  transition: transform 0.5s ease;
}
.ui-window:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}
.ui-header {
  height: 40px;
  background: #f1f5f9;
  border-bottom: 1px solid #dce4ed;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 20px;
}
.ui-dots { display: flex; gap: 6px; }
.ui-dots i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.ui-dots i:nth-child(1) { background: #ff5f56; }
.ui-dots i:nth-child(2) { background: #ffbd2e; }
.ui-dots i:nth-child(3) { background: #27c93f; }
.ui-search {
  height: 20px;
  flex: 1;
  max-width: 200px;
  background: white;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}
.dashboard-preview {
  display: block;
  width: 100%;
  aspect-ratio: 1.44 / 1;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 992px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-subtitle { margin: 0 auto 32px; }
  .hero-cta { align-items: center; }
  .ui-window { transform: none; max-width: 600px; margin: 0 auto;}
  .ui-window:hover { transform: none; }
}

/* Marquee */
.marquee-section {
  background: var(--navy-900);
  color: var(--teal-300);
  padding: 24px 0;
  overflow: hidden;
  border-top: 4px solid var(--teal-500);
  border-bottom: 4px solid var(--teal-500);
}
.marquee-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 32px;
  animation: scroll-marquee 40s linear infinite;
  padding-left: 32px;
}
.marquee-item {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.marquee-dot {
  width: 6px;
  height: 6px;
  background-color: var(--teal-400);
  border-radius: 50%;
  display: inline-block;
  opacity: 0.5;
}

@keyframes scroll-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Section Common */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}
.section-header p {
  font-size: 1.15rem;
  color: var(--text-muted);
}

/* Features */
.features {
  padding: 100px 0;
  background: var(--bg-surface);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.feature-card {
  padding: 32px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: all 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(16, 46, 70, 0.06);
  border-color: #cbd5e1;
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--navy-800);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-card h3 {
  margin-bottom: 12px;
  color: var(--navy-900);
}
.feature-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* Devices */
.devices {
  padding: 100px 0;
  background: var(--navy-900);
  color: var(--text-light);
  overflow: hidden;
}
.devices-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.devices-content h2 {
  color: white;
}
.devices-content p {
  color: #94a3b8;
  font-size: 1.1rem;
  margin-bottom: 40px;
}
.device-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.device-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.device-list-icon {
  width: 40px;
  height: 40px;
  background: rgba(98, 223, 191, 0.1);
  color: var(--teal-300);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.device-list strong {
  display: block;
  font-size: 1.1rem;
  color: white;
  margin-bottom: 4px;
}
.device-list span {
  color: #94a3b8;
  font-size: 0.95rem;
}
.devices-visual-grid {
  position: relative;
  min-width: 0;
  height: 430px;
}
.dv-desktop {
  position: absolute;
  right: 0;
  top: 20px;
  width: min(88%, 440px);
  margin: 0;
}
.dv-desktop .dv-screen {
  width: 100%;
  aspect-ratio: 1.44 / 1;
  background: var(--navy-800);
  border: 8px solid #334155;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
}
.dv-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.dv-desktop .dv-base {
  width: 80px;
  height: 34px;
  background: #334155;
  margin: 0 auto;
  border-radius: 0 0 8px 8px;
}
.dv-mobile {
  position: absolute;
  left: 0;
  bottom: 8px;
  width: min(34%, 170px);
  z-index: 2;
  margin: 0;
}
.dv-mobile .dv-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 390/844;
  background: var(--navy-800);
  border: 6px solid #475569;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
}
.dv-speaker {
  position: absolute;
  top: 5px;
  left: 50%;
  z-index: 1;
  width: 30%;
  height: 5px;
  border-radius: 999px;
  background: #475569;
  transform: translateX(-50%);
}
.devices-visual-grid figcaption {
  margin-top: 10px;
  color: #cbd5e1;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 992px) {
  .devices-layout { grid-template-columns: 1fr; }
  .devices-visual-grid {
    width: min(100%, 620px);
    height: clamp(330px, 72vw, 440px);
    margin: 8px auto 0;
  }
}

@media (max-width: 520px) {
  .devices-visual-grid {
    height: 310px;
  }
  .dv-desktop {
    width: 88%;
  }
  .dv-mobile {
    width: 34%;
  }
  .devices-visual-grid figcaption {
    font-size: 0.8rem;
  }
}


/* Pricing */
.pricing {
  padding: 100px 0;
  background: var(--bg-page);
}
.billing-toggle {
  display: inline-flex;
  background: #e2e8f0;
  border-radius: 30px;
  padding: 4px;
  margin-top: 24px;
}
.toggle-btn {
  border: none;
  background: transparent;
  padding: 8px 20px;
  border-radius: 26px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
}
.toggle-btn.active {
  background: white;
  color: var(--navy-900);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  align-items: stretch;
  max-width: 1080px;
  margin: 0 auto;
}
.price-card {
  background: white;
  border-radius: 24px;
  padding: 40px 32px;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.plan-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}
.price {
  display: flex;
  align-items: baseline;
  margin-bottom: 32px;
}
.currency { font-size: 1.5rem; font-weight: 700; color: var(--navy-900); margin-right: 4px;}
.amount { font-size: 3.5rem; font-weight: 800; font-family: var(--font-display); color: var(--navy-900); line-height: 1; letter-spacing: -0.05em;}
.period { color: var(--text-muted); margin-left: 8px; }

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.plan-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  font-size: 0.95rem;
}
.plan-features li svg {
  color: var(--teal-500);
  flex-shrink: 0;
}
.plan-features li.disabled {
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.7;
}
.plan-features li.disabled svg {
  color: var(--text-muted);
}

.price-card.popular {
  border: 2px solid var(--blue-500);
  box-shadow: 0 24px 48px rgba(24, 94, 240, 0.08);
  transform: scale(1.02);
}
.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-500);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 992px) {
  .price-card.popular { transform: none; }
}

/* CTA Bottom */
.cta-bottom {
  padding: 100px 24px;
  background: var(--blue-500);
  color: white;
  text-align: center;
}
.cta-bottom h2 {
  color: white;
  margin-bottom: 16px;
}
.cta-bottom p {
  font-size: 1.25rem;
  color: #e2e8f0;
  margin-bottom: 40px;
}
.cta-bottom .btn-primary {
  background: white;
  color: var(--blue-600);
}
.cta-bottom .btn-primary:hover {
  background: #f8fafc;
}

/* Footer */
.site-footer {
  background: var(--navy-900);
  padding: 80px 0 40px;
  color: #94a3b8;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-brand p {
  margin-top: 16px;
  max-width: 320px;
}
.footer-links h4 {
  color: white;
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 20px;
}
.footer-links a {
  display: block;
  color: #94a3b8;
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: white;
}
.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 32px;
  text-align: center;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; padding-left: 0; }
  .marquee-section { overflow: auto; }
  .feature-card:hover { transform: none; }
  .ui-window { transform: none !important; transition: none; }
}
