/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #18181b;
  --nav-bg: rgba(24,24,27,0.88);
  --surface: rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.10);
  --border-bright: rgba(255,255,255,0.16);
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;

  /* ── Accent scale ── */
  --accent:           #f97316;          /* orange-500 — buttons, strong fill */
  --accent-2:         #fb923c;          /* orange-400 — icon dot, logo start */
  --accent-end:       #ef4444;          /* red-500    — gradient end          */
  --accent-text:      #fdba74;          /* orange-300 — text links, icon tint */

  /* ── Accent rgba helpers ── */
  --accent-glow-sm:   rgba(249,115,22,0.25);
  --accent-glow-md:   rgba(249,115,22,0.30);
  --accent-glow-lg:   rgba(249,115,22,0.38);
  --accent-glow-xl:   rgba(249,115,22,0.45);
  --accent-bg-faint:  rgba(251,146,60,0.07);
  --accent-bg-subtle: rgba(251,146,60,0.12);
  --accent-bg-focus:  rgba(251,146,60,0.03);
  --accent-border:    rgba(251,146,60,0.15);
  --accent-border-md: rgba(251,146,60,0.25);
  --border-focus:     rgba(251,146,60,0.50);
}

html { color-scheme: dark; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── View Transitions ── */
@view-transition { navigation: auto; }

::view-transition-old(root) {
  animation: 180ms ease both fade-out;
}
::view-transition-new(root) {
  animation: 220ms ease both fade-in;
}

@keyframes fade-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(9,9,11,0.85);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 0.5rem;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--text-primary); background: var(--surface-hover); }
.nav-link[aria-current="page"] { color: var(--text-primary); background: var(--surface-hover); }

.nav-cta {
  margin-left: 0.5rem;
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
  font-weight: 650;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  border-radius: 0.5rem;
  box-shadow: 0 0 14px var(--accent-glow-sm);
  transition: opacity 0.15s, box-shadow 0.15s;
}
.nav-cta:hover { opacity: 0.88; box-shadow: 0 0 20px var(--accent-glow-lg); }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 2rem; height: 2rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 900; color: #fff;
  box-shadow: 0 0 12px var(--accent-glow-sm);
}

.logo-name {
  font-size: 1.0625rem; font-weight: 700;
  background: linear-gradient(to right, #fdba74, #fb923c);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  max-width: 60rem;
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 16rem;
}

.footer-tagline {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-cols {
  display: flex;
  gap: 3.5rem;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  min-width: 8rem;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  max-width: 60rem;
  margin: 0 auto;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 1.25rem;
}
.footer-bottom-links a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color 0.15s;
}
.footer-bottom-links a:hover { color: var(--text-secondary); }

@media (max-width: 600px) {
  .nav-links .nav-link { display: none; }
  .footer-inner { flex-direction: column; gap: 2rem; }
  .footer-cols { gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
