/* ═══════════════════════════════════════════
   URBANE SOLUTIONS — Design Tokens
   ═══════════════════════════════════════════ */
:root {
  --clr-bg: #0a0a0a;
  --clr-surface: #111111;
  --clr-surface-elevated: #1a1a1a;
  --clr-text: #ffffff;
  --clr-text-secondary: #b0b0b0;
  --clr-muted: #666666;
  --clr-gold: #D4AF37;
  --clr-gold-dim: rgba(212, 175, 55, 0.15);
  --clr-gold-glow: rgba(212, 175, 55, 0.3);
  --clr-border: rgba(255, 255, 255, 0.06);
  --clr-border-medium: rgba(255, 255, 255, 0.12);

  --ff-display: 'Outfit', sans-serif;
  --ff-body: 'Inter', sans-serif;

  --nav-height: 64px;
  --section-pad: clamp(80px, 10vw, 140px);
  --container-max: 1100px;

  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-smooth: cubic-bezier(.25, .46, .45, .94);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--ff-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Subtle grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

.section-label {
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 48px;
}

/* ═══════════════════════════════════════════
   Entrance Animations
   ═══════════════════════════════════════════ */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav, .hero__content, .breakdown, .philosophy, .audit, .connect, .footer {
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease-out-expo) forwards;
}
.nav            { animation-delay: 0.1s; }
.hero__content  { animation-delay: 0.3s; }
.breakdown      { animation-delay: 0.15s; }
.philosophy     { animation-delay: 0.15s; }
.audit          { animation-delay: 0.15s; }
.connect        { animation-delay: 0.15s; }
.footer         { animation-delay: 0.15s; }

/* Scroll-triggered fade-in */
.breakdown, .philosophy, .audit, .connect {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.breakdown.visible, .philosophy.visible, .audit.visible, .connect.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--clr-border);
  transition: background 0.3s ease;
}
.nav--scrolled {
  background: rgba(10, 10, 10, 0.92);
}

.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.12em;
}
.nav__logo-accent { color: var(--clr-gold); }

.nav__links {
  display: flex;
  gap: 32px;
}
.nav__links a {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--clr-text-secondary);
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--clr-gold);
  transition: width 0.3s var(--ease-out-expo);
}
.nav__links a:hover { color: var(--clr-text); }
.nav__links a:hover::after { width: 100%; }

.nav__cta {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--clr-gold);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 8px 20px;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav__cta:hover {
  background: var(--clr-gold-dim);
  border-color: var(--clr-gold);
}

.nav__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__mobile-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--clr-text);
  transition: all 0.3s ease;
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Dot grid ambient texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: 1;
  pointer-events: none;
}

#glslCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.5s var(--ease-smooth);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  text-align: center;
  padding: calc(var(--nav-height) + 40px) clamp(20px, 5vw, 40px) 60px;
}

.hero__eyebrow {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-muted);
  margin-bottom: 32px;
}

.hero__headline {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.hero__headline-accent {
  color: var(--clr-gold);
}

.hero__sub {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  color: var(--clr-text-secondary);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 20px;
}

.hero__supporting {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--clr-muted);
  margin-bottom: 40px;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--clr-gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50%      { opacity: 1;   transform: scaleY(1); }
}

/* ═══════════════════════════════════════════
   BUTTON
   ═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 14px 32px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn--gold {
  background: var(--clr-gold);
  color: #0a0a0a;
}
.btn--gold:hover {
  background: #e0bf4a;
  box-shadow: 0 0 30px var(--clr-gold-glow);
}
.btn--full { width: 100%; justify-content: center; }
.btn__arrow {
  transition: transform 0.25s ease;
}
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ═══════════════════════════════════════════
   SECTION 2 — BREAKDOWN
   ═══════════════════════════════════════════ */
.breakdown {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--clr-border);
}

.breakdown__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.breakdown__card {
  padding: 40px 32px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 4px;
  transition: border-color 0.4s ease, transform 0.4s var(--ease-out-expo);
}
.breakdown__card:hover {
  border-color: var(--clr-border-medium);
  transform: translateY(-4px);
}

.breakdown__card-number {
  font-family: var(--ff-display);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--clr-gold);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.breakdown__card-title {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.3;
}

.breakdown__card-body {
  font-size: 0.88rem;
  color: var(--clr-text-secondary);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   SECTION 3 — PHILOSOPHY
   ═══════════════════════════════════════════ */
.philosophy {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--clr-border);
}

.philosophy__block {
  max-width: 760px;
}

.philosophy__headline {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 32px;
}
.philosophy__headline-accent {
  color: var(--clr-gold);
}

.philosophy__body {
  font-size: 0.95rem;
  color: var(--clr-text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}
.philosophy__body:last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════════
   SECTION 4 — AUDIT
   ═══════════════════════════════════════════ */
.audit {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--clr-border);
}

.audit__headline {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 600;
  margin-bottom: 12px;
}

