/* ===========================
   GPA Calculator — Global CSS
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Epilogue:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

:root {
  --ink: #0a0a12;
  --ink-soft: #2d2d3a;
  --ink-mute: #6b6b80;
  --bg: #f8f7f4;
  --bg-alt: #ffffff;
  --accent: #2254f4;
  --accent-dark: #1640cc;
  --accent-light: #eef1fe;
  --accent-glow: rgba(34, 84, 244, 0.15);
  --green: #00c9a7;
  --amber: #f59e0b;
  --red: #ef4444;
  --border: #e4e3de;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 2px 12px rgba(10,10,18,0.08);
  --shadow-lg: 0 8px 40px rgba(10,10,18,0.12);
  --font-head: 'Syne', sans-serif;
  --font-body: 'Epilogue', sans-serif;
  --nav-h: 68px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { color: var(--ink-soft); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── LAYOUT ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--sm { padding: 64px 0; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(248,247,244,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex; align-items: center;
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}
.nav__logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.03em;
  display: flex; align-items: center; gap: 8px;
}
.nav__logo span { color: var(--accent); }
.nav__logo svg { width: 28px; height: 28px; }
.nav__links {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
}
.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}
.nav__links a:hover, .nav__links a.active {
  color: var(--accent);
  background: var(--accent-light);
  text-decoration: none;
}
.nav__cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: 9px !important;
}
.nav__cta:hover { background: var(--accent-dark) !important; }
.nav__toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; color: var(--ink);
}
body { padding-top: var(--nav-h); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 10px;
  border: none; cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px var(--accent-glow);
  text-decoration: none; color: #fff;
}
.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn--outline:hover {
  background: var(--accent-light);
  text-decoration: none;
}
.btn--ghost {
  background: var(--bg-alt);
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn--sm { padding: 8px 16px; font-size: 0.85rem; }
.btn--danger {
  background: #fef2f2;
  color: var(--red);
  border: 1px solid #fecaca;
}
.btn--danger:hover { background: #fee2e2; text-decoration: none; }

/* ── BADGE ── */
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--accent-light);
  color: var(--accent);
}
.badge--green { background: #d1fae5; color: #059669; }
.badge--amber { background: #fef3c7; color: #b45309; }

/* ── CARDS ── */
.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.25s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: transparent;
}

/* ── FOOTER ── */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 36px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__brand {}
.footer__logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.footer__logo span { color: var(--accent); }
.footer__tagline { font-size: 0.9rem; line-height: 1.6; }
.footer__col h4 {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer__col ul { list-style: none; }
.footer__col ul li { margin-bottom: 10px; }
.footer__col ul a {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer__col ul a:hover { color: #fff; text-decoration: none; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* ── SECTION LABELS ── */
.section-label {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}
.section-head { margin-bottom: 16px; }
.section-sub {
  font-size: 1.1rem;
  color: var(--ink-mute);
  max-width: 560px;
  margin-bottom: 48px;
}

/* ── DIVIDERS ── */
hr.fancy {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav__links { display: none; flex-direction: column; }
  .nav__links.open {
    display: flex;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .nav__links.open li { width: 100%; }
  .nav__links.open a { display: block; padding: 12px 16px; }
  .nav__toggle { display: flex; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}
