
/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
button { background: none; border: 0; cursor: pointer; color: inherit; font: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
input, select, textarea { font: inherit; color: inherit; }

html, body, * {
  font-family: 'Inter', ui-sans-serif;
}

/* ============ TOKENS ============ */
:root {
  --background: oklch(0.14 0.03 260);
  --foreground: oklch(0.97 0.01 250);
  --surface: oklch(0.18 0.035 260);
  --surface-2: oklch(0.22 0.04 260);
  --muted-foreground: oklch(0.72 0.02 255);
  --brand: oklch(0.62 0.21 258);
  --brand-foreground: oklch(0.99 0.005 250);
  --border: oklch(1 0 0 / 0.10);
  --border-strong: oklch(1 0 0 / 0.18);
  --input: oklch(1 0 0 / 0.14);
  --gradient-hero:
    radial-gradient(ellipse 80% 60% at 50% 30%, oklch(0.42 0.22 258 / 0.55) 0%, oklch(0.18 0.06 260 / 0) 60%),
    radial-gradient(ellipse 60% 40% at 50% 80%, oklch(0.32 0.14 258 / 0.35) 0%, transparent 70%),
    linear-gradient(180deg, oklch(0.12 0.03 260) 0%, oklch(0.16 0.04 260) 100%);
  --gradient-brand: linear-gradient(135deg, oklch(0.66 0.22 258), oklch(0.55 0.22 268));
  --gradient-card: linear-gradient(180deg, oklch(0.22 0.04 260 / 0.6), oklch(0.18 0.035 260 / 0.4));
  --shadow-glow: 0 20px 60px -20px oklch(0.5 0.22 258 / 0.55);
  --ease: cubic-bezier(.22,1,.36,1);
}

html, body {
  background: var(--background);
  color: var(--foreground);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  font-size: 16px;
}

h1, h2 {
  letter-spacing: -0.01em;
  font-weight: 700;
  line-height: 1.1;
}

h3, h4 {
  letter-spacing: -0.01em;
  font-weight: 400;
  line-height: 1.1;
}
::selection { background: oklch(0.5 0.2 258 / 0.4); }

/* ============ LAYOUT ============ */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
section { position: relative; }

/* ============ COMMON ============ */
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.muted { color: var(--muted-foreground); }

.glass-card {
  background: var(--gradient-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3rem;
  padding: 0 1.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn-sm { height: 2.25rem; padding: 0 1rem; }
.btn-md { height: 3rem; padding: 0 1.5rem; }
.btn-brand {
  background: var(--gradient-brand);
  color: var(--brand-foreground);
  box-shadow: var(--shadow-glow);
}
.btn-brand:hover {
  transform: translateY(-1px);
  box-shadow: 0 28px 70px -20px oklch(0.55 0.22 258 / 0.65);
}
.btn-ghost {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--foreground);
}
.btn-ghost:hover {
  background: oklch(1 0 0 / 0.05);
  border-color: oklch(1 0 0 / 0.25);
}

/* ============ NAVBAR ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: oklch(0.14 0.03 260 / 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-inner {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-logo {
  display: grid;
  place-items: center;
  height: 2rem;
  width: 2rem;
  border-radius: 0.375rem;
  font-weight: 700;
  background: var(--gradient-brand);
  color: var(--brand-foreground);
  font-family: 'Inter', sans-serif;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
.nav-links button, .nav-actions button {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color .2s;
}
.nav-links button:hover, .nav-actions button:hover { color: var(--foreground); }
.nav-actions { display: none; align-items: center; gap: 0.75rem; }
@media (min-width: 768px) {
  .nav-links, .nav-actions { display: flex; }
}

/* ============ HERO ============ */
.hero {
  background: var(--gradient-hero);
  overflow: hidden;
  padding: 7rem 0 8rem;
  text-align: center;
}
@media (min-width: 768px) { .hero { padding: 9rem 0 11rem; } }
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .06;
  background-image:
    linear-gradient(to right, white 1px, transparent 1px),
    linear-gradient(to bottom, white 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 30%, transparent 75%);
}
.hero-glow {
  position: absolute;
  left: 50%;
  top: 33%;
  width: 720px;
  height: 420px;
  transform: translate(-50%, -50%);
  border-radius: 9999px;
  filter: blur(80px);
  pointer-events: none;
  background: radial-gradient(circle, oklch(0.55 0.22 258 / 0.45), transparent 70%);
  animation: float-slow 8s ease-in-out infinite;
}
@keyframes float-slow {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 8px)); }
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1 {
  margin-top: 1.5rem;
  max-width: 56rem;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: -0.02em;
}
.hero p.lead {
  margin-top: 1.5rem;
  max-width: 36rem;
  color: var(--muted-foreground);
  font-size: 1.0625rem;
}
.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}
@media (min-width: 640px) { .hero-cta { flex-direction: row; } }

