:root {
  --bg: #0b0f1e;
  --bg-soft: #121833;
  --surface: #161d3f;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8ecf8;
  --muted: #9aa3c7;
  --brand: #6366f1;
  --brand-2: #14b8a6;
  --brand-glow: rgba(99, 102, 241, 0.35);
  --radius: 14px;
  --max: 1180px;
  --shadow: 0 30px 80px -30px rgba(20, 184, 166, 0.25), 0 10px 40px -10px rgba(99, 102, 241, 0.25);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(99,102,241,0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(20,184,166,0.12), transparent 60%),
    var(--bg);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 15, 30, 0.7);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; max-width: var(--max); margin: 0 auto;
}
.brand {
  font-weight: 800; font-size: 20px; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 10px;
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center;
  color: white; font-weight: 900; font-size: 14px;
  box-shadow: 0 6px 20px -4px var(--brand-glow);
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 14px; color: var(--muted); transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white !important; padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: 14px;
  box-shadow: 0 8px 24px -8px var(--brand-glow);
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -8px var(--brand-glow); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
    position: absolute; top: 100%; right: 0; left: 0;
    background: rgba(11,15,30,0.96); padding: 20px 24px;
    border-bottom: 1px solid var(--border);
  }
}

/* ---------- Hero ---------- */
.hero { padding: 120px 0 80px; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--brand-2); font-weight: 600;
  background: rgba(20, 184, 166, 0.08); padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(20, 184, 166, 0.2);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 999px; background: var(--brand-2);
  box-shadow: 0 0 12px var(--brand-2);
}

