:root {
  --bg: #f6f4fa;
  --bg-soft: #ebe4f5;
  --surface: #ffffff;
  --ink: #1a1228;
  --ink-muted: #6b6280;
  --accent: #7c3aed;
  --accent-deep: #5b21b6;
  --accent-soft: rgba(124, 58, 237, 0.12);
  --line: rgba(26, 18, 40, 0.1);
  --radius: 14px;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --shadow: 0 24px 60px rgba(26, 18, 40, 0.12);
  --page-max: 1520px;
  --page-pad: clamp(1.25rem, 3.5vw, 3rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--page-pad);
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.top-banner {
  width: 100%;
  background: linear-gradient(90deg, #efe6ff, #e8f0ff);
  font-size: 0.9rem;
  color: var(--ink);
}

.top-banner-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: flex-start;
  padding-block: 0.7rem;
}

.top-banner a {
  font-weight: 600;
  color: var(--accent-deep);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 244, 250, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  gap: 0.1rem;
}

.company-name {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.emblem {
  display: block;
  border-radius: 8px;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a:not(.btn) {
  color: var(--ink-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:not(.btn):hover,
.nav-link-muted:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.28);
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: #2d1f45;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  width: 100%;
}

.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}

.hero {
  position: relative;
  padding: 2.75rem 0 4.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 6% 2% auto;
  height: 78%;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.1), transparent 45%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 19px,
      rgba(26, 18, 40, 0.04) 20px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 19px,
      rgba(26, 18, 40, 0.04) 20px
    ),
    #ebe0ff;
  clip-path: polygon(0 12%, 78% 0, 100% 18%, 100% 88%, 22% 100%, 0 78%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  from { filter: saturate(1); }
  to { filter: saturate(1.12) brightness(1.03); }
}

.hero-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: none;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
  max-width: 22ch;
}

.hero-banner {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 0 0 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(26, 18, 40, 0.08);
  animation: riseIn 0.9s ease both;
  object-fit: cover;
}

.hero-lead {
  margin: 0 0 1.5rem;
  font-size: 1.15rem;
  color: var(--ink-muted);
  max-width: 46rem;
}

.hero-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.hero-form input,
.waitlist-form input {
  flex: 1;
  min-width: 200px;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
}

