:root {
  color-scheme: dark;
  --bg: #0a0f21;
  --bg-2: #11172a;
  --surface: #10172a;
  --surface-2: #121a2e;
  --surface-3: #19223a;
  --border: #1c2438;
  --text: #fbfbfc;
  --muted: #9aa6bb;
  --faint: #657087;
  --accent: #783ce4;
  --accent-2: #8044e8;
  --green: #76cb9a;
  --blue: #3c94f0;
  --orange: #eea554;
  --pink: #c8388c;
  --radius: 8px;
  --display: "Playfair Display", Georgia, serif;
  --body: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  color: var(--text);
  background:
    radial-gradient(circle at 18% 6%, rgba(120, 60, 228, 0.22), transparent 28rem),
    radial-gradient(circle at 85% 14%, rgba(60, 148, 240, 0.13), transparent 24rem),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 16px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(28, 36, 56, 0.86);
  background: rgba(10, 16, 34, 0.88);
  backdrop-filter: blur(18px);
}

.brand-link img { display: block; width: 156px; height: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.site-nav a { transition: color 160ms ease, border-color 160ms ease, background 160ms ease; }
.site-nav a:hover { color: var(--text); }
.nav-login { padding-left: 8px; color: var(--text); }
.nav-cta {
  border: 1px solid rgba(128, 68, 232, 0.6);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 28px rgba(120, 60, 228, 0.28);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
  min-height: calc(100svh - 76px);
  padding: clamp(42px, 7vw, 92px) clamp(18px, 5vw, 72px) 54px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #bba8ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2 {
  font-family: var(--display);
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.94;
}

.hero-lead {
  max-width: 660px;
  color: #c0cbdd;
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: var(--radius);
  padding: 0 18px;
  font-size: 14px;
  font-weight: 900;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 34px rgba(120, 60, 228, 0.35);
}

.button.secondary {
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.button.full { width: 100%; margin-top: 18px; }

.hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.calendar-shell {
  width: min(100%, 720px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(25, 34, 58, 0.92), rgba(16, 23, 42, 0.96));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
  padding: 18px;
}

.calendar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  color: var(--text);
  font-weight: 900;
}

.model-chip {
  border: 1px solid rgba(128, 68, 232, 0.45);
  border-radius: var(--radius);
  padding: 7px 10px;
  color: #d8ccff;
  background: rgba(42, 32, 89, 0.62);
  font-size: 12px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(86px, 1fr));
  gap: 10px;
}

.day {
  min-height: 104px;
  border: 1px solid #182034;
  border-radius: var(--radius);
  background: #101729;
  padding: 10px;
}

.day b { display: block; margin-bottom: 9px; color: #c0cbdd; font-size: 13px; }
.day.muted { opacity: 0.42; }
.day.active { border-color: rgba(120, 60, 228, 0.86); box-shadow: inset 0 0 0 1px rgba(120, 60, 228, 0.32); }

.slot {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-top: 6px;
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 900;
}
.slot.blue { background: rgba(60, 148, 240, 0.16); color: #8fc7ff; }
.slot.green { background: rgba(118, 203, 154, 0.14); color: #9de7ba; }
.slot.violet { background: rgba(120, 60, 228, 0.22); color: #d8ccff; }
.slot.orange { background: rgba(238, 165, 84, 0.16); color: #ffd19b; }
.slot.pink { background: rgba(200, 56, 140, 0.16); color: #ff9ed0; }

.floating-panel {
  position: absolute;
  width: 190px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(18, 26, 46, 0.92);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
  padding: 14px;
}
.panel-left { left: 0; bottom: 70px; }
.panel-right { right: 0; top: 74px; }
.panel-kicker { display: block; margin-bottom: 5px; color: var(--faint); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.floating-panel strong { display: block; margin-bottom: 5px; font-size: 15px; }
.floating-panel small { color: var(--muted); line-height: 1.35; }

.section-band {
  padding: clamp(64px, 9vw, 116px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 840px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.workflow-steps article,
.feature-card,
.tier {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(16, 23, 42, 0.78);
}

.workflow-steps article {
  min-height: 190px;
  padding: 18px;
}
.workflow-steps span {
  display: block;
  margin-bottom: 28px;
  color: #bba8ff;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 900;
}
.workflow-steps h3, .feature-card h3, .tier h3 {
  margin-bottom: 10px;
  font-size: 19px;
}
.workflow-steps p, .feature-card p, .tier-note {
  color: var(--muted);
  line-height: 1.55;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.feature-card {
  min-height: 210px;
  padding: 20px;
}

.feature-card.wide {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(120, 60, 228, 0.22), rgba(16, 23, 42, 0.82)),
    rgba(16, 23, 42, 0.78);
}

.mini-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 42px;
}
.mini-toolbar span {
  width: 34px;
  height: 8px;
  border-radius: 999px;
  background: rgba(251, 251, 252, 0.22);
}

.tiers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 440px));
  gap: 16px;
  align-items: stretch;
}

.tier {
  padding: 24px;
}
.tier.featured {
  border-color: rgba(120, 60, 228, 0.8);
  background: linear-gradient(180deg, rgba(42, 32, 89, 0.56), rgba(16, 23, 42, 0.84));
}
.tier h3 {
  font-size: 28px;
}
.tier ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.tier li {
  color: #d4dbe7;
  font-weight: 700;
}
.tier li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 99px;
  background: var(--green);
  vertical-align: 1px;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 clamp(18px, 5vw, 72px) 72px;
  border: 1px solid rgba(128, 68, 232, 0.46);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(120, 60, 228, 0.22), rgba(18, 26, 46, 0.9));
  padding: clamp(24px, 5vw, 46px);
}
.final-cta h2 {
  margin-bottom: 8px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
}
.final-cta p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms ease, transform 560ms ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .site-nav a:not(.nav-login):not(.nav-cta) { display: none; }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-visual { min-height: 470px; }
  .workflow-steps, .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-card.wide { grid-column: span 2; }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
    padding: 14px 16px;
  }
  .brand-link img { width: 132px; }
  .site-nav { gap: 8px; }
  .nav-login { display: none; }
  .nav-cta { padding: 9px 11px; font-size: 12px; }
  .hero { padding-top: 34px; }
  h1 { font-size: 46px; }
  .hero-actions .button { width: 100%; }
  .hero-visual { min-height: 420px; }
  .calendar-shell { padding: 12px; }
  .calendar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .day { min-height: 88px; padding: 8px; }
  .floating-panel { position: static; width: auto; margin-top: 10px; }
  .hero-visual { display: block; }
  .workflow-steps, .feature-grid, .tiers { grid-template-columns: 1fr; }
  .feature-card.wide { grid-column: auto; }
  .final-cta { flex-direction: column; align-items: stretch; }
}
