/* ─── Reset & tokens ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Barlow', sans-serif;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--fg);
  transition: background 0.3s ease, color 0.3s ease;
}
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

::selection { background: var(--accent); color: #0D0D0D; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 3px; }

:root,
[data-theme="light"] {
  --bg: #F8F8F6;
  --bg-alt: #FFFFFF;
  --bg-card: #F8F8F6;
  --fg: #0D0D0D;
  --fg-inv: #F8F8F6;
  --accent: #F5C93E;
  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.14);
  --muted: rgba(13,13,13,0.55);
  --muted-soft: rgba(13,13,13,0.35);
  --scrollbar: #C8C8C2;
  --constellation-opacity: 0.07;
}
[data-theme="dark"] {
  --bg: #0D0D0D;
  --bg-alt: #111111;
  --bg-card: #1A1A1A;
  --fg: #F8F8F6;
  --fg-inv: #0D0D0D;
  --accent: #F5C93E;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.18);
  --muted: rgba(248,248,246,0.55);
  --muted-soft: rgba(248,248,246,0.35);
  --scrollbar: #333;
  --constellation-opacity: 0.06;
}

.container { max-width: 1200px; margin: 0 auto; }

/* ─── Typography helpers ────────────────────────────────── */
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.section-title-light { color: #F8F8F6; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.eyebrow span {
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--fg);
  opacity: 0.45;
  text-transform: uppercase;
}
.eyebrow-light span { color: #F8F8F6; opacity: 0.4; }

.star { width: 12px; height: 12px; fill: var(--accent); }
.star path { fill: var(--accent); }

/* ─── Constellation backgrounds ────────────────────────── */
.constellation-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: var(--constellation-opacity);
  pointer-events: none;
}
.process .constellation-bg { opacity: 0.04; }
.process .constellation-bg line { stroke: #F8F8F6; stroke-width: 1; }
.process .constellation-bg circle { fill: #F8F8F6; }
.constellation-bg line { stroke: var(--fg); stroke-width: 1; }
.constellation-bg circle { fill: var(--fg); }

/* ─── Buttons ──────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--fg); color: var(--bg);
  font-weight: 600; font-size: 13px;
  letter-spacing: 0.08em;
  padding: 9px 22px;
  border: none;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.8; }
.btn-primary--lg { padding: 14px 32px; font-size: 14px; font-weight: 700; }

.btn-accent {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #0D0D0D;
  font-weight: 700; font-size: 14px;
  letter-spacing: 0.08em;
  padding: 14px 32px;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 201, 62, 0.33);
}

.btn-link {
  font-weight: 500; font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--fg);
  opacity: 0.6;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.2s;
  align-self: flex-start;
  display: inline-block;
}
.btn-link:hover { opacity: 1; }
.about-cta {
  border-bottom: 2px solid var(--accent);
  font-weight: 600;
  opacity: 1;
  display: inline-flex; align-items: center; gap: 10px;
}

.btn-submit {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--fg); color: var(--bg);
  font-weight: 700; font-size: 14px;
  letter-spacing: 0.08em;
  padding: 14px 32px;
  border: none; cursor: pointer;
  transition: opacity 0.2s;
}
.btn-submit:hover { opacity: 0.8; }
.btn-submit .star path { fill: var(--bg); }

.btn-whatsapp {
  margin-top: 32px;
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--fg); color: var(--bg);
  font-weight: 700; font-size: 15px;
  letter-spacing: 0.04em;
  padding: 16px 36px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-whatsapp:hover { opacity: 0.8; transform: translateY(-2px); }

/* ─── Logo ─────────────────────────────────────────────── */
.logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.logo-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.18em;
  color: var(--fg);
  line-height: 1;
}
.logo-star {
  width: 12px; height: 12px;
}
.logo-star path { fill: var(--accent); }
.logo-underline {
  position: absolute;
  left: 0; right: 16px; bottom: -4px;
  height: 1.5px;
  background: var(--fg);
  opacity: 0.5;
}
.logo-light .logo-text { color: #F8F8F6; }
.logo-light .logo-underline { background: #F8F8F6; }

/* ─── Nav ──────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: 68px;
  padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-right { display: flex; gap: 28px; align-items: center; }
.nav-link {
  font-weight: 500; font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--fg);
  opacity: 0.7;
  transition: opacity 0.2s;
}
.nav-link:hover { opacity: 1; }

/* Theme toggle */
.theme-toggle {
  background: none;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  width: 42px; height: 24px;
  cursor: pointer;
  position: relative;
  padding: 0;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.theme-toggle-dot {
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--fg);
  transition: left 0.22s cubic-bezier(.4,0,.2,1), background 0.2s;
}
[data-theme="dark"] .theme-toggle-dot {
  left: calc(100% - 19px);
  background: var(--accent);
}

/* ─── Hero ─────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  position: relative;
  padding: 120px 48px 80px;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  background: var(--bg);
}
.hero-corner-art {
  position: absolute;
  right: 0; bottom: 0;
  width: 36vw;
  opacity: 0.18;
  pointer-events: none;
}
.hero-corner-art line { stroke: var(--fg); stroke-width: 1.5; }
.hero-corner-art circle { fill: var(--fg); }
.hero-inner { position: relative; max-width: 900px; }
.hero-headline {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(52px, 8vw, 110px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 40px;
  text-wrap: balance;
}
.hero-sub {
  font-weight: 300;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.65;
  color: var(--fg);
  opacity: 0.6;
  max-width: 520px;
  margin-bottom: 52px;
}
.hero-actions {
  display: flex; gap: 16px;
  align-items: center; flex-wrap: wrap;
}
.scroll-indicator {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0.3;
}
.scroll-indicator span {
  font-size: 11px; letter-spacing: 0.12em; color: var(--fg);
}
.scroll-line {
  width: 1px; height: 40px; background: var(--fg); opacity: 0.5;
}

/* ─── Services ─────────────────────────────────────────── */
.services { background: var(--bg-alt); padding: 120px 48px; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 80px;
  flex-wrap: wrap;
  gap: 24px;
}
.section-sub {
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg);
  opacity: 0.5;
  max-width: 340px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2px;
}
.service-card {
  background: var(--bg-card);
  padding: 40px 36px;
  transition: background 0.25s;
  position: relative;
}
.service-card:hover { background: var(--accent); }
.service-card-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 20px;
}
.service-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 48px;
  color: var(--fg); opacity: 0.08;
  line-height: 1;
  transition: color 0.25s, opacity 0.25s;
}
.service-card:hover .service-num { color: #0D0D0D; opacity: 0.15; }
.service-arrow {
  width: 20px; height: 20px;
  opacity: 0.2;
  transition: opacity 0.25s, transform 0.25s;
}
.service-arrow path { stroke: var(--fg); stroke-width: 2; stroke-linecap: round; fill: none; }
.service-card:hover .service-arrow {
  opacity: 0.6;
  transform: translate(2px, -2px);
}
.service-card:hover .service-arrow path { stroke: #0D0D0D; }
.service-title {
  font-weight: 700; font-size: 18px;
  line-height: 1.3;
  color: var(--fg);
  margin-bottom: 14px;
  transition: color 0.25s;
}
.service-card:hover .service-title { color: #0D0D0D; }
.service-desc {
  font-weight: 300; font-size: 14px;
  line-height: 1.7;
  color: var(--fg); opacity: 0.55;
  margin-bottom: 24px;
  transition: color 0.25s, opacity 0.25s;
}
.service-card:hover .service-desc { color: #0D0D0D; opacity: 0.75; }
.service-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.service-tag {
  font-weight: 500; font-size: 11px;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border: 1px solid var(--border-strong);
  color: var(--fg);
  opacity: 0.5;
  transition: all 0.25s;
}
.service-card:hover .service-tag {
  border-color: rgba(0,0,0,0.25);
  color: #0D0D0D;
  opacity: 0.7;
}

/* ─── About ────────────────────────────────────────────── */
.about {
  background: var(--bg);
  padding: 120px 48px;
  position: relative;
  overflow: hidden;
}
.about-art {
  position: absolute;
  left: -60px; top: 50%;
  transform: translateY(-50%);
  opacity: 0.04;
  pointer-events: none;
}
.about-art circle { stroke: var(--fg); stroke-width: 1; }
.about-art line { stroke: var(--fg); stroke-width: 1; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
}
.section-title + .about-text { margin-top: 32px; }
.about-text {
  font-weight: 300;
  font-size: 17px;
  line-height: 1.8;
  color: var(--fg);
  opacity: 0.6;
  margin-bottom: 24px;
}
.about-text:last-of-type { margin-bottom: 44px; }
.stats { display: flex; flex-direction: column; }
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.stat-val {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 52px;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.stat-row:first-child .stat-val { color: var(--accent); }
.stat-label {
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--fg);
  opacity: 0.45;
  text-transform: uppercase;
}

/* ─── Process ──────────────────────────────────────────── */
.process {
  background: #0D0D0D;
  padding: 120px 48px;
  position: relative;
  overflow: hidden;
}
[data-theme="light"] .process { background: #0D0D0D; }
.process .container { position: relative; }
.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 72px;
}
.process-step {
  padding: 32px 0;
  border-bottom: 1px solid rgba(248,248,246,0.08);
  cursor: pointer;
  transition: all 0.2s;
}
.process-step-row {
  display: flex; justify-content: space-between; align-items: center;
}
.process-step-left { display: flex; gap: 20px; align-items: baseline; }
.process-step-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 13px;
  color: #F8F8F6;
  opacity: 0.3;
  letter-spacing: 0.1em;
  transition: all 0.2s;
}
.process-step-title {
  font-weight: 400;
  font-size: 20px;
  color: #F8F8F6;
  opacity: 0.5;
  transition: all 0.2s;
}
.process-step-arrow {
  color: #F8F8F6; opacity: 0.2; font-size: 18px;
  transition: all 0.2s;
}
.process-step.active .process-step-num { color: var(--accent); opacity: 1; }
.process-step.active .process-step-title { font-weight: 700; opacity: 1; }
.process-step.active .process-step-arrow { opacity: 0.6; transform: rotate(90deg); }
.process-step-desc {
  font-weight: 300; font-size: 15px;
  line-height: 1.8;
  color: #F8F8F6; opacity: 0.55;
  margin-top: 16px; padding-left: 33px;
  display: none;
}
.process-step.active .process-step-desc { display: block; }

.process-detail {
  background: rgba(248,248,246,0.04);
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.process-detail-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 120px;
  color: var(--accent); opacity: 0.12;
  line-height: 1;
  position: absolute; top: 16px; right: 24px;
  letter-spacing: -0.04em;
}
.process-detail-stars { display: flex; gap: 12px; margin-bottom: 24px; }
.process-detail-stars .star { width: 28px; height: 28px; }
.process-detail-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 40px;
  color: #F8F8F6;
  margin-bottom: 20px;
  line-height: 1.1;
}
.process-detail-desc {
  font-weight: 300; font-size: 16px;
  line-height: 1.8;
  color: #F8F8F6; opacity: 0.6;
  position: relative;
}

/* ─── Contact ──────────────────────────────────────────── */
.contact {
  background: var(--bg);
  padding: 120px 48px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.contact-intro {
  font-weight: 300; font-size: 16px;
  line-height: 1.8;
  color: var(--fg); opacity: 0.55;
  margin-top: 28px; margin-bottom: 52px;
}
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-info > div { display: flex; flex-direction: column; gap: 4px; }
.contact-label {
  font-size: 11px; letter-spacing: 0.12em;
  color: var(--fg); opacity: 0.35;
  text-transform: uppercase;
}
.contact-value {
  font-weight: 500; font-size: 16px; color: var(--fg);
}

.contact-form {
  display: flex; flex-direction: column; gap: 32px;
}
.field { display: flex; flex-direction: column; }
.field label {
  font-size: 11px; letter-spacing: 0.12em;
  color: var(--fg); opacity: 0.35;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--border-strong);
  padding: 14px 0;
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  color: var(--fg);
  outline: none;
  font-weight: 400;
  transition: border-color 0.2s;
}
.field textarea { resize: none; }
.field input:focus,
.field textarea:focus { border-bottom-color: var(--accent); }

.contact-success {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 16px;
  padding: 48px 0;
}
.contact-success h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 36px;
  color: var(--fg);
}
.contact-success p {
  font-weight: 300; font-size: 16px;
  color: var(--fg); opacity: 0.55;
}

/* ─── Footer ───────────────────────────────────────────── */
.footer {
  background: #080808;
  padding: 56px 48px;
  border-top: 1px solid rgba(248,248,246,0.06);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-copy {
  font-weight: 300; font-size: 13px;
  color: #F8F8F6; opacity: 0.3;
  letter-spacing: 0.04em;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 13px; color: #F8F8F6; opacity: 0.3;
  letter-spacing: 0.06em;
  transition: opacity 0.2s;
}
.footer-links a:hover { opacity: 0.7; }

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
  .nav { padding: 0 24px; height: 60px; }
  .nav-right { gap: 14px; }
  .nav-link { display: none; }
  .hero, .services, .about, .process, .contact { padding-left: 24px; padding-right: 24px; }
  .footer { padding: 48px 24px; }
  .about-grid, .process-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .section-header { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
