/* styles.css */

/* ---------------------------
   Base + tokens
---------------------------- */
:root {
  --bg: #0b0f17;
  --bg-2: #0a1222;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-2: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.14);
  --border-2: rgba(255, 255, 255, 0.1);
  --text-strong: rgba(255, 255, 255, 0.96);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --faint: rgba(255, 255, 255, 0.55);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  --accent: rgba(133, 255, 214, 0.9);
  --accent-2: rgba(88, 170, 255, 0.95);
  --focus: rgba(255, 255, 255, 0.25);
  --container: 1140px;
  --pad: 24px;
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 44px;
  --space-8: 58px;
  --space-9: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(88, 170, 255, 0.12), transparent 60%),
    radial-gradient(900px 500px at 80% 10%, rgba(133, 255, 214, 0.09), transparent 60%),
    linear-gradient(180deg, var(--bg), #070a10 70%);
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(var(--container), calc(100% - (var(--pad) * 2)));
  margin-inline: auto;
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 9999;
}

.skip-link:focus {
  left: 12px;
  outline: none;
  box-shadow: 0 0 0 4px rgba(88, 170, 255, 0.22);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Focus */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(88, 170, 255, 0.22);
  border-radius: 12px;
}

/* ---------------------------
   Header
---------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 10, 16, 0.55);
  border-bottom: 1px solid var(--border-2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(12px 12px at 30% 35%, rgba(255, 255, 255, 0.55), transparent 60%),
    linear-gradient(135deg, rgba(133, 255, 214, 0.85), rgba(88, 170, 255, 0.85));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(140px 80px at 25% 20%, rgba(255, 255, 255, 0.22), transparent 60%);
  transform: rotate(-18deg);
  pointer-events: none;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), inset 0 -10px 18px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.brand-logo {
  width: 70%;
  height: 70%;
  object-fit: contain;
  transform: translateY(-0.5px);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}

.brand:hover .brand-mark {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-tag {
  font-size: 12px;
  color: var(--faint);
  margin-top: 2px;
}

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

.nav-link {
  font-size: 14px;
  color: var(--muted);
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
}

.nav-link:hover {
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-2);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-2);
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--text);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}

.nav-toggle-lines {
  display: block;
  width: 20px;
  height: 12px;
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.7);
}

.nav-toggle-lines::before {
  top: 2px;
}

.nav-toggle-lines::after {
  bottom: 2px;
}

.mobile-nav {
  border-top: 1px solid var(--border-2);
  background: rgba(7, 10, 16, 0.85);
}

.mobile-nav-inner {
  display: grid;
  gap: 6px;
  padding: 12px 0 14px;
}

.mobile-link {
  display: block;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  text-decoration: none !important;
}

.mobile-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

/* ---------------------------
   Hero
---------------------------- */
.hero {
  position: relative;
  padding: 68px 0 40px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.hero-bg {
  position: absolute;
  inset: -20% -20% auto -20%;
  height: 520px;
  background: radial-gradient(500px 220px at 18% 30%, rgba(88, 170, 255, 0.18), transparent 60%),
    radial-gradient(520px 240px at 72% 20%, rgba(133, 255, 214, 0.14), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 65%);
  filter: blur(0px);
  pointer-events: none;
}

.doc-hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: var(--space-6);
  align-items: start;
}

.doc-cover {
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--panel-2);
  box-shadow: var(--shadow-soft);
  padding: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.doc-cover__img {
  display: block;
  width: 100%;
  max-height: 520px;
  height: auto;
  object-fit: contain;
  border-radius: calc(var(--radius-lg) - 8px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.38);
}

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  padding: 8px 10px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  margin: 0 0 16px;
}

