/* ============================================================
   SAGESTONE.CSS — Shared design system
   Used by: index.html, copilot.html
   ============================================================ */

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

/* ── DESIGN TOKENS ── */
:root {
  --bg:          #0D1412;
  --surface:     #121E1A;
  --surface2:    #172320;
  --surface3:    #0F1916;
  --border:      #1E2E2A;
  --border2:     #263830;
  --text:        #F0F7F5;
  --text-sec:    #A8C4BC;
  --muted:       #5A7A72;
  --subtle:      #243530;
  --accent:      #4DB89A;
  --accent-dim:  #2E7A62;
  --accent-bg:   rgba(77,184,154,0.08);
  --accent-bg2:  rgba(77,184,154,0.04);
  --green:       #4DB89A;
  --green-bg:    rgba(77,184,154,0.08);
  --amber:       #C4852A;
  --amber-bg:    rgba(196,133,42,0.08);
  --red:         #A05050;
  --red-bg:      rgba(160,80,80,0.08);
  --ff-display:  'Playfair Display', Georgia, serif;
  --ff-body:     'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 3rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
nav.scrolled {
  background: rgba(13,20,18,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--border);
}
.nav-logo {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.nav-links {
  display: flex; gap: 2.5rem; list-style: none;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-sec);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block; width: 24px; height: 1.5px;
  background: var(--text-sec);
  transition: all 0.3s;
}
.nav-mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--accent); }
.nav-close {
  position: absolute; top: 1.5rem; right: 2rem;
  font-size: 1.5rem; color: var(--muted);
  background: none; border: none; cursor: pointer;
}

/* ── LAYOUT ── */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2.5rem;
}
.container-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ── SECTION SPACING ── */
.s     { padding: 6rem 0; }
.s-lg  { padding: 8rem 0; }

/* ── EYEBROW / LABELS ── */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px; height: 1px;
  background: var(--accent);
}
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-sec);
  margin-bottom: 3rem;
  line-height: 1.7;
}

/* ── CTAs ── */
.cta-primary {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: opacity 0.2s, transform 0.2s;
}
.cta-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.cta-secondary {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-sec);
  text-decoration: none;
  border-bottom: 1px solid var(--border2);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.cta-secondary:hover { color: var(--accent); border-color: var(--accent); }
.cta-group {
  display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 4rem 2.5rem 3rem;
}
.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}
.footer-name {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.footer-tagline {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 340px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-sec);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-sebi {
  max-width: 860px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-sec);
  line-height: 1.7;
  opacity: 0.75;
}
.footer-sebi a { color: var(--accent); text-decoration: none; }

/* ── DIVIDER ── */
hr.thin { border: none; border-top: 1px solid var(--border); }

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── BACK LINK (used on inner pages) ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  nav { padding: 1.1rem 2rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .container, .container-wide { padding: 0 2rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links { align-items: flex-start; }
  .s { padding: 4.5rem 0; }
  .s-lg { padding: 5.5rem 0; }
}

@media (max-width: 560px) {
  nav { padding: 1rem 1.25rem; }
  .container, .container-wide { padding: 0 1.25rem; }
  footer { padding: 3rem 1.25rem 2rem; }
  .s { padding: 3.5rem 0; }
  .s-lg { padding: 4rem 0; }
  .cta-group { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
