/* ============ AURAE AI — premium dark ============ */
:root {
  --bg: #050510;
  --bg-2: #0a0a18;
  --amber: #E8A020;
  --amber-soft: #ffb947;
  --amber-deep: #8a5a08;
  --text: #f0ecdf;
  --muted: #8a8497;
  --line: rgba(232, 160, 32, 0.18);
  --line-strong: rgba(232, 160, 32, 0.4);
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; cursor: none; }
button { cursor: none; font-family: inherit; }

/* ============ Background canvas layers ============ */
#shader-canvas, #particle-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}
#shader-canvas { z-index: 0; opacity: 0.85; }
#particle-canvas { z-index: 1; }

/* CRT scanlines overlay */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(0,0,0,0) 0px,
      rgba(0,0,0,0) 2px,
      rgba(232, 160, 32, 0.025) 2px,
      rgba(232, 160, 32, 0.025) 3px
    );
  mix-blend-mode: overlay;
}
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 49;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.6) 100%);
}

/* Grain noise */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 48;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='1'/></svg>");
}

/* Sweep line */
.sweep {
  position: fixed;
  top: 0;
  left: -2px;
  width: 2px;
  height: 100vh;
  pointer-events: none;
  z-index: 47;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(232, 160, 32, 0) 20%,
    rgba(232, 160, 32, 0.6) 50%,
    rgba(232, 160, 32, 0) 80%,
    transparent 100%);
  box-shadow: 0 0 24px rgba(232, 160, 32, 0.5);
  animation: sweep 8s linear infinite;
}
@keyframes sweep {
  0% { transform: translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(100vw); opacity: 0; }
}

/* ============ Custom cursor ============ */
.cursor-ring, .cursor-dot {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--amber-soft);
  transform: translate(-50%, -50%);
  transition: width 0.25s cubic-bezier(.2,.8,.2,1), height 0.25s cubic-bezier(.2,.8,.2,1), border-color 0.2s;
}
.cursor-dot {
  width: 5px; height: 5px;
  background: var(--amber-soft);
  transform: translate(-50%, -50%);
}
.cursor-ring.hover {
  width: 64px; height: 64px;
  border-color: var(--amber);
}

/* ============ Layout ============ */
.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
}

nav.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(5,5,16,0.7) 0%, rgba(5,5,16,0) 100%);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Georgia', serif;
  font-size: 18px;
  letter-spacing: 0.18em;
  font-weight: 400;
}
.brand-mark {
  width: 22px; height: 22px;
  position: relative;
}
.nav-links {
  display: flex;
  gap: 36px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--amber-soft); }

/* ── Mobile nav fix: override display:flex for mobile ── */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 70%;
    max-width: 300px;
    background: rgba(8,8,22,.97);
    backdrop-filter: blur(20px);
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    border-left: 1px solid var(--border);
    z-index: 100;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; z-index: 101; }
  .nav-status { display: none; }
  .btn-agendar { margin-top: 1rem; text-align: center; }
}
.nav-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.status-dot {
  width: 6px; height: 6px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--amber);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: 140px 48px 80px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 32px;
  font-weight: 500;
}
.eyebrow .bar {
  width: 32px;
  height: 1px;
  background: var(--amber);
}

h1.headline {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 28px;
  text-wrap: balance;
}
h1.headline .accent {
  font-style: italic;
  color: var(--amber-soft);
}
h1.headline .smoke {
  position: relative;
  display: inline-block;
  color: var(--amber);
  font-style: italic;
}
h1.headline .ellipsis {
  letter-spacing: 0.08em;
  color: var(--muted);
}
#smoke-canvas {
  position: absolute;
  pointer-events: none;
  z-index: 3;
}

.subhead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 44px;
  font-weight: 300;
}
.subhead strong {
  color: var(--text);
  font-weight: 400;
}

.cta-row {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.btn {
  position: relative;
  padding: 16px 28px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  border: none;
  background: none;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}
.btn.primary {
  background: var(--amber);
  color: #15100a;
  border: 1px solid var(--amber);
}
.btn.primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.7s cubic-bezier(.2,.8,.2,1);
}
.btn.primary:hover::after { transform: translateX(110%); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -8px rgba(232,160,32,0.6); }
.btn.outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(232, 160, 32, 0.4);
}
.btn.outline:hover {
  border-color: var(--amber);
  background: rgba(232, 160, 32, 0.06);
  transform: translateY(-2px);
}

.tagline {
  font-family: 'Georgia', serif;
  font-size: 13px;
  letter-spacing: 0.4em;
  color: var(--muted);
  text-transform: uppercase;
  display: flex;
  gap: 18px;
  align-items: center;
}
.tagline span.dot {
  color: var(--amber);
  font-weight: 700;
}

