/* ============================================================
   DAZA GROUP — dark emerald, ledger-precise, quietly premium
   Fraunces (display) · Archivo (body) · Spline Sans Mono (labels)
   ============================================================ */

:root {
  --bg: #070d08;
  --bg-2: #0a130b;
  --ink: #eaf2e8;
  --muted: #9fb49c;
  --faint: #6d8069;
  --green: #167a10;
  --green-deep: #0d5b06;
  --green-glow: #2fc224;
  --blue: #2ab4f4;
  --line: rgba(234, 242, 232, 0.09);
  --card: rgba(234, 242, 232, 0.028);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Archivo", "Helvetica Neue", sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 76px;
}

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

html { scroll-behavior: auto; } /* JS handles smooth in-page scrolling */

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(42, 180, 244, 0.28); color: #fff; }

/* ---------- background layers ---------- */

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(1100px 700px at 12% -8%, rgba(22, 122, 16, 0.16), transparent 62%),
    radial-gradient(900px 640px at 96% 108%, rgba(42, 180, 244, 0.08), transparent 60%),
    radial-gradient(1400px 900px at 50% 120%, rgba(13, 91, 6, 0.10), transparent 65%);
}

.atmosphere::after {
  /* film grain */
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

main, .footer { position: relative; z-index: 2; }

/* ---------- scroll progress ---------- */

.progress-track {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 60;
  background: transparent;
}
.progress-line {
  height: 100%;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--green), var(--green-glow) 70%, var(--blue));
}

/* ---------- type ---------- */

h1, h2, .statement, .quote-text {
  font-family: var(--font-display);
  font-weight: 420;
  letter-spacing: -0.015em;
  line-height: 1.06;
  text-wrap: balance;
}

h1 { font-size: clamp(2.9rem, 7.2vw, 5.6rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); margin-bottom: 20px; }

