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

/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  --navy:        #1E2A5E;
  --navy-deep:   #151f48;
  --navy-mid:    #2a3870;
  --ink:         #18213a;
  --slate:       #48536e;
  --muted:       #8590a8;
  --border:      #e3e6f0;
  --surface:     #f5f6fa;
  --white:       #ffffff;
  --teal:        #00d4ba;
  --teal-dim:    #00b8a0;
  --green:       #22c55e;

  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Inter', system-ui, -apple-system, sans-serif;

  --nav-h:       72px;
  --max-w:       1160px;
  --pad-x:       40px;
  --radius-lg:   20px;
  --radius-md:   12px;
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Base ───────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Nav ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(30, 42, 94, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* Logo mark */
.nav-logo,
.footer-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  text-decoration: none;
  color: var(--navy);
  line-height: 1;
}

.nav-logo-invent {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  color: inherit;
}

.nav-logo-adenos {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.32em;
  color: inherit;
  opacity: 0.7;
  margin-left: 1px;
}

.nav-contact {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--slate);
  text-decoration: none;
  padding: 8px 22px;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-contact:hover {
  color: var(--navy);
  border-color: var(--navy);
  background: rgba(30, 42, 94, 0.04);
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 100px var(--pad-x) 90px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.65;
}

.eyebrow-line {
  display: block;
  width: 32px;
  height: 1.5px;
  background: var(--navy);
  border-radius: 2px;
  flex-shrink: 0;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(48px, 6.5vw, 84px);
  font-weight: 500;
  line-height: 1.07;
  letter-spacing: -0.01em;
  color: var(--navy);
  max-width: 720px;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--slate);
  max-width: 500px;
  margin-bottom: 48px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--white);
  background: var(--navy);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 100px;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.hero-cta:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(30, 42, 94, 0.28);
}

.hero-cta svg { flex-shrink: 0; }

/* Hero decoration */
.hero-decoration {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 42, 94, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 42, 94, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 75% 70% at 85% 50%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 85% 50%, black 0%, transparent 70%);
}

.hero-orb {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(0, 212, 186, 0.07) 0%, transparent 65%);
  border-radius: 50%;
}

/* ─── Products ───────────────────────────────────────────── */
.products {
  background: var(--surface);
  padding: 96px var(--pad-x);
}

.products-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 48px;
}

.section-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.section-sub {
  font-size: 16px;
  color: var(--slate);
  font-weight: 400;
  max-width: 480px;
  line-height: 1.65;
}

/* Cards row */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

/* ─── Card base ──────────────────────────────────────────── */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
  text-decoration: none;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease),
              box-shadow 0.3s var(--ease);
  font-family: var(--font-sans);
  text-align: left;
  width: 100%;
  cursor: pointer;
  border: none;
}

.card.in-view { opacity: 1; transform: none; }
.card:nth-child(2) { transition-delay: 0.1s; }

.card--dark {
  background: var(--navy);
  color: var(--white);
}

.card--dark:hover {
  box-shadow: 0 24px 60px rgba(21, 31, 72, 0.38);
  transform: translateY(-4px);
}

.card--dark.in-view:hover { transform: translateY(-4px); }

.card--light {
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--ink);
}

.card--light:hover {
  border-color: rgba(0, 212, 186, 0.4);
  box-shadow: 0 16px 48px rgba(0, 212, 186, 0.1);
  transform: translateY(-3px);
}

.card--light.in-view:hover { transform: translateY(-3px); }

/* Glow effect on dark card */
.card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 55% at 85% 15%, rgba(0, 212, 186, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.card-body {
  position: relative;
  z-index: 1;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
}

/* Card top row */
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
}