/* Triangle stage */
.triangle-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}
.triangle-stage svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.tri-path {
  fill: url(#triGrad);
  stroke: var(--amber);
  stroke-width: 1.5;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 2.6s 0.4s cubic-bezier(.6,0,.2,1) forwards, pulseFill 4s 3s ease-in-out infinite;
  filter: drop-shadow(0 0 24px rgba(232, 160, 32, 0.4));
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulseFill {
  0%, 100% { filter: drop-shadow(0 0 24px rgba(232,160,32,0.4)); }
  50% { filter: drop-shadow(0 0 48px rgba(232,160,32,0.7)); }
}
.tri-ring {
  fill: none;
  stroke: rgba(232, 160, 32, 0.5);
  stroke-width: 1;
  stroke-dasharray: 4 10;
  transform-origin: center;
  animation: spin 28s linear infinite;
}
.tri-ring.inner {
  stroke-dasharray: 2 6;
  stroke: rgba(232, 160, 32, 0.25);
  animation: spin 18s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

.tri-float {
  animation: float 9s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.tri-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.tri-label {
  position: absolute;
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--amber-soft);
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 0.6s 3s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }
.tri-label.top { top: -8px; left: 50%; transform: translateX(-50%); }
.tri-label.left { bottom: 18%; left: -10px; }
.tri-label.right { bottom: 18%; right: -10px; }

/* Hero footer stats */
.hero-stats {
  position: absolute;
  bottom: 36px; left: 48px; right: 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  max-width: 1440px;
  margin: 0 auto;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.stat .num {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 28px;
  color: var(--text);
  letter-spacing: 0;
  font-weight: 400;
}
.stat .num .pct { color: var(--amber); font-size: 18px; margin-left: 2px; }
.stat .lbl { max-width: 140px; line-height: 1.4; }

/* ============ SERVICES ============ */
.services {
  padding: 140px 48px;
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 72px;
  gap: 40px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: 'Georgia', serif;
  font-weight: 400;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  max-width: 720px;
}
.section-head h2 em {
  color: var(--amber);
  font-style: italic;
}
.section-head .meta {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(232,160,32,0.16) 0%, transparent 50%),
    linear-gradient(180deg, rgba(20, 16, 30, 0.6) 0%, rgba(8, 6, 16, 0.6) 100%);
  padding: 40px 32px 32px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), border-color 0.3s;
  transform-style: preserve-3d;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='1'/></svg>");
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 250px at var(--mx, 50%) var(--my, 50%),
    rgba(232, 160, 32, 0.18),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.card:hover {
  border-color: var(--line-strong);
}
.card:hover::after { opacity: 1; }

.card-num {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--amber);
  letter-spacing: 0.2em;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.card-num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}
.card h3 {
  font-family: 'Georgia', serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.card .price {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--amber-soft);
  letter-spacing: 0.05em;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px dashed var(--line);
}
.card p.desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 28px;
  flex: 1;
}
.card ul.bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.card ul.bullets li {
  font-size: 13px;
  color: var(--text);
  padding-left: 20px;
  position: relative;
  font-weight: 300;
}
.card ul.bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 1px;
  background: var(--amber);
}
.card-cta {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  margin-top: auto;
}
.card-cta .arrow {
  transition: transform 0.3s;
  display: inline-block;
}
.card:hover .card-cta .arrow { transform: translateX(6px); }

/* Iridescent corner shimmer */
.card-shimmer {
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 120px;
  background: conic-gradient(from 180deg at 100% 0%,
    transparent 0deg,
    rgba(232,160,32,0.3) 40deg,
    rgba(255,200,100,0.5) 80deg,
    rgba(232,160,32,0.3) 120deg,
    transparent 180deg);
  opacity: 0.6;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* ============ MANIFESTO STRIP ============ */
.manifesto {
  padding: 80px 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(232, 160, 32, 0.02);
  position: relative;
  z-index: 2;
}
.manifesto-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 980px) {
  .manifesto-inner { grid-template-columns: 1fr; }
}
.manifesto h3 {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 400;
}
.manifesto p {
  font-family: 'Georgia', serif;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: -0.005em;
}
.manifesto p em {
  color: var(--amber);
  font-style: italic;
}

/* ============ FOOTER ============ */
footer {
  padding: 60px 48px 40px;
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
footer .coord {
  font-family: 'Georgia', serif;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.08em;
  color: var(--amber-soft);
  font-size: 13px;
}

/* Reveal on load */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp 1s cubic-bezier(.2,.8,.2,1) forwards;
}
.reveal.d1 { animation-delay: 0.1s; }
.reveal.d2 { animation-delay: 0.25s; }
.reveal.d3 { animation-delay: 0.4s; }
.reveal.d4 { animation-delay: 0.55s; }
.reveal.d5 { animation-delay: 0.7s; }
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}