.audit__sub {
  font-size: 0.9rem;
  color: var(--clr-text-secondary);
  margin-bottom: 48px;
}

.audit__container {
  max-width: 640px;
  margin: 0 auto;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 4px;
  padding: clamp(32px, 5vw, 48px);
}

/* Progress bar */
.audit__progress {
  width: 100%;
  height: 2px;
  background: var(--clr-border-medium);
  border-radius: 2px;
  margin-bottom: 16px;
  overflow: hidden;
}
.audit__progress-bar {
  height: 100%;
  width: 14.28%;
  background: var(--clr-gold);
  border-radius: 2px;
  transition: width 0.5s var(--ease-out-expo);
}

.audit__step {
  font-size: 0.7rem;
  color: var(--clr-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

/* Question */
.audit__question {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 28px;
}

.audit__zone-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-gold);
  background: var(--clr-gold-dim);
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 16px;
}

.audit__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.audit__option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 0.88rem;
  color: var(--clr-text-secondary);
}
.audit__option:hover {
  border-color: var(--clr-border-medium);
  color: var(--clr-text);
  background: var(--clr-surface-elevated);
}
.audit__option--selected {
  border-color: var(--clr-gold) !important;
  background: var(--clr-gold-dim) !important;
  color: var(--clr-text) !important;
}

.audit__option-marker {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--clr-border-medium);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.audit__option--selected .audit__option-marker {
  border-color: var(--clr-gold);
  background: var(--clr-gold);
}
.audit__option--selected .audit__option-marker::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-bg);
}

/* Results */
.audit__results-title {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.audit__archetype {
  font-size: 0.95rem;
  color: var(--clr-gold);
  font-weight: 500;
  margin-bottom: 24px;
}

.audit__score-summary {
  font-size: 0.9rem;
  color: var(--clr-text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.audit__zone-scores {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.audit__zone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.audit__zone-name {
  font-size: 0.8rem;
  color: var(--clr-text-secondary);
  min-width: 100px;
}

.audit__zone-bar-track {
  flex: 1;
  height: 4px;
  background: var(--clr-border-medium);
  border-radius: 2px;
  overflow: hidden;
}
.audit__zone-bar-fill {
  height: 100%;
  background: var(--clr-gold);
  border-radius: 2px;
  transition: width 1s var(--ease-out-expo);
}

.audit__zone-value {
  font-size: 0.75rem;
  color: var(--clr-muted);
  min-width: 30px;
  text-align: right;
}

/* Email capture in results */
.audit__email-prompt {
  font-size: 0.9rem;
  color: var(--clr-text-secondary);
  margin-bottom: 16px;
}

.audit__email-form {
  display: flex;
  gap: 10px;
}
.audit__email-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: 2px;
  color: var(--clr-text);
  font-family: var(--ff-body);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.3s ease;
}
.audit__email-input:focus {
  border-color: var(--clr-gold);
}
.audit__email-input::placeholder {
  color: var(--clr-muted);
}

/* ═══════════════════════════════════════════
   SECTION 5 — CONNECT
   ═══════════════════════════════════════════ */
.connect {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--clr-border);
}

.connect__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.connect__headline {
  font-family: var(--ff-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 20px;
}

.connect__body {
  font-size: 0.9rem;
  color: var(--clr-text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.connect__details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.connect__detail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--clr-text-secondary);
}
.connect__detail svg { color: var(--clr-gold); flex-shrink: 0; }

/* Form */
.connect__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.connect__form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.connect__form-group label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--clr-text-secondary);
}
.connect__form-group input,
.connect__form-group textarea {
  padding: 12px 16px;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: 2px;
  color: var(--clr-text);
  font-family: var(--ff-body);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.3s ease;
  resize: vertical;
}
.connect__form-group input:focus,
.connect__form-group textarea:focus {
  border-color: var(--clr-gold);
}
.connect__form-group input::placeholder,
.connect__form-group textarea::placeholder {
  color: var(--clr-muted);
}

/* ═══════════════════════════════════════════
   CREST
   ═══════════════════════════════════════════ */
.crest {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 100px 0;
}
.crest__img {
  height: 220px;
  width: auto;
  object-fit: contain;
  opacity: 0.8;
  mix-blend-mode: lighten;
  transition: opacity 0.4s ease;
}
.crest__img:hover {
  opacity: 1;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__brand {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--clr-muted);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__cta   { display: none; }
  .nav__mobile-toggle { display: flex; }

  /* Mobile menu */
  .nav__links--open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 24px clamp(20px, 5vw, 40px);
    gap: 20px;
    border-bottom: 1px solid var(--clr-border);
  }

  .breakdown__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .connect__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .audit__email-form {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero__headline {
    font-size: clamp(1.6rem, 8vw, 2.4rem);
  }

  .breakdown__card {
    padding: 28px 24px;
  }

  .audit__container {
    padding: 24px 20px;
  }
}
