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

:root {
  --bg:        #080c10;
  --bg-1:      #0d1117;
  --bg-2:      #161b22;
  --bg-3:      #1e242d;
  --border:    #2a3140;
  --border-2:  #3a4455;
  --cyan:      #00b8d9;
  --cyan-dim:  rgba(0, 184, 217, 0.12);
  --blue:      #4f8ef7;
  --purple:    #a78bfa;
  --green:     #22c55e;
  --orange:    #fb923c;
  --teal:      #2dd4bf;
  --text:      #e6edf3;
  --text-2:    #8b949e;
  --text-3:    #6e7681;
  --radius:    10px;
  --radius-lg: 16px;
  --max-w:     1140px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
}

/* ── Layout helpers ─────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container.narrow { max-width: 780px; }
.center { text-align: center; }

/* ── Typography ─────────────────────────────── */
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; line-height: 1.25; margin-bottom: 0.75rem; }
h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; }

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}
.section-tag.center { display: block; text-align: center; }
.section-sub { color: var(--text-2); margin-bottom: 2.5rem; }

/* ── Navbar ─────────────────────────────────── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 12, 16, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--cyan);
  color: var(--bg) !important;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  transition: opacity 0.15s !important;
}
.nav-cta:hover { opacity: 0.85; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ── Buttons ────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--cyan);
  color: var(--bg);
  font-weight: 700;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.95rem;
  transition: opacity 0.15s, transform 0.15s;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--text-2);
  font-weight: 500;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid var(--border-2);
  font-size: 0.95rem;
  transition: border-color 0.15s, color 0.15s;
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--text); }

.link-arrow {
  color: var(--cyan);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity 0.15s;
}
.link-arrow:hover { opacity: 0.75; }

/* ── Hero ────────────────────────────────────── */
.hero {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 5rem 1.5rem 4rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-content { flex: 1; }

.hero-tag {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.hero-content h1 { margin-bottom: 1.1rem; }
.hero-content > p { color: var(--text-2); font-size: 1.05rem; max-width: 520px; margin-bottom: 2rem; }

.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 1.1rem; color: var(--text); }
.stat span   { font-size: 0.75rem; color: var(--text-3); }
.stat-divider { width: 1px; height: 32px; background: var(--border); }

/* ── Flow Card ───────────────────────────────── */
.hero-visual { flex: 0 0 300px; }

.flow-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: border-color 0.2s;
}
.flow-step.active  { border-color: var(--cyan); background: var(--cyan-dim); }
.flow-step.success { border-color: rgba(34,197,94,0.3); background: rgba(34,197,94,0.06); }

.flow-icon { font-size: 1.3rem; flex-shrink: 0; }
.flow-label { font-size: 0.85rem; font-weight: 600; }
.flow-sub   { font-size: 0.75rem; color: var(--text-2); font-family: 'Courier New', monospace; }

.flow-arrow {
  text-align: center;
  color: var(--border-2);
  font-size: 0.9rem;
  padding: 0.15rem 0;
}

/* ── What is ─────────────────────────────────── */
.what-is {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 1.5rem;
}
.what-is .container {
  display: flex;
  gap: 4rem;
  align-items: center;
}
.what-is-text { flex: 1; }
.what-is-text h2 { margin-bottom: 1rem; }
.what-is-text p  { color: var(--text-2); margin-bottom: 1rem; font-size: 0.95rem; }
.what-is-text p:last-of-type { margin-bottom: 1.5rem; }

.what-is-pills { flex: 0 0 340px; }
.pill-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 0.35rem 0.8rem;
  border-radius: 99px;
  font-size: 0.8rem;
  transition: border-color 0.15s, color 0.15s;
}
.pill:hover { border-color: var(--cyan); color: var(--cyan); }

/* ── Features ────────────────────────────────── */
.features { padding: 5rem 1.5rem; }
.features h2 { margin-bottom: 0.5rem; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 3rem;
}

.feature-card {
  background: var(--bg-1);
  padding: 2rem;
  transition: background 0.2s;
}
.feature-card:hover { background: var(--bg-2); }

.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 10px;
}
.feature-icon.cyan   { background: rgba(0,184,217,0.1); }
.feature-icon.blue   { background: rgba(79,142,247,0.1); }
.feature-icon.purple { background: rgba(167,139,250,0.1); }
.feature-icon.green  { background: rgba(34,197,94,0.1); }
.feature-icon.orange { background: rgba(251,146,60,0.1); }
.feature-icon.teal   { background: rgba(45,212,191,0.1); }