/* ============ LOGO CLOUD ============ */
.logos {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0;
  background: var(--background);
}
.logos-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}
.logo-item {
  display: flex;
  height: 4rem;
  min-width: 160px;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  opacity: .7;
  transition: opacity .2s;
  
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: oklch(0.97 0.01 250 / 0.8);
}
.logo-item:hover { opacity: 1; }
.logo-pill {
  display: inline-flex;
  height: 4rem;
  align-items: center;
  gap: 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  padding: 0 1.25rem;
  font-size: 0.7rem;
  letter-spacing: -0.02em;
  color: var(--muted-foreground);
  transition: color .2s, border-color .2s;
}
.logo-pill:hover { color: var(--foreground); border-color: var(--border-strong); }
.logo-pill .name {
  
  font-size: 1rem;
  letter-spacing: -0.02em;
  text-transform: none;
  color: oklch(0.97 0.01 250 / 0.85);
}
.logo-pill .divider {
  display: none;
  height: 1.25rem; width: 1px; background: var(--border);
}
.logo-pill .case { display: none; }
@media (min-width: 768px) {
  .logo-pill .divider, .logo-pill .case { display: inline-flex; align-items: center; gap: 0.25rem; }
}

/* ============ SECTION HEADERS ============ */
.section { padding: 7rem 0; }
.section-sm { padding: 6rem 0; }
.section-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
.section-head h2 {
  max-width: 40rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.02em;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color .2s;
}
.link-arrow:hover { color: var(--foreground); }

/* ============ OVERVIEW GRID ============ */
.feature-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }
.feature {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.75rem;
  transition: transform .3s var(--ease);
}
.feature:hover { transform: translateY(-4px); }
.feature .icon {
  display: grid;
  place-items: center;
  height: 2.75rem;
  width: 2.75rem;
  border-radius: 0.875rem;
  color: var(--brand);
  font-size: 1.25rem;
  background: linear-gradient(135deg, oklch(0.62 0.21 258 / 0.3), oklch(0.62 0.21 258 / 0.05));
  box-shadow: inset 0 0 0 1px oklch(0.62 0.21 258 / 0.3);
}
.feature h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.feature p { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; }

.two-col {
  margin-top: 6rem;
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .two-col { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.two-col .lead-text {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 300;
  line-height: 1.35;
}
.two-col .body-text { color: var(--muted-foreground); line-height: 1.7; font-size: 1.0625rem; }

/* ============ GUIDE ============ */
.guide-card {
  position: relative;
  overflow: hidden;
  padding: 2.5rem;
}
@media (min-width: 768px) { .guide-card { padding: 4rem; } }
.guide-glow {
  position: absolute;
  right: -8rem; top: -8rem;
  width: 420px; height: 420px;
  border-radius: 9999px;
  filter: blur(80px);
  opacity: .6;
  pointer-events: none;
  background: radial-gradient(circle, oklch(0.5 0.22 258 / 0.45), transparent 70%);
}
.guide-grid {
  position: relative;
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 768px) { .guide-grid { grid-template-columns: 1fr 1fr; } }
.guide-grid h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 300;
  letter-spacing: -0.02em;
}
.guide-grid .desc { margin-top: 1.5rem; max-width: 32rem; color: var(--muted-foreground); }
.book {
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: 1rem;
  border: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, oklch(0.28 0.08 258), oklch(0.18 0.05 268));
  box-shadow: 0 30px 60px -20px oklch(0 0 0 / 0.6);
}
.book .label {
  
  font-size: 0.625rem;
  letter-spacing: -0.3em;
  color: oklch(0.62 0.21 258 / 0.9);
}
.book h3 {
  margin-top: 1.5rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.15;
}
.book .toc {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid oklch(1 0 0 / 0.1);
}
.book .toc-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: oklch(0.97 0.01 250 / 0.8);
  padding: 0.25rem 0;
}
.book .toc-row span:first-child {  }

