:root {
  color-scheme: light;
  font-family: "Space Grotesk", sans-serif;
  --bg: #f5efe5;
  --bg-strong: #fff9f0;
  --ink: #142033;
  --ink-soft: #4f5e74;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: #ffffff;
  --panel-dark: #132138;
  --line: rgba(20, 32, 51, 0.1);
  --sky: #23b7e5;
  --sky-deep: #0a88c3;
  --coral: #ff7d55;
  --sand: #f1dfc3;
  --teal: #0f8a78;
  --shadow: 0 24px 60px rgba(20, 32, 51, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 125, 85, 0.16), transparent 28rem),
    radial-gradient(circle at top right, rgba(35, 183, 229, 0.16), transparent 32rem),
    linear-gradient(180deg, #f7f2ea 0%, #f2ece2 46%, #f9f5ef 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(20, 32, 51, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 32, 51, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 90%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.container {
  width: min(1180px, calc(100vw - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(247, 242, 234, 0.82);
  border-bottom: 1px solid rgba(20, 32, 51, 0.06);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: block;
  object-fit: contain;
  padding: 4px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 24px rgba(20, 32, 51, 0.18);
}

.brand-copy {
  display: grid;
  gap: 0.15rem;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy small {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.95rem 1.45rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--ink), #21395e);
  color: white;
  box-shadow: 0 20px 30px rgba(20, 32, 51, 0.16);
}

.btn-primary:hover {
  box-shadow: 0 22px 34px rgba(20, 32, 51, 0.2);
}

.btn-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.48);
  border-color: rgba(20, 32, 51, 0.12);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.72);
}

.hero {
  padding: 4.8rem 0 2.8rem;
}

.hero-grid {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 1rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky-deep);
}

.hero h1,
.section-heading h2,
.workflow-copy h2,
.showcase-copy h2,
.cta-card h2 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.serif {
  font-family: "Newsreader", serif;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lead,
.section-heading p,
.workflow-copy p,
.showcase-copy p,
.cta-card p,
.spotlight-copy p {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

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

.hero-metrics article {
  padding: 1rem 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(20, 32, 51, 0.09);
  background: rgba(255, 255, 255, 0.45);
}

.hero-metrics strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1rem;
}

.hero-metrics span {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.hero-stage {
  position: relative;
}

.hero-shell,
.spotlight-shell,
.cta-card,
.showcase-panel,
.platform-card,
.feature-card,
.workflow-steps article {
  box-shadow: var(--shadow);
}

.hero-shell {
  padding: 1rem;
  border: 1px solid rgba(20, 32, 51, 0.08);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.64)),
    rgba(255, 255, 255, 0.76);
}

.shell-bar {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.shell-bar span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(20, 32, 51, 0.14);
}

.hero-stack {
  display: grid;
  gap: 1rem;
}

.stack-card {
  border-radius: 24px;
  padding: 1.35rem;
  border: 1px solid rgba(20, 32, 51, 0.08);
}

.stack-card-primary {
  background: linear-gradient(145deg, #fffaf4 0%, #f6f2ff 100%);
}

.stack-card-dark {
  background: linear-gradient(145deg, #132138, #1f3657);
  color: white;
}

.stack-card-soft {
  background: linear-gradient(145deg, rgba(35, 183, 229, 0.12), rgba(255, 125, 85, 0.12));
}

.stack-header,
.preview-header,
.ops-head,
.showcase-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.stack-header p,
.stack-kicker,
.preview-header span,
.ops-head span,
.showcase-top span {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.stack-card-dark .stack-kicker,
.stack-card-dark .stack-note {
  color: rgba(255, 255, 255, 0.78);
}

.stack-header span,
.preview-chip {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(20, 32, 51, 0.08);
  color: var(--ink);
  font-size: 0.74rem;
}

.stack-card h3 {
  margin: 0.85rem 0 1.15rem;
  font-size: 1.8rem;
  line-height: 1.05;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.mini-grid div {
  padding: 0.9rem;
  border-radius: 16px;
  background: rgba(20, 32, 51, 0.05);
}

.mini-grid strong,
.preview-hero strong,
.panel-preview strong,
.platform-card h3,
.feature-card h3,
.workflow-steps h3,
.showcase-panel h3,
.demo-card h3 {
  display: block;
  margin-bottom: 0.35rem;
}

.mini-grid span,
.stack-note,
.panel-preview p,
.preview-cards span,
.platform-card p,
.feature-card p,
.workflow-steps p,
.showcase-panel p,
.product-lane span,
.admin-card small,
.route-list span,
.demo-card p {
  color: var(--ink-soft);
  line-height: 1.45;
}

.stack-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
}

.stack-list {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.84);
}

.order-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-size: 0.78rem;
  border: 1px solid rgba(20, 32, 51, 0.08);
}

.market-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-top: 1.9rem;
}

.market-strip span {
  padding: 0.72rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(20, 32, 51, 0.08);
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.section {
  padding: 5rem 0;
}

.section-contrast {
  background:
    linear-gradient(180deg, rgba(20, 32, 51, 0.98), rgba(18, 32, 53, 0.98)),
    var(--panel-dark);
  color: white;
}

.section-soft {
  background:
    radial-gradient(circle at top right, rgba(35, 183, 229, 0.12), transparent 24rem),
    rgba(255, 255, 255, 0.38);
  border-top: 1px solid rgba(20, 32, 51, 0.06);
  border-bottom: 1px solid rgba(20, 32, 51, 0.06);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.6rem;
}

.section-heading h2,
.workflow-copy h2,
.showcase-copy h2,
.cta-card h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  margin-bottom: 1rem;
}

