/* CloudBox — design tokens from the iOS 26 design system */
:root {
  /* Colors — dark mode (default) */
  --bg: #0A0E17;
  --surface-1: #121826;
  --surface-2: #1A2130;
  --border: #2A3348;
  --text: #F5F7FA;
  --text-secondary: #8A94A6;
  --text-muted: #647488;

  --primary: #7B5FFF;
  --primary-light: #9B85FF;
  --cyan: #4CD9FF;
  --gradient: linear-gradient(135deg, #7B5FFF 0%, #4CD9FF 100%);
  --gradient-soft: linear-gradient(135deg, rgba(123,95,255,.18), rgba(76,217,255,.14));

  /* Semantic */
  --success: #34D399;
  --warning: #FBBF24;
  --error: #F87171;
  --info: #60A5FA;

  /* Radius (from 04. RADIUS) */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-full: 999px;

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 32px); }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

img { max-width: 100%; height: auto; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,14,23,.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 66px; }
.logo { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: var(--gradient);
  display: grid; place-items: center;
  box-shadow: 0 4px 16px rgba(123,95,255,.35);
}
.logo-mark svg { width: 20px; height: 20px; }
.logo-text { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.logo-text b { font-weight: 700; }
.logo-text span {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text-secondary); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--r-md);
  font-size: 15px; font-weight: 600; font-family: var(--font);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 6px 22px rgba(123,95,255,.36);
}
.btn-primary:hover { box-shadow: 0 10px 30px rgba(123,95,255,.46); }
.btn-secondary {
  background: var(--surface-2); color: var(--text); border-color: var(--border);
}
.btn-secondary:hover { background: #212a3c; }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: var(--r-sm); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(64px, 11vw, 116px) 0 clamp(56px, 9vw, 92px); overflow: hidden; }
.hero-glow {
  position: absolute; top: -280px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(123,95,255,.30), rgba(76,217,255,.10) 45%, transparent 70%);
  filter: blur(50px);
}
.hero-inner { position: relative; text-align: center; max-width: 780px; margin: 0 auto; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: var(--r-full);
  background: rgba(123,95,255,.12); border: 1px solid rgba(123,95,255,.30);
  color: var(--primary-light); font-size: 13px; font-weight: 600;
  margin-bottom: 26px;
}
.badge-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.hero h1 {
  font-size: clamp(38px, 7vw, 66px); line-height: 1.06; margin: 0 0 20px;
  letter-spacing: -.035em; font-weight: 700; text-wrap: balance;
}
.hero h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  font-size: clamp(16.5px, 2.2vw, 19.5px); color: var(--text-secondary);
  margin: 0 auto 34px; max-width: 620px; line-height: 1.62;
}
.hero-actions { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: 13.5px; color: var(--text-muted); }

/* cloud logos strip */
.clouds-strip {
  margin-top: 52px; display: flex; align-items: center; justify-content: center;
  gap: clamp(20px, 4vw, 42px); flex-wrap: wrap;
}
.clouds-strip .label {
  width: 100%; text-align: center; font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px;
}
.cloud-chip {
  display: flex; align-items: center; gap: 9px;
  color: var(--text-secondary); font-size: 14.5px; font-weight: 500;
}
.cloud-chip svg { width: 22px; height: 22px; flex: none; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 9vw, 96px) 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto clamp(38px, 6vw, 58px); }
.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 0 0 12px;
}
.section-head h2 {
  font-size: clamp(27px, 4.4vw, 40px); margin: 0 0 14px;
  letter-spacing: -.028em; line-height: 1.15; text-wrap: balance; font-weight: 700;
}
.section-head p { color: var(--text-secondary); margin: 0; font-size: 16.5px; }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 560px)  { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
/* 6-col track so 5 cards split evenly as 3 + 2 instead of leaving one orphan */
@media (min-width: 900px) {
  .feature-grid { grid-template-columns: repeat(6, 1fr); }
  .feature-card { grid-column: span 2; }
  .feature-card:nth-child(4), .feature-card:nth-child(5) { grid-column: span 3; }
}
@media (min-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(5, 1fr); }
  .feature-card, .feature-card:nth-child(4), .feature-card:nth-child(5) { grid-column: span 1; }
}
.feature-card {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 26px 22px;
  transition: border-color .2s ease, transform .2s ease;
}
.feature-card:hover { border-color: rgba(123,95,255,.45); transform: translateY(-3px); }
.feature-icon {
  width: 46px; height: 46px; border-radius: var(--r-sm);
  background: var(--gradient-soft); border: 1px solid rgba(123,95,255,.26);
  display: grid; place-items: center; margin-bottom: 17px;
}
.feature-icon svg { width: 23px; height: 23px; stroke: var(--primary-light); }
.feature-card h3 { font-size: 17px; margin: 0 0 8px; font-weight: 600; letter-spacing: -.01em; }
.feature-card p { color: var(--text-secondary); font-size: 14.5px; margin: 0; line-height: 1.6; }