.feature-card h3 { font-size: 0.95rem; margin-bottom: 0.5rem; }
.feature-card p  { color: var(--text-2); font-size: 0.875rem; }

/* ── Use Cases ───────────────────────────────── */
.use-cases {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 1.5rem;
}
.use-cases h2 { margin-bottom: 2.5rem; }

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.case-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.case-card:hover { border-color: var(--cyan); transform: translateY(-2px); }
.case-card h3 { margin-bottom: 0.5rem; font-size: 0.95rem; }
.case-card p  { color: var(--text-2); font-size: 0.875rem; }

/* ── Setup ───────────────────────────────────── */
.setup { padding: 5rem 1.5rem; }
.setup h2 { margin-bottom: 0.5rem; }

.steps { display: flex; flex-direction: column; gap: 2rem; margin-top: 3rem; }

.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 34px; height: 34px;
  background: var(--cyan);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  margin-top: 0.1rem;
}

.step-body { flex: 1; }
.step-body h3 { margin-bottom: 0.75rem; }

.code-block {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-2);
}

.code-block pre {
  padding: 1rem;
  overflow-x: auto;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.83rem;
  color: var(--cyan);
  line-height: 1.6;
}

.copy-btn {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.copy-btn:hover   { background: var(--cyan); color: var(--bg); border-color: var(--cyan); }
.copy-btn.copied  { background: var(--green); color: #fff; border-color: var(--green); }

.step-note {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-3);
}
.step-note a { color: var(--cyan); text-decoration: none; }
.step-note a:hover { text-decoration: underline; }

/* ── CTA Solis ───────────────────────────────── */
.cta-solis {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 1.5rem;
}

.cta-box {
  display: flex;
  gap: 4rem;
  align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
}

.cta-text { flex: 1; }

.cta-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}

.cta-text h2 { margin-bottom: 0.75rem; }
.cta-text > p { color: var(--text-2); margin-bottom: 1.5rem; font-size: 0.95rem; }

.cta-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 2rem;
}
.cta-list li { font-size: 0.9rem; color: var(--text-2); }
.cta-list li::first-letter { color: var(--green); }

.cta-visual {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-badge {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cta-badge-icon { font-size: 1.5rem; flex-shrink: 0; }

.cta-badge strong { display: block; font-size: 0.85rem; }
.cta-badge span   { font-size: 0.75rem; color: var(--text-2); }

/* ── Docs ────────────────────────────────────── */
.docs { padding: 5rem 1.5rem; }
.docs h2 { margin-bottom: 2.5rem; }

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.doc-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-1);
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
}
.doc-card:hover { background: var(--bg-2); }

.doc-icon { font-size: 1.4rem; flex-shrink: 0; }
.doc-card h3 { font-size: 0.875rem; margin-bottom: 0.2rem; }
.doc-card p  { font-size: 0.8rem; color: var(--text-2); margin: 0; }
.doc-arrow   { margin-left: auto; color: var(--text-3); font-size: 0.9rem; flex-shrink: 0; }

/* ── Footer ──────────────────────────────────── */
footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 2rem;
}

.footer-top {
  display: flex;
  gap: 4rem;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.footer-brand { max-width: 340px; }
.footer-brand .logo { margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.875rem; color: var(--text-2); line-height: 1.6; }

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

.footer-links-group > div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links-group strong { font-size: 0.8rem; color: var(--text); margin-bottom: 0.25rem; }

.footer-links-group a {
  font-size: 0.83rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links-group a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p { font-size: 0.8rem; color: var(--text-3); }
.footer-bottom a { color: var(--text-2); text-decoration: none; }
.footer-bottom a:hover { color: var(--text); }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 900px) {
  .hero { flex-direction: column; padding: 3.5rem 1.5rem; gap: 2.5rem; }
  .hero-visual { width: 100%; max-width: 360px; }
  .hero-content > p { max-width: 100%; }

  .what-is .container { flex-direction: column; gap: 2.5rem; }
  .what-is-pills { flex: none; width: 100%; }

  .cta-box { flex-direction: column; gap: 2rem; padding: 2rem; }
  .cta-visual { flex: none; width: 100%; }

  .footer-top { flex-direction: column; gap: 2rem; }
  .footer-brand { max-width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--bg-1);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 1rem;
  }
  .menu-toggle { display: block; }

  .step { flex-direction: column; }
  .footer-links-group { flex-direction: column; gap: 1.5rem; }
}
