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

:root {
  --page-bg:   #ffffff;
  --hero-bg:   #080810;
  --surface2:  #f8f8f8;
  --border:    rgba(0,0,0,0.08);
  --teal:      #00d4c2;
  --text-dark: #0c0c0e;
  --muted-dark:#6b6b76;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--page-bg); color: var(--text-dark);
  font-family: var(--font-body); font-size: 17px;
  line-height: 1.65; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--page-bg); }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }

/* ── Layout ─────────────────────────────────────────────────────── */
.container    { max-width: 1160px; margin: 0 auto; padding: 0 40px; }
.section      { padding: 100px 0; }
.divider      { height: 1px; background: var(--border); }
.divider-dark { height: 1px; background: rgba(255,255,255,0.06); }

/* ── Tags ───────────────────────────────────────────────────────── */
.tag-dark {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 100px; margin-bottom: 24px;
}
.tag-light {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted-dark); padding: 6px 14px;
  border: 1px solid rgba(0,0,0,0.12); border-radius: 100px; margin-bottom: 24px;
}

/* ── Typography ─────────────────────────────────────────────────── */
.h-hero { font-family:var(--font-head); font-size:clamp(38px,6.5vw,96px); font-weight:800; line-height:1.02; letter-spacing:-0.03em; color:#fff; }
.h-hero .dim { color: rgba(255,255,255,0.35); }
.h-xl  { font-family:var(--font-head); font-size:clamp(26px,4vw,60px);  font-weight:700; line-height:1.05; letter-spacing:-0.025em; }
.h-lg  { font-family:var(--font-head); font-size:clamp(22px,3vw,44px);  font-weight:700; line-height:1.1;  letter-spacing:-0.02em; }
.h-md  { font-family:var(--font-head); font-size:clamp(17px,2vw,26px);  font-weight:600; line-height:1.2;  letter-spacing:-0.015em; }
.body-lg { font-size: 18px; line-height: 1.7; color: var(--muted-dark); }
.body-md { font-size: 16px; line-height: 1.7; color: var(--muted-dark); }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn-hero {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff; color: #0c0c0e; font-family: var(--font-body);
  font-size: 15px; font-weight: 600; padding: 14px 28px;
  border-radius: 100px; border: none; cursor: pointer;
  transition: all 0.2s; letter-spacing: -0.01em; text-decoration: none;
}
.btn-hero:hover { background: #f0f0f0; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

.btn-nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: #0c0c0e; color: #fff; font-family: var(--font-body);
  font-size: 14px; font-weight: 500; padding: 11px 22px;
  border-radius: 100px; border: none; cursor: pointer;
  transition: all 0.18s; text-decoration: none; white-space: nowrap;
}
.btn-nav-cta:hover { background: #222; }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #0c0c0e; color: #fff; font-family: var(--font-body);
  font-size: 14px; font-weight: 600; padding: 14px 28px;
  border-radius: 100px; border: none; cursor: pointer;
  transition: all 0.2s; text-decoration: none;
}
.btn-primary:hover { background: #222; transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text-dark); font-family: var(--font-body);
  font-size: 14px; font-weight: 500; padding: 14px 28px;
  border-radius: 100px; border: 1.5px solid var(--border);
  cursor: pointer; transition: all 0.18s; text-decoration: none;
}
.btn-ghost:hover { border-color: #bbb; }

.btn-ghost-dark {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7);
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  padding: 14px 28px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.btn-ghost-dark:hover { background: rgba(255,255,255,0.14); color: #fff; }

/* ── Nav ────────────────────────────────────────────────────────── */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: #fff; transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
}
#site-nav.scrolled {
  backdrop-filter: blur(20px);
  border-radius: 0 0 20px 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
#site-nav.scrolled.nav-open {
  border-radius: 0;
}
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 40px;
  height: 68px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-head); font-weight: 800; font-size: 17px;
  color: #0c0c0e; letter-spacing: -0.03em; text-decoration: none;
  display: flex; align-items: center;
}
.nav-logo .dim { color: #999; margin-left: 5px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  color: #6b6b76; padding: 8px 14px; border-radius: 8px;
  transition: color 0.15s; text-decoration: none; white-space: nowrap;
}
.nav-link:hover { color: #0c0c0e; }
.nav-link.active { color: #0c0c0e; font-weight: 600; }
.nav-sep { width: 1px; height: 20px; background: rgba(0,0,0,0.12); margin: 0 8px; flex-shrink: 0; }

/* Mobile hamburger */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span { display: block; width: 22px; height: 2px; background: #0c0c0e; border-radius: 2px; transition: all 0.25s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  flex-direction: column;
  padding: 8px 16px 16px;
  border-top: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  z-index: 999;
  /* Slide down animation */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  display: flex;
  transition: max-height 0.32s cubic-bezier(0.16,1,0.3,1),
              opacity 0.22s ease,
              padding 0.22s ease;
}
.nav-mobile.open {
  max-height: 400px;
  opacity: 1;
  padding: 8px 16px 16px;
}
.nav-mobile a {
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  color: #6b6b76; padding: 11px 14px; border-radius: 10px;
  text-decoration: none;
  /* Smooth color + background + left indent on hover */
  transition: color 0.2s ease, background 0.2s ease, padding-left 0.2s ease;
  position: relative;
}
.nav-mobile a::before {
  content: '';
  position: absolute; left: 6px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 0; border-radius: 2px;
  background: var(--teal);
  transition: height 0.2s ease;
}
.nav-mobile a:hover {
  color: #0c0c0e;
  background: var(--surface2);
  padding-left: 20px;
}
.nav-mobile a:hover::before { height: 18px; }
.nav-mobile a.active {
  color: #0c0c0e; font-weight: 600;
  background: var(--surface2);
  padding-left: 20px;
}
.nav-mobile a.active::before { height: 18px; }
.nav-mobile-cta {
  margin-top: 10px !important; background: #0c0c0e !important;
  color: #fff !important; text-align: center;
  border-radius: 100px !important; font-weight: 600 !important;
  padding-left: 14px !important;
  transition: background 0.2s ease, transform 0.15s ease !important;
}
.nav-mobile-cta::before { display: none !important; }
.nav-mobile-cta:hover {
  background: #2a2a2a !important;
  padding-left: 14px !important;
  transform: translateY(-1px);
}

/* ── Service card ───────────────────────────────────────────────── */
.service-card {
  background: #f8f8f8; border: 1px solid rgba(0,0,0,0.07);
  border-radius: 20px; cursor: pointer; overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  display: flex; text-decoration: none; color: inherit;
}
.service-card.wide   { padding: 40px; flex-direction: row; align-items: center; gap: 32px; }
.service-card.narrow { padding: 32px; flex-direction: column; align-items: flex-start; }
.service-card:hover  { transform: translateY(-3px); background: #0c0c0e; border-color: #0c0c0e; }

.sc-num { font-family:var(--font-head); font-weight:800; letter-spacing:-0.04em; color:rgba(0,0,0,0.06); flex-shrink:0; line-height:1; transition:color 0.3s; }
.service-card.wide   .sc-num { font-size: 48px; }
.service-card.narrow .sc-num { font-size: 36px; }
.service-card:hover  .sc-num { color: rgba(255,255,255,0.08); }
.sc-body { flex: 1; }
.sc-icon { color: #9999aa; transition: color 0.3s; margin-bottom: 16px; }
.service-card:hover .sc-icon { color: var(--teal); }
.sc-title { font-family:var(--font-head); font-weight:700; letter-spacing:-0.02em; margin-bottom:10px; color:#0c0c0e; transition:color 0.3s; }
.service-card.wide   .sc-title { font-size: 22px; }
.service-card.narrow .sc-title { font-size: 18px; }
.service-card:hover  .sc-title { color: #fff; }
.sc-tag { font-size:14px; color:var(--muted-dark); line-height:1.6; transition:color 0.3s; }
.service-card:hover .sc-tag { color: rgba(255,255,255,0.5); }
.sc-arrow { font-size:20px; color:#ccc; transition:all 0.2s; flex-shrink:0; }
.service-card.narrow .sc-arrow { margin-top: 24px; }
.service-card:hover  .sc-arrow { color: var(--teal); transform: translateX(4px); }

/* ── Service row (list page) ────────────────────────────────────── */
.service-row {
  display: grid; grid-template-columns: 64px 1fr auto auto;
  align-items: center; gap: 32px; padding: 44px 0;
  text-decoration: none; color: inherit;
}
.service-row .sr-num   { font-family:var(--font-head); font-size:32px; font-weight:800; color:rgba(0,0,0,0.06); letter-spacing:-0.04em; }
.service-row .sr-title { font-family:var(--font-head); font-size:clamp(16px,2vw,26px); font-weight:600; letter-spacing:-0.015em; transition:color 0.2s; color:var(--muted-dark); margin-bottom:6px; }
.service-row .sr-arrow { font-size:22px; color:#0c0c0e; transition:transform 0.2s; }
.service-row:hover .sr-title { color: #0c0c0e; }
.service-row:hover .sr-arrow { transform: translateX(6px); }

/* ── Form elements ──────────────────────────────────────────────── */
.form-label { display:block; font-size:12px; font-weight:600; letter-spacing:0.06em; color:#666; margin-bottom:8px; text-transform:uppercase; }
.form-input {
  width: 100%; background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 15px 18px; color: #0c0c0e;
  font-size: 15px; font-family: var(--font-body); outline: none;
  transition: border-color 0.2s; appearance: none;
}
.form-input:focus  { border-color: #0c0c0e; }
.form-select       { cursor: pointer; }
.form-textarea     { resize: vertical; min-height: 140px; }

/* ── Contact page ───────────────────────────────────────────────── */
.contact-section    { padding-top: 140px; padding-bottom: 80px; }
.contact-container  { max-width: 960px; }
.contact-header     { margin-bottom: 64px; }
.contact-lead       { max-width: 440px; }

.contact-success {
  padding: 64px 40px; background: #fff;
  border: 1px solid var(--border); border-radius: 24px; text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}

.contact-form   { display: flex; flex-direction: column; gap: 20px; }
.form-row-2     { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field     { display: flex; flex-direction: column; }
.contact-submit { align-self: flex-start; padding: 15px 32px; font-size: 15px; margin-top: 4px; }

/* Contact sidebar */
.contact-sidebar      { display: flex; flex-direction: column; gap: 16px; }
.contact-expect-card  { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 32px; }
.contact-expect-head  { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 20px; }
.contact-expect-row   { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; }
.contact-expect-row--border { border-bottom: 1px solid var(--border); }
.contact-expect-label { font-size: 14px; color: var(--muted-dark); }
.contact-expect-value { font-size: 14px; font-weight: 600; color: var(--text-dark); text-align: right; }
.contact-quote-card   { background: var(--surface2); border: 1px solid var(--border); border-radius: 20px; padding: 32px; }
.contact-quote-text   { font-size: 14px; color: var(--muted-dark); line-height: 1.75; font-style: italic; }
.contact-quote-attr   { margin-top: 18px; font-size: 13px; font-weight: 500; color: #aaa; }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer {
  background: var(--hero-bg); margin: 0 20px 20px; border-radius: 24px; overflow: hidden;
}

.footer-cta {
  padding: 56px 60px; border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.footer-cta-title { font-family:var(--font-head); font-size:clamp(20px,2.5vw,28px); font-weight:700; color:#fff; letter-spacing:-0.025em; margin-bottom:8px; }
.footer-cta-sub   { font-size:16px; color:rgba(255,255,255,0.45); max-width:400px; }

.footer-grid {
  padding: 56px 60px 0; display: grid;
  grid-template-columns: 1.6fr 1fr 1fr; gap: 64px; margin-bottom: 48px;
}

.footer-logo-link {
  display: inline-block; margin-bottom: 20px; text-decoration: none;
  font-family:var(--font-head); font-weight:800; font-size:20px;
  color:#fff; letter-spacing:-0.03em;
}
.footer-logo-link span { color: rgba(255,255,255,0.4); margin-left: 5px; }
.footer-brand-copy     { font-size:15px; color:rgba(255,255,255,0.45); line-height:1.7; max-width:260px; margin-bottom:28px; }
.footer-email          { font-size:14px; color:rgba(255,255,255,0.3); }
.footer-col-head       { font-size:12px; font-weight:600; letter-spacing:0.08em; color:rgba(255,255,255,0.35); text-transform:uppercase; margin-bottom:24px; }
.footer-link           { display:block; font-size:15px; color:rgba(255,255,255,0.6); margin-bottom:16px; text-decoration:none; transition:color 0.15s; line-height:1.3; }
.footer-link:hover     { color: #fff; }

.footer-bottom {
  padding: 24px 60px 32px; border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-size: 14px; color: rgba(255,255,255,0.3); }

/* ════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
════════════════════════════════════════════ */

/* ── Tablet / 900px ── */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .section   { padding: 72px 0; }
  .nav-inner { padding: 0 20px; }

  /* Show hamburger, hide desktop links */
  .nav-links     { display: none; }
  .nav-hamburger { display: flex; }

  /* Stats: 2 col */
  .stats-grid { grid-template-columns: repeat(2,1fr) !important; }
  .stats-grid > div:nth-child(3) { border-left: none !important; border-top: 1px solid var(--border); }
  .stats-grid > div:nth-child(4) { border-top: 1px solid var(--border); }

  /* Services grids */
  .services-grid-2 { grid-template-columns: 1fr !important; }
  .services-grid-3 { grid-template-columns: 1fr 1fr !important; }

  /* Process: 2 col */
  .process-grid { grid-template-columns: repeat(2,1fr) !important; gap: 0 !important; }
  .process-grid > div { padding: 28px !important; }
  .process-grid > div:nth-child(3) { border-left: none !important; border-top: 1px solid rgba(255,255,255,0.06); }
  .process-grid > div:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.06); }

  /* Problem / solution grid */
  .problem-grid { grid-template-columns: 1fr !important; }
  .problem-grid > div + div { border-left: none !important; border-top: 1px solid rgba(255,255,255,0.06); }

  /* About */
  .about-dark-grid { grid-template-columns: 1fr !important; gap: 40px !important; padding: 48px 32px !important; }
  .about-dark-grid > div:first-child { position: relative !important; }
  .phil-grid  { grid-template-columns: 1fr !important; }
  .track-grid { grid-template-columns: repeat(2,1fr) !important; gap: 32px !important; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr !important; gap: 40px; }

  /* Footer */
  .footer-cta   { padding: 40px 28px; flex-direction: column; align-items: flex-start; }
  .footer-grid  { grid-template-columns: 1fr !important; gap: 40px; padding: 40px 28px 0; }
  .footer-bottom{ padding: 24px 28px 28px; }
}

/* ── Mobile / 600px ── */
@media (max-width: 600px) {
  /* Service cards */
  .service-card.wide   { flex-direction: column !important; padding: 28px !important; gap: 16px !important; }
  .service-card.narrow { padding: 24px !important; }
  .services-grid-3     { grid-template-columns: 1fr !important; }

  /* Service row */
  .service-row        { grid-template-columns: 44px 1fr auto !important; gap: 12px !important; padding: 28px 0 !important; }
  .service-row .sr-num { font-size: 22px !important; }

  /* Process: 1 col */
  .process-grid { grid-template-columns: 1fr !important; }
  .process-grid > div { border-left: none !important; border-top: 1px solid rgba(255,255,255,0.06) !important; padding: 24px !important; }
  .process-grid > div:first-child { border-top: none !important; }

  /* Track: 2 col */
  .track-grid { grid-template-columns: 1fr 1fr !important; gap: 24px !important; }

  /* Contact */
  .contact-section   { padding-top: 110px; padding-bottom: 60px; }
  .contact-header    { margin-bottom: 36px; }
  .form-row-2        { grid-template-columns: 1fr !important; }
  .contact-success   { padding: 48px 24px; }

  /* Hero CTA buttons stack */
  .hero-btns { flex-direction: column; align-items: stretch !important; }
  .hero-btns a { text-align: center; justify-content: center; }

  /* About dark card */
  .about-dark-grid { padding: 36px 20px !important; gap: 32px !important; }

  /* Phil card */
  .phil-card-wrap { padding: 48px 20px !important; }

  /* Footer */
  .site-footer   { margin: 0 12px 12px; }
  .footer-cta    { padding: 28px 20px; gap: 24px; }
  .footer-grid   { padding: 28px 20px 0 !important; gap: 32px !important; }
  .footer-bottom { padding: 20px 20px 24px !important; flex-direction: column; align-items: flex-start; gap: 6px; }
}
