*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --navy:       #0F2A4D;
  --navy-deep:  #081B33;
  --navy-mid:   #14345E;
  --green:      #4CA430;
  --green-deep: #3D8526;
  --ink:        #12141C;
  --muted:      #5B6472;
  --muted-2:    #8A93A3;
  --line:       #E7E9F0;
  --soft:       #F6F8FC;
  --shadow-sm:  0 2px 8px rgba(15,42,77,0.06);
  --shadow-md:  0 8px 30px rgba(15,42,77,0.10);
  --shadow-lg:  0 20px 60px rgba(8,27,51,0.16);
}

body {
  font-family: 'Inter', -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }

/* ── Scroll-reveal ───────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].in-view { opacity: 1; transform: translateY(0); }
[data-reveal-group] > * { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
[data-reveal-group].in-view > * { opacity: 1; transform: translateY(0); }
[data-reveal-group].in-view > *:nth-child(2) { transition-delay: 0.08s; }
[data-reveal-group].in-view > *:nth-child(3) { transition-delay: 0.16s; }
[data-reveal-group].in-view > *:nth-child(4) { transition-delay: 0.24s; }

/* ── Nav ─────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(10px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.nav.scrolled { box-shadow: 0 4px 24px rgba(15,42,77,0.06); border-color: transparent; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.08rem; text-decoration: none; letter-spacing: -0.01em; }
.nav-brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 32px; font-size: 0.92rem; font-weight: 500; color: #444; }
.nav-links a { position: relative; padding: 4px 0; transition: color 0.15s ease; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--green); border-radius: 2px; transition: right 0.2s ease;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { right: 0; }
.nav-cta {
  background: var(--navy); color: #fff; padding: 10px 22px; border-radius: 9px;
  font-size: 0.9rem; font-weight: 700; text-decoration: none; white-space: nowrap;
  box-shadow: var(--shadow-sm); transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.nav-cta:hover { background: var(--navy-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 1.5rem; line-height: 1; padding: 4px 6px; color: var(--ink);
}

/* ── Hero (homepage, full height) ─────────────────── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(880px 520px at 15% -10%, rgba(76,164,48,0.35), transparent 60%),
    radial-gradient(900px 600px at 110% 10%, rgba(30,90,160,0.45), transparent 60%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff; text-align: center; padding: 116px 24px 100px;
}
.hero .badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.22);
  padding: 7px 18px; border-radius: 30px; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.05em; margin-bottom: 28px; backdrop-filter: blur(6px);
}
.hero .badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(76,164,48,0.25); }
.hero h1 {
  font-size: 3.1rem; font-weight: 800; line-height: 1.14; max-width: 840px;
  margin: 0 auto 22px; letter-spacing: -0.03em;
}
.hero h1 .accent { color: #8FE080; }
.hero p.sub { font-size: 1.15rem; color: rgba(255,255,255,0.82); max-width: 660px; margin: 0 auto 40px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.btn-primary {
  background: #fff; color: var(--navy); padding: 15px 30px; border-radius: 11px;
  font-weight: 700; font-size: 0.96rem; text-decoration: none; display: inline-block;
  box-shadow: var(--shadow-lg); transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 60px rgba(0,0,0,0.28); }
.btn-secondary {
  background: rgba(255,255,255,0.06); color: #fff; padding: 15px 30px; border-radius: 11px;
  font-weight: 700; font-size: 0.96rem; text-decoration: none; display: inline-block;
  border: 1.5px solid rgba(255,255,255,0.35); backdrop-filter: blur(6px);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.hero-note { font-size: 0.84rem; color: rgba(255,255,255,0.6); margin-bottom: 56px; }

.hero-stats { display: flex; justify-content: center; gap: 56px; flex-wrap: wrap; }
.hero-stats .stat { text-align: center; }
.hero-stats .stat b { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.hero-stats .stat span { font-size: 0.8rem; color: rgba(255,255,255,0.6); font-weight: 500; }

/* ── Page hero (product subpages, shorter) ────────── */
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 420px at 100% 0%, rgba(76,164,48,0.30), transparent 60%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff; padding: 72px 24px 64px;
}
.page-hero .wrap { text-align: center; position: relative; }
.page-hero .back-link { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.7); font-size: 0.85rem; margin-bottom: 22px; text-decoration: none; transition: color 0.15s ease; }
.page-hero .back-link:hover { color: #fff; }
.page-hero .product-icon { display: block; width: 116px; height: 116px; border-radius: 26px; margin: 0 auto 24px; box-shadow: var(--shadow-lg); }
.page-hero h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: 16px; letter-spacing: -0.03em; }
.page-hero p.sub { font-size: 1.08rem; color: rgba(255,255,255,0.82); max-width: 620px; margin: 0 auto 32px; }