.platform-grid,
.feature-grid,
.workflow-grid,
.showcase-grid,
.demo-grid {
  display: grid;
  gap: 1.25rem;
}

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

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

.platform-card,
.feature-card,
.workflow-steps article,
.showcase-panel,
.cta-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(20, 32, 51, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.platform-card {
  padding: 1.6rem;
  min-height: 100%;
}

.platform-index,
.demo-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
  background: rgba(35, 183, 229, 0.12);
  color: var(--sky-deep);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.25rem;
}

.spotlight-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 1.5rem;
  align-items: start;
}

.section-contrast .eyebrow,
.section-contrast .spotlight-copy p,
.section-contrast .panel-label,
.section-contrast .panel-preview p,
.section-contrast .panel-list,
.section-contrast .preview-header span,
.section-contrast .ops-head span,
.section-contrast .payment-row span,
.section-contrast .retention-stat small,
.section-contrast .retention-tags span {
  color: rgba(255, 255, 255, 0.72);
}

.spotlight-nav {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.spotlight-tab {
  padding: 0.9rem 1rem;
  text-align: left;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: white;
  cursor: pointer;
}

.spotlight-tab.is-active {
  background: linear-gradient(135deg, rgba(255, 125, 85, 0.18), rgba(35, 183, 229, 0.18));
  border-color: rgba(255, 255, 255, 0.24);
}

.spotlight-shell {
  position: relative;
  min-height: 620px;
  padding: 1rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.spotlight-panel {
  display: none;
  gap: 1rem;
  animation: panel-rise 0.28s ease;
}

.spotlight-panel.is-active {
  display: grid;
}

.panel-label {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.spotlight-panel h3 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.03;
}

.panel-list {
  margin: 0;
  padding-left: 1.15rem;
  line-height: 1.7;
}

.panel-preview {
  margin-top: 0.4rem;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.preview-storefront .preview-hero {
  margin: 0.9rem 0;
  padding: 1rem;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 125, 85, 0.18), rgba(35, 183, 229, 0.18));
}

.preview-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.preview-cards span,
.retention-tags span {
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.payment-row,
.ops-line,
.retention-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.payment-row:last-of-type,
.ops-line:last-of-type,
.retention-stat:last-of-type {
  border-bottom: none;
}

.payment-row strong,
.ops-line strong,
.retention-stat strong {
  font-size: 0.98rem;
}

.payment-meter {
  height: 12px;
  margin-top: 1rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.payment-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--sky));
}

.retention-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.preview-ai .ai-chat {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.ai-bubble {
  max-width: 88%;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  line-height: 1.55;
}

.ai-bubble-user {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
}

.ai-bubble-assistant {
  background: linear-gradient(145deg, rgba(255, 125, 85, 0.18), rgba(35, 183, 229, 0.22));
  color: white;
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card {
  padding: 1.4rem;
}

.feature-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.workflow-grid {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.workflow-steps {
  display: grid;
  gap: 1rem;
}

.workflow-steps article {
  padding: 1.45rem;
}

.workflow-steps span {
  display: inline-flex;
  margin-bottom: 0.9rem;
  color: var(--coral);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
}

.showcase-grid {
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
}

.showcase-panels {
  display: grid;
  gap: 1rem;
}

.showcase-panel {
  padding: 1.2rem;
}

.showcase-storefront {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 244, 230, 0.78));
}

.showcase-admin {
  background: linear-gradient(145deg, #15253d, #22375a);
  color: white;
}

.showcase-storefront p,
.showcase-storefront .showcase-top span,
.showcase-storefront .product-lane span {
  color: var(--ink-soft);
}

.showcase-admin p,
.showcase-admin .showcase-top span,
.showcase-admin .admin-card small,
.showcase-admin .route-list span {
  color: rgba(255, 255, 255, 0.75);
}

.product-lane {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.product-lane div,
.admin-card {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(20, 32, 51, 0.08);
  background: rgba(255, 255, 255, 0.55);
}

.showcase-admin .admin-card {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.admin-card strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.6rem;
}

.admin-card-wide {
  grid-column: span 2;
}

.route-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.6rem;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 247, 237, 0.72));
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.site-footer {
  padding: 2rem 0 3rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(20, 32, 51, 0.08);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  text-decoration: none;
}

@keyframes panel-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .spotlight-layout,
  .workflow-grid,
  .showcase-grid,
  .demo-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 780px) {
  .site-header {
    position: static;
  }

  .header-inner,
  .cta-card,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-metrics,
  .stack-row,
  .mini-grid,
  .product-lane,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .spotlight-shell {
    min-height: 0;
  }

  .admin-card-wide {
    grid-column: span 1;
  }

  .cta-actions,
  .hero-actions,
  .demo-actions {
    width: 100%;
  }

  .cta-actions .btn,
  .hero-actions .btn,
  .demo-actions .btn,
  .header-inner > .btn {
    width: 100%;
  }

  .ai-bubble {
    max-width: 100%;
  }
}
