/* ============================================
   Kerned — Global Stylesheet
   ============================================ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --ink: #0E0E0C;
  --ink-inverse: #FAFAF7;
  --ink-muted: #7A7A70;
  --bg-light: #F4F4EF;
  --bg-dark: #18181A;
  --accent: #DBFA53;
  --border: #E8E8E0;
  --border-dark: rgba(255,255,255,0.12);
  --white: #FFFFFF;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(14,14,12,0.04);
  --shadow-md: 0 4px 12px rgba(14,14,12,0.08);
  --shadow-lg: 0 12px 32px rgba(14,14,12,0.12);
  --shadow-card: 0 24px 48px -12px rgba(14,14,12,0.16);
}

html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg-light);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); }
img { max-width: 100%; display: block; }


/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  height: 72px;
  padding: 0 32px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--bg-light);
  z-index: 50;
}
.nav__logo { display: flex; align-items: center; gap: 10px; padding: 0 12px; justify-self: start; }
.nav__links { justify-self: center; }
.nav__actions { justify-self: end; }
.nav__mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent); display: grid; place-items: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 14px; color: var(--ink);
}
.nav__name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 20px; letter-spacing: -0.4px; color: var(--ink);
}
.nav__badge {
  padding: 3px 8px; background: rgba(14,14,12,.07); border-radius: 4px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 500;
  letter-spacing: 0.8px; color: var(--ink-muted);
}
.nav__links { display: flex; gap: 36px; }
.nav__links a {
  font-size: 14px; font-weight: 500; color: var(--ink-muted);
  position: relative; transition: color 0.15s;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a.active { color: var(--ink); }
.nav__links a.active::after {
  content: ''; position: absolute; bottom: -6px; left: 50%;
  transform: translateX(-50%); width: 4px; height: 4px;
  border-radius: 50%; background: var(--accent);
}
.nav__actions { display: flex; align-items: center; gap: 20px; padding: 0 12px; }
.nav__signin { font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; }
.nav__cta {
  display: flex; align-items: center; gap: 8px; padding: 12px 20px; height: 47px;
  background: var(--accent); border-radius: 999px; font-weight: 600; font-size: 14px;
  color: var(--ink); cursor: pointer; letter-spacing: -0.1px; transition: opacity .15s;
}
.nav__cta:hover { opacity: .88; }

/* Avatar (logged-in) */
.nav__user { position: relative; }
.nav__avatar {
  width: 32px; height: 32px; border-radius: 999px;
  background: var(--ink); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 13px;
  cursor: pointer; border: 0; padding: 0;
}
.nav__dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; width: 240px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-lg);
  z-index: 200; overflow: hidden;
  animation: dd-open .1s ease;
}
@keyframes dd-open {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav__dd-identity { padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 2px; }
.nav__dd-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.nav__dd-email { font-size: 12px; color: var(--ink-muted); }
.nav__dd-divider { height: 1px; background: var(--border); margin: 2px 0; }
.nav__dd-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 16px;
  font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none;
  transition: background .12s; width: 100%; text-align: left; border: 0; background: transparent; cursor: pointer;
}
.nav__dd-item:hover { background: var(--bg-light); }
.nav__dd-signout { color: #dc2626; }
.nav__dd-signout:hover { background: #fef2f2; }
.nav__dd-item .material-symbols-rounded { font-size: 18px; color: var(--ink-muted); }


/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  background: var(--ink); color: var(--ink-inverse); padding: 14px 22px;
  border-radius: 999px; font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px; transition: opacity .15s;
}
.btn-primary:hover { opacity: .88; }
.btn-secondary {
  padding: 14px 22px; border-radius: 999px;
  border: 1px solid var(--border); font-size: 14px; font-weight: 600;
  color: var(--ink); background: var(--white);
  display: inline-flex; align-items: center; gap: 8px; transition: border-color .15s;
}
.btn-secondary:hover { border-color: var(--ink); }
.btn-accent {
  background: var(--accent); color: var(--ink); padding: 14px 22px;
  border-radius: 999px; font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px; transition: opacity .15s;
}
.btn-accent:hover { opacity: .9; }


/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 80px; background: var(--bg-light); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; margin-bottom: 32px;
}
.section-label {
  display: flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500;
  letter-spacing: 1.4px; color: var(--ink-muted); margin-bottom: 12px;
}
.section-label .line { width: 24px; height: 1px; background: var(--ink); }
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px; font-weight: 600; letter-spacing: -1.6px;
}
.section-title em { font-family: 'Fraunces', serif; font-style: italic; font-weight: 600; }
.section-lead { font-size: 16px; color: var(--ink-muted); max-width: 460px; line-height: 1.5; }
.section-link { font-size: 14px; font-weight: 500; color: var(--ink-muted); transition: color .15s; }
.section-link:hover { color: var(--ink); }


/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--ink); color: var(--ink-inverse);
  padding: 64px 80px; display: flex; flex-direction: column; gap: 48px;
}
.footer__top { display: flex; justify-content: space-between; gap: 60px; }
.footer__brand { width: 320px; display: flex; flex-direction: column; gap: 16px; }
.footer__brand-logo { display: flex; align-items: center; gap: 10px; }
.footer__brand-mark {
  width: 28px; height: 28px; border-radius: 8px; background: var(--accent);
  display: grid; place-items: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 14px; color: var(--ink);
}
.footer__brand-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 22px; letter-spacing: -0.4px; }
.footer__desc { font-size: 14px; line-height: 1.55; color: rgba(250,250,247,.6); }
.footer__socials { display: flex; gap: 10px; }
.footer__social-btn {
  width: 34px; height: 34px; border-radius: 999px;
  background: rgba(255,255,255,.07); display: grid; place-items: center;
  cursor: pointer; font-size: 13px; transition: background .15s;
  color: rgba(250,250,247,.85); text-decoration: none;
}
.footer__social-btn:hover { background: rgba(255,255,255,.14); color: #fafaf7; }
.footer__social-btn svg { width: 15px; height: 15px; }
.footer__cols { display: flex; gap: 64px; }
.footer__col { display: flex; flex-direction: column; gap: 14px; }
.footer__col h5 {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 13px;
  letter-spacing: 0.4px; color: var(--ink-inverse); margin: 0;
}
.footer__col a { font-size: 13px; color: rgba(250,250,247,.6); transition: color .15s; }
.footer__col a:hover { color: var(--ink-inverse); }
.footer__divider { height: 1px; background: rgba(255,255,255,.1); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; }
.footer__copy { font-size: 13px; color: rgba(255,255,255,.5); }
.footer__live { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,.7); }
.footer__live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  .section { padding: 60px 40px; }
  .footer { padding: 48px 40px; }
  .footer__top { flex-direction: column; gap: 32px; }
  .footer__cols { flex-wrap: wrap; gap: 32px; }
}
@media (max-width: 768px) {
  .nav { padding: 0 16px; height: 56px; }
  .nav__links { display: none; }
  .section { padding: 40px 16px; }
  .footer { padding: 40px 16px 24px; }
}