.hero-form input:focus,
.waitlist-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.hero-note,
.download-note {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.waitlist-msg {
  color: var(--accent-deep);
  font-weight: 600;
  margin: 0.5rem 0 0;
}

.app-window {
  background: #1a1228;
  color: #e4dff0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.06);
  animation: riseIn 0.9s ease both;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.app-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.7rem 1rem;
  background: #120c1c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.app-title {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: #9a90b0;
  font-family: var(--mono);
}

.app-body {
  display: flex;
  min-height: 300px;
}

.app-sidebar {
  width: 128px;
  padding: 1rem 0.75rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.file {
  padding: 0.28rem 0.5rem;
  color: #9a90b0;
  border-radius: 4px;
}

.file.indent { padding-left: 1rem; }

.file.active {
  color: #c4b5fd;
  background: rgba(124, 58, 237, 0.2);
}

.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.code {
  flex: 1;
  margin: 0;
  padding: 1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.55;
  color: #b0a6c4;
}

.code .kw { color: #d8b4fe; }
.code .fn { color: #93c5fd; }
.code .str { color: #bbf7d0; }
.code .num { color: #fdba74; }
.code .cm { color: #7c7194; }

.chat-panel {
  padding: 0.9rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(124, 58, 237, 0.08);
}

.chat-label {
  margin: 0 0 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #c4b5fd;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chat-msg {
  margin: 0;
  font-size: 0.82rem;
  color: #c8c0d8;
}

.chat-msg code {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: #c4b5fd;
}

section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
}

.section-lead {
  text-align: center;
  color: var(--ink-muted);
  max-width: 38rem;
  margin: 0 auto 2.75rem;
  font-size: 1.05rem;
}

.platform {
  padding: 5rem 0;
  background: var(--surface);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.platform-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: transform 0.25s, box-shadow 0.25s;
}

.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.platform-visual {
  height: 140px;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
}

.platform-visual-idea {
  background:
    radial-gradient(circle at 30% 40%, rgba(124, 58, 237, 0.22), transparent 50%),
    var(--surface);
}

.fake-input {
  width: 86%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.85rem;
  color: var(--ink-muted);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.15);
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.platform-visual-edit {
  flex-direction: column;
  gap: 0.65rem;
}

.edit-chip {
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  font-family: var(--mono);
}

.edit-chip.soft {
  background: var(--accent-soft);
  color: var(--accent-deep);
  border: 1px dashed var(--accent);
}

.platform-visual-stack ul {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 78%;
}

.platform-visual-stack li {
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
  border-radius: 8px;
}

.platform-visual-stack li.on {
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 600;
}

.platform-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
}

.platform-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.capabilities {
  padding: 5rem 0;
  background: linear-gradient(180deg, #f0eafb 0%, var(--bg) 100%);
}

.cap-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.cap-intro h2 {
  text-align: left;
  max-width: 12ch;
}

.cap-intro p {
  color: var(--ink-muted);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
  max-width: 28rem;
}

.cap-item {
  border-bottom: 1px solid var(--line);
}

.cap-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.15rem 0;
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
}

.cap-item.open .cap-trigger {
  color: var(--ink);
}

.cap-panel {
  display: none;
  padding: 0 0 1.25rem;
}

.cap-item.open .cap-panel {
  display: block;
  animation: fadePanel 0.25s ease;
}

@keyframes fadePanel {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.cap-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cap-panel li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.4rem;
  color: var(--ink-muted);
}

.cap-panel li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.features {
  padding: 5rem 0;
  background: var(--surface);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: rgba(124, 58, 237, 0.45);
}

.feature-icon {
  font-size: 1.35rem;
  color: var(--accent-deep);
  margin-bottom: 0.85rem;
}

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.pricing {
  padding: 5rem 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.price-card {
  position: relative;
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--line);
}

.price-card:last-child {
  border-right: none;
}

.price-card.featured {
  background: linear-gradient(180deg, #f3ecff, #fff);
}

.badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.price-sub {
  margin: 0.35rem 0 1rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.price {
  margin: 0 0 1.25rem;
}

.amount {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
}

.period {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.includes {
  margin: 1.5rem 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.price-card li {
  padding: 0.45rem 0 0.45rem 1.2rem;
  position: relative;
  color: var(--ink-muted);
  font-size: 0.92rem;
  border-bottom: 1px solid var(--line);
}

.price-card li:last-child {
  border-bottom: none;
}

.price-card li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent-deep);
  font-weight: 700;
}

.download {
  padding: 5rem 0 6rem;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(124, 58, 237, 0.14), transparent),
    var(--surface);
}

.download-inner {
  text-align: center;
}

.download-emblem {
  border-radius: 12px;
  margin-bottom: 1rem;
}

.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  max-width: 440px;
  margin: 0 auto 0.75rem;
}

.site-footer {
  background: #1a1228;
  color: #d4cde3;
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .brand-name {
  color: #fff;
}

.footer-brand .company-name {
  color: #9a90b0;
}

.footer-brand p {
  margin: 1rem 0 0;
  color: #9a90b0;
  font-size: 0.95rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col h4 {
  margin: 0 0 0.35rem;
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-col a {
  color: #9a90b0;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: #c4b5fd;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.25rem;
  font-size: 0.82rem;
  color: #7a7190;
}

@media (max-width: 900px) {
  .cap-layout,
  .platform-grid,
  .feature-grid,
  .pricing-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .price-card {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .price-card:last-child {
    border-bottom: none;
  }

  .cap-intro h2 {
    text-align: center;
    max-width: none;
  }

  .cap-intro {
    text-align: center;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-banner {
    border-radius: 12px;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }
}
