
:root {
  --bg: #08111f;
  --panel: rgba(12, 20, 36, 0.72);
  --panel-solid: #0e1728;
  --panel-soft: #111d33;
  --text: #edf4ff;
  --muted: #a2b3cc;
  --line: rgba(148, 163, 184, 0.18);
  --primary: #3b82f6;
  --secondary: #14b8a6;
  --accent: #8b5cf6;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --max: 1180px;
  --body-background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.16), transparent 25%),
    linear-gradient(180deg, #07101b 0%, #091321 45%, #07101b 100%);
  --topbar-bg: rgba(9, 16, 29, 0.72);
  --button-secondary-bg: rgba(255, 255, 255, 0.03);
  --button-secondary-border: rgba(148, 163, 184, 0.22);
  --hero-point-text: #dce8ff;
  --eyebrow-color: #8fd6ff;
  --visual-card-bg: linear-gradient(180deg, rgba(11, 18, 32, 0.9), rgba(17, 29, 51, 0.8));
  --visual-badge-bg: rgba(8, 17, 31, 0.72);
  --featured-plan-bg: linear-gradient(180deg, rgba(53, 28, 92, 0.34), rgba(13, 21, 38, 0.82));
  --plan-tag-bg: rgba(139, 92, 246, 0.18);
  --plan-tag-border: rgba(139, 92, 246, 0.38);
}

:root[data-theme="light"] {
  --bg: #eef6ff;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-solid: #ffffff;
  --panel-soft: #f2f7ff;
  --text: #0d1b2a;
  --muted: #506174;
  --line: rgba(13, 27, 42, 0.12);
  --shadow: 0 24px 80px rgba(26, 42, 67, 0.12);
  --body-background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.1), transparent 25%),
    linear-gradient(180deg, #f8fbff 0%, #eef6ff 45%, #eef5fb 100%);
  --topbar-bg: rgba(255, 255, 255, 0.82);
  --button-secondary-bg: rgba(255, 255, 255, 0.75);
  --button-secondary-border: rgba(13, 27, 42, 0.12);
  --hero-point-text: #17324d;
  --eyebrow-color: #2563eb;
  --visual-card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(235, 244, 255, 0.92));
  --visual-badge-bg: rgba(255, 255, 255, 0.9);
  --featured-plan-bg: linear-gradient(180deg, rgba(139, 92, 246, 0.08), rgba(255, 255, 255, 0.96));
  --plan-tag-bg: rgba(139, 92, 246, 0.12);
  --plan-tag-border: rgba(139, 92, 246, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--body-background);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(100%, var(--max)); margin: 0 auto; }
.site-shell { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; padding: 22px 0 40px; }

.topbar {
  position: sticky; top: 16px; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px 18px; background: var(--topbar-bg); border: 1px solid var(--line);
  border-radius: 999px; backdrop-filter: blur(16px); box-shadow: var(--shadow);
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: 56px; height: 56px; object-fit: contain; flex: 0 0 56px; }
.brand div { display: flex; flex-direction: column; gap: 2px; }
.brand strong { font-size: 1rem; line-height: 1.1; }
.brand span { color: var(--muted); font-size: 0.8rem; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { color: var(--muted); font-size: 0.95rem; }
.nav a:hover, .nav a:focus-visible { color: var(--text); }
.nav-toggle, .theme-toggle {
  width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%;
  background: var(--button-secondary-bg); color: var(--text); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.theme-toggle-icon { font-size: 1.1rem; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; padding: 0; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 999px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 700;
}
.button.small { padding: 10px 16px; font-size: 0.92rem; }
.button.primary { background: linear-gradient(135deg, #3b82f6, #14b8a6); color: white; box-shadow: 0 14px 34px rgba(59,130,246,.22); }
.button.ghost { background: var(--button-secondary-bg); border-color: var(--button-secondary-border); }
.button.full { width: 100%; }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; padding: 72px 0 50px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--eyebrow-color); font-size: .85rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 18px currentColor; }
.hero h1, .section-heading h2 { margin: 0; line-height: 1.02; letter-spacing: -0.045em; }
.hero h1 { max-width: 12ch; font-size: clamp(2.7rem, 5vw, 5rem); }
.lead, .section-heading p, .feature-card p, .resource-card p, .price-head p, .faq-list p, .cta-band p, .flow-card p { color: var(--muted); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 28px; }
.hero-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 0; margin: 0; list-style: none; }
.hero-points li { padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); color: var(--hero-point-text); }
.hero-visual { position: relative; min-height: 560px; }
.hero-card { position: absolute; inset: 20px 0 40px 40px; padding: 18px; border-radius: 32px; background: var(--visual-card-bg); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.panel-top { display: flex; gap: 8px; margin-bottom: 14px; }
.panel-top span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.panel-large img { width: 100%; height: calc(100% - 24px); object-fit: cover; object-position: center top; border-radius: 22px; border: 1px solid var(--line); }
.floating-stat { position: absolute; padding: 14px 16px; border-radius: 18px; background: var(--visual-badge-bg); border: 1px solid var(--line); backdrop-filter: blur(16px); box-shadow: var(--shadow); }
.floating-stat strong { display: block; font-size: .96rem; }
.floating-stat span { color: var(--muted); font-size: .82rem; }
.stat-one { left: 0; bottom: 118px; }
.stat-two { right: -8px; top: 96px; }

.metrics-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.metric-card, .feature-card, .resource-card, .flow-card, .price-card, .cta-band, .faq-list details, .footer, .hero-card { backdrop-filter: blur(16px); }
.metric-card { padding: 20px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); }
.metric-card strong { display:block; margin-bottom: 8px; }
.metric-card span { color: var(--muted); line-height: 1.55; }