/* ---------- Highlight rows ---------- */
.highlight { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 68px); align-items: center; }
.highlight + .highlight { margin-top: clamp(56px, 9vw, 92px); }
.highlight.reverse .h-visual { order: -1; }
@media (max-width: 860px) {
  .highlight { grid-template-columns: 1fr; gap: 30px; }
  .highlight.reverse .h-visual { order: 0; }
}
.h-copy h3 { font-size: clamp(23px, 3.4vw, 31px); margin: 0 0 15px; letter-spacing: -.025em; line-height: 1.2; font-weight: 700; }
.h-copy p { color: var(--text-secondary); font-size: 16px; margin: 0 0 18px; }
.h-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.h-list li { display: flex; gap: 11px; align-items: flex-start; color: var(--text-secondary); font-size: 15px; }
.h-list svg { width: 19px; height: 19px; flex: none; margin-top: 2px; stroke: var(--cyan); }

.h-visual {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 22px; position: relative; overflow: hidden;
}
.h-visual::before {
  content: ""; position: absolute; inset: 0;
  background: var(--gradient-soft); opacity: .5; pointer-events: none;
}

/* mock UI bits */
.mock { position: relative; display: grid; gap: 11px; }
.mock-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 13px 15px;
}
.mock-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.mock-ic svg { width: 19px; height: 19px; }
.mock-txt { flex: 1; min-width: 0; }
.mock-txt .t { font-size: 14px; font-weight: 600; }
.mock-txt .s { font-size: 12.5px; color: var(--text-muted); }
.mock-pct { font-size: 13px; font-weight: 600; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.mock-bar { height: 4px; border-radius: 3px; background: var(--border); overflow: hidden; margin-top: 6px; }
.mock-bar i { display: block; height: 100%; border-radius: 3px; background: var(--gradient); }

.stat-card {
  position: relative; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 20px; text-align: center;
}
.stat-card .big { font-size: 34px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-card .cap { font-size: 13px; color: var(--text-muted); }

/* ---------- Privacy band ---------- */
.privacy-band {
  background: var(--surface-1); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.privacy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.privacy-item { display: flex; gap: 14px; align-items: flex-start; }
.privacy-item svg { width: 22px; height: 22px; flex: none; stroke: var(--success); margin-top: 3px; }
.privacy-item h4 { margin: 0 0 5px; font-size: 15.5px; font-weight: 600; }
.privacy-item p { margin: 0; font-size: 14px; color: var(--text-secondary); }

/* ---------- Waitlist CTA ---------- */
.cta-box {
  position: relative; overflow: hidden;
  background: var(--surface-1); border: 1px solid rgba(123,95,255,.32);
  border-radius: var(--r-xl); padding: clamp(34px, 6vw, 60px) clamp(24px, 5vw, 52px);
  text-align: center;
}
.cta-box::before {
  content: ""; position: absolute; top: -160px; left: 50%; transform: translateX(-50%);
  width: 620px; height: 420px; pointer-events: none;
  background: radial-gradient(circle, rgba(123,95,255,.24), transparent 68%); filter: blur(42px);
}
.cta-box > * { position: relative; }
.cta-box h2 { font-size: clamp(25px, 4vw, 36px); margin: 0 0 13px; letter-spacing: -.028em; font-weight: 700; text-wrap: balance; }
.cta-box p { color: var(--text-secondary); margin: 0 auto 28px; max-width: 480px; font-size: 16px; }
.waitlist-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; flex-wrap: wrap; }
.waitlist-form input {
  flex: 1; min-width: 210px; padding: 13px 17px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md);
  color: var(--text); font-size: 15px; font-family: var(--font);
}
.waitlist-form input::placeholder { color: var(--text-muted); }
.waitlist-form input:focus { outline: none; border-color: var(--primary); }
.form-note { margin-top: 14px; font-size: 13px; color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 17px 20px;
}
.faq details[open] { border-color: rgba(123,95,255,.4); }
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--primary-light); font-size: 21px; font-weight: 400; line-height: 1; flex: none;
}
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--text-secondary); font-size: 14.8px; margin: 13px 0 0; }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--border); padding: 52px 0 34px; background: var(--surface-1); }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 34px; margin-bottom: 36px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.footer-brand p { color: var(--text-secondary); font-size: 14px; margin: 13px 0 0; max-width: 270px; }
.footer-col h5 {
  font-size: 12.5px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--text-muted); margin: 0 0 14px; font-weight: 700;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--text-secondary); font-size: 14.2px; }
