@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500&display=swap');

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

:root {
  --bg:        #0D0D0D;
  --surface:   #141414;
  --card:      #1C1C1C;
  --border:    #272727;
  --gold:      #FFD700;
  --gold-dim:  rgba(255, 215, 0, 0.12);
  --white:     #FFFFFF;
  --gray:      #9CA3AF;
  --radius:    8px;
  --max-width: 1200px;
  --ease:      0.2s ease;
  --heading:   'Space Grotesk', sans-serif;
  --body:      'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--white);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: var(--heading); font-weight: 700; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

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

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 13px 28px;
  background-color: var(--gold);
  color: #0D0D0D;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background-color var(--ease), transform var(--ease);
}
.btn:hover { background-color: #E6C200; transform: translateY(-1px); }

.btn-outline {
  background-color: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-outline:hover { background-color: var(--gold); color: #0D0D0D; }

/* ── Section helpers ── */
section { padding: 96px 0; }

.label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-title { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 14px; }
.section-sub { color: var(--gray); font-size: 1rem; max-width: 540px; line-height: 1.75; }

/* ══════════════════════════════
   NAV
══════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background-color: rgba(13, 13, 13, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 6px;
  height: 84px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.nav-logo img { height: 58px; width: auto; }

.nav-links { display: flex; gap: 34px; list-style: none; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--gray); transition: color var(--ease); }
.nav-links a:hover { color: var(--white); }
.nav-links .cta { color: var(--gold) !important; font-weight: 600; }
.nav-links .cta:hover { color: #E6C200 !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background-color: var(--white); border-radius: 2px; transition: var(--ease); }

/* ══════════════════════════════
   HERO
══════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 84px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 60% at 75% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 65%),
    linear-gradient(180deg, #0D0D0D 0%, #111111 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 215, 0, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 30%, transparent 80%);
}

.hero-content { position: relative; max-width: 700px; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.hero-eyebrow-line { width: 32px; height: 2px; background-color: var(--gold); }
.hero-eyebrow-text {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-title {
  font-size: clamp(2.6rem, 6.5vw, 4.75rem);
  font-family: var(--heading);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero-title span { color: var(--gold); }

.hero-desc {
  font-size: 1.1rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ══════════════════════════════
   SERVICES
══════════════════════════════ */
#services { background-color: var(--surface); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 52px;
}

.service-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 30px;
  transition: border-color var(--ease), transform var(--ease);
}
.service-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.service-card.dimmed { border-style: dashed; opacity: 0.65; }
.service-card.dimmed:hover { opacity: 1; }

.service-icon {
  width: 48px; height: 48px;
  background-color: var(--gold-dim);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.service-icon svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { color: var(--gray); font-size: 0.9rem; line-height: 1.72; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.tag {
  font-size: 0.72rem;
  padding: 3px 9px;
  background-color: rgba(255, 215, 0, 0.08);
  color: var(--gold);
  border-radius: 4px;
  font-weight: 500;
}

/* ══════════════════════════════
   ABOUT
══════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 52px;
}

.about-text p {
  color: var(--gray);
  line-height: 1.82;
  font-size: 0.975rem;
  margin-bottom: 18px;
}
.about-text p:last-child { margin-bottom: 0; }

.pillars { display: flex; flex-direction: column; gap: 16px; }

.pillar {
  display: flex;
  gap: 18px;
  padding: 22px 24px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color var(--ease);
}
.pillar:hover { border-color: rgba(255, 215, 0, 0.35); }

.pillar-icon {
  width: 36px; height: 36px;
  background-color: var(--gold-dim);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.pillar-icon svg { width: 16px; height: 16px; stroke: var(--gold); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.pillar h4 { font-size: 0.95rem; margin-bottom: 4px; }
.pillar p { font-size: 0.85rem; color: var(--gray); line-height: 1.6; }

/* ══════════════════════════════
   PROCESS
══════════════════════════════ */
#process { background-color: var(--surface); }

.process-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 52px;
  position: relative;
}

.process-track::before {
  content: '';
  position: absolute;
  top: 27px;
  left: calc(12.5% + 4px);
  right: calc(12.5% + 4px);
  height: 1px;
  background: linear-gradient(90deg, var(--border), var(--border));
  pointer-events: none;
}

.process-step { text-align: center; padding: 0 20px; }

.step-num {
  width: 54px; height: 54px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background-color: var(--card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold);
  position: relative;
  z-index: 1;
}

.process-step h3 { font-size: 1.05rem; margin-bottom: 10px; }
.process-step p { font-size: 0.875rem; color: var(--gray); line-height: 1.65; }

/* ══════════════════════════════
   BLOG PREVIEW
══════════════════════════════ */
.blog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 16px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.blog-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--ease), transform var(--ease);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { border-color: var(--gold); transform: translateY(-2px); }

.blog-card-body { padding: 30px; display: flex; flex-direction: column; flex: 1; }

.blog-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.blog-cat {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.blog-date { font-size: 0.78rem; color: var(--gray); }

.blog-card h3 { font-size: 1.15rem; line-height: 1.4; margin-bottom: 12px; }
.blog-card p { color: var(--gray); font-size: 0.875rem; line-height: 1.72; flex: 1; }

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: 22px;
  transition: gap var(--ease);
}
.read-more:hover { gap: 10px; }
.read-more svg { width: 14px; height: 14px; stroke: var(--gold); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ══════════════════════════════
   CONTACT
══════════════════════════════ */
#contact { background-color: var(--surface); }

.contact-centered {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-lead {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.75;
  margin: 20px 0 36px;
}

.contact-email-btn {
  font-size: 1rem;
  padding: 16px 36px;
  letter-spacing: 0.01em;
}

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
footer {
  background-color: var(--bg);
  border-top: 1px solid var(--border);
  padding: 44px 0 32px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.footer-logo img { height: 100px; width: auto; }

.footer-links { display: flex; gap: 28px; list-style: none; flex-wrap: wrap; }
.footer-links a { font-size: 0.85rem; color: var(--gray); transition: color var(--ease); }
.footer-links a:hover { color: var(--white); }

.footer-copy { font-size: 0.78rem; color: #555; text-align: center; }

/* ══════════════════════════════
   BLOG PAGE
══════════════════════════════ */
.blog-hero {
  padding: 140px 0 72px;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
}

.blog-list {
  padding: 64px 0 96px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

/* ══════════════════════════════
   BLOG POST PAGE
══════════════════════════════ */
.post-hero {
  padding: 140px 0 64px;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
}

.post-hero .blog-cat { margin-bottom: 16px; }
.post-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); max-width: 720px; margin-bottom: 20px; }
.post-hero .post-byline { display: flex; align-items: center; gap: 20px; }
.post-hero .post-byline span { font-size: 0.85rem; color: var(--gray); }
.post-hero .post-byline .sep { color: var(--border); }

.post-body { padding: 64px 0 96px; }

.post-content { max-width: 720px; }

.post-content p { color: var(--gray); line-height: 1.85; margin-bottom: 22px; font-size: 1rem; }
.post-content h2 { font-size: 1.5rem; margin: 40px 0 14px; color: var(--white); }
.post-content h3 { font-size: 1.2rem; margin: 30px 0 12px; color: var(--white); }
.post-content ul, .post-content ol { color: var(--gray); padding-left: 24px; margin-bottom: 22px; line-height: 1.85; }
.post-content li { margin-bottom: 6px; }
.post-content strong { color: var(--white); font-weight: 600; }
.post-content a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

.post-content pre {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  overflow-x: auto;
  margin-bottom: 22px;
  font-size: 0.875rem;
}
.post-content code {
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.875em;
  color: var(--gold);
}
.post-content pre code { color: #e2e8f0; }

.post-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 20px;
  margin: 28px 0;
  color: var(--gray);
  font-style: italic;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--gray);
  margin-bottom: 48px;
  transition: color var(--ease);
}
.back-link:hover { color: var(--gold); }
.back-link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 900px) {
  .process-track { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process-track::before { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }

  .nav-links {
    display: none;
    position: absolute;
    top: 84px; left: 0; right: 0;
    background-color: #141414;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .blog-header { flex-direction: column; align-items: flex-start; }

  .process-track { grid-template-columns: 1fr 1fr; }

  .footer-top { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .process-track { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.2rem; }
}