.hero-title {
  margin: 0 0 14px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.hero-subtitle {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 62ch;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.metric {
  border: 1px solid var(--border-2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  padding: 14px 14px;
}

.metric-k {
  display: block;
  font-size: 12px;
  color: var(--faint);
  margin-bottom: 6px;
}

.metric-v {
  display: block;
  font-size: 13px;
  color: var(--text);
}

.hero-card .card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255,  255, 0.08), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-header {
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--border-2);
  background: rgba(0, 0, 0, 0.16);
}

.card-label {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.card-body {
  padding: 18px 20px 20px;
}

.card-text {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 15px;
}

.card-callout {
  border: 1px solid var(--border-2);
  background: var(--panel-2);
  border-radius: 14px;
  padding: 12px 12px;
}

.mono {
  font-family: var(--mono);
}

.small {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.mono-strong {
  color: rgba(255, 255, 255, 0.92);
}

/* ---------------------------
   Sections
---------------------------- */
.section {
  padding: var(--space-9) 0;
}

.section > .container {
  display: grid;
  gap: var(--space-6);
  align-items: start;
}

.section-muted {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.018));
  border-top: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
}

.section-head {
  max-width: 78ch;
  display: grid;
  gap: var(--space-3);
}

.section-head > * {
  margin: 0;
}

.section-head .panel-text {
  margin: 0;
}

.section-title {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.16;
  letter-spacing: -0.03em;
  font-weight: 700;
}

h1.section-title {
  font-size: clamp(30px, 3.2vw, 42px);
  letter-spacing: -0.035em;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 16px;
}

/* Grid */
.grid {
  display: grid;
  gap: var(--space-4);
  align-items: start;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Panels */
.panel {
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  background: var(--panel-2);
  padding: 22px 22px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: var(--space-2);
}

.panel-title {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.panel-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 15px;
}

.list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
}

.list li {
  margin: 8px 0;
}

.feature {
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.032);
  padding: 22px 22px;
}

.feature-title {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.feature-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

/* Stack */
.stack {
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.stack-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0;
  padding: 18px 18px;
  border-top: 1px solid var(--border-2);
}

.stack-item:first-child {
  border-top: none;
}

.stack-k {
  font-family: var(--mono);
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  padding-top: 2px;
}

.stack-title {
  margin: 0 0 6px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.stack-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

.note {
  border: 1px solid rgba(133, 255, 214, 0.18);
  background: linear-gradient(135deg, rgba(133, 255, 214, 0.08), rgba(88, 170, 255, 0.06));
  border-radius: var(--radius-lg);
  padding: 18px 18px;
  display: grid;
  gap: var(--space-2);
}

.note-title {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.note-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  font-size: 15px;
}

/* Documents */
.doc {
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  background: var(--panel-2);
  padding: 22px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 230px;
  box-shadow: var(--shadow-soft);
}

.doc-k {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.doc-title {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.doc-text {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

.doc-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Scope box */
.scope {
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.032);
  padding: 22px 22px;
}

.scope-title {
  margin: 0 0 14px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.scope-k {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Subscribe */
.subscribe {
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  padding: 26px 26px;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.subscribe-title {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.subscribe-text {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.6;
}

.subscribe-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.subscribe-form {
  display: grid;
  gap: 10px;
}

.input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border-2);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font-size: 14px;
}

.input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.form-help {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  line-height: 1.4;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  text-decoration: none !important;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(133, 255, 214, 0.85), rgba(88, 170, 255, 0.85));
  color: rgba(7, 10, 16, 0.92);
  border-color: rgba(255, 255, 255, 0.16);
}

.btn-primary:hover {
  filter: brightness(1.02);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border-2);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn-sm {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-2);
  background: rgba(7, 10, 16, 0.55);
  padding: 22px 0;
}

.footer-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-brand {
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.footer-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.5;
}

.footer-meta a {
  color: rgba(255, 255, 255, 0.78);
}

/* ---------------------------
   Responsive
---------------------------- */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-card {
    order: 2;
  }

  .doc-hero {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

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

  .section {
    padding: 52px 0;
  }

  .hero {
    padding: 56px 0 32px;
  }

  .hero-title {
    font-size: clamp(30px, 7vw, 42px);
  }
}

/* ---------------------------
   Light theme (optional)
   Toggle by adding class="theme-light" on <body>
---------------------------- */
body.theme-light {
  --bg: #f7f8fb;
  --bg-2: #ffffff;
  --panel: rgba(0, 0, 0, 0.05);
  --panel-2: rgba(0, 0, 0, 0.035);
  --border: rgba(0, 0, 0, 0.1);
  --border-2: rgba(0, 0, 0, 0.08);
  --text: rgba(11, 15, 23, 0.92);
  --text-strong: rgba(11, 15, 23, 0.95);
  --muted: rgba(11, 15, 23, 0.7);
  --faint: rgba(11, 15, 23, 0.55);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.1);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
  background: radial-gradient(1200px 600px at 20% -10%, rgba(88, 170, 255, 0.1), transparent 60%),
    radial-gradient(900px 500px at 80% 10%, rgba(133, 255, 214, 0.1), transparent 60%),
    linear-gradient(180deg, #ffffff, #f6f7fb 70%);
}

body.theme-light .site-header {
  background: rgba(255, 255, 255, 0.75);
}

body.theme-light .input {
  background: rgba(255, 255, 255, 0.8);
}

body.theme-light .btn-primary {
  color: rgba(11, 15, 23, 0.92);
}
