:root {
  --bg: #0b0d12;
  --bg-alt: #10131a;
  --surface: #151922;
  --border: #232836;
  --text: #f3f4f6;
  --text-dim: #9ca3af;
  --accent: #22d3ee;
  --accent-dim: #0e9cb3;
  --radius: 12px;
  --max-width: 1440px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.nowrap { white-space: nowrap; }

h1, h2, h3 {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.15;
  margin: 0 0 16px;
}

h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); text-align: center; }

p { color: var(--text-dim); margin: 0 0 16px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 13, 18, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 24px;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.logo span { color: var(--accent); }

.nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.nav a {
  color: var(--text-dim);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

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

.nav a.active { color: var(--text); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn:hover { opacity: 0.9; }

.btn-primary {
  background: var(--accent);
  color: #14151a;
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-small {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* Hero */
.hero {
  padding: 120px 0 100px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(34, 211, 238, 0.18), transparent);
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-sub {
  max-width: 960px;
  margin: 0 auto 36px;
  font-size: 1.3rem;
  line-height: 1.65;
}

.hero-sub:last-child { margin-bottom: 0; }

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
.section { padding: 96px 0; }

.section-alt { background: var(--bg-alt); }

/* Neighbouring sections on the same background share one gap instead of doubling it. */
.hero + .section:not(.section-alt),
.section:not(.section-alt) + .section:not(.section-alt) { padding-top: 0; }

/* A heading straight above a grid needs the same room as one with a subtitle. */
h2 + .grid { margin-top: 40px; }

.section-sub {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 56px;
}

/* Grids */
.grid { display: grid; gap: 24px; }

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

.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 40px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.card-icon {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.card h3 { font-size: 1.15rem; }

.card p { margin: 0 0 12px; }

.card p:last-child { margin: 0; }

.founder-path {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.feature h3 { font-size: 1.1rem; }

.feature p { margin: 0; }

/* About */
.about-inner {
  max-width: 1100px;
  text-align: center;
}

.about-inner h2 { margin-bottom: 24px; }

.about-inner p {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
  line-height: 1.75;
}

/* CTA */
.section-cta {
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.cta-inner h2 + .btn { margin-top: 16px; }

.cta-inner p {
  max-width: 760px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
  line-height: 1.65;
}

/* Contact form */
.contact-inner {
  max-width: 560px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
  border: none;
  cursor: pointer;
}

.direct-response {
  margin-top: 32px;
  text-align: center;
}

.direct-response a { color: var(--accent); }

.direct-response + .direct-response { margin-top: 12px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links a {
  white-space: nowrap;
  color: var(--text-dim);
  font-size: 0.9rem;
}

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

/* Responsive */
@media (max-width: 800px) {
  /* The nav drops to its own row; the logo already links home. */
  .header-inner { flex-wrap: wrap; row-gap: 10px; padding-bottom: 12px; }
  .nav { order: 3; flex-basis: 100%; justify-content: flex-start; gap: 22px; }
  .nav a[href="/"] { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 88px 0 72px; }
  .section { padding: 72px 0; }
}

/* Products */
.back-link {
  display: inline-block;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.back-link:hover { color: var(--text); }

.product-card {
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

a.product-card:hover {
  border-color: var(--product, var(--accent));
  transform: translateY(-2px);
}

.product-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.product-card-head img {
  width: 56px;
  height: 56px;
  border-radius: 13px;
}

.product-card-head h3 { margin: 0 0 4px; }

.product-platform {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.product-card p { flex: 1; }

.product-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.product-status {
  color: var(--text-dim);
  font-weight: 600;
}

.product-status::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--product, var(--accent));
  margin-right: 8px;
  vertical-align: 1px;
}

.product-more {
  color: var(--product, var(--accent));
  font-weight: 600;
}

.product-card-cta {
  justify-content: center;
  align-items: flex-start;
  border-style: dashed;
  background: transparent;
}

.product-card-cta p { flex: none; margin-bottom: 20px; }

/* Product pages. Each page sets --accent, --accent-soft and --glow on .product. */
.product .btn-primary { color: #fff; }

.product .hero {
  padding: 96px 0 88px;
  text-align: left;
  background: radial-gradient(ellipse 55% 60% at 70% 20%, var(--glow), transparent);
}

.product .hero h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); }

/* Capped so the copy and the mock stay together on wide screens. */
.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 80px;
  align-items: center;
  max-width: 1160px;
}

.app-id {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.app-id img {
  width: 56px;
  height: 56px;
  border-radius: 13px;
}

.app-id strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
}

.app-id span { color: var(--text-dim); font-size: 0.9rem; }

.product .hero-sub {
  margin: 0 0 36px;
  max-width: 560px;
}

.product .hero-actions { justify-content: flex-start; }

.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 600;
}

.soon svg { width: 18px; height: 18px; fill: currentColor; }

.steps { counter-reset: step; }

.step .card-icon::before {
  counter-increment: step;
  content: "0" counter(step);
}

/* Copy on one side, a visual on the other. */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1160px;
}

.split h2 { text-align: left; }

.split p { font-size: 1.05rem; line-height: 1.7; }

.chips {
  display: flex;
  justify-content: center;
  gap: 12px 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.chips span {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.faq { max-width: 820px; margin: 0 auto; }

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-weight: 600;
  font-size: 1.05rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.15s ease;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p { margin: 14px 0 0; line-height: 1.7; }

@media (max-width: 900px) {
  .product-hero, .split { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .product .hero { text-align: center; }
  .app-id, .product .hero-actions { justify-content: center; }
  .product .hero-sub { margin: 0 auto 36px; }
  .split h2 { text-align: center; }
}
