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

:root {
  --bg: #0a0a0b;
  --bg-soft: #0f0f11;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-hover: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f3f1;
  --text-muted: #9d9b97;
  --text-dim: #6a6863;
  --accent: #5b9dd9;
  --accent-soft: rgba(91, 157, 217, 0.12);
  --solid: #f4f3f1;
  --solid-text: #0a0a0b;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --header-h: 4rem;
  --maxw: 1080px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  letter-spacing: -0.005em;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: rgba(91, 157, 217, 0.28);
  color: var(--text);
}

/* ── Background ── */

.bg-effects {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, black 10%, transparent 70%);
}

.bg-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  width: 900px;
  height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(91, 157, 217, 0.1) 0%, transparent 65%);
  filter: blur(20px);
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Header ── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.brand-name {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: var(--solid);
  color: var(--solid-text);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.header-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ── Reveal ── */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.06s; }
.reveal-delay-2 { transition-delay: 0.12s; }
.reveal-delay-3 { transition-delay: 0.18s; }
.reveal-delay-4 { transition-delay: 0.24s; }
.reveal-delay-5 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* ── Hero ── */

.hero {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 4rem) 1.25rem 4.5rem;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem 0.375rem 0.75rem;
  margin-bottom: 2rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(91, 157, 217, 0.5);
  animation: pulse-dot 2.4s ease-out infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(91, 157, 217, 0.45); }
  70% { box-shadow: 0 0 0 6px rgba(91, 157, 217, 0); }
  100% { box-shadow: 0 0 0 0 rgba(91, 157, 217, 0); }
}

.logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  margin-bottom: 1.75rem;
  border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 32px rgba(0, 0, 0, 0.4);
}

.logo-wrap::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.logo {
  width: 52px;
  height: 52px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.headline {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 1.125rem;
}

.subtext {
  font-size: clamp(1.0625rem, 2.5vw, 1.1875rem);
  color: var(--text-muted);
  max-width: 38rem;
  margin-bottom: 2.25rem;
  line-height: 1.65;
}

/* ── Prompt ── */

.prompt-shell {
  width: 100%;
  max-width: 640px;
}

.prompt-label {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-dim);
}

.prompt-box {
  position: relative;
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  transition: border-color 0.2s ease, box-shadow 0.25s ease;
}

.prompt-box:focus-within {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 16px 40px rgba(0, 0, 0, 0.4);
}

.prompt-box.is-hidden-placeholder .prompt-placeholder {
  opacity: 0;
  pointer-events: none;
}

.prompt-input {
  display: block;
  width: 100%;
  min-height: 6rem;
  padding: 1.125rem 1.25rem 0.5rem;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
}

.prompt-placeholder {
  position: absolute;
  top: 1.125rem;
  left: 1.25rem;
  right: 1.25rem;
  text-align: left;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dim);
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.cursor {
  display: inline-block;
  margin-left: 1px;
  color: var(--accent);
  animation: blink 1.1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.prompt-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem 0.875rem 1.25rem;
  border-top: 1px solid var(--border);
}

.prompt-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.prompt-hint kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.25rem;
  padding: 0 0.3125rem;
  margin: 0 0.0625rem;
  border-radius: 0.3125rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  font-family: var(--font);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.prompt-hint-sep {
  margin: 0 0.125rem;
  opacity: 0.5;
}

.prompt-send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.375rem;
  height: 2.375rem;
  border: none;
  border-radius: 0.5rem;
  background: var(--solid);
  color: var(--solid-text);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.prompt-send:hover {
  opacity: 0.88;
  transform: scale(1.04);
}

.prompt-send:active {
  transform: scale(0.97);
}

/* ── Chips ── */

.try-label {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-dim);
}

.capability-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.875rem;
  max-width: 640px;
}

.chip {
  padding: 0.4375rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.chip:hover {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--surface-hover);
}

.chip.is-active {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--surface-hover);
}

/* ── Sections ── */

.section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-header {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 3rem;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  margin-bottom: 0.875rem;
}

.section-title {
  font-size: clamp(1.625rem, 4vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 0.875rem;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Capabilities ── */

.capabilities {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0;
  border-top: 1px solid var(--border);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
}

.capability-card {
  padding: 1.75rem;
  background: var(--bg);
  transition: background 0.2s ease;
}

.capability-card:hover {
  background: var(--bg-soft);
}

.capability-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  margin-bottom: 1.125rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.capability-card:hover .capability-icon {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.capability-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
}

.capability-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Steps ── */

.steps {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0;
  border-top: 1px solid var(--border);
}

.steps-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border-strong);
}

.step-num {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.875rem;
}

.step h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── CTA banner ── */

.cta-banner {
  position: relative;
  z-index: 1;
  padding: 5.5rem 1.25rem;
  border-top: 1px solid var(--border);
}

.cta-banner-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(1.625rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.cta-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.625rem;
  border-radius: 0.625rem;
  background: var(--solid);
  color: var(--solid-text);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.cta-banner-btn:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

/* ── Footer ── */

.site-footer {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.25rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.footer-logo {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.footer-copy a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-copy a:hover {
  color: var(--text);
}

/* ── Modal ── */

body.modal-open {
  overflow: hidden;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(8px);
  animation: modal-fade-in 0.2s ease;
}

.modal-overlay[hidden] {
  display: none;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 2.25rem 1.75rem 1.75rem;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: 1rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  text-align: center;
  animation: modal-slide-in 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes modal-slide-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.modal-close:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.modal-logo {
  width: 44px;
  height: 44px;
  margin-bottom: 1.25rem;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.modal-title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.modal-description {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.modal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8125rem 1.25rem;
  border-radius: 0.625rem;
  background: var(--solid);
  color: var(--solid-text);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.modal-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.modal-dismiss {
  padding: 0.625rem 1rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.875rem;
  cursor: pointer;
  transition: color 0.15s ease;
}

.modal-dismiss:hover {
  color: var(--text);
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-list {
    grid-template-columns: 1fr;
    max-width: 30rem;
    margin: 0 auto;
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .prompt-hint {
    display: none;
  }

  .prompt-footer {
    justify-content: flex-end;
  }

  .header-cta {
    font-size: 0.75rem;
    padding: 0.4375rem 0.75rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
