/* Alumina landing — design source: Figma "Privy-Inspired Landing Page" 49:2 */
:root {
  --ink: #101828;
  --ink-deep: #091326;
  --cobalt: #0A57E8;
  --cobalt-btn: #145CE6;
  --slate: #475467;
  --muted: #667085;
  --hair: #D1DBEA;
  --pale-blue: #EAF2FF;
  --hero-canvas: #EDF4FF;
  --mint: #EAF7F6;
  --citron: #FFF6E3;
  --coral: #E15C47;
  --coral-deep: #B84329;
  --pale-coral: #FFECE6;
  --hero-left: #F7F8FB;
  --console-bg: #0D1220;
  --console-elev: #141B2E;
  --radius-panel: 24px;
  --radius-card: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; font-weight: 600; font-size: 14px;
  padding: 0 28px; height: 48px; transition: transform .15s ease, box-shadow .15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { height: 44px; padding: 0 22px; font-size: 13px; }
.btn-primary { background: var(--cobalt-btn); color: #fff; }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(20, 92, 230, .35); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid #E4E7EC; }
.btn-white { background: #fff; color: var(--ink); }

/* ---------- nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px; padding: 0 28px; background: #fff;
  position: sticky; top: 0; z-index: 50; border-bottom: 1px solid #F2F4F7;
}
.nav-brand img { height: 44px; width: auto; }
.nav-links { display: flex; gap: 36px; font-size: 13px; font-weight: 600; }
.nav-links a:hover { color: var(--cobalt); }
.nav-actions { display: flex; gap: 12px; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 45% 55%; min-height: 620px; }
.hero-copy {
  background: var(--hero-left);
  display: flex; flex-direction: column; justify-content: center;
  padding: 64px 56px;
}
.hero-copy h1 { font-size: clamp(42px, 4.6vw, 66px); line-height: 1.06; letter-spacing: -0.03em; }
.h1-blue { color: var(--cobalt); padding-left: .5em; }
.hero-sub { font-size: 19px; line-height: 1.55; color: var(--slate); margin-top: 26px; max-width: 34em; }
.hero-ctas { display: flex; gap: 12px; margin-top: 42px; flex-wrap: wrap; }
.hero-canvas {
  background: var(--hero-canvas);
  display: flex; align-items: center; justify-content: center;
  padding: 48px;
}
.hero-gateway { width: min(710px, 100%); border-radius: 20px; box-shadow: 0 28px 60px rgba(9, 19, 38, .28); }

/* ---------- metrics ---------- */
.metrics { padding: 96px 5.5% 60px; max-width: 1440px; margin: 0 auto; }
.metrics h2 { font-size: clamp(30px, 2.8vw, 38px); margin-bottom: 64px; }
.row {
  display: grid; grid-template-columns: 5fr 8fr; gap: 56px;
  align-items: center; margin-bottom: 44px;
}
.row-flip { grid-template-columns: 8fr 5fr; }
.row-flip .row-copy { order: 2; }
.row-flip .panel { order: 1; }
.accent { display: block; width: 56px; height: 4px; border-radius: 2px; margin-bottom: 26px; }
.accent-cobalt { background: var(--cobalt); }
.accent-coral { background: var(--coral); }
.accent-teal { background: #0DAB87; }
.accent-amber { background: #EB7A17; }
.row-copy h3 { font-size: 28px; line-height: 1.2; }
.row-copy p { font-size: 16px; line-height: 1.6; color: var(--ink); margin-top: 16px; max-width: 26em; }

.panel { border-radius: var(--radius-panel); padding: 40px; margin: 0; }
.panel-blue { background: var(--pale-blue); }
.panel-coral { background: var(--pale-coral); }
.panel-mint { background: var(--mint); }
.panel-citron { background: var(--citron); }
.card { background: #fff; border-radius: var(--radius-card); padding: 24px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.chart-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.label-cobalt { color: var(--cobalt); }
.label-coral { color: var(--coral-deep); }
.label-teal { color: #066E57; }
.legend { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 600; color: var(--slate); }
.legend .key { width: 18px; height: 4px; border-radius: 2px; display: inline-block; }
.legend .key + * { margin-right: 6px; }
.key-cobalt { background: var(--cobalt); }
.key-gray { background: #A8B2C2; }

.svg-service { width: 100%; height: 150px; }
.event-chips { display: flex; justify-content: space-around; margin-top: 14px; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 10px; font-weight: 600; padding: 7px 13px; border-radius: 12px; color: var(--ink); }
.chip-blue { background: var(--pale-blue); }

/* bill chart */
.bill { display: flex; justify-content: space-around; align-items: flex-end; gap: 24px; padding-top: 8px; }
.bill-left, .bill-right { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.bill-stack { display: flex; align-items: flex-end; gap: 14px; flex-direction: row-reverse; }
.bill-bar { display: flex; flex-direction: column; justify-content: flex-end; width: 110px; border-bottom: 1px solid var(--hair); }
.bill-bar i { display: block; border-radius: 3px; margin-top: 2px; }
.bill-bar-alumina { border-bottom: 1px solid var(--hair); }
.bill-labels { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; height: 152px; padding: 2px 0; }
.bill-labels span { font-size: 9.5px; font-weight: 600; color: var(--slate); }
.bill-caption { font-size: 10px; font-weight: 600; color: var(--slate); letter-spacing: .04em; }
.caption-cobalt { color: var(--cobalt); }

/* latency tiles */
.latency-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tile { background: #F8FBFF; border-radius: 12px; padding: 14px 16px 10px; }
.tile-label { font-size: 10px; font-weight: 600; color: var(--slate); }
.tile svg { width: 100%; height: 96px; margin-top: 8px; }

/* pareto */
.pareto { position: relative; padding: 8px 4px 4px; }
.pareto svg { width: 100%; height: 220px; }
.axis-label { font-size: 9px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.axis-y { position: absolute; top: 0; left: 6px; }
.axis-x { display: block; text-align: right; margin-top: 6px; }
.svg-area-label { font: 600 11px 'Inter', sans-serif; letter-spacing: .04em; fill: var(--cobalt); }

/* ---------- deployment ---------- */
.deploy { background: #F8FBFF; padding: 96px 5.5%; }
.deploy-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; max-width: 1440px; margin: 0 auto; align-items: start; }
.deploy-copy h2 { font-size: clamp(34px, 3.4vw, 48px); line-height: 1.12; }
.deploy-sub { font-size: 17px; line-height: 1.65; color: var(--muted); margin-top: 22px; max-width: 30em; }
.mode-cards { display: flex; flex-direction: column; gap: 24px; margin-top: 44px; }
.mode-card { border-radius: 20px; padding: 26px 24px; }
.mode-serverless { background: #E5F0FF; }
.mode-dedicated { background: var(--mint); }
.mode-card h3 { font-size: 20px; }
.mode-card p { font-size: 13px; line-height: 1.6; color: var(--slate); margin-top: 10px; max-width: 44em; }
.deploy-ctas { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.cta-note { font-size: 12px; color: #8B8E97; margin-top: 18px; }

/* console */
.console-wrap {
  background: linear-gradient(135deg, #0A57E8 0%, #0FB5A9 100%);
  border-radius: 28px; padding: 44px;
}
.console { background: var(--console-bg); border-radius: 20px; padding: 28px; color: #fff; }
.console-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.console-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: #4D8DFF; }
.console-head h3 { font-size: 28px; margin-top: 8px; }
.console-sub { font-size: 13px; color: #8C9EBF; margin-top: 6px; }
.mode-toggle { display: flex; gap: 8px; flex-shrink: 0; }
.mode-toggle span { font-size: 9px; font-weight: 700; letter-spacing: .06em; padding: 9px 16px; border-radius: 999px; }
.toggle-on { background: var(--cobalt); color: #fff; }
.toggle-off { background: transparent; color: #8C9EBF; border: 1px solid #2A3550; }
.stages { display: flex; align-items: center; gap: 0; margin: 30px 0 26px; }
.stage {
  flex: 1; display: flex; align-items: center; justify-content: center;
  height: 76px; border-radius: 12px; font-size: 9px; font-weight: 700; letter-spacing: .05em;
}
.stages i { width: 18px; height: 2px; background: #2B6BFF; flex-shrink: 0; }
.stage-white { background: #fff; color: var(--ink); }
.stage-cobalt { background: #0A57E8; color: #fff; }
.stage-mint { background: #BFE8DC; color: var(--ink); }
.stage-citron { background: #EFE08A; color: var(--ink); }
.console-body { font-size: 13px; color: #B8C4DA; margin: 8px 0 24px; }
.resources { display: flex; flex-direction: column; gap: 10px; }
.resource { display: flex; align-items: center; gap: 18px; background: var(--console-elev); border-radius: 10px; padding: 15px 16px; }
.resource span { font-size: 9px; font-weight: 700; letter-spacing: .05em; color: #B8C4DA; width: 110px; flex-shrink: 0; }
.resource .track { flex: 1; height: 6px; border-radius: 3px; background: #26304A; overflow: hidden; }
.resource .track i { display: block; height: 100%; border-radius: 3px; }
.console-strip {
  margin-top: 22px; background: var(--console-elev); border-radius: 12px;
  text-align: center; padding: 16px 12px; font-size: 11px; font-weight: 600;
  letter-spacing: .05em; color: #8CADFF;
}

/* ---------- footer ---------- */
.footer { background: #fff; padding: 72px 5.5% 36px; max-width: 1440px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.footer-brand img { height: 52px; width: auto; }
.footer-statement { font-size: 30px; font-weight: 500; letter-spacing: -0.02em; margin-top: 32px; line-height: 1.4; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-cols h4 { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--muted); margin-bottom: 18px; }
.footer-cols a { display: block; font-size: 14px; color: var(--ink); margin-bottom: 10px; }
.footer-cols a:hover { color: var(--cobalt); }
.footer-base {
  display: flex; justify-content: space-between; border-top: 1px solid #EAECF0;
  margin-top: 56px; padding-top: 28px; font-size: 12px; color: var(--muted);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav { padding: 0 18px; }
  .nav-links { display: none; }
  .nav-brand img { height: 40px; }
  .nav-actions .btn-primary { display: none; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 56px 24px 48px; }
  .hero-sub { font-size: 17px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .hero-canvas { padding: 54px 24px; }

  .metrics { padding: 64px 24px 40px; }
  .metrics h2 { margin-bottom: 40px; }
  .row, .row-flip { grid-template-columns: 1fr; gap: 20px; margin-bottom: 56px; }
  .row-flip .row-copy { order: 1; }
  .row-flip .panel { order: 2; }
  .panel { padding: 16px; }
  .card { padding: 18px; }
  .bill-bar { width: 64px; }
  .bill-labels { height: 100px; }
  .bill-labels span { font-size: 8px; }
  .latency-tiles { grid-template-columns: 1fr; }

  .deploy { padding: 64px 24px; }
  .deploy-grid { grid-template-columns: 1fr; gap: 40px; }
  .console-wrap { padding: 20px; }
  .console { padding: 20px; }
  .console-head { flex-direction: column; }
  .stages .stage:first-child, .stages .stage:last-child { display: none; }
  .stages i:first-of-type, .stages i:last-of-type { display: none; }
  .resource span { width: 84px; }
  .deploy-ctas { flex-direction: column; align-items: stretch; }
  .cta-note { text-align: center; }

  .footer { padding: 56px 24px 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .footer-base { flex-direction: column; gap: 8px; }
}