.footer-col a:hover { color: var(--text); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--text-muted); font-size: 13.2px;
}

/* ---------- Legal pages ---------- */
.legal-hero { padding: clamp(46px, 7vw, 74px) 0 clamp(26px, 4vw, 38px); border-bottom: 1px solid var(--border); }
.legal-hero h1 { font-size: clamp(30px, 5vw, 44px); margin: 0 0 12px; letter-spacing: -.03em; font-weight: 700; }
.legal-hero .updated { color: var(--text-muted); font-size: 14px; margin: 0; }
.legal-body { padding: clamp(38px, 6vw, 60px) 0 clamp(56px, 9vw, 88px); }
.legal-wrap { max-width: 760px; margin: 0 auto; }
.legal-wrap h2 {
  font-size: 22px; margin: 42px 0 14px; letter-spacing: -.02em; font-weight: 700;
  scroll-margin-top: 84px;
}
.legal-wrap h2:first-child { margin-top: 0; }
.legal-wrap h3 { font-size: 17px; margin: 26px 0 10px; font-weight: 600; }
.legal-wrap p, .legal-wrap li { color: var(--text-secondary); font-size: 15.5px; line-height: 1.75; }
.legal-wrap ul, .legal-wrap ol { padding-left: 22px; display: grid; gap: 9px; }
.legal-wrap strong { color: var(--text); font-weight: 600; }
.legal-wrap .callout {
  background: var(--surface-1); border: 1px solid var(--border); border-left: 3px solid var(--primary);
  border-radius: var(--r-sm); padding: 17px 20px; margin: 22px 0;
}
.legal-wrap .callout p { margin: 0; color: var(--text); font-size: 15px; }
.legal-wrap table {
  width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14.5px;
  display: block; overflow-x: auto; white-space: nowrap;
}
@media (min-width: 640px) { .legal-wrap table { display: table; white-space: normal; } }
.legal-wrap th, .legal-wrap td {
  text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top;
}
.legal-wrap th { color: var(--text); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.legal-wrap td { color: var(--text-secondary); }
.toc-box {
  background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 20px 24px; margin-bottom: 34px;
}
.toc-box h4 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .09em; color: var(--text-muted); }
.toc-box ol { margin: 0; padding-left: 20px; display: grid; gap: 7px; }
.toc-box a { font-size: 14.5px; color: var(--text-secondary); }
.toc-box a:hover { color: var(--cyan); }
