/* ==========================================================
   PHASE 4 — Premium visual system (overrides, non-breaking)
   ========================================================== */

:root {
  --bg: #0a0a0b;
  --bg-alt: #101012;
  --bg-raised: #16161a;
  --text: #f4f4ef;
  --text-dim: #8f8f88;
  --accent: #d4a84b;
  --accent-light: #e8c878;
  --border: rgba(255, 255, 255, 0.08);
  --glass: rgba(18, 18, 22, 0.72);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-deep: 0 28px 80px rgba(0, 0, 0, 0.45);
  --ease-premium: cubic-bezier(0.16, 0.84, 0.24, 1);
}

body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(212, 168, 75, 0.07), transparent 55%),
    radial-gradient(900px 500px at 10% 30%, rgba(120, 140, 180, 0.04), transparent 50%),
    var(--bg);
  color: var(--text);
}

/* Grain at the bottom visual layer — never above content */
.grain {
  z-index: 1 !important;
  opacity: 0.35;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

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

.nav {
  backdrop-filter: blur(16px);
  background: rgba(10, 10, 11, 0.72);
  border-bottom: 1px solid var(--border);
}

.btn {
  border-radius: 999px;
  letter-spacing: 0.02em;
  transition: transform 0.35s var(--ease-premium), box-shadow 0.35s var(--ease-premium), background 0.35s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--glass-border);
  box-shadow: none;
}

.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-deep);
  border-radius: 18px;
  transition: transform 0.4s var(--ease-premium), border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 168, 75, 0.25);
}

/* ---------- Homepage hero: two-column stage ---------- */
.hero.hero--stage {
  min-height: min(100vh, 920px);
  padding-top: 120px;
  padding-bottom: 80px;
  overflow: hidden;
}

.hero.hero--stage .hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 20;
}

.hero.hero--stage .hero-copy {
  max-width: 620px;
}

.hero.hero--stage .eyebrow {
  color: var(--accent-light);
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

.hero.hero--stage h1 {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(2.8rem, 6.2vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  margin: 1rem 0 1.4rem;
}

.hero-line--dim {
  font-weight: 700;
}

.hero.hero--stage .hero-desc {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 1.75rem;
}

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

.hero-trust__item {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

/* Right visual stage */
.hero-stage {
  position: relative;
  min-height: 520px;
  height: clamp(420px, 62vh, 620px);
}

.hero-stage__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.hero-stage__glow {
  position: absolute;
  inset: 12% 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 168, 75, 0.16), transparent 68%);
  filter: blur(28px);
  z-index: 2;
  pointer-events: none;
  animation: hero-stage-glow 9s ease-in-out infinite alternate;
}

@keyframes hero-stage-glow {
  from { opacity: 0.55; transform: scale(0.96); }
  to { opacity: 0.9; transform: scale(1.05); }
}

/* Floating UI cards (2D) */
.hero-float {
  position: absolute;
  z-index: 8;
  width: min(220px, 42%);
  padding: 14px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-deep);
  pointer-events: auto;
  transition: transform 0.45s var(--ease-premium), border-color 0.3s ease;
}

.hero-float:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(212, 168, 75, 0.28);
}

.hero-float__label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 10px;
}

.hero-float__title {
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0 0 10px;
}

.hero-float--whatsapp {
  top: 8%;
  left: 0;
  animation: float-a 7.5s ease-in-out infinite;
}

.hero-float--ads {
  top: 38%;
  right: 0;
  animation: float-b 8.5s ease-in-out infinite;
}

.hero-float--web {
  bottom: 6%;
  left: 12%;
  animation: float-c 9s ease-in-out infinite;
}

@keyframes float-a {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes float-b {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}
@keyframes float-c {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* Mini UI insides */
.ui-chat {
  display: grid;
  gap: 8px;
}
.ui-chat__row {
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.05);
  color: #d8d8d2;
}
.ui-chat__row--ai {
  background: rgba(212, 168, 75, 0.12);
  border: 1px solid rgba(212, 168, 75, 0.2);
}

.ui-chart {
  height: 56px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  margin: 8px 0;
}
.ui-chart span {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--accent-light), rgba(212, 168, 75, 0.25));
  opacity: 0.85;
}
.ui-chart span:nth-child(1) { height: 35%; }
.ui-chart span:nth-child(2) { height: 55%; }
.ui-chart span:nth-child(3) { height: 42%; }
.ui-chart span:nth-child(4) { height: 78%; }
.ui-chart span:nth-child(5) { height: 62%; }
.ui-chart span:nth-child(6) { height: 90%; }

.ui-metric {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-dim);
}
.ui-metric strong {
  color: var(--text);
  font-weight: 600;
}

.ui-browser {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0e0e10;
}
.ui-browser__bar {
  display: flex;
  gap: 5px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.04);
}
.ui-browser__bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: block;
}
.ui-browser__body {
  height: 70px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.06) 30%, transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.05), transparent 70%);
  background-size: 100% 12px, 100% 100%;
  background-repeat: no-repeat;
  background-position: 12px 16px, 0 0;
}

/* Services list premium interaction */
.service-row {
  border-color: var(--border);
  transition: background 0.4s var(--ease-premium), border-color 0.35s ease, transform 0.35s var(--ease-premium);
}
.service-row:hover,
.service-row.is-open {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(212, 168, 75, 0.28);
  box-shadow: inset 0 0 0 1px rgba(212, 168, 75, 0.08);
}

/* Work cards */
.case-item {
  border-radius: 16px;
}
.case-item .thumb,
.case-item .case-image {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, #151518, #0c0c0e);
  box-shadow: var(--shadow-deep);
}

/* Section atmosphere */
.section--alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.lede {
  color: var(--text-dim);
}

/* Page accents */
.page-accent {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 40% 60% 55% 45%;
  background: radial-gradient(circle, rgba(212, 168, 75, 0.1), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 2;
  opacity: 0.7;
}
.page-accent--tl { top: 12%; left: 4%; }
.page-accent--br { bottom: 10%; right: 6%; }

@media (max-width: 1024px) {
  .hero.hero--stage .hero-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-stage {
    min-height: 380px;
    height: 400px;
    order: -1;
  }
  .hero.hero--stage h1 {
    font-size: clamp(2.4rem, 9vw, 3.6rem);
  }
}

@media (max-width: 640px) {
  .hero-float {
    width: 46%;
    padding: 10px;
  }
  .hero-float__title { font-size: 0.78rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-float--web { left: 4%; }
}
