:root {
  --bg: #0a0a0b;
  --bg-elev: #131316;
  --bg-card: #16161a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #ececf1;
  --text-muted: #8a8a94;
  --text-dim: #5f5f68;
  --accent: #22d3ee;
  --accent-hover: #06b6d4;
  --accent-soft: rgba(34, 211, 238, 0.1);
  --coral: #ff7a59;
  --green: #4ade80;
  --radius: 10px;
  --radius-lg: 14px;
  --max: 1200px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

::selection { background: var(--accent-soft); color: var(--accent); }

/* === Layout === */

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(10, 10, 11, 0.7);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  font-size: 18px;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent) 0%, #0891b2 100%);
  display: grid;
  place-items: center;
  color: #03161a;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 0 24px -8px var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover { color: var(--text); }

/* === Buttons === */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #03161a;
}
.btn-primary:hover { background: var(--accent-hover); color: #03161a; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--bg-elev); border-color: var(--text-muted); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  height: 36px;
  padding: 0 14px;
}
.btn-ghost:hover { color: var(--text); background: var(--bg-elev); }

.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }

/* === Hero === */

.hero {
  padding: 96px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(34, 211, 238, 0.12), transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

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

.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 24px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 .grad {
  background: linear-gradient(135deg, var(--accent) 0%, var(--coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.55;
}

.hero-cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* === Live dashboard mock === */

.dashboard {
  margin-top: 72px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: left;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 30px 80px -30px rgba(34, 211, 238, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.02);
  position: relative;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.metric {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.metric-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.metric-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 6px;
  font-family: var(--font-mono);
}

.metric-delta { font-size: 12px; color: var(--green); margin-top: 4px; font-weight: 500; }
.metric-delta.warn { color: var(--coral); }

/* === Sections === */

section.block { padding: 100px 0; border-top: 1px solid var(--border); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 14px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto;
}

/* === Feature grid === */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-size: 18px;
}

.feature h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.feature p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
  line-height: 1.55;
}

/* === Code panel === */

.codepanel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.codepanel h2 {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}

.codepanel p {
  color: var(--text-muted);
  font-size: 16px;
  margin: 0 0 24px;
}

.code {
  background: #0d0d0f;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
}

.code .c { color: var(--text-dim); }
.code .k { color: var(--coral); }
.code .s { color: var(--green); }
.code .v { color: var(--accent); }

/* === Pricing === */

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.price {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.price.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.06), var(--bg-elev) 60%);
  position: relative;
}

.price.featured::before {
  content: "Most popular";
  position: absolute;
  top: -10px;
  left: 24px;
  background: var(--accent);
  color: #03161a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.price-name { font-size: 14px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

.price-amount {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 14px 0 6px;
}

.price-amount .unit { font-size: 16px; color: var(--text-muted); font-weight: 500; }

.price-tagline { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }

.price ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  font-size: 14px;
  color: var(--text);
}

.price li {
  padding: 8px 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.price li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

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

.cta-final {
  text-align: center;
  padding: 100px 0;
  border-top: 1px solid var(--border);
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(34, 211, 238, 0.08), transparent 70%);
}

.cta-final h2 {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 14px;
}

.cta-final p { color: var(--text-muted); font-size: 17px; margin: 0 0 32px; }

/* === Footer === */

footer.site {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--text-dim);
  font-size: 13px;
}

footer.site .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

footer.site a { color: var(--text-muted); margin-left: 20px; }
footer.site a:hover { color: var(--text); }

/* === Auth (login) === */

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background:
    radial-gradient(ellipse 50% 40% at 50% 30%, rgba(34, 211, 238, 0.08), transparent 70%),
    var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 36px 32px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
}

.auth-card .brand {
  margin-bottom: 28px;
  justify-content: center;
}

.auth-card h1 {
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 6px;
  text-align: center;
}

.auth-card .sub {
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  margin: 0 0 28px;
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 6px;
}

.field input[type="email"],
.field input[type="password"],
.field input[type="text"] {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -6px 0 18px;
  font-size: 13px;
}

.field-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  cursor: pointer;
}

.field-row a { color: var(--text-muted); }
.field-row a:hover { color: var(--accent); }

.alert {
  background: rgba(255, 122, 89, 0.1);
  border: 1px solid rgba(255, 122, 89, 0.3);
  color: var(--coral);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 18px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dim);
  font-size: 12px;
  margin: 22px 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-google {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border-strong);
  height: 42px;
  width: 100%;
  justify-content: center;
}

.btn-google:hover { background: #1c1c20; border-color: var(--text-muted); }

.auth-footer {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 22px;
}

/* === Responsive === */

@media (max-width: 880px) {
  .features { grid-template-columns: 1fr 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .codepanel { grid-template-columns: 1fr; gap: 32px; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 64px 0 56px; }
  section.block, .cta-final { padding: 64px 0; }
}