/* ============ STORIES ============ */
.story-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .story-grid { grid-template-columns: repeat(3, 1fr); } }
.story {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  transition: transform .3s var(--ease);
}
.story:hover { transform: translateY(-4px); }
.story .firm {  font-size: 1.5rem; color: oklch(0.97 0.01 250 / 0.9); }
.story .stat { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.story .stat .num {  font-size: 3.75rem; line-height: 1; font-weight: 400; }
.story .stat .desc { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.story .tag { margin-top: 2rem;  font-size: 0.625rem; letter-spacing: -0.02em; color: var(--muted-foreground); }
.story .title { margin-top: 0.75rem;  font-size: 1.25rem; line-height: 1.3; }
.story .read { margin-top: 2rem; font-size: 0.875rem; font-weight: 500; color: var(--brand); display: inline-flex; align-items: center; gap: 0.5rem; }

/* ============ DEMO ============ */
.demo-section {
  position: relative;
  overflow: hidden;
  padding: 7rem 0;
}
.demo-glow {
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, oklch(0.4 0.2 258 / 0.35), transparent 70%);
}
.demo-grid {
  position: relative;
  display: grid;
  gap: 4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .demo-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.demo-left h2 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: -0.02em;
}
.demo-left .desc { margin-top: 1.5rem; max-width: 28rem; color: var(--muted-foreground); }
.stats {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.stat-num {  font-size: 2.5rem; }
.stat-label { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* Form */
.form {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: block; }
.field-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
}
.field-input {
  height: 2.75rem;
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid var(--input);
  background: oklch(0.14 0.03 260 / 0.4);
  padding: 0 0.75rem;
  font-size: 0.875rem;
  color: var(--foreground);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px oklch(0.62 0.21 258 / 0.3);
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.checkbox-row input { margin-top: 0.125rem; height: 1rem; width: 1rem; accent-color: var(--brand); }
.form-submit { width: 100%; margin-top: 1rem; }
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 420px;
}
.form-success.is-active { display: flex; }
.form-fields.is-hidden { display: none; }
.success-icon {
  display: grid;
  place-items: center;
  height: 3.5rem; width: 3.5rem;
  border-radius: 9999px;
  color: var(--brand);
  font-size: 1.5rem;
  background: oklch(0.62 0.21 258 / 0.15);
  box-shadow: inset 0 0 0 1px oklch(0.62 0.21 258 / 0.4);
}
.form-success h3 { margin-top: 1.5rem; font-size: 1.875rem; }
.form-success p { margin-top: 0.5rem; max-width: 18rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--border); background: var(--background); }
.footer-inner { padding: 5rem 0; }
.footer-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr repeat(4, 1fr); }
}
.footer-about p { margin-top: 1rem; max-width: 20rem; font-size: 0.875rem; color: var(--muted-foreground); }
.footer h4 { font-family: 'Inter', sans-serif; font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; }
.footer ul { display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; color: var(--muted-foreground); }
.footer ul a:hover { color: var(--foreground); }
.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; align-items: center; } }
.footer-bottom .links { display: flex; gap: 1.5rem; }
.footer-bottom .links a:hover { color: var(--foreground); }
