/* ============ akasha — landing (Vercel-inspired dark theme) ============ */

:root {
  --bg: #0a0a0a;
  --bg-raised: #111111;
  --fg: #ededed;
  --fg-muted: #a1a1a1;
  --fg-dim: #6b6b6b;
  --border: #232323;
  --border-strong: #333333;
  --violet: #a78bfa;
  --cyan: #67e8f9;
  --blue: #60a5fa;
  --green: #4ade80;
  --red: #f87171;
  --grad: linear-gradient(100deg, #a78bfa 0%, #60a5fa 50%, #67e8f9 100%);
  --font: "Geist", -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(167, 139, 250, 0.35); }

a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: 0.92em; }

p code, li code {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.1em 0.35em;
  color: var(--violet);
}

/* ============ Nav ============ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.mark { width: 22px; height: 22px; color: var(--fg); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  color: var(--fg-muted);
}

.nav-links a:not(.btn):hover { color: var(--fg); }

.nav-gh { display: flex; align-items: center; gap: 6px; }

/* ============ Buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-sm { padding: 7px 16px; font-size: 13px; }

.btn-primary { background: var(--fg); color: #000; }
.btn-primary:hover { background: #cfcfcf; }

.btn-secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--fg-dim); background: var(--bg-raised); }

/* ============ Frame (Vercel-style side rails) ============ */

.frame {
  max-width: 1100px;
  margin: 0 auto;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

/* ============ Hero ============ */

.hero {
  position: relative;
  text-align: center;
  padding: 110px 24px 80px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  height: 520px;
  background: radial-gradient(ellipse at center,
    rgba(167, 139, 250, 0.16) 0%,
    rgba(96, 165, 250, 0.08) 40%,
    transparent 70%);
  pointer-events: none;
}

.hero-logo {
  position: relative;
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 26px;
}

.badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-muted);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 28px;
  background: rgba(17, 17, 17, 0.6);
}

.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.hero h1 {
  position: relative;
  font-size: clamp(44px, 7.5vw, 80px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin-bottom: 24px;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  position: relative;
  max-width: 580px;
  margin: 0 auto 36px;
  font-size: 18px;
  color: var(--fg-muted);
}

.hero-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.install-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--fg);
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 11px 20px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.install-pill:hover { border-color: var(--fg-dim); }
.install-pill .pill-prompt { color: var(--violet); }
.install-pill .pill-copy { color: var(--fg-dim); flex-shrink: 0; }
.install-pill:hover .pill-copy { color: var(--fg); }
.install-pill.copied .pill-copy { color: var(--green); }

/* ============ Terminal ============ */