.badge--live {
  color: var(--green);
  background: rgba(34, 197, 94, 0.13);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: blink 2.2s ease infinite;
  flex-shrink: 0;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.badge--soon {
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
}

/* Arrow icons on cards */
.card-arrow { color: rgba(255, 255, 255, 0.4); }
.card-arrow--muted { color: var(--muted); }

/* Product wordmarks */
.product-wordmark {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 16px;
}

.product-wordmark--marinexis {
  font-size: clamp(28px, 3.2vw, 40px);
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.06em;
}

.product-wordmark--ovirax {
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.wm-accent {
  color: var(--teal);
}

.wm-accent-teal {
  color: var(--teal);
  font-weight: 700;
}

/* Card text */
.card-tagline {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.card--dark .card-tagline { color: rgba(255, 255, 255, 0.45); }
.card--light .card-tagline { color: var(--muted); }

.card-desc {
  font-size: 14.5px;
  line-height: 1.75;
  margin-bottom: 28px;
}

.card--dark .card-desc { color: rgba(255, 255, 255, 0.68); }
.card--light .card-desc { color: var(--slate); }

/* Feature list */
.card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
  flex: 1;
}

.card-features li {
  font-size: 13px;
  padding-left: 16px;
  position: relative;
}

.card-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.card--dark .card-features li { color: rgba(255, 255, 255, 0.6); }
.card--dark .card-features li::before { background: rgba(0, 212, 186, 0.6); }
.card--light .card-features li { color: var(--slate); }
.card--light .card-features li::before { background: var(--teal); }

/* Card footer row */
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.02em;
  margin-top: auto;
}

.card-link svg { transition: transform 0.2s var(--ease); }
.card--dark:hover .card-link svg { transform: translateX(4px); }

.card-notify {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: 0.02em;
  margin-top: auto;
}

/* ─── Setup guide ────────────────────────────────────────── */
.setup-guide {
  display: flex;
  flex-direction: column;
  gap: 34px;
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.setup-guide.in-view {
  opacity: 1;
  transform: none;
}

.setup-guide-heading {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.18;
  color: var(--navy);
  margin-bottom: 18px;
}

.setup-guide-body {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--slate);
  max-width: 620px;
}

.setup-guide-videos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.setup-video {
  min-width: 0;
}

.setup-video-meta {
  padding-top: 16px;
}

.setup-video-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
  margin-bottom: 8px;
}

.setup-video-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--slate);
  margin-bottom: 12px;
}

.setup-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.setup-guide-link:hover {
  color: var(--teal-dim);
}

.setup-guide-link svg {
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}

.setup-guide-link:hover svg {
  transform: translateX(4px);
}

.setup-guide-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--navy-deep);
  box-shadow: 0 20px 56px rgba(21, 31, 72, 0.18);
}

.setup-guide-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ─── About ──────────────────────────────────────────────── */
.about {
  padding: 112px var(--pad-x);
  background: var(--white);
}

.about-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: start;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.about-inner.in-view { opacity: 1; transform: none; }

.about-left .section-label { margin-bottom: 18px; }

.about-heading {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.18;
  color: var(--navy);
  margin-bottom: 24px;
}

.about-body {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--slate);
  margin-bottom: 18px;
}

.about-body:last-child { margin-bottom: 0; }

/* Stats */
.about-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 4px;
}

.stat-card {
  padding: 24px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.stat-card.in-view { opacity: 1; transform: none; }
.stat-card:nth-child(2) { transition-delay: 0.1s; }
.stat-card:nth-child(3) { transition-delay: 0.2s; }

.stat-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--navy-deep);
  padding: 56px var(--pad-x);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s var(--ease);
}

.footer-logo:hover { color: var(--white); }

.footer-nav {
  display: flex;
  gap: 36px;
  align-items: center;
}

.footer-nav a {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s var(--ease);
}

.footer-nav a:hover { color: rgba(255, 255, 255, 0.9); }

.footer-copy {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.28);
  text-align: right;
  letter-spacing: 0.02em;
}

/* ─── Modal ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 16, 40, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 52px 48px;
  max-width: 460px;
  width: 100%;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.32s cubic-bezier(0.34, 1.46, 0.64, 1);
  box-shadow: 0 32px 80px rgba(10, 16, 40, 0.28);
}

.modal-overlay.is-open .modal-box {
  transform: none;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--surface);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.modal-close:hover { background: var(--border); color: var(--ink); }

.modal-product-name {
  font-family: var(--font-sans);
  font-size: 34px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.01em;
  margin-bottom: 6px;
  line-height: 1;
}

.modal-heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.modal-body-text {
  font-size: 15px;
  line-height: 1.72;
  color: var(--slate);
  margin-bottom: 28px;
}

.modal-form {
  display: flex;
  gap: 10px;
}

.modal-input {
  flex: 1;
  padding: 12px 16px;
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.modal-input::placeholder { color: var(--muted); }
.modal-input:focus { border-color: var(--teal); background: var(--white); }

.modal-btn {
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--teal);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.modal-btn:hover { background: var(--teal-dim); transform: translateY(-1px); }

.modal-confirmed {
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding-top: 4px;
}

/* Stacked column form variant */
.modal-form--col {
  flex-direction: column;
  gap: 10px;
}

.modal-textarea {
  resize: vertical;
  min-height: 88px;
  line-height: 1.6;
}

.modal-btn--full {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

/* Marinexis wordmark in modal (dark text) */
.modal-product-name {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 960px) {
  :root { --pad-x: 28px; }

  .cards {
    grid-template-columns: 1fr;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .setup-guide-videos {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-right {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .stat-card { flex: 1; min-width: 140px; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-copy { text-align: left; }
}

@media (max-width: 600px) {
  :root { --pad-x: 20px; }

  .card-body { padding: 32px 28px; }

  .modal-box { padding: 40px 28px; }

  .modal-form { flex-direction: column; }

  .hero-headline { font-size: 40px; }
}
