/* ================================================================
   Quality Fullstack — shared styles
   Dark slate-blue theme, Geist throughout (no mono in chrome)
   ================================================================ */

:root {
  --bg:         #131722;
  --bg-2:       #181d2a;
  --surface:    #1a1f2e;
  --surface-2:  #232938;
  --surface-3:  #2b3344;

  --ink:        #ecedf0;
  --ink-soft:   #c2c7d2;
  --mute:       #7c8499;
  --mute-2:     #5a6178;

  --hairline:        rgba(255,255,255,0.07);
  --hairline-strong: rgba(255,255,255,0.14);

  --accent:      #5a96ee;
  --accent-ink:  #7eaef4;
  --accent-soft: rgba(90,150,238,0.14);
  --positive:    #46c596;
  --warn:        #e0a64a;

  --code-bg:     #0e1119;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --maxw:      1240px;
  --gutter:    32px;

  --shadow-sm: 0 1px 0 rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.25);
  --shadow:    0 1px 0 rgba(0,0,0,0.4), 0 16px 36px -16px rgba(0,0,0,0.6);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(90,150,238,0.35); color: var(--ink); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.mono { font-family: "Geist Mono", ui-monospace, "SFMono-Regular", monospace; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Eyebrow — small label above headings.
   No mono anymore: Geist sans, uppercase + tracking. */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

/* Headings */
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; }
h1 {
  font-size: clamp(46px, 6.2vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
}
h2 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.h-soft   { color: var(--ink-soft); font-weight: 500; }
.h-accent { color: var(--accent); }
.h-mute   { color: var(--mute); }

/* ============== NAV ============== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.scrolled { border-bottom-color: var(--hairline); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
}
.brand { display: flex; align-items: center; }
.brand img {
  height: 48px;
  width: auto;
  display: block;
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 14.5px;
  color: var(--ink-soft);
  transition: color .15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 14px; }
.lang {
  display: inline-flex; align-items: center;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 500;
}
.lang button {
  background: transparent; border: 0;
  padding: 6px 11px; cursor: pointer;
  color: var(--mute); font: inherit;
  letter-spacing: 0.04em;
}
.lang button.active { background: var(--ink); color: var(--bg); }

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border-radius: 999px;
  font-size: 14.5px; font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: #fff; }
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: var(--accent-ink); }
.btn-ghost {
  background: transparent;
  border-color: var(--hairline-strong);
  color: var(--ink-soft);
}
.btn-ghost:hover { border-color: var(--ink-soft); color: var(--ink); }
.btn .arrow { display: inline-block; transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============== SECTION HEAD ============== */
section { padding: 96px 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px;
  margin-bottom: 56px;
}
.section-head .left { max-width: 700px; }
.section-head h2 { margin: 14px 0 14px; }
.section-head p {
  color: var(--mute);
  font-size: 17px;
  max-width: 58ch;
  margin: 0;
}

/* ============== FOOTER ============== */
footer {
  background: var(--bg);
  border-top: 1px solid var(--hairline);
  padding: 56px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand img { height: 56px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: var(--mute); font-size: 14px; max-width: 32ch; margin: 0; }
.footer-col h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mute);
  margin: 0 0 14px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--ink-soft); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
  color: var(--mute-2);
}

/* ============== UTILITIES ============== */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============== RESPONSIVE BASE ============== */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-inner { height: 72px; }
  .brand img { height: 40px; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
  .brand img { height: 34px; }
  .nav-links { display: none; }
}