.terminal {
  position: relative;
  max-width: 640px;
  margin: 0 auto 56px;
  background: #0d0d0d;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 0 60px rgba(167, 139, 250, 0.07), 0 20px 50px rgba(0, 0, 0, 0.5);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}

.tdot { width: 11px; height: 11px; border-radius: 50%; }
.tdot.red { background: #ff5f57; }
.tdot.yellow { background: #febc2e; }
.tdot.green { background: #28c840; }

.terminal-title {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-dim);
}

.terminal-body {
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.75;
  overflow-x: auto;
}

.t-prompt { color: var(--violet); }
.t-dim { color: var(--fg-dim); }
.t-ok { color: var(--green); }
.t-violet { color: var(--violet); }

/* ============ Works with ============ */

.works-with {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.works-label {
  font-size: 13px;
  color: var(--fg-dim);
  margin-right: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.chip {
  font-size: 13px;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 13px;
  background: rgba(17, 17, 17, 0.5);
}

/* ============ Sections ============ */

.section {
  padding: 96px 24px;
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.kicker {
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--violet);
  margin-bottom: 14px;
}

.section-head h2, .cta h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.muted-h { color: var(--fg-dim); }

.section-sub {
  margin-top: 18px;
  font-size: 17px;
  color: var(--fg-muted);
}

/* ============ Cards grid ============ */

.grid { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg);
  padding: 32px 28px;
  transition: background 0.2s ease;
}

.card:hover { background: var(--bg-raised); }

.card-icon {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  margin-bottom: 20px;
  color: var(--violet);
  background: var(--bg-raised);
}

.card-icon svg { width: 20px; height: 20px; }

.card h3 {
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.card p { font-size: 14.5px; color: var(--fg-muted); }

/* ============ Code tabs ============ */

.code-tabs {
  max-width: 760px;
  margin: 0 auto 72px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  background: #0d0d0d;
}

.tab-row {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}

.tab {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-dim);
  background: none;
  border: none;
  border-right: 1px solid var(--border);
  padding: 12px 22px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.tab:hover { color: var(--fg-muted); }
.tab.active { color: var(--fg); background: #0d0d0d; box-shadow: inset 0 -2px 0 var(--violet); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.tab-panel pre, .split-code, .audit-block {
  padding: 22px 24px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.7;
  overflow-x: auto;
}

.c-comment { color: var(--fg-dim); }
.c-str { color: #9ece8c; }
.c-kw { color: var(--violet); }
.c-fn { color: var(--blue); }
.c-dim { color: var(--fg-dim); }
.c-prompt { color: var(--violet); }
.c-violet { color: var(--violet); }
.c-red { color: var(--red); }

/* ============ Split ============ */

.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
  max-width: 920px;
  margin: 0 auto;
}

.split-text h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.split-text p { color: var(--fg-muted); font-size: 15.5px; }
.split-text em { color: var(--fg); font-style: normal; font-weight: 500; }

.split-code {
  background: #0d0d0d;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  margin: 0;
}

/* ============ Audit block ============ */

.audit-block {
  display: block;
  max-width: 720px;
  margin: 0 auto;
  background: #0d0d0d;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 0 60px rgba(96, 165, 250, 0.05);
}

/* ============ Detection table ============ */

.detect-table {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  background: #0d0d0d;
}

.detect-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.detect-table th {
  text-align: left;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  background: var(--bg-raised);
  padding: 12px 22px;
  border-bottom: 1px solid var(--border);
}

.detect-table td {
  padding: 13px 22px;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
}

.detect-table tr:last-child td { border-bottom: none; }
.detect-table tbody tr:hover { background: var(--bg-raised); }

.detect-table .mono { font-family: var(--mono); font-size: 13px; color: var(--fg-muted); }
.detect-table .t-right { text-align: right; }

.risk {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 2px 10px;
}

.risk.critical { color: var(--red); border: 1px solid rgba(248, 113, 113, 0.3); background: rgba(248, 113, 113, 0.08); }
.risk.high { color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.3); background: rgba(251, 191, 36, 0.08); }
.risk.medium { color: var(--blue); border: 1px solid rgba(96, 165, 250, 0.3); background: rgba(96, 165, 250, 0.08); }
.risk.varies { color: var(--fg-muted); border: 1px solid var(--border-strong); background: var(--bg-raised); }

/* ============ Stats ============ */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.stat { background: var(--bg); padding: 30px 26px; text-align: center; }

.stat-value {
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}

.stat-label { font-size: 13.5px; color: var(--fg-muted); }

/* ============ CTA ============ */

.cta {
  position: relative;
  text-align: center;
  padding: 130px 24px;
  overflow: hidden;
  border-bottom: none;
}

.cta h2 { margin-bottom: 40px; position: relative; }
.cta .hero-cta { margin-bottom: 0; }

.cta-glow { top: auto; bottom: -260px; }

/* ============ Footer ============ */

.footer { border-top: 1px solid var(--border); }

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--fg-dim);
  max-width: 260px;
}

.footer-by { margin-top: 10px !important; }
.footer-by a { color: var(--fg-muted); text-decoration: underline; text-underline-offset: 3px; }
.footer-by a:hover { color: var(--fg); }

.footer-col h4 {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 13.5px;
  color: var(--fg-muted);
  padding: 4px 0;
}

.footer-col a:hover { color: var(--fg); }

.footer-base {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--fg-dim);
}

.footer-tag { font-family: var(--mono); }

/* ============ Reveal animation ============ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ Responsive ============ */

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .nav-links a:not(.btn):not(.nav-gh) { display: none; }
  .grid-3, .grid-2, .stats { grid-template-columns: 1fr; }
  .hero { padding-top: 72px; }
  .hero-sub { font-size: 16px; }
  .install-pill { gap: 7px; padding: 10px 14px; }
  .install-pill .pill-cmd { font-size: 11px; white-space: nowrap; }
  .section { padding: 64px 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-base { flex-direction: column; gap: 6px; }
}
