/* ============================================================
   GalimAI site styles
   Layered on top of tokens.css
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--warm-ivory);
  color: var(--fg-1);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ---------- LAYOUT ---------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.container--prose { max-width: 760px; margin: 0 auto; padding: 0 40px; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  background: rgba(255, 250, 235, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-warm);
}
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav__brand-mark { width: 36px; height: 36px; display: block; }
.nav__brand-word {
  font-family: var(--font-display); font-size: 24px;
  letter-spacing: -0.02em; color: var(--fg-1);
}
.nav__brand-word .accent { color: var(--mistral-orange); }
.nav__links { display: flex; gap: 32px; }
.nav__link {
  text-decoration: none; color: var(--fg-1); font-size: 14px; font-weight: 500;
  padding: 6px 0; border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast) var(--ease-out);
}
.nav__link:hover { border-bottom-color: var(--fg-1); }
.nav__link.is-active { border-bottom-color: var(--mistral-orange); }
.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__ghost {
  text-decoration: none; color: var(--fg-1); font-size: 14px; font-weight: 500;
  white-space: nowrap;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 14px 22px;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out);
  cursor: pointer;
}
.btn--lg { padding: 16px 26px; font-size: 14px; }
.btn--primary { background: var(--mistral-black); color: #fff; border-color: var(--mistral-black); }
.btn--primary:hover { background: #000; }
.btn--secondary { background: var(--cream); color: var(--mistral-black); border-color: var(--cream); }
.btn--secondary:hover { background: #ffe89a; }
.btn--brand { background: var(--brand-purple); color: #fff; border-color: var(--brand-purple); }
.btn--brand:hover { background: var(--brand-purple-dk); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn--ghost-light:hover { background: rgba(255,255,255,0.1); }
.btn--outline { background: transparent; color: var(--fg-1); border-color: var(--fg-1); }
.btn--outline:hover { background: var(--fg-1); color: #fff; }

/* ---------- ATOMS ---------- */
.eyebrow {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--mistral-orange);
  margin-bottom: 18px;
}
.eyebrow--muted { color: var(--fg-2); }
.eyebrow--gold { color: var(--brand-purple-lt); }

.section { padding: 120px 0; }
.section--ivory { background: var(--warm-ivory); }
.section--cream { background: var(--cream); }
.section--dark { background: var(--mistral-black); color: #fff; }
.section--tight { padding: 80px 0; }

/* ---------- DISPLAY HEADLINES ---------- */
.dhead {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  line-height: 0.95;
  margin: 0;
  text-wrap: balance;
}
.dhead--xl { font-size: clamp(56px, 9vw, 112px); }
.dhead--lg { font-size: clamp(48px, 7vw, 84px); }
.dhead--md { font-size: clamp(40px, 5vw, 64px); line-height: 1; }
.dhead--sm { font-size: clamp(32px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.03em; }
.dhead .accent { color: var(--mistral-orange); }
.dhead .dim { color: var(--fg-3); }

.lede {
  font-size: 19px; line-height: 1.55; color: var(--fg-1);
  max-width: 56ch; margin: 0; text-wrap: pretty;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--mistral-black); color: #fff;
  padding: 80px 0 0; overflow: hidden;
}
.footer__top {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px;
  padding-bottom: 56px; border-bottom: 1px solid #3d3d3d;
}
.footer__tag { font-size: 14px; line-height: 1.55; color: #d6c8ff; margin: 18px 0 0; max-width: 320px; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer__col-hd {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-purple-lt); margin-bottom: 14px;
}
.footer__lk {
  display: block; color: #fff; text-decoration: none;
  font-size: 14px; margin-bottom: 8px; opacity: 0.85;
  transition: opacity var(--t-fast) var(--ease-out);
}
.footer__lk:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.footer__huge {
  margin: 40px 0 -10px;
  padding: 0 40px;
  display: flex; align-items: flex-end; justify-content: flex-start;
  overflow: hidden;
}
.footer__huge img {
  width: 100%; max-width: 1280px;
  height: auto; display: block;
  opacity: 0.95;
}
.footer__fine {
  border-top: 1px solid #3d3d3d;
  padding: 18px 40px;
  font-size: 12px; color: #d6c8ff; letter-spacing: 0.04em;
  display: flex; justify-content: space-between; align-items: center;
}
.footer__fine a { color: inherit; text-decoration: none; opacity: 0.8; }
.footer__fine a:hover { opacity: 1; text-decoration: underline; }

/* ---------- CARD ---------- */
.card {
  background: #fff; border: 1px solid var(--border-warm);
  border-radius: var(--radius-xs);
  padding: 28px;
  transition: transform var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out);
}
.card--hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- FORMS ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-2);
}
.field__input,
.field__textarea,
.field__select {
  font-family: inherit; font-size: 16px; color: var(--fg-1);
  background: #fff;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-xs);
  padding: 14px 16px;
  transition: border-color var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out);
  width: 100%;
}
.field__input:focus,
.field__textarea:focus,
.field__select:focus {
  outline: none;
  border-color: var(--mistral-black);
  box-shadow: 0 0 0 3px rgba(250, 82, 15, 0.15);
}
.field__textarea { resize: vertical; min-height: 140px; line-height: 1.5; }

/* ---------- UTILITIES ---------- */
.divider { height: 1px; background: var(--border-warm); border: 0; margin: 0; }
.divider--strong { background: var(--mistral-black); }
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 24px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .nav { padding: 14px 20px; }
  .nav__links { display: none; }
  .container, .container--prose { padding: 0 20px; }
  .section { padding: 72px 0; }
  .section--tight { padding: 56px 0; }
  .footer__top { grid-template-columns: 1fr; gap: 48px; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .footer__huge { font-size: 26vw; margin: 32px 0 -28px; padding: 0 20px; }
  .footer__fine { padding: 18px 20px; flex-direction: column; gap: 8px; align-items: flex-start; }
}