/* ── Trust bar ───────────────────────────────────── */
.trustbar { background: var(--soft); border-bottom: 1px solid var(--line); padding: 26px 0; }
.trustbar .wrap { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.trustbar .item { font-size: 0.85rem; font-weight: 600; color: #3a4150; display: flex; align-items: center; gap: 9px; }
.trustbar .item::before {
  content: "✓"; color: #fff; background: var(--green); font-weight: 800; font-size: 0.68rem;
  width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
}

/* ── Section headers ─────────────────────────────── */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head .eyebrow { color: var(--green-deep); font-weight: 800; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.section-head h2 { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; color: var(--navy); }
.section-head p { color: var(--muted); font-size: 1.02rem; }

/* ── USP cards ───────────────────────────────────── */
.usp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.usp-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px 28px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.usp-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #d8dfef; }
.usp-card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-mid) 100%);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.3rem;
  margin-bottom: 20px; box-shadow: 0 6px 16px rgba(15,42,77,0.22);
}
.usp-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 9px; letter-spacing: -0.01em; }
.usp-card p { color: var(--muted); font-size: 0.93rem; }

/* ── Detailed feature rows (product subpages) ─────── */
.feature-list { max-width: 780px; margin: 0 auto; }
.feature-row {
  display: flex; gap: 22px; padding: 24px 0; border-bottom: 1px solid var(--line);
  transition: transform 0.2s ease;
}
.feature-row:hover { transform: translateX(4px); }
.feature-row:last-child { border-bottom: none; }
.feature-row .icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-mid) 100%);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem;
  box-shadow: 0 6px 16px rgba(15,42,77,0.22);
}
.feature-row h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.01em; }
.feature-row p { color: var(--muted); font-size: 0.93rem; }

