@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --navy-950: #020918;
  --navy-900: #031026;
  --navy-800: #061a38;
  --navy-700: #0a264e;
  --blue-500: #2d7dd2;
  --blue-300: #7db6ff;
  --cyan: #6be7ff;
  --white: #f5f9ff;
  --muted: #a8bbd6;
  --line: rgba(168, 196, 235, 0.16);
  --card: rgba(4, 16, 36, 0.72);
  --container: 1200px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy-950);
  color: var(--white);
  font-family: "Manrope", "Geist", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--cyan); }
h1, h2, h3, h4 { font-family: "Geist", "Manrope", sans-serif; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.mono { font-family: "Geist Mono", ui-monospace, monospace; font-size: 13px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center-cta { text-align: center; margin-top: 48px; display: grid; gap: 20px; justify-items: center; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 9, 24, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: "Sora", sans-serif; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand img { filter: drop-shadow(0 0 10px rgba(107, 231, 255, 0.35)); }
.main-nav { display: flex; align-items: center; gap: 26px; margin-left: 18px; }
.main-nav a { color: #cfdcef; font-size: 15px; padding: 8px 0; position: relative; }
.main-nav a.active, .main-nav a:hover { color: var(--white); }
.main-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--cyan); border-radius: 2px; }
.nav-badge { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,.1); color: #dbe7f7; font-size: 11px; vertical-align: 2px; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.header-link { color: #cfdcef; font-size: 15px; }
.inline-form { display: inline-flex; margin: 0; align-items: center; gap: 8px; }
.nav-toggle { display: none; background: transparent; border: 0; color: #fff; font-size: 22px; cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 8px; padding: 11px 20px; font-weight: 600; font-size: 15px; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-white { background: var(--white); color: #06152e; }
.btn-white:hover { background: #dfeeff; color: #06152e; }
.btn-outline { border-color: rgba(255,255,255,.28); color: var(--white); background: transparent; }
.btn-outline:hover { border-color: var(--cyan); color: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,.22); color: var(--white); background: rgba(255,255,255,.04); }
.btn-ghost:hover { border-color: rgba(255,255,255,.45); }
.btn-sm { padding: 8px 15px; font-size: 14px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }

/* Hero */
.hero { position: relative; min-height: 760px; display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; background: url("../img/clouds-hero.jpg") center/cover no-repeat; transform: scale(1.02); filter: brightness(1.12) saturate(1.05); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,9,24,.56) 0%, rgba(2,9,24,.22) 42%, rgba(2,9,24,0) 72%), linear-gradient(0deg, rgba(2,9,24,.78), rgba(2,9,24,0) 40%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding: 96px 0 110px; }
.eyebrow { color: var(--cyan); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 700; margin-bottom: 18px; }
.hero h1 { font-family: "Geist", sans-serif; font-weight: 600; font-size: clamp(44px, 5.6vw, 76px); line-height: .98; letter-spacing: -0.045em; max-width: 720px; }
.hero-text { color: #cfdcef; font-size: 18px; max-width: 560px; margin-top: 26px; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-note { color: var(--muted); font-size: 14px; margin-left: 4px; }
.trust-row { display: flex; gap: 22px; margin-top: 30px; color: #93a8c6; font-size: 13px; letter-spacing: .04em; }

/* Launcher card */
.launcher-card { background: rgba(4, 15, 34, .84); border: 1px solid rgba(181, 210, 245, .22); border-radius: 10px; box-shadow: 0 34px 80px rgba(0,0,0,.45); backdrop-filter: blur(18px); overflow: hidden; }
.launcher-top { display: flex; justify-content: space-between; padding: 13px 18px; border-bottom: 1px solid rgba(255,255,255,.12); color: #c4d5ec; font-size: 13px; }
.launcher-title { font-weight: 600; }
.launcher-version { color: #7f95b3; }
.launcher-body { display: grid; grid-template-columns: 152px 1fr; min-height: 312px; }
.launcher-tabs { display: flex; flex-direction: column; padding: 12px; gap: 4px; border-right: 1px solid rgba(255,255,255,.1); background: rgba(1, 8, 20, .35); }
.launcher-tab { text-align: left; background: transparent; border: 0; color: #9fb3cd; font-size: 13.5px; padding: 11px 12px; border-radius: 6px; cursor: default; font-family: inherit; }
.launcher-tab.active { background: rgba(80, 160, 255, .16); color: #e9f3ff; box-shadow: inset 0 0 0 1px rgba(125, 182, 255, .22); }
.launcher-details { padding: 26px 26px 22px; display: flex; flex-direction: column; }
.launcher-meta { font-size: 18px; font-weight: 700; font-family: "Geist", sans-serif; }
.launcher-sub { color: #8fa6c3; font-size: 13px; margin-top: 4px; }
.launcher-fps { font-family: "Geist", sans-serif; font-size: 56px; line-height: 1; font-weight: 600; letter-spacing: -.05em; margin: 34px 0 4px; }
.launcher-fps span { font-size: 15px; letter-spacing: .1em; color: #9fb3cd; margin-left: 8px; font-weight: 600; }
.launcher-card .btn { margin-top: auto; }
.launcher-foot { color: #7f95b3; font-size: 11.5px; margin-top: 12px; line-height: 1.4; }

/* Sections */
.section { padding: 96px 0; }
.dark-section { background: #030d1e; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-heading { max-width: 720px; margin-bottom: 52px; }
.section-heading h2 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.05; letter-spacing: -.03em; }
.section-heading p:not(.eyebrow) { color: var(--muted); margin-top: 18px; font-size: 17px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card { background: linear-gradient(180deg, rgba(13, 35, 66, .75), rgba(4, 14, 30, .75)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature-kicker { display: inline-block; color: var(--cyan); font-size: 12px; letter-spacing: .14em; margin-bottom: 18px; }
.feature-card h3 { font-size: 19px; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 14.5px; }
.stats-section { padding: 44px 0; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; text-align: center; }
.stats-grid strong { display: block; font-family: "Geist", sans-serif; font-size: 30px; font-weight: 600; letter-spacing: -.03em; }
.stats-grid span { color: var(--muted); font-size: 13px; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 22px; justify-content: center; }
.pricing-grid-home { grid-template-columns: repeat(2, minmax(0, 380px)); }
.price-card { position: relative; background: rgba(6, 20, 42, .72); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.price-card.featured { border-color: rgba(107, 231, 255, .5); background: linear-gradient(180deg, rgba(16, 44, 82, .9), rgba(5, 17, 36, .92)); box-shadow: 0 24px 80px rgba(24, 104, 190, .25); }
.price-badge { position: absolute; top: -12px; right: 22px; background: var(--cyan); color: #021024; font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 5px; letter-spacing: .06em; text-transform: uppercase; }
.price-card h3 { font-size: 16px; color: #c8d9ee; }
.price { font-family: "Geist", sans-serif; font-size: 46px; font-weight: 600; margin: 18px 0 6px; letter-spacing: -.04em; }
.price span { font-size: 22px; color: #e7f1ff; margin-right: 6px; }
.price-note { color: var(--muted); font-size: 13.5px; margin-bottom: 22px; }
.check-list { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; color: #c9d8ea; font-size: 14px; }
.check-list li::before { content: "✓"; color: var(--cyan); margin-right: 9px; font-weight: 700; }
.pricing-footnote { color: var(--muted); text-align: center; margin-top: 24px; font-size: 13px; }
.notice { border: 1px solid rgba(255, 196, 0, .35); background: rgba(255, 196, 0, .08); color: #ffe9b0; padding: 14px 16px; border-radius: 10px; margin-top: 24px; font-size: 14px; }
.notice code { color: #fff; }

/* Showcase */
.showcase { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.showcase-card { background: rgba(4, 15, 34, .85); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.showcase-bar { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); color: #9fb3cd; font-size: 12px; }
.showcase-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 18px; }
.showcase-column { display: flex; flex-direction: column; gap: 5px; }
.col-title { color: var(--cyan); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 6px; }
.col-row { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); border-radius: 5px; padding: 7px 9px; color: #b7c9df; font-size: 12px; }
.col-row.on { border-color: rgba(107, 231, 255, .35); color: #eaf7ff; background: rgba(107, 231, 255, .08); }
.showcase-copy h3 { font-size: 28px; }
.showcase-copy p { color: var(--muted); margin: 14px 0 24px; }

/* Page hero / auth / dashboard / admin */
.page-hero { padding: 86px 0 48px; border-bottom: 1px solid var(--line); background: radial-gradient(900px 360px at 15% 0%, rgba(45, 125, 210, .22), transparent 70%); }
.page-hero.compact { padding: 54px 0 34px; }
.page-hero h1 { font-size: clamp(34px, 4vw, 54px); letter-spacing: -.035em; max-width: 820px; }
.page-lead { color: var(--muted); margin-top: 16px; max-width: 680px; }
.auth-section { min-height: 620px; display: grid; place-items: center; padding: 70px 20px; background: radial-gradient(700px 400px at 50% 0%, rgba(45,125,210,.18), transparent 70%); }
.auth-card { width: min(460px, 100%); background: rgba(5, 18, 38, .86); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.auth-card h1 { font-size: 34px; }
.auth-lead { color: var(--muted); margin: 12px 0 24px; font-size: 14.5px; }
.auth-foot { color: var(--muted); font-size: 13.5px; margin-top: 18px; }
.form { display: grid; gap: 16px; }
.form.tight { gap: 12px; }
.form label { display: grid; gap: 7px; font-size: 13px; color: #c7d6e9; }
.form small { color: #7f95b3; font-weight: 500; }
.form input, .form select { width: 100%; background: rgba(1, 9, 22, .7); border: 1px solid rgba(168,196,235,.22); color: var(--white); border-radius: 8px; padding: 11px 13px; font: inherit; }
.form input:focus, .form select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(107,231,255,.12); }
.row-form { grid-template-columns: 160px 1fr 1fr auto; align-items: end; }
.dashboard-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.dashboard-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dashboard-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
.panel { background: rgba(5, 18, 38, .66); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 20px; }
.dashboard-grid .panel { margin-top: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.panel-head h2 { font-size: 20px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { text-align: left; color: #8ea4c1; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; padding: 8px 8px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 10px 8px; border-bottom: 1px solid rgba(168,196,235,.08); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.08); color: #c6d6e9; font-size: 11px; }
.pill.ok { background: rgba(0, 200, 120, .14); color: #7df0bd; }
.pill.bad { background: rgba(255, 80, 80, .14); color: #ff9e9e; }
.action-cell { display: flex; flex-wrap: wrap; gap: 5px; }
.mini-btn { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #cfe0f3; border-radius: 5px; padding: 4px 7px; font-size: 11px; cursor: pointer; font-family: inherit; }
.mini-btn:hover { border-color: var(--cyan); color: #fff; }
.mini-input, .mini-select { background: rgba(1,9,22,.7); border: 1px solid rgba(168,196,235,.2); color: #fff; border-radius: 5px; padding: 4px 6px; font-size: 11px; font-family: inherit; }
.mini-input { width: 115px; }
.stat-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 12px; }
.stat-card { background: rgba(5,18,38,.66); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.stat-card strong { display: block; font-family: "Geist", sans-serif; font-size: 26px; letter-spacing: -.03em; }
.stat-card span { color: var(--muted); font-size: 12px; }
.fine-print { color: #7f95b3; font-size: 12px; margin-top: 18px; }

/* Modules page */
.module-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.module-group { background: rgba(5,18,38,.6); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.module-group h2 { font-size: 16px; color: var(--cyan); margin-bottom: 12px; letter-spacing: .04em; }
.module-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: #c4d4e7; font-size: 13.5px; }

/* Footer / flash */
.site-footer { background: #020a17; border-top: 1px solid var(--line); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: var(--muted); font-size: 13px; margin-top: 14px; max-width: 300px; }
.site-footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: #8ea4c1; margin-bottom: 14px; }
.site-footer a:not(.brand) { display: block; color: #c4d4e7; font-size: 13.5px; margin-bottom: 8px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; color: #7389a8; font-size: 12px; margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(168,196,235,.1); }
.flash-stack { margin-top: 18px; display: grid; gap: 8px; }
.flash { border-radius: 8px; padding: 11px 14px; font-size: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.05); }
.flash-success { border-color: rgba(0, 200, 120, .35); background: rgba(0, 200, 120, .1); color: #a9f5d1; }
.flash-error { border-color: rgba(255, 90, 90, .35); background: rgba(255, 90, 90, .1); color: #ffc0c0; }
.flash-info { border-color: rgba(107, 231, 255, .3); background: rgba(107, 231, 255, .08); color: #c7f4ff; }
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; }
.faq p { color: var(--muted); margin-top: 10px; font-size: 14px; }
.changelog article { border-bottom: 1px solid var(--line); padding: 28px 0; }
.changelog h2 { font-size: 22px; }
.changelog ul { color: var(--muted); font-size: 14.5px; margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; }

/* Responsive */
@media (max-width: 1050px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 72px 0 90px; }
  .launcher-card { max-width: 520px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .module-groups { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .showcase { grid-template-columns: 1fr; }
  .row-form { grid-template-columns: 1fr 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 32px); }
  .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 4px; background: #041126; padding: 18px 24px 24px; border-bottom: 1px solid var(--line); }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-actions { gap: 12px; }
  .header-actions .header-link { display: none; }
  .hero { min-height: 0; }
  .hero h1 { font-size: 46px; }
  .launcher-body { grid-template-columns: 1fr; }
  .launcher-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .launcher-tab { white-space: nowrap; }
  .pricing-grid, .pricing-grid-home { grid-template-columns: 1fr; }
  .stats-grid, .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .module-groups { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .showcase-body { grid-template-columns: 1fr 1fr; }
  .row-form { grid-template-columns: 1fr; }
  .dashboard-head { flex-direction: column; align-items: flex-start; }
  .data-table { font-size: 12px; }
  .data-table th, .data-table td { padding: 7px 5px; }
}

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
