/* ── Variables ───────────────────────────────────────────────── */
:root {
  --indigo:     #4f46e5;
  --indigo-dk:  #4338ca;
  --indigo-lt:  #c7d2fe;
  --indigo-bg:  #eef2ff;
  --teal:       #0891b2;
  --teal-lt:    #06b6d4;
  --navy:       #1e1b4b;
  --slate:      #475569;
  --slate-lt:   #94a3b8;
  --border:     #e2e8f0;
  --bg-alt:     #f8fafc;
  --white:      #ffffff;
  --radius:     0.625rem;
  --shadow:     0 1px 3px rgba(0,0,0,0.07), 0 4px 16px rgba(0,0,0,0.05);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.1);
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body  { font-family: 'Inter', system-ui, sans-serif; color: var(--navy); background: var(--white); line-height: 1.6; }
img   { max-width: 100%; display: block; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Typography ──────────────────────────────────────────────── */
h1 { font-size: clamp(2.2rem, 5.5vw, 3.75rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
p  { color: var(--slate); line-height: 1.75; }

/* ── Layout ──────────────────────────────────────────────────── */
.container  { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }
.section-alt    { background: var(--bg-alt); }
.section-indigo { background: linear-gradient(135deg, var(--indigo) 0%, #312e81 100%); }
.section-indigo p   { color: rgba(199,210,254,0.85); }
.section-indigo h2,
.section-indigo h3  { color: var(--white); }

/* ── Eyebrow label ───────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--indigo); margin-bottom: 0.75rem;
}
.section-indigo .eyebrow { color: var(--indigo-lt); }

/* ── Section header ──────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { color: var(--navy); }
.section-header p  { max-width: 560px; margin: 1rem auto 0; font-size: 1.05rem; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  transition: all 0.18s; border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary  { background: var(--indigo); color: var(--white); }
.btn-primary:hover { background: var(--indigo-dk); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(79,70,229,0.35); }
.btn-teal     { background: var(--teal-lt); color: var(--navy); }
.btn-teal:hover { background: var(--teal); color: var(--white); transform: translateY(-1px); }
.btn-outline  { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-outline:hover { border-color: var(--indigo); color: var(--indigo); }
.btn-outline-white  { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline-white:hover { background: var(--white); color: var(--navy); }
.btn-lg { padding: 0.9rem 2.25rem; font-size: 1rem; }

/* ── Navbar ──────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  height: 64px;
}
.nav-inner { display: flex; align-items: center; gap: 2rem; height: 64px; }
.nav-logo  { display: flex; align-items: center; gap: 0.6rem; }
.logo-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.95rem; color: var(--white);
}
.logo-text { font-weight: 700; font-size: 1.05rem; color: var(--white); }
.nav-links { display: flex; gap: 0.25rem; margin-left: auto; }
.nav-links a {
  padding: 0.4rem 0.9rem; border-radius: 6px;
  font-size: 0.9rem; font-weight: 500; color: rgba(255,255,255,0.75);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(255,255,255,0.12); }
.nav-cta { margin-left: 0.75rem; padding: 0.5rem 1.25rem; font-size: 0.9rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; margin-left: auto; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.2s; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--white);
  display: flex; align-items: center;
  padding: 8rem 0 6rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 60% 30%, rgba(79,70,229,0.09) 0%, transparent 65%),
    radial-gradient(ellipse 45% 45% at 10% 85%, rgba(6,182,212,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--indigo), var(--teal-lt), var(--indigo));
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--indigo-bg); border: 1px solid var(--indigo-lt);
  color: var(--indigo); font-size: 0.8rem; font-weight: 600;
  padding: 0.35rem 0.9rem; border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero h1 { color: var(--navy); margin-bottom: 1.25rem; }
.hero h1 span { color: var(--indigo); }
.hero-content > p { color: var(--slate); font-size: 1.1rem; margin-bottom: 2rem; max-width: 500px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-pills { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2.5rem; }
.hero-pill {
  display: flex; align-items: center; gap: 0.4rem;
  background: var(--bg-alt); border: 1px solid var(--border);
  color: var(--slate); font-size: 0.8rem; font-weight: 500;
  padding: 0.3rem 0.8rem; border-radius: 999px;
}
.hero-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-lt); }

/* ── Hero visual ─────────────────────────────────────────────── */
.hero-visual { position: relative; }
.hero-terminal {
  background: #1e2030;
  border: 1px solid #2d3147;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 56px rgba(79,70,229,0.15), 0 4px 12px rgba(0,0,0,0.1);
}
.terminal-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #272a3a;
  border-bottom: 1px solid #2d3147;
}
.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-dot.red   { background: #ef4444; }
.terminal-dot.amber { background: #f59e0b; }
.terminal-dot.green { background: #22c55e; }
.terminal-title { font-size: 0.78rem; color: rgba(255,255,255,0.35); margin-left: 0.5rem; font-family: monospace; }
.terminal-body { padding: 1.25rem 1.5rem; font-family: 'Courier New', monospace; font-size: 0.82rem; line-height: 1.85; }
.t-comment { color: #636d83; }
.t-cmd     { color: #86efac; }
.t-out     { color: #bbc4d4; }
.t-info    { color: #67e8f9; }
.t-success { color: #86efac; }
.t-cursor  { display: inline-block; width: 8px; height: 14px; background: var(--teal-lt); vertical-align: middle; animation: blink 1s steps(1) infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-float {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font-size: 0.78rem; font-weight: 500; color: var(--navy);
  display: flex; align-items: center; gap: 0.5rem;
  white-space: nowrap;
}
.hero-float.f1 { top: -1rem; right: -1rem; }
.hero-float.f2 { bottom: 2rem; left: -1.5rem; }
.hero-float .badge { background: #22c55e; color: var(--white); font-size: 0.65rem; font-weight: 700; padding: 0.15rem 0.4rem; border-radius: 4px; }

/* ── Stats bar ───────────────────────────────────────────────── */
.stats-bar { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 2.5rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat-item .number { font-size: 2rem; font-weight: 800; color: var(--indigo); line-height: 1; margin-bottom: 0.35rem; }
.stat-item .label  { font-size: 0.85rem; color: var(--slate); font-weight: 500; }

/* ── Features grid ───────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: var(--indigo-lt); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--indigo-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; margin-bottom: 1.25rem;
}
.feature-card h3 { margin-bottom: 0.6rem; color: var(--navy); }
.feature-card p  { font-size: 0.9rem; }

/* ── Open source section ─────────────────────────────────────── */
.oss-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.oss-content h2 { color: var(--white); margin-bottom: 1rem; }
.oss-content > p  { margin-bottom: 2rem; }
.oss-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.oss-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.oss-check {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; color: var(--white); flex-shrink: 0; margin-top: 2px;
}
.oss-item p { font-size: 0.92rem; color: rgba(199,210,254,0.85); }
.oss-item strong { color: var(--white); display: block; font-size: 0.95rem; margin-bottom: 0.1rem; }

.oss-code {
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px; overflow: hidden;
}
.code-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: rgba(0,0,0,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.code-header span { font-size: 0.78rem; color: rgba(255,255,255,0.45); font-family: monospace; }
.copy-btn {
  font-size: 0.72rem; font-weight: 600; color: var(--indigo-lt);
  background: rgba(199,210,254,0.1); border: 1px solid rgba(199,210,254,0.25);
  padding: 0.2rem 0.6rem; border-radius: 4px;
  cursor: pointer; transition: background 0.15s;
}
.copy-btn:hover { background: rgba(199,210,254,0.2); }
.code-body { padding: 1.5rem; font-family: 'Courier New', monospace; font-size: 0.82rem; line-height: 2; overflow-x: auto; }
.c-key { color: #93c5fd; }
.c-val { color: #c4b5fd; }

/* ── Why cards ───────────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.why-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px; padding: 1.75rem;
}
.why-card .wi { font-size: 1.75rem; margin-bottom: 1rem; }
.why-card h3 { font-size: 1rem; color: var(--white); margin-bottom: 0.5rem; }
.why-card p  { font-size: 0.88rem; }

/* ── Connectors ──────────────────────────────────────────────── */
.connectors-marquee { overflow: hidden; margin: 2rem 0; position: relative; }
.connectors-marquee::before,
.connectors-marquee::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2;
  pointer-events: none;
}
.connectors-marquee::before { left: 0; background: linear-gradient(to right, var(--bg-alt), transparent); }
.connectors-marquee::after  { right: 0; background: linear-gradient(to left, var(--bg-alt), transparent); }
.connectors-track {
  display: flex; gap: 1rem;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.connectors-track:hover { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.connector-chip {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.5rem 1rem;
  font-size: 0.85rem; font-weight: 500; color: var(--navy);
  white-space: nowrap; box-shadow: var(--shadow);
}
.connector-chip .icon { font-size: 1.1rem; }

/* ── How it works ────────────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px; left: calc(12.5% + 28px); right: calc(12.5% + 28px);
  height: 2px; background: var(--indigo-lt);
}
.step-card { text-align: center; padding: 0 1rem; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--indigo); color: var(--white);
  font-size: 1.2rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem; position: relative; z-index: 1;
}
.step-card h3 { margin-bottom: 0.5rem; color: var(--navy); }
.step-card p  { font-size: 0.88rem; }

/* ── CTA ─────────────────────────────────────────────────────── */
.cta-box {
  background: var(--indigo-bg);
  border: 1px solid var(--indigo-lt);
  border-radius: 16px; padding: 4rem 3rem;
  text-align: center; position: relative; overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute; top: -50%; right: -5%;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(79,70,229,0.06);
  pointer-events: none;
}
.cta-box h2 { color: var(--navy); margin-bottom: 1rem; }
.cta-box p  { color: var(--slate); max-width: 480px; margin: 0 auto 2rem; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-box .btn-primary { background: var(--indigo); color: var(--white); }
.cta-box .btn-outline { border-color: var(--indigo-lt); color: var(--indigo); }
.cta-box .btn-outline:hover { background: var(--indigo); color: var(--white); }

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 3.5rem 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .logo { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.footer-brand .logo-icon { width: 30px; height: 30px; border-radius: 7px; background: var(--indigo); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 0.85rem; color: var(--white); }
.footer-brand .logo-text { font-weight: 700; font-size: 1rem; color: var(--white); }
.footer-brand p { font-size: 0.88rem; color: rgba(148,163,184,0.7); max-width: 280px; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 0.88rem; color: rgba(148,163,184,0.7); padding: 0.25rem 0; transition: color 0.15s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 2rem; display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { font-size: 0.82rem; color: rgba(148,163,184,0.45); }
.footer-oss { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: rgba(148,163,184,0.45); }
.oss-badge { background: rgba(6,182,212,0.15); border: 1px solid rgba(6,182,212,0.3); color: var(--teal-lt); font-size: 0.72rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 4px; }

/* ── Contact page ────────────────────────────────────────────── */
.contact-hero { background: var(--indigo-bg); border-bottom: 1px solid var(--indigo-lt); padding: 9rem 0 5rem; text-align: center; }
.contact-hero h1 { color: var(--navy); }
.contact-hero p  { color: var(--slate); max-width: 500px; margin: 1rem auto 0; font-size: 1.05rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start; }
.contact-info h2 { margin-bottom: 1rem; color: var(--navy); }
.contact-info p  { margin-bottom: 2rem; }
.contact-info-items { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; }
.ci-icon { font-size: 1.25rem; }
.ci-text h4 { font-size: 0.9rem; font-weight: 600; color: var(--navy); margin-bottom: 0.15rem; }
.ci-text p  { font-size: 0.88rem; margin: 0; }
.contact-form { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 2.5rem; box-shadow: var(--shadow-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 0.4rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 0.7rem 1rem; border-radius: var(--radius);
  border: 1.5px solid var(--border); font-family: inherit; font-size: 0.92rem;
  color: var(--navy); background: var(--white); outline: none;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(79,70,229,0.08); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit { width: 100%; padding: 0.85rem; font-size: 1rem; }
.form-note { font-size: 0.78rem; color: var(--slate-lt); margin-top: 0.75rem; text-align: center; }

/* ── Mobile nav ──────────────────────────────────────────────── */
.mobile-nav {
  position: fixed; inset: 0; z-index: 99;
  background: var(--navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.3s;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a { font-size: 1.5rem; font-weight: 600; color: var(--white); }
.mobile-nav .btn { font-size: 1rem; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-grid   { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .stats-grid  { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .oss-grid    { grid-template-columns: 1fr; gap: 3rem; }
  .steps-grid  { grid-template-columns: 1fr 1fr; }
  .steps-grid::before { display: none; }
  .why-grid    { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row    { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .cta-box { padding: 3rem 1.5rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
}
