﻿:root {
  --bg: #f4efe7;
  --ink: #1f2430;
  --muted: #5e6779;
  --line: rgba(31, 36, 48, 0.12);
  --accent: #a24d2a;
  --accent-soft: #d98f62;
  --accent-dark: #6b2f18;
  --success: #2e7259;
  --shadow: 0 24px 60px rgba(54, 33, 10, 0.12);
  --radius-xl: 28px;
  --container: min(1180px, calc(100vw - 40px));
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Aptos", "Segoe UI Variable", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, rgba(255, 240, 217, 0.95), transparent 34%), linear-gradient(180deg, #f8f3ea 0%, #efe4d4 42%, #e3d0ba 100%);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
.portal-background { inset: 0; overflow: hidden; pointer-events: none; position: fixed; z-index: 0; }
.portal-orb { border-radius: 999px; filter: blur(8px); opacity: 0.55; position: absolute; }
.portal-orb-a { background: linear-gradient(135deg, rgba(228, 173, 113, 0.85), rgba(162, 77, 42, 0.18)); height: 360px; right: -40px; top: 80px; width: 360px; }
.portal-orb-b { background: linear-gradient(135deg, rgba(120, 144, 156, 0.28), rgba(255, 255, 255, 0)); bottom: 40px; height: 280px; left: -60px; width: 280px; }
.portal-grid { background-image: linear-gradient(rgba(255,255,255,0.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.18) 1px, transparent 1px); background-size: 36px 36px; inset: 0; opacity: 0.32; position: absolute; }
.topbar, main, .site-footer { margin: 0 auto; position: relative; width: var(--container); z-index: 1; }
.topbar { align-items: center; display: flex; justify-content: space-between; padding: 22px 0 10px; }
main { flex: 1; width: var(--container); }
.brand { align-items: center; display: inline-flex; gap: 14px; }
.brand-mark { align-items: center; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%); border-radius: 16px; box-shadow: var(--shadow); color: #fffaf3; display: inline-flex; font-family: "Bahnschrift", "Franklin Gothic Demi", sans-serif; font-size: 1.15rem; height: 52px; justify-content: center; letter-spacing: 0.08em; width: 52px; }
.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-copy strong { font-family: "Bahnschrift", "Aptos Display", sans-serif; font-size: 1rem; letter-spacing: 0.04em; white-space: nowrap; }
.brand-copy small, .muted, .form-hint { color: var(--muted); }
.topnav { align-items: center; display: flex; gap: 14px; }
.topnav a, .topnav button { font-size: 0.96rem; }
.solid-link, .ghost-link, .ghost-button, .as-button { border-radius: 999px; display: inline-flex; justify-content: center; padding: 12px 20px; transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.solid-link, .as-button { background: linear-gradient(135deg, var(--accent-dark), var(--accent)); box-shadow: 0 12px 24px rgba(120, 44, 20, 0.24); color: #fffaf5; border: none; }
.ghost-link, .ghost-button { background: rgba(255, 252, 248, 0.68); border: 1px solid rgba(162, 77, 42, 0.14); color: var(--ink); }
.ghost-button { cursor: pointer; font: inherit; }
.solid-link:hover, .ghost-link:hover, .ghost-button:hover { transform: translateY(-1px); }
.large { font-size: 1rem; padding: 14px 24px; }
.hero, .auth-shell, .dashboard-hero { align-items: stretch; display: grid; gap: 24px; padding: 36px 0 24px; }
.hero { grid-template-columns: 1.15fr 0.85fr; min-height: 520px; }
.hero-home { grid-template-columns: 1fr; min-height: 460px; padding-top: 56px; }
.hero-home h1 { max-width: none; white-space: nowrap; }
.hero-copy, .auth-copy { display: flex; flex-direction: column; justify-content: center; }
.hero-copy-centered { align-items: center; text-align: center; width: 100%; }
.eyebrow, .card-label, .panel-tag, .section-tag { color: var(--accent); font-size: 0.84rem; font-weight: 700; letter-spacing: 0.12em; margin: 0 0 14px; text-transform: uppercase; }
h1, h2, h3 { font-family: "Bahnschrift", "Aptos Display", "Trebuchet MS", sans-serif; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(2.7rem, 5vw, 4.9rem); max-width: 12ch; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.35rem; }
.hero-text { color: var(--muted); font-size: 1.06rem; line-height: 1.8; margin: 18px 0 0; max-width: 62ch; }
.hero-text-wide { max-width: 760px; }
.hero-actions, .status-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-actions-centered { justify-content: center; }
.contact-note { color: var(--muted); font-size: 0.98rem; margin: 24px 0 0; }
.contact-note a { color: var(--accent-dark); font-weight: 600; }
.status-pill { align-items: center; background: rgba(255, 251, 245, 0.58); border: 1px solid rgba(31, 36, 48, 0.08); border-radius: 999px; display: inline-flex; gap: 10px; padding: 10px 16px; }
.status-dot { background: var(--success); border-radius: 999px; height: 10px; width: 10px; }
.glass-card { backdrop-filter: blur(18px); background: linear-gradient(180deg, rgba(255, 251, 245, 0.88), rgba(250, 243, 232, 0.72)); border: 1px solid rgba(255, 255, 255, 0.4); border-radius: var(--radius-xl); box-shadow: var(--shadow); padding: 28px; }
.tilt-card { align-self: center; transform: rotate(2deg); }
.feature-list { color: var(--ink); display: grid; gap: 14px; line-height: 1.6; margin: 22px 0 0; padding-left: 18px; }
.grid-section, .dashboard-grid { display: grid; gap: 22px; padding: 8px 0 42px; }
.grid-section { grid-template-columns: repeat(3, 1fr); }
.application-showcase { padding-top: 0; }
.showcase-card { min-height: 220px; }
.showcase-card h3 { margin-bottom: 14px; }
.endpoint-row { align-items: center; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; }
.endpoint-row:first-of-type { border-top: none; }
.endpoint-row a { color: var(--accent-dark); max-width: 60%; overflow-wrap: anywhere; text-align: right; }
.code-block { background: rgba(38, 34, 31, 0.94); border-radius: 18px; color: #fff6ea; margin-top: 18px; overflow-x: auto; padding: 16px 18px; }
.code-block code { font-family: "Cascadia Code", "Consolas", monospace; font-size: 0.93rem; }
.auth-shell { grid-template-columns: 0.95fr 1.05fr; min-height: calc(100vh - 120px); }
.auth-card { align-self: center; max-width: 540px; }
.auth-card.wide { max-width: 660px; }
.stack-form { display: grid; gap: 18px; }
.two-columns { grid-template-columns: 1fr 1fr; }
.full-span, .full-width { grid-column: 1 / -1; width: 100%; }
label { display: grid; gap: 10px; }
label span { color: var(--ink); font-size: 0.96rem; font-weight: 600; }
input { background: rgba(255, 255, 255, 0.86); border: 1px solid rgba(31, 36, 48, 0.1); border-radius: 14px; color: var(--ink); font: inherit; padding: 14px 16px; }
input:focus { border-color: rgba(162, 77, 42, 0.4); box-shadow: 0 0 0 4px rgba(162, 77, 42, 0.08); outline: none; }
.form-message { border-radius: 14px; display: none; font-size: 0.95rem; line-height: 1.6; padding: 14px 16px; }
.form-message.is-visible { display: block; }
.form-message.is-error { background: rgba(188, 82, 58, 0.14); color: #842d1f; }
.form-message.is-success { background: rgba(46, 114, 89, 0.14); color: #18543f; }
.dashboard-hero { align-items: stretch; grid-template-columns: 1fr; }
.dashboard-hero > div { width: 100%; }
#dashboard-greeting { font-size: clamp(1.35rem, 2.5vw, 2.45rem); max-width: none; }
.dashboard-hero .hero-text, .dashboard-hero .form-hint { max-width: none; width: 100%; }
.dashboard-grid { grid-template-columns: repeat(2, 1fr); }
.full-span-card { grid-column: 1 / -1; }
.section-head { align-items: center; display: flex; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.card-stack { display: grid; gap: 14px; }
.empty-state { color: var(--muted); min-height: 120px; }
.data-card { background: rgba(255, 255, 255, 0.66); border: 1px solid rgba(31, 36, 48, 0.08); border-radius: 18px; display: grid; gap: 8px; padding: 18px; }
.data-card h4 { font-family: "Bahnschrift", "Aptos Display", sans-serif; font-size: 1.08rem; margin: 0; }
.meta-row { align-items: center; color: var(--muted); display: flex; flex-wrap: wrap; gap: 12px; font-size: 0.92rem; }
.application-card { gap: 18px; }
.application-card-main { align-items: center; display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) 160px; }
.application-copy { display: grid; gap: 12px; min-width: 0; }
.application-meta-row { gap: 10px; }
.meta-pill { background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(31, 36, 48, 0.08); border-radius: 999px; color: var(--muted); padding: 8px 12px; }
.meta-pill-accent { background: rgba(162, 77, 42, 0.1); border-color: rgba(162, 77, 42, 0.14); color: var(--accent-dark); }
.quota-ring-card { display: grid; gap: 8px; justify-items: center; }
.quota-ring { align-content: center; aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(58, 124, 255, 0.08), 0 18px 36px rgba(58, 124, 255, 0.12); display: grid; justify-items: center; padding: 24px 12px; width: 148px; }
.quota-ring.is-empty { background: radial-gradient(circle, rgba(255,255,255,0.96) 0 54%, transparent 55%), conic-gradient(from -90deg, rgba(94, 103, 121, 0.2) 0 100%), radial-gradient(circle, #ffffff 62%, #f4f5f8 100%); box-shadow: inset 0 0 0 1px rgba(94, 103, 121, 0.08), 0 18px 36px rgba(31, 36, 48, 0.08); }
.quota-ring.is-unlimited { background: radial-gradient(circle, rgba(255,255,255,0.96) 0 54%, transparent 55%), conic-gradient(from -90deg, #a24d2a 0 78%, rgba(217, 143, 98, 0.22) 78% 100%), radial-gradient(circle, #ffffff 62%, #fbefe6 100%); box-shadow: inset 0 0 0 1px rgba(162, 77, 42, 0.08), 0 18px 36px rgba(162, 77, 42, 0.14); }
.quota-ring-label { color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.quota-ring-value { color: #244d99; font-family: "Bahnschrift", "Aptos Display", sans-serif; font-size: 1.45rem; line-height: 1.05; text-align: center; }
.quota-ring.is-unlimited .quota-ring-value, .quota-ring.is-empty .quota-ring-value { color: var(--accent-dark); font-size: 1.18rem; }
.quota-ring-caption { color: var(--ink); font-family: "Bahnschrift", "Aptos Display", sans-serif; font-size: 1rem; letter-spacing: 0.03em; }
.quota-ring-note { color: var(--muted); font-size: 0.82rem; }
.launch-button { background: transparent; border: 1px solid rgba(162, 77, 42, 0.2); border-radius: 999px; color: var(--accent-dark); cursor: pointer; font: inherit; justify-self: start; margin-top: 8px; padding: 10px 14px; }
.launch-button:hover { background: rgba(162, 77, 42, 0.08); }
.site-footer {
  border-top: 1px solid rgba(31, 36, 48, 0.08);
  color: var(--muted);
  padding: 0 0 22px;
  text-align: center;
}
.site-footer small {
  display: block;
  font-size: 0.78rem;
  line-height: 1.8;
  text-align: center;
}
.site-footer small span,
.site-footer small a {
  display: block;
}
.site-footer a {
  color: var(--accent-dark);
}
@media (max-width: 980px) {
  .hero, .auth-shell, .dashboard-hero, .grid-section, .dashboard-grid { grid-template-columns: 1fr; }
  .tilt-card { transform: none; }
  .topbar { align-items: flex-start; flex-direction: column; gap: 18px; }
  .topnav { flex-wrap: wrap; }
  .two-columns { grid-template-columns: 1fr; }
  .application-card-main { grid-template-columns: 1fr; }
  .quota-ring-card { justify-items: start; }
}