h1.hero-title {
  font-size: clamp(36px, 5.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 20px;
}
.hero-title .grad {
  background: linear-gradient(120deg, #a5b4fc 0%, #5eead4 60%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 18px; color: var(--muted); max-width: 560px;
  margin-bottom: 32px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform .15s, box-shadow .2s, background .2s;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  box-shadow: 0 10px 30px -10px var(--brand-glow);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.04); }

.trust-row {
  margin-top: 40px;
  display: flex; gap: 28px; flex-wrap: wrap; align-items: center;
  font-size: 13px; color: var(--muted);
}
.trust-row strong { color: var(--text); font-weight: 600; }
.trust-dot { width: 4px; height: 4px; border-radius: 999px; background: var(--muted); }

/* ---------- Hero card ---------- */
.hero-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-card::before {
  content: ''; position: absolute; inset: -1px;
  background: linear-gradient(135deg, rgba(99,102,241,0.4), transparent 40%, rgba(20,184,166,0.4));
  border-radius: 20px; z-index: -1; filter: blur(20px); opacity: 0.5;
}
.metric-title {
  font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.metric-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.metric {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}
.metric-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.metric-value {
  font-size: 28px; font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(120deg, #a5b4fc, #5eead4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.metric-delta { font-size: 12px; color: var(--brand-2); margin-top: 4px; font-weight: 600; }
.metric-delta.down { color: #f87171; }

.chart {
  height: 140px; position: relative;
  background: linear-gradient(180deg, rgba(99,102,241,0.1), transparent);
  border-radius: 10px;
}
.chart svg { width: 100%; height: 100%; }

/* ---------- Section heading ---------- */
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.02em; font-weight: 800;
  margin-bottom: 12px;
}
.section-head p { color: var(--muted); max-width: 620px; margin: 0 auto; }

/* ---------- Services ---------- */
.services {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 900px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s, border-color .2s, background .2s;
  position: relative; overflow: hidden;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
}
.service-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(20,184,166,0.2));
  display: grid; place-items: center; margin-bottom: 18px;
  border: 1px solid var(--border);
}
.service-icon svg { width: 22px; height: 22px; stroke: #a5b4fc; }
.service-card h3 { font-size: 18px; margin-bottom: 8px; letter-spacing: -0.01em; }
.service-card p { color: var(--muted); font-size: 14px; }
.service-card .stat {
  margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--border);
  font-size: 13px; color: var(--brand-2); font-weight: 600;
}

/* ---------- Products strip ---------- */
.products-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
@media (max-width: 900px) { .products-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .products-grid { grid-template-columns: 1fr; } }

.product-card {
  background: linear-gradient(180deg, var(--surface), rgba(22,29,63,0.6));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px; transition: transform .2s;
}
.product-card:hover { transform: translateY(-4px); }
.product-emoji { font-size: 28px; margin-bottom: 14px; }
.product-card h4 {
  font-size: 17px; margin-bottom: 4px; letter-spacing: -0.01em;
}
.product-status {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px; margin-bottom: 12px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.status-live { background: rgba(20,184,166,0.15); color: #5eead4; }
.status-dev { background: rgba(99,102,241,0.15); color: #a5b4fc; }
.status-soon { background: rgba(250,204,21,0.12); color: #facc15; }
.product-card p { font-size: 13px; color: var(--muted); }

/* ---------- Process ---------- */
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
@media (max-width: 900px) { .process-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .process-grid { grid-template-columns: 1fr; } }
.step {
  position: relative; padding: 24px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-num {
  position: absolute; top: -14px; left: 20px;
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; font-weight: 800; color: white;
  font-size: 13px;
}
.step h4 { margin: 10px 0 6px; font-size: 16px; }
.step p { color: var(--muted); font-size: 14px; }

/* ---------- CTA block ---------- */
.cta-block {
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(20,184,166,0.12));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 56px 40px;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-block h2 {
  font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.cta-block p { color: var(--muted); max-width: 540px; margin: 0 auto 24px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
}
.foot {
  display: flex; justify-content: space-between; gap: 24px;
  flex-wrap: wrap; align-items: center; color: var(--muted);
  font-size: 13px;
}
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s, transform .7s; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Contact tiles (static page, no form) ---------- */
.contact-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 900px) { .contact-cards { grid-template-columns: 1fr; } }

.contact-tile {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s, border-color .2s, background .2s;
  color: inherit;
}
.contact-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(99,102,241,0.45);
  background: rgba(255,255,255,0.03);
}
.contact-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(20,184,166,0.18));
  border: 1px solid var(--border);
  display: grid; place-items: center; margin-bottom: 18px;
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-tile h3 { font-size: 18px; margin-bottom: 6px; letter-spacing: -0.01em; }
.contact-tile p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.contact-cta { font-size: 13px; font-weight: 600; color: var(--brand-2); }

/* ---------- Contact page (legacy form styles, kept for now) ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 13px; color: var(--muted);
  margin-bottom: 6px; font-weight: 500;
}
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text); font: inherit; font-size: 15px;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand);
}
.field textarea { min-height: 130px; resize: vertical; }

.info-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.info-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(20,184,166,0.2));
  display: grid; place-items: center; flex-shrink: 0;
}
.info-icon svg { width: 18px; height: 18px; stroke: #a5b4fc; }
.info-card h4 { font-size: 15px; margin-bottom: 2px; }
.info-card p { font-size: 14px; color: var(--muted); }
.info-card a { color: var(--brand-2); }

/* ---------- Deliverables list (hero card) ---------- */
.deliverables { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.deliverables li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; color: var(--text);
  padding: 8px 0; border-bottom: 1px dashed var(--border);
}
.deliverables li:last-child { border-bottom: 0; }
.del-num {
  font-size: 11px; font-weight: 800;
  color: var(--brand-2);
  letter-spacing: 0.08em;
  padding-top: 2px;
  flex-shrink: 0;
}

/* ---------- Trust / proof strip ---------- */
.trust-section { padding: 56px 0; }
.trust-eyebrow {
  text-align: center;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.proof-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
@media (max-width: 820px) { .proof-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .proof-row { grid-template-columns: repeat(2, 1fr); } }

.proof-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  color: inherit;
  transition: transform .2s, border-color .2s;
}
a.proof-item:hover {
  transform: translateY(-3px);
  border-color: rgba(99,102,241,0.4);
}
.proof-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px -8px rgba(0,0,0,0.4);
}
.proof-icon img { width: 100%; height: 100%; object-fit: cover; }
.proof-letter {
  display: grid; place-items: center;
  font-weight: 800; font-size: 22px; color: #fff;
}
.proof-name { font-weight: 600; font-size: 14px; }
.proof-tag {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
}
.tag-live { background: rgba(20,184,166,0.15); color: #5eead4; }
.tag-dev { background: rgba(99,102,241,0.15); color: #a5b4fc; }
.tag-soon { background: rgba(250,204,21,0.12); color: #facc15; }

/* ---------- Chips (hero card) ---------- */
.chip-group { margin-bottom: 14px; }
.chip-group:last-of-type { margin-bottom: 0; }
.chip-label {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 8px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 500;
}
.store-row { display: flex; flex-wrap: wrap; gap: 8px; }
.store {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.25);
  color: #c7d2fe;
  padding: 8px 14px; border-radius: 10px;
  font-size: 13px; font-weight: 500;
}
.store-ico {
  width: 16px; height: 16px;
  color: #c7d2fe;
  flex-shrink: 0;
}

/* ---------- App list ---------- */
.app-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
@media (max-width: 820px) { .app-list { grid-template-columns: 1fr; } }

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s, border-color .2s;
}
.app-card:hover { transform: translateY(-3px); border-color: rgba(99,102,241,0.35); }

.app-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.app-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center;
  font-size: 24px; overflow: hidden;
  box-shadow: 0 10px 28px -10px rgba(0,0,0,0.55);
}
.app-icon img {
  width: 100%; height: 100%; object-fit: cover;
}
.app-card h3 { font-size: 19px; letter-spacing: -0.01em; margin-bottom: 4px; }

.app-pitch { color: var(--text); margin-bottom: 16px; font-size: 15px; }

.app-feats {
  list-style: none; padding: 0; margin: 0 0 18px;
  display: grid; gap: 8px;
}
.app-feats li {
  position: relative; padding-left: 22px;
  font-size: 14px; color: var(--muted);
}
.app-feats li::before {
  content: '';
  position: absolute; left: 0; top: 9px;
  width: 12px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.app-stack {
  font-size: 12px; color: var(--brand-2); font-weight: 600;
  padding-top: 14px; border-top: 1px dashed var(--border);
  letter-spacing: 0.01em;
}

.app-links {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 14px;
}
.app-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.3);
  color: #c7d2fe;
  padding: 8px 14px; border-radius: 10px;
  font-size: 13px; font-weight: 600;
  transition: background .15s, border-color .15s, transform .15s;
}
.app-link:hover {
  background: rgba(99,102,241,0.2);
  border-color: rgba(99,102,241,0.55);
  transform: translateY(-1px);
}
.app-link svg { width: 15px; height: 15px; }

/* ---------- Capability grid ---------- */
.cap-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 900px) { .cap-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cap-grid { grid-template-columns: 1fr; } }

.cap-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .2s, background .2s;
}
.cap-card:hover { border-color: rgba(20,184,166,0.35); background: rgba(255,255,255,0.03); }
.cap-card h4 { font-size: 16px; margin-bottom: 8px; letter-spacing: -0.01em; }
.cap-card p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.cap-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  background: rgba(20,184,166,0.1);
  color: #5eead4;
  padding: 4px 10px; border-radius: 999px;
  letter-spacing: 0.04em; text-transform: uppercase;
}

/* ---------- Stack columns ---------- */
.stack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1024px) { .stack-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .stack-grid { grid-template-columns: 1fr; } }
.stack-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.stack-col h4 {
  font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--brand-2); margin-bottom: 14px;
}
.stack-col ul { list-style: none; padding: 0; margin: 0; }
.stack-col li {
  padding: 8px 0; font-size: 14px; color: var(--text);
  border-bottom: 1px dashed var(--border);
}
.stack-col li:last-child { border-bottom: 0; }

/* Page hero (small) */
.page-hero { padding: 80px 0 40px; text-align: center; }
.page-hero h1 {
  font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -0.02em; font-weight: 800;
  margin-bottom: 14px;
}
.page-hero p { color: var(--muted); max-width: 620px; margin: 0 auto; }