.section { padding: 88px 0 0; }
.section-heading { max-width: 760px; margin-bottom: 34px; }
.section-heading.narrow { max-width: 700px; }
.kicker { display: inline-block; margin-bottom: 10px; color: var(--eyebrow-color); font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.feature-grid, .resources-grid, .pricing-grid { display: grid; gap: 18px; }
.feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-card { padding: 24px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); }
.icon-wrap { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(59,130,246,.14); color: #9fd1ff; font-size: 1.25rem; margin-bottom: 18px; }
.feature-card h3, .resource-card h3, .flow-card h3, .price-head h3 { margin: 0 0 10px; font-size: 1.1rem; }

.architecture-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.flow-card { padding: 24px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); position: relative; }
.flow-step { display:inline-grid; place-items:center; width:34px; height:34px; border-radius:50%; background: rgba(59,130,246,.14); color: #9fd1ff; font-weight:700; margin-bottom: 14px; }
.flow-arrow { display: none; }

.resources-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.resource-card { padding: 24px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); min-height: 210px; }
.resource-card.tall { grid-column: span 2; min-height: 380px; }
.image-card { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; align-items: center; }
.resource-shot-wrap { height: 100%; min-height: 280px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.resource-shot-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.highlight { background: linear-gradient(180deg, rgba(16,27,49,.92), rgba(13,21,38,.78)); }
:root[data-theme="light"] .highlight { background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(240,247,255,.92)); }

.pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.price-card { position: relative; padding: 26px; border-radius: 28px; background: var(--panel); border: 1px solid var(--line); display:flex; flex-direction:column; gap: 18px; }
.price-card ul { margin: 0; padding-left: 18px; color: var(--muted); display:grid; gap: 10px; }
.price-card.featured { background: var(--featured-plan-bg); }
.badge { position:absolute; top: 16px; right:16px; padding: 8px 12px; border-radius:999px; background: var(--plan-tag-bg); border: 1px solid var(--plan-tag-border); font-size: .8rem; font-weight: 700; }

.cta-band { display:flex; align-items:center; justify-content:space-between; gap: 22px; padding: 34px; border-radius: 30px; background: var(--panel); border: 1px solid var(--line); }
.cta-actions { display:flex; flex-wrap: wrap; gap: 14px; }

.faq-list { display:grid; gap: 16px; }
.faq-list details { padding: 22px 24px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font-weight: 700; }
.faq-list p { margin: 14px 0 0; }

.footer { display:flex; align-items:flex-end; justify-content:space-between; gap: 24px; padding: 32px 0 24px; margin-top: 88px; border-top: 1px solid var(--line); }
.footer-links { display:grid; gap: 8px; justify-items: end; text-align: right; color: var(--muted); }
.footer-brand img { width: 54px; height: 54px; }

@media (max-width: 1100px) {
  .hero, .cta-band, .image-card { grid-template-columns: 1fr; display: grid; }
  .hero-visual { min-height: 460px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resources-grid, .pricing-grid, .architecture-flow, .metrics-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resource-card.tall { grid-column: span 2; }
}

@media (max-width: 820px) {
  .site-shell { width: min(calc(100% - 20px), var(--max)); }
  .topbar { border-radius: 28px; align-items: center; }
  .topbar-actions { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: calc(100% + 12px); left: 0; right: 0; display: none; flex-direction: column;
    align-items: stretch; gap: 10px; padding: 16px; border-radius: 24px; background: var(--topbar-bg);
    border: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .hero { padding-top: 46px; }
  .hero-points, .resources-grid, .pricing-grid, .feature-grid, .architecture-flow, .metrics-strip { grid-template-columns: 1fr; }
  .resource-card.tall { grid-column: span 1; }
  .hero-visual { min-height: 340px; }
  .hero-card { inset: 0; }
  .stat-one { left: 10px; bottom: -12px; }
  .stat-two { right: 10px; top: -8px; }
  .footer { flex-direction: column; align-items: stretch; }
  .footer-links { justify-items: start; text-align: left; }
}