h1 em, h2 em, .statement em, .quote-text em {
  font-style: italic;
  font-weight: 480;
  background: linear-gradient(92deg, var(--green-glow) 10%, var(--blue) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h3 {
  font-family: var(--font-body);
  font-weight: 560;
  font-size: 1.28rem;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.tick {
  display: inline-block;
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--green-glow), transparent);
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 56ch;
}

.section-sub {
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 56px;
  font-size: 1.05rem;
}

/* ---------- layout ---------- */

.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.container.narrow { width: min(880px, calc(100% - 48px)); }

.section { padding: clamp(110px, 16vh, 170px) 0; position: relative; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 40px;
  height: var(--nav-h);
  padding: 0 clamp(20px, 4vw, 48px);
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(7, 13, 8, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 30px; width: auto; display: block; }

.nav-links {
  display: flex;
  gap: 30px;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 480;
  letter-spacing: 0.01em;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--ink); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 540;
  letter-spacing: 0.01em;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, background 0.3s, border-color 0.3s, color 0.3s;
  will-change: transform;
}

.btn-primary {
  background: linear-gradient(135deg, #1c9415, var(--green) 55%, var(--green-deep));
  color: #f2fbf0;
  box-shadow: 0 10px 34px -10px rgba(22, 122, 16, 0.55), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px -10px rgba(34, 170, 24, 0.65), inset 0 1px 0 rgba(255,255,255,0.22);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(234, 242, 232, 0.02);
}
.btn-ghost:hover {
  border-color: rgba(42, 180, 244, 0.5);
  color: #fff;
  transform: translateY(-2px);
}

.btn-nav { padding: 11px 22px; font-size: 0.88rem;
  background: linear-gradient(135deg, #1c9415, var(--green) 55%, var(--green-deep));
  color: #f2fbf0;
  box-shadow: 0 8px 26px -10px rgba(22, 122, 16, 0.55);
}
.btn-nav:hover { transform: translateY(-1px); }

/* ---------- burger / mobile menu ---------- */

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 7px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  margin-left: auto;
}
.nav-burger span {
  width: 26px; height: 1.6px;
  background: var(--ink);
  transition: transform 0.35s var(--ease-out), opacity 0.3s;
}
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4.3px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4.3px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 49;
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 18px 24px 30px;
  background: rgba(7, 13, 8, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.15rem;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a.btn { margin-top: 16px; border-bottom: 0; }

/* ---------- hero ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 80px;
  position: relative;
}

.hero-inner {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  perspective: 1200px;
}

.hero h1 { max-width: 12ch; margin-bottom: 28px; }

.hero-sub {
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 42px;
}

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

.hero-note {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  color: var(--faint);
}
.hero-note .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--green-glow); }

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--faint);
  text-decoration: none;
}
.cue-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(180deg, var(--green-glow), transparent);
  animation: cue 2.2s var(--ease-out) infinite;
  transform-origin: top;
}
@keyframes cue {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(30px); opacity: 0; }
}

/* ---------- intro statement ---------- */

.statement {
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  margin-bottom: 30px;
}

/* ---------- services ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
  perspective: 1400px;
}

.card {
  grid-column: span 2;
  position: relative;
  padding: 34px 30px 30px;
  border-radius: 20px;
  background: rgba(9, 16, 9, 0.5);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: border-color 0.35s, background 0.35s;
}
.card.wide { grid-column: span 3; }
.card:nth-child(4) { grid-column: span 3; }

.card::before {
  /* pointer glare */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(47, 194, 36, 0.10), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: rgba(47, 194, 36, 0.32); background: rgba(16, 26, 15, 0.62); }

.card-num {
  position: absolute;
  top: 26px;
  right: 26px;
  color: var(--faint);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: var(--green-glow);
  background: rgba(22, 122, 16, 0.14);
  border: 1px solid rgba(47, 194, 36, 0.22);
}
.card-icon svg { width: 24px; height: 24px; }

.card-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.06rem;
  color: var(--blue);
  margin-bottom: 12px;
}

.card p { color: var(--muted); font-size: 0.97rem; }

.card ul {
  list-style: none;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.card ul li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 2;
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 10px;
  height: 1.4px;
  background: var(--green-glow);
}

/* ---------- process ---------- */

.steps {
  display: grid;
  grid-template-columns: 1fr 60px 1fr 60px 1fr;
  align-items: start;
  gap: 10px;
  margin-top: 60px;
}

.step-num {
  font-size: 0.78rem;
  color: var(--green-glow);
  border: 1px solid rgba(47, 194, 36, 0.3);
  background: rgba(22, 122, 16, 0.10);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
}

.step p { color: var(--muted); font-size: 0.98rem; max-width: 34ch; }

.step-connector {
  height: 1px;
  margin-top: 27px;
  background: linear-gradient(90deg, transparent, var(--line) 25%, var(--line) 75%, transparent);
}

/* ---------- quote ---------- */

.quote { text-align: center; }
.quote-text {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.15;
}

/* ---------- why ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 50px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.why-item {
  padding: 40px 38px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.35s;
}
.why-item:hover { background: rgba(234, 242, 232, 0.025); }
.why-item h3 { font-family: var(--font-display); font-weight: 480; font-size: 1.4rem; }
.why-item p { color: var(--muted); font-size: 0.98rem; max-width: 40ch; }

/* ---------- cta ---------- */

.cta { text-align: center; padding-bottom: clamp(130px, 18vh, 200px); }
.cta .lead { margin: 0 auto 44px; }
.cta .hero-actions { justify-content: center; }
.cta .eyebrow { justify-content: center; }
.cta .tick { background: linear-gradient(90deg, transparent, var(--green-glow)); }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  background: #05090699;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding: 70px 0 50px;
}

.footer-logo { height: 26px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--faint); font-size: 0.92rem; }

.footer-head { color: var(--faint); margin-bottom: 18px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.25s;
  width: fit-content;
}
.footer-col a:hover { color: var(--ink); }
.footer-small { color: var(--faint); font-size: 0.85rem; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 26px 0 34px;
  color: var(--faint);
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(46px) rotateX(7deg);
  transform-origin: 50% 100%;
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 95ms);
  will-change: opacity, transform;
}

.in .reveal, .reveal.in {
  opacity: 1;
  transform: none;
}

.section, .hero { perspective: 1100px; }

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .card, .card.wide, .card:nth-child(4) { grid-column: span 3; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .step-connector { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links, .btn-nav { display: none; }
  .nav-burger { display: flex; }
  .card, .card.wide, .card:nth-child(4) { grid-column: span 6; }
  .why-grid { grid-template-columns: 1fr; }
  .why-item { padding: 32px 26px; }
  .hero-actions .btn { width: 100%; }
  .scroll-cue { display: none; }
}

/* ---------- reduced motion / no-webgl ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cue-line { animation: none; }
  .card { transform: none !important; }
}

body.no-webgl #scene { display: none; }
body.no-webgl .atmosphere {
  background:
    radial-gradient(1100px 700px at 12% -8%, rgba(22, 122, 16, 0.22), transparent 62%),
    radial-gradient(900px 640px at 96% 108%, rgba(42, 180, 244, 0.12), transparent 60%),
    radial-gradient(1400px 900px at 50% 120%, rgba(13, 91, 6, 0.16), transparent 65%);
}
