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

/* ── Design tokens — NVIDIA-Blue ────────────────────────────────────────────── */
:root {
  --canvas:        #ffffff;
  --canvas-dark:   #000000;
  --canvas-soft:   #f7f7f7;
  --surface-dark:  #111111;
  --surface-card:  #ffffff;

  --blue:          #0078ff;
  --blue-dark:     #0055cc;
  --blue-pale:     #deeeff;
  --blue-glow:     rgba(0,120,255,.18);

  --ink:           #000000;
  --body:          #1a1a1a;
  --muted:         #757575;
  --ash:           #a7a7a7;
  --hairline:      #cccccc;
  --hairline-dark: #2e2e2e;

  --success:       #1a7f37;
  --error:         #e52020;

  --radius:        2px;   /* signature: nearly square */
  --radius-sm:     2px;
}

/* ── Base ───────────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Utility ────────────────────────────────────────────────────────────────── */
.container  { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.text-center { text-align: center; }
.text-muted  { color: var(--muted); }

/* ── Corner-square signature (NVIDIA-style) ─────────────────────────────────── */
.corner::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 12px; height: 12px;
  background: var(--blue);
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary   { background: var(--blue);  color: #fff; }
.btn-primary:hover { background: var(--blue-dark); text-decoration: none; }

.btn-outline   { background: transparent; color: var(--ink); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; text-decoration: none; }

.btn-outline-dark { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-outline-dark:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }

.btn-black { background: var(--canvas-dark); color: #fff; }
.btn-black:hover { background: #222; text-decoration: none; }

.btn-lg  { padding: 14px 32px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }
.btn-sm  { padding: 7px 16px; font-size: 13px; }

/* ── Navbar ─────────────────────────────────────────────────────────────────── */
.navbar {
  background: var(--canvas-dark);
  border-bottom: 3px solid var(--blue);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}
.navbar-brand {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.navbar-brand:hover { text-decoration: none; }
.brand-box {
  width: 30px; height: 30px;
  background: var(--blue);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900; color: #fff;
}
.navbar-links {
  display: flex;
  list-style: none;
  gap: 0;
}
.navbar-links a {
  color: rgba(255,255,255,.65);
  font-size: 14px;
  font-weight: 700;
  padding: 0 18px;
  height: 58px;
  display: flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: all .15s;
  text-decoration: none;
}
.navbar-links a:hover { color: #fff; border-bottom-color: var(--blue); }
.navbar-actions { display: flex; gap: 10px; align-items: center; }

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--canvas-dark);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,120,255,.2) 0%, transparent 65%);
  pointer-events: none;
}
.hero-corner-tl { position: absolute; top: 32px; left: 32px; width: 14px; height: 14px; background: var(--blue); }
.hero-corner-br { position: absolute; bottom: 32px; right: 32px; width: 14px; height: 14px; background: var(--blue); }

.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; position: relative; z-index: 1; }
.hero-eyebrow { font-size: 11px; font-weight: 700; color: var(--blue); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; }
.hero h1 { font-size: clamp(36px, 4vw, 56px); font-weight: 900; line-height: 1.08; letter-spacing: -1.5px; margin-bottom: 20px; }
.hero h1 .blue { color: var(--blue); }
.hero-sub { font-size: 17px; color: rgba(255,255,255,.65); line-height: 1.65; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Terminal mockup */
.terminal {
  background: #0d0d0d;
  border: 1px solid var(--hairline-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.term-bar {
  background: #080808;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--hairline-dark);
}
.term-dot { width: 10px; height: 10px; border-radius: 50%; }
.term-label { font-size: 11px; font-weight: 700; color: #444; margin-left: auto; letter-spacing: 1px; }
.term-body { padding: 20px; font-family: 'Courier New', monospace; font-size: 13px; line-height: 1.75; }
.t-comment { color: #444; }
.t-blue   { color: var(--blue); }
.t-white  { color: #bbb; }
.t-yellow { color: #ffd080; }
.t-cursor { display: inline-block; width: 8px; height: 15px; background: var(--blue); vertical-align: middle; animation: blink 1s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── Stats strip ─────────────────────────────────────────────────────────────── */
.stats-strip { background: var(--canvas-soft); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: 24px 0; }
.stats-inner { max-width: 1200px; margin: 0 auto; padding: 0 48px; display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 16px 0; border-right: 1px solid var(--hairline); }
.stat:last-child { border-right: none; }
.stat strong { display: block; font-size: 34px; font-weight: 900; color: var(--blue); letter-spacing: -1px; }
.stat span { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }

/* ── Section ─────────────────────────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section-dark { background: var(--canvas-dark); color: #fff; }
.section-soft { background: var(--canvas-soft); }
.eyebrow { font-size: 11px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; }
.section-title { font-size: clamp(28px, 3.5vw, 44px); font-weight: 900; letter-spacing: -1px; margin-bottom: 10px; line-height: 1.1; }
.section-sub { font-size: 16px; color: var(--muted); margin-bottom: 40px; }
.section-dark .section-sub { color: rgba(255,255,255,.5); }

/* ── Feature grid ────────────────────────────────────────────────────────────── */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--hairline); }
.feat-card {
  padding: 32px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  position: relative;
  background: var(--canvas);
  transition: background .15s;
}
.feat-card:hover { background: var(--canvas-soft); }
.feat-card:nth-child(3n) { border-right: none; }
.feat-card:nth-last-child(-n+3) { border-bottom: none; }
.feat-card::before { content: ''; position: absolute; top: 0; left: 0; width: 12px; height: 12px; background: var(--blue); }
.feat-card.dark { background: var(--canvas-dark); color: #fff; }
.feat-card.dark:hover { background: #111; }
.feat-card.dark .feat-text { color: rgba(255,255,255,.5); }
.feat-icon { font-size: 26px; margin-bottom: 16px; }
.feat-title { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.feat-text { font-size: 14px; color: var(--muted); line-height: 1.65; }
.feat-link { display: inline-flex; align-items: center; gap: 5px; color: var(--blue); font-size: 13px; font-weight: 700; margin-top: 14px; text-decoration: none; }
.feat-link:hover { text-decoration: underline; }

/* ── Callout stats ───────────────────────────────────────────────────────────── */
.callout-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--hairline); border-top: none; }
.callout-card { padding: 28px 20px; border-right: 1px solid var(--hairline); text-align: center; position: relative; }
.callout-card:last-child { border-right: none; }
.callout-card::before { content: ''; position: absolute; top: 0; left: 0; width: 12px; height: 12px; background: var(--blue); }
.callout-num { font-size: 38px; font-weight: 900; color: var(--blue); letter-spacing: -1.5px; line-height: 1; margin-bottom: 6px; }
.callout-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }

/* ── Steps (dark) ────────────────────────────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--hairline-dark); }
.step-card { padding: 28px; border-right: 1px solid var(--hairline-dark); position: relative; }
.step-card:last-child { border-right: none; }
.step-card::before { content: ''; position: absolute; top: 0; left: 0; width: 12px; height: 12px; background: var(--blue); }
.step-num { font-size: 32px; font-weight: 900; color: var(--blue); line-height: 1; margin-bottom: 12px; }
.step-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.step-text { font-size: 13px; color: rgba(255,255,255,.45); line-height: 1.65; }

/* ── Pricing ─────────────────────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--hairline); margin-top: 40px; }
.price-card { padding: 32px; border-right: 1px solid var(--hairline); position: relative; background: var(--canvas); }
.price-card.featured { background: var(--canvas-dark); color: #fff; }
.price-card:last-child { border-right: none; }
.price-card::before { content: ''; position: absolute; top: 0; left: 0; width: 12px; height: 12px; background: var(--blue); }
.price-plan { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px; }
.price-card.featured .price-plan { color: rgba(255,255,255,.35); }
.price-amount { font-size: 52px; font-weight: 900; letter-spacing: -2.5px; line-height: 1; margin-bottom: 4px; }
.price-card.featured .price-amount { color: var(--blue); }
.price-mo { font-size: 13px; color: var(--muted); font-weight: 700; margin-bottom: 24px; }
.price-card.featured .price-mo { color: rgba(255,255,255,.35); }
.price-divider { border: none; border-top: 1px solid var(--hairline); margin-bottom: 20px; }
.price-card.featured .price-divider { border-color: var(--hairline-dark); }
.price-features { list-style: none; margin-bottom: 28px; }
.price-features li { font-size: 14px; color: var(--muted); padding: 7px 0; display: flex; gap: 9px; align-items: flex-start; border-bottom: 1px solid var(--hairline); }
.price-card.featured .price-features li { color: rgba(255,255,255,.55); border-color: var(--hairline-dark); }
.price-features li:last-child { border-bottom: none; }
.price-features .ck { color: var(--blue); font-weight: 700; flex-shrink: 0; }
.price-btn { width: 100%; padding: 13px; border-radius: var(--radius); font-size: 15px; font-weight: 700; cursor: pointer; transition: all .15s; }
.price-btn-outline { background: transparent; color: var(--ink); border: 2px solid var(--blue); }
.price-btn-outline:hover { background: var(--blue); color: #fff; }
.price-card.featured .price-btn-outline { color: #fff; }
.price-btn-fill { background: var(--blue); color: #fff; border: none; }
.price-btn-fill:hover { background: var(--blue-dark); }

/* ── FAQ ─────────────────────────────────────────────────────────────────────── */
.faq-list { max-width: 760px; margin: 40px auto 0; }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-q {
  width: 100%; background: none; border: none; color: var(--ink);
  font-size: 16px; font-weight: 700; text-align: left;
  padding: 20px 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-icon { color: var(--blue); font-size: 20px; flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { display: none; color: var(--muted); font-size: 15px; padding-bottom: 18px; line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ── CTA Banner ──────────────────────────────────────────────────────────────── */
.cta-banner { background: var(--blue); padding: 64px 0; }
.cta-inner { max-width: 1200px; margin: 0 auto; padding: 0 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-banner h2 { font-size: clamp(26px, 3vw, 40px); font-weight: 900; color: #fff; letter-spacing: -.8px; }
.cta-banner p { color: rgba(255,255,255,.7); font-size: 16px; margin-top: 6px; }

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.footer { background: var(--canvas-dark); color: #fff; padding: 56px 0 28px; border-top: 3px solid var(--blue); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { color: rgba(255,255,255,.4); font-size: 14px; margin-top: 12px; line-height: 1.65; max-width: 280px; }
.footer-col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,.3); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--hairline-dark); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: rgba(255,255,255,.5); font-size: 14px; text-decoration: none; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom { border-top: 1px solid var(--hairline-dark); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12px; color: rgba(255,255,255,.25); }

/* ── Auth pages ──────────────────────────────────────────────────────────────── */
.auth-page { min-height: 100vh; background: var(--canvas-dark); display: flex; flex-direction: column; }
.auth-top { background: var(--canvas-dark); border-bottom: 3px solid var(--blue); padding: 0 48px; height: 58px; display: flex; align-items: center; }
.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  position: relative;
}
.auth-card::before { content: ''; position: absolute; top: 0; left: 0; width: 12px; height: 12px; background: var(--blue); margin-top: -3px; }
.auth-logo { font-size: 20px; font-weight: 900; color: var(--ink); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.auth-logo .brand-box { width: 28px; height: 28px; font-size: 12px; }
.auth-subtitle { font-size: 13px; color: var(--muted); margin-bottom: 28px; }

.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 7px; }
.form-input {
  width: 100%;
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 15px;
  padding: 11px 14px;
  outline: none;
  transition: border-color .15s;
  font-family: inherit;
}
.form-input:focus { border-color: var(--blue); background: #fff; }
.form-input::placeholder { color: var(--ash); }

.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--hairline); }

.btn-google { background: #fff; color: var(--ink); border: 1px solid var(--hairline); font-size: 14px; font-weight: 700; width: 100%; padding: 11px; border-radius: var(--radius); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: border-color .15s; }
.btn-google:hover { border-color: var(--blue); }

.form-footer { text-align: center; font-size: 13px; color: var(--muted); margin-top: 20px; }
.form-footer a { color: var(--blue); font-weight: 700; }

.alert-error { background: #fff0f0; border: 1px solid #ffc5c5; border-left: 3px solid var(--error); color: #8b0000; border-radius: var(--radius); padding: 11px 14px; font-size: 14px; margin-bottom: 18px; }
.alert-success { background: #f0fff5; border: 1px solid #b7f5c9; border-left: 3px solid var(--success); color: #1a4731; border-radius: var(--radius); padding: 11px 14px; font-size: 14px; margin-bottom: 18px; }

/* ── Dashboard layout ────────────────────────────────────────────────────────── */
.dash-layout { display: flex; min-height: 100vh; background: var(--canvas-soft); }
.sidebar {
  width: 230px;
  flex-shrink: 0;
  background: var(--canvas-dark);
  border-right: 3px solid var(--blue);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
}
.sidebar-logo { padding: 18px 20px; border-bottom: 1px solid var(--hairline-dark); display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 900; color: #fff; }
.sidebar-nav { flex: 1; padding-top: 8px; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 20px;
  color: rgba(255,255,255,.5);
  font-size: 14px; font-weight: 700;
  text-decoration: none;
  transition: all .15s;
  border-left: 3px solid transparent;
}
.sidebar-nav a:hover, .sidebar-nav a.active { color: #fff; background: rgba(0,120,255,.12); border-left-color: var(--blue); }
.sidebar-user { padding: 16px 20px; border-top: 1px solid var(--hairline-dark); font-size: 13px; }
.sidebar-user strong { display: block; color: #fff; font-weight: 700; }
.sidebar-user span { color: rgba(255,255,255,.4); font-size: 12px; }
.sidebar-user a { display: block; color: rgba(255,255,255,.35); font-size: 12px; margin-top: 8px; text-decoration: none; }
.sidebar-user a:hover { color: var(--blue); }

.dash-main { margin-left: 230px; flex: 1; padding: 36px 40px; max-width: 1100px; }
.dash-header { margin-bottom: 28px; border-bottom: 1px solid var(--hairline); padding-bottom: 20px; }
.dash-header h1 { font-size: 22px; font-weight: 900; letter-spacing: -.5px; }
.dash-header p { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ── KPI cards ───────────────────────────────────────────────────────────────── */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--hairline); margin-bottom: 28px; }
.kpi-card { background: var(--canvas); padding: 22px 24px; border-right: 1px solid var(--hairline); position: relative; }
.kpi-card::before { content: ''; position: absolute; top: 0; left: 0; width: 10px; height: 10px; background: var(--blue); }
.kpi-card:last-child { border-right: none; }
.kpi-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin-bottom: 8px; }
.kpi-value { font-size: 28px; font-weight: 900; letter-spacing: -1px; color: var(--ink); }
.kpi-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.budget-bar-wrap { background: var(--canvas-soft); border-radius: 0; height: 4px; margin-top: 10px; }
.budget-bar { height: 100%; background: var(--blue); transition: width .5s; }
.budget-bar.warn { background: #f59e0b; }
.budget-bar.danger { background: var(--error); }

/* ── Data tables ─────────────────────────────────────────────────────────────── */
.table-wrap { background: var(--canvas); border: 1px solid var(--hairline); margin-bottom: 28px; position: relative; }
.table-wrap::before { content: ''; position: absolute; top: 0; left: 0; width: 12px; height: 12px; background: var(--blue); }
.table-heading { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--hairline); }
.table-heading h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); padding: 10px 20px; border-bottom: 1px solid var(--hairline); background: var(--canvas-soft); }
.data-table td { padding: 12px 20px; border-bottom: 1px solid var(--hairline); color: var(--body); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--canvas-soft); }
.empty-state { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 14px; }

/* ── Badges ──────────────────────────────────────────────────────────────────── */
.badge { display: inline-block; padding: 2px 8px; border-radius: var(--radius); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.badge-blue  { background: var(--blue-pale); color: var(--blue-dark); }
.badge-green { background: #dcfce7; color: #166534; }
.badge-gray  { background: var(--canvas-soft); color: var(--muted); border: 1px solid var(--hairline); }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .sidebar { display: none; }
  .dash-main { margin-left: 0; padding: 24px 20px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .hero .container { grid-template-columns: 1fr; }
  .feat-grid, .steps-grid, .pricing-grid { grid-template-columns: 1fr; }
  .feat-card { border-right: none; }
  .step-card, .price-card { border-right: none; border-bottom: 1px solid var(--hairline-dark); }
  .callout-grid, .stats-inner { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .navbar-links { display: none; }
  .kpi-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
}