/* ── Product comparison / cross-link cards ────────── */
.products { background: var(--soft); }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.product-card {
  background: #fff; border-radius: 20px; padding: 38px 34px; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform 0.22s ease, box-shadow 0.22s ease;
  position: relative;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.product-card.highlight { border: 2px solid var(--navy); box-shadow: var(--shadow-md); }
.product-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.product-head img { width: 46px; height: 46px; border-radius: 11px; }
.product-head h3 { font-size: 1.32rem; font-weight: 800; letter-spacing: -0.01em; }
.product-tag { color: var(--green-deep); font-weight: 700; font-size: 0.85rem; margin-bottom: 20px; }
.product-card ul { list-style: none; margin-bottom: 24px; }
.product-card li { font-size: 0.93rem; color: #333; padding: 8px 0; padding-left: 26px; position: relative; }
.product-card li::before {
  content: "✓"; position: absolute; left: 0; top: 8px; color: #fff; background: var(--green);
  font-weight: 800; font-size: 0.62rem; width: 16px; height: 16px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.product-for { font-size: 0.85rem; color: var(--muted-2); font-style: italic; margin-bottom: 18px; }
.product-link {
  color: var(--navy); font-weight: 700; font-size: 0.9rem; text-decoration: none; display: inline-block;
  transition: gap 0.15s ease;
}
.product-link:hover { color: var(--green-deep); }

/* ── Pricing ─────────────────────────────────────── */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.price-grid.platforms-2 { grid-template-columns: repeat(2, minmax(200px, 240px)); justify-content: center; }
.price-card {
  border: 1px solid var(--line); border-radius: 18px; padding: 32px 24px; text-align: center;
  position: relative; background: #fff; transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.price-card.studio { border: 2px solid var(--navy); }
.price-ribbon {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: #fff; font-size: 0.72rem; font-weight: 700;
  padding: 5px 16px; border-radius: 20px; letter-spacing: 0.03em; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(76,164,48,0.35);
}
.price-card .plat-badge {
  display: inline-block; font-size: 0.75rem; font-weight: 700; color: var(--navy);
  background: #eef2fb; padding: 4px 13px; border-radius: 20px; margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.price-card h3 { font-size: 1.08rem; font-weight: 800; margin: 4px 0 4px; letter-spacing: -0.01em; }
.price-card .desc { color: var(--muted); font-size: 0.85rem; margin-bottom: 20px; }
.price-card .was { text-decoration: line-through; color: #b0b6c3; font-size: 0.95rem; }
.price-card .now { font-size: 1.8rem; font-weight: 800; color: var(--ink); margin-top: 2px; letter-spacing: -0.02em; }
.price-card .now .intro-tag { display: block; font-size: 0.68rem; font-weight: 700; color: var(--green-deep); letter-spacing: 0.03em; margin-top: 8px; }
.price-note { text-align: center; color: var(--muted-2); font-size: 0.8rem; margin-top: 32px; }

/* ── Cross-link banner (product subpages) ─────────── */
.crosslink { background: var(--soft); }
.crosslink-card {
  max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 32px 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  box-shadow: var(--shadow-sm); transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.crosslink-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.crosslink-card img { width: 46px; height: 46px; border-radius: 11px; }
.crosslink-text { display: flex; align-items: center; gap: 16px; }
.crosslink-text h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.01em; }
.crosslink-text p { font-size: 0.87rem; color: var(--muted); }

/* ── Footer ──────────────────────────────────────── */
footer { background: var(--navy-deep); color: #b9c8de; padding: 56px 0 32px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
footer .brand { color: #fff; font-weight: 800; display: flex; align-items: center; gap: 10px; letter-spacing: -0.01em; }
footer .brand img { width: 26px; height: 26px; }
footer .copyright { width: 100%; text-align: center; font-size: 0.78rem; color: #7488a6; margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); }
footer .copyright a:hover { color: #fff; }

/* ── Download modal ──────────────────────────────── */
.download-modal {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(8,27,51,0.55); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 20px;
}
.download-modal.open { display: flex; }
.download-modal-box {
  background: #fff; border-radius: 20px; padding: 36px 34px; max-width: 440px; width: 100%;
  box-shadow: var(--shadow-lg); position: relative; max-height: 90vh; overflow-y: auto;
}
.download-modal-close {
  position: absolute; top: 16px; right: 16px; background: none; border: none; cursor: pointer;
  font-size: 1.4rem; line-height: 1; color: var(--muted-2); padding: 4px 8px; border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.download-modal-close:hover { color: var(--ink); background: var(--soft); }
.download-modal-box h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.02em; color: var(--navy); }
.download-modal-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 22px; }
.download-modal-box form { display: flex; flex-direction: column; gap: 14px; }
.download-modal-box label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; font-weight: 600; color: #333; }
.download-modal-box label span { font-weight: 400; color: var(--muted-2); }
.download-modal-box input, .download-modal-box select {
  border: 1.5px solid var(--line); border-radius: 9px; padding: 10px 12px; font-size: 0.94rem;
  font-family: inherit; color: var(--ink); transition: border-color 0.15s ease;
}
.download-modal-box input:focus, .download-modal-box select:focus { outline: none; border-color: var(--navy); }
.download-modal-box .btn-primary {
  width: 100%; text-align: center; border: none; cursor: pointer; margin-top: 4px;
  background: var(--navy); color: #fff; box-shadow: none; font-family: inherit;
}
.download-modal-box .btn-primary:hover { background: var(--navy-deep); transform: none; box-shadow: none; }
.download-modal-box .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.download-status { font-size: 0.85rem; min-height: 18px; }
.download-status.success { color: var(--green-deep); font-weight: 600; }
.download-status.error { color: #c0392b; font-weight: 600; }
button.nav-cta { border: none; cursor: pointer; font-family: inherit; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    flex-direction: column; gap: 0; padding: 8px 24px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid #f2f3f8; }
  .nav-links a:last-child { border-bottom: none; }
  .nav-cta { padding: 8px 14px; font-size: 0.84rem; }
  .hero { padding: 56px 20px 52px; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 28px; }
  .page-hero { padding: 48px 20px 44px; }
  .page-hero h1 { font-size: 1.8rem; }
  .usp-grid, .product-grid, .price-grid { grid-template-columns: 1fr; }
  .crosslink-card { flex-direction: column; text-align: center; }
}
