/* Lighthouse Developer Portal — shares the brand design language of public/landing/index.html
   (light default + dark toggle, signature gradients, soft depth, pill CTAs) with the
   accent pair set to ORANGE + BLUE per request. */
:root {
  --bg-page:      linear-gradient(150deg, #d2edf3 0%, #ffdcb9 100%);
  --bg-card:      #ffffff;
  --bg-header:    #0d1117;
  --bg-soft:      #f3f7fb;
  --text:         #16233b;
  --muted:        #56657d;
  --accent:       #1f6fd6;   /* blue */
  --accent-soft:  rgba(31,111,214,0.10);
  --border:       rgba(10,30,60,0.10);
  --shadow-sm:    0 2px 10px rgba(20,40,80,0.08);
  --shadow-md:    0 8px 24px rgba(20,40,80,0.12);
  --shadow-hover: 0 16px 40px rgba(20,40,80,0.18);
  --orange:       #ff8c00;
  --orange-hover: #e67e00;
  --ok:           #1ca65b;
  --warn:         #c98a00;
  --bad:          #d83a52;
  --radius:       16px;
  --radius-sm:    10px;
  --maxw:         1080px;
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
}
[data-theme="dark"] {
  --bg-page:      linear-gradient(150deg, #0d1117 0%, #16213e 100%);
  --bg-card:      #0f2744;
  --bg-header:    #060d18;
  --bg-soft:      #0a1f38;
  --text:         #e8f4fd;
  --muted:        #8aafc8;
  --accent:       #4895ef;
  --accent-soft:  rgba(72,149,239,0.14);
  --border:       rgba(255,255,255,0.08);
  --shadow-sm:    0 2px 10px rgba(0,0,0,0.35);
  --shadow-md:    0 8px 24px rgba(0,0,0,0.45);
  --shadow-hover: 0 16px 40px rgba(0,0,0,0.55);
  --orange:       #ff9800;
  --orange-hover: #f57c00;
}
* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-page); background-attachment: fixed;
  color: var(--text); min-height: 100vh; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }

/* ── top bar ── */
.topbar { background: var(--bg-header); color: #e8f4fd; }
.topbar .container { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 18px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand .logo-mark { width: 30px; height: 30px; filter: drop-shadow(0 2px 6px rgba(255,140,0,.35)); }
.brand small { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #7a9bb5; font-weight: 600; margin-top: -2px; }
.nav-links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav-links a { color: #b9cbe2; font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.theme-toggle { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06); color: #fff; cursor: pointer; font-size: 16px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; transition: transform .2s var(--ease); }
.theme-toggle:hover { transform: scale(1.08); background: rgba(255,255,255,.12); }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg-card); color: var(--text);
  padding: 11px 22px; border-radius: 50px; font-size: 15px; font-weight: 600; font-family: inherit;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease); }
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn.primary { background: var(--orange); border-color: var(--orange); color: #2b1a00;
  box-shadow: 0 4px 14px rgba(255,140,0,.30); }
.btn.primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); box-shadow: 0 8px 22px rgba(255,140,0,.40); }
.btn.ghost { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn.ghost.on-dark { border-color: rgba(255,255,255,.4); color: #fff; }
.btn.sm { padding: 8px 16px; font-size: 13px; }
.btn.block { width: 100%; }
.btn.danger { background: transparent; border-color: var(--bad); color: var(--bad); box-shadow: none; }
.btn.danger:hover { background: var(--bad); color: #fff; box-shadow: var(--shadow-sm); }

/* ── eyebrow / titles ── */
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.section-title { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 8px 0 0; }
.section-sub { color: var(--muted); margin-top: 10px; font-size: 16px; }
.center { text-align: center; }

/* ── hero ── */
.hero { padding: 86px 0 40px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 52px; line-height: 1.05; letter-spacing: -.03em; font-weight: 800; margin: 14px 0 18px; }
.hero h1 .grad { background: linear-gradient(115deg, var(--orange), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 540px; }
.hero .cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

/* code sample card in hero */
.code-card { background: var(--bg-header); border-radius: var(--radius); box-shadow: var(--shadow-hover);
  overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.code-card .bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; background: rgba(255,255,255,.03); border-bottom: 1px solid rgba(255,255,255,.07); }
.code-card .bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.code-card .bar i:nth-child(1){ background:#ff5f57 } .code-card .bar i:nth-child(2){ background:#febc2e } .code-card .bar i:nth-child(3){ background:#28c840 }
.code-card .bar span { margin-left: 8px; color: #7a9bb5; font-size: 12.5px; font-family: ui-monospace, monospace; }
.code-card pre { margin: 0; padding: 20px; overflow-x: auto; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; line-height: 1.7; color: #cfe1f5; white-space: pre; }
.code-card .k { color: #ff9800; } .code-card .s { color: #7ee0a6; } .code-card .c { color: #5d7790; }

/* ── feature grid ── */
.features { padding: 30px 0 10px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 34px; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 26px 24px; transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card .ic { width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.card .ic svg { width: 24px; height: 24px; }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ── tiers ── */
.tiers { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 34px; }
.tier { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 28px; position: relative; }
.tier.featured { border-color: var(--orange); box-shadow: 0 10px 30px rgba(255,140,0,.18); }
.tier.featured::before { content: "Popular"; position: absolute; top: -11px; right: 20px; background: var(--orange); color: #2b1a00;
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: 50px; }
.tier h3 { font-size: 19px; }
.tier .price { font-size: 30px; font-weight: 800; margin: 8px 0 2px; color: var(--text); }
.tier .price small { font-size: 14px; font-weight: 600; color: var(--muted); }
.tier ul { list-style: none; margin: 16px 0 0; padding: 0; }
.tier li { color: var(--muted); font-size: 14px; padding: 7px 0 7px 26px; position: relative; border-top: 1px solid var(--border); }
.tier li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* ── auth ── */
.auth-wrap { max-width: 440px; margin: 56px auto; }
.panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 34px; }
.panel h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.panel .sub { color: var(--muted); font-size: 14.5px; margin: 6px 0 22px; }
.field { margin-top: 16px; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
input, select { width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-soft); color: var(--text); font-size: 15px; font-family: inherit; transition: border .15s var(--ease), box-shadow .15s var(--ease); }
input:focus, select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,140,0,.18); }
.form-actions { margin-top: 24px; }
.muted-link { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }

/* ── alerts ── */
.alert { padding: 12px 15px; border-radius: var(--radius-sm); font-size: 14px; margin: 16px 0; display: none; }
.alert.show { display: block; }
.alert.error { background: rgba(216,58,82,.12); border: 1px solid rgba(216,58,82,.4); color: var(--bad); }
.alert.ok { background: rgba(28,166,91,.12); border: 1px solid rgba(28,166,91,.4); color: var(--ok); }

/* ── dashboard ── */
.dash-head { display: flex; align-items: center; gap: 16px; margin: 40px 0 6px; flex-wrap: wrap; }
.dash-head h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.dash-head .spacer { flex: 1; }
.dash-head .org { color: var(--muted); font-size: 14px; }
.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 22px 0 36px; }
.stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px 22px; }
.stat .n { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--accent); }
.stat .l { color: var(--muted); font-size: 13px; margin-top: 2px; }
.subhead { display: flex; align-items: center; gap: 14px; margin: 36px 0 16px; flex-wrap: wrap; }
.subhead h2 { font-size: 20px; font-weight: 700; }
.subhead .spacer { flex: 1; }
.table-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 14px; }
th { color: var(--muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; background: var(--bg-soft); }
tr:last-child td { border-bottom: none; }
.pricing-table { overflow-x: auto; }
.pricing-table td { white-space: nowrap; }
.badge { font-size: 11.5px; padding: 4px 11px; border-radius: 50px; font-weight: 700; letter-spacing: .02em; }
.badge.active { background: rgba(28,166,91,.14); color: var(--ok); }
.badge.revoked { background: rgba(216,58,82,.14); color: var(--bad); }
.badge.expired { background: rgba(201,138,0,.16); color: var(--warn); }
code, .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.key-reveal { background: var(--bg-header); color: #cfe1f5; border-radius: var(--radius-sm);
  padding: 16px 18px; margin: 16px 0; display: none; box-shadow: var(--shadow-md); }
.key-reveal.show { display: block; }
.key-reveal .lbl { color: #ff9800; font-weight: 700; font-size: 13px; }
.key-reveal .val { margin-top: 8px; font-family: ui-monospace, monospace; font-size: 13px; word-break: break-all; display: flex; gap: 10px; align-items: center; }
.copy-btn { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; border-radius: 8px; padding: 5px 10px; font-size: 12px; cursor: pointer; flex-shrink: 0; }
.copy-btn:hover { background: rgba(255,255,255,.18); }

/* ── footer ── */
.footer { border-top: 1px solid var(--border); margin-top: 70px; padding: 30px 0; color: var(--muted); font-size: 13.5px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer .spacer { flex: 1; }
.footer a { color: var(--muted); } .footer a:hover { color: var(--accent); }

.hidden { display: none !important; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 54px; gap: 32px; }
  .hero h1 { font-size: 40px; }
  .nav-links { gap: 14px; }
  .nav-links a.hide-sm { display: none; }
}
