/* ═══════════════════════════════════════════
   AURAE AI — Design System v2
   ═══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Rajdhani:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400&display=swap');

:root {
  --bg: #020408;
  --surface: #060d14;
  --surface2: #0a1520;
  --border: #0f2035;
  --border2: rgba(0,212,255,.12);
  --purple: #7B2FBE;
  --cyan: #00D4FF;
  --pink: #FF2D78;
  --green: #00FF88;
  --amber: #FFB830;
  --text: #E8F4FF;
  --text-dim: #5A8BAA;
  --text-muted: #1A3550;
  --grad: linear-gradient(135deg, #7B2FBE, #00D4FF);
  --grad-h: linear-gradient(90deg, #7B2FBE, #00D4FF);
  --font-display: 'Orbitron', monospace;
  --font-body: 'Rajdhani', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 6px;
  --glow-cyan: 0 0 30px rgba(0,212,255,.3);
  --glow-purple: 0 0 30px rgba(123,47,190,.3);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* ─── CUSTOM CURSOR ──────────────────── */
#cursor {
  width: 10px; height: 10px;
  background: var(--cyan);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform .1s, width .2s, height .2s, background .2s;
  mix-blend-mode: screen;
}
#cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(0,212,255,.5);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform .15s ease, width .3s, height .3s, border-color .3s;
}
body:hover #cursor { width: 10px; height: 10px; }
a:hover ~ #cursor, button:hover ~ #cursor { width: 16px; height: 16px; background: var(--pink); }

/* ─── PARTICLE CANVAS ────────────────── */
#canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

/* ─── NAV ────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1.2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(2,4,8,.85);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: padding .3s;
}
nav.scrolled { padding: .8rem 3rem; }
.nav-brand {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .2em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .8rem;
}
.nav-brand svg { flex-shrink: 0; }
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transition: transform .2s;
}
.nav-links a:hover { color: var(--cyan); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--cyan); }
.nav-links a.active::after { transform: scaleX(1); }
.btn-nav {
  border: 1px solid var(--cyan) !important;
  color: var(--cyan) !important;
  padding: .45rem 1.3rem;
  border-radius: 3px;
  transition: all .2s !important;
  font-family: var(--font-display) !important;
  font-size: .6rem !important;
  letter-spacing: .12em;
}
.btn-nav:hover {
  background: var(--cyan) !important;
  color: var(--bg) !important;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: .3rem;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--cyan);
  display: block;
  transition: all .3s;
}

/* ─── SECTIONS ───────────────────────── */
.section {
  position: relative;
  z-index: 1;
  padding: 7rem 2rem;
}
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-tag {
  font-family: var(--font-display);
  font-size: .52rem;
  letter-spacing: .45em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-title .g {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-sub {
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 600px;
  margin-bottom: 4rem;
  font-weight: 400;
}
.divider-line {
  width: 60px; height: 2px;
  background: var(--grad);
  margin-bottom: 1.5rem;
}

/* ─── BUTTONS ────────────────────────── */
.btn-primary {
  background: var(--grad);
  color: #fff;
  padding: .9rem 2.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  border: none;
  cursor: none;
  box-shadow: 0 0 30px rgba(123,47,190,.4);
  transition: transform .2s, box-shadow .2s;
  display: inline-block;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(0,212,255,.5); }
.btn-secondary {
  background: transparent;
  color: var(--cyan);
  padding: .9rem 2.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  border: 1px solid rgba(0,212,255,.4);
  cursor: none;
  transition: all .2s;
  display: inline-block;
}
.btn-secondary:hover { border-color: var(--cyan); background: rgba(0,212,255,.08); }

/* ─── CARDS ──────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--grad-h);
  opacity: 0;
  transition: opacity .3s;
}
.card:hover {
  border-color: var(--border2);
  transform: translateY(-4px);
  box-shadow: var(--glow-purple);
}
.card:hover::before { opacity: 1; }

/* ─── REVEAL ANIMATIONS ──────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ─── FOOTER ─────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 5rem 2rem 2rem;
  background: var(--surface);
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .2em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: .8rem;
}
.footer-brand-desc {
  color: var(--text-dim);
  font-size: .9rem;
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: 1.5rem;
}
.footer-social { display: flex; gap: .8rem; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  text-decoration: none;
  font-size: .8rem;
  transition: all .2s;
}
.footer-social a:hover { border-color: var(--cyan); color: var(--cyan); }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: .55rem;
  letter-spacing: .3em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .6rem; }
.footer-col a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: .9rem;
  transition: color .2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: .82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.footer-badge {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--cyan);
  opacity: .5;
}

/* ─── SLA TABLE ──────────────────────── */
.sla-table { width: 100%; border-collapse: collapse; }
.sla-table th, .sla-table td {
  padding: .9rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.sla-table th {
  font-family: var(--font-display);
  font-size: .52rem;
  letter-spacing: .2em;
  color: var(--cyan);
  text-transform: uppercase;
  background: var(--surface);
}
.sla-table td { color: var(--text-dim); }
.sla-table tr:hover td { color: var(--text); background: rgba(0,212,255,.03); }
.priority-tag {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 3px;
  font-family: var(--font-display);
  font-size: .5rem;
  letter-spacing: .1em;
  font-weight: 700;
}
.p-critico { background: rgba(255,45,120,.15); color: var(--pink); border: 1px solid rgba(255,45,120,.3); }
.p-alto { background: rgba(255,184,48,.1); color: var(--amber); border: 1px solid rgba(255,184,48,.3); }
.p-medio { background: rgba(0,212,255,.1); color: var(--cyan); border: 1px solid rgba(0,212,255,.3); }
.p-bajo { background: rgba(0,255,136,.08); color: var(--green); border: 1px solid rgba(0,255,136,.3); }

/* ─── COUNTER ────────────────────────── */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color .3s;
}
.metric-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-h);
}
.metric-card:hover { border-color: var(--border2); }
.metric-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: .5rem;
}
.metric-label {
  font-size: .82rem;
  color: var(--text-dim);
  letter-spacing: .05em;
}

/* ─── RESPONSIVE ─────────────────────── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  nav.scrolled { padding: .8rem 1.5rem; }
  .nav-links { display: none; flex-direction: column; position: fixed; top: 0; right: 0; bottom: 0; width: 70%; background: var(--surface); padding: 5rem 2rem 2rem; gap: 1.5rem; border-left: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .section { padding: 5rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── MOBILE FIXES ─────────────────────── */
@media (max-width: 768px) {
  /* Hero */
  .hero-content { padding: 0 1rem; text-align: center; }
  
  /* Demo WhatsApp */
  .demo-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
  
  /* How it works */
  .how-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
  
  /* Portfolio */
  .portfolio-grid { grid-template-columns: 1fr !important; }
  
  /* Industries */
  .industries-grid { grid-template-columns: repeat(2, 1fr) !important; }
  
  /* Metrics */
  .metrics-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Services */
  .services-grid { grid-template-columns: 1fr !important; }

  /* Section inner padding */
  .section { padding: 4rem 1rem !important; }
  .section-inner { padding: 0 !important; }

  /* Typography */
  .hero-title { font-size: clamp(1.8rem, 6vw, 3rem) !important; }
  .section-title { font-size: clamp(1.4rem, 5vw, 2.2rem) !important; }

  /* Cards */
  .service-card, .step, .industry-card { padding: 1.5rem !important; }

  /* Pricing */
  .pricing-grid { grid-template-columns: 1fr !important; }

  /* Buttons */
  .btn { width: 100%; text-align: center; justify-content: center; }
  .hero-actions { flex-direction: column; gap: 1rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr !important; }

  /* Custom cursor - hide on touch */
  #cursor, #cursor-ring { display: none !important; }
}

@media (max-width: 400px) {
  .industries-grid { grid-template-columns: 1fr !important; }
  .metrics-grid { grid-template-columns: 1fr !important; }
}

/* ═══════════════════════════════════════════
   AURAE AI — v3 Additions: Float Panels + Stagger
   ═══════════════════════════════════════════ */

/* ─── STAGGER CHILDREN ───────────────────── */
.stagger-child {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.stagger-child.visible { opacity: 1; transform: translateY(0); }

/* ─── FLOATING GLASS PANELS ──────────────── */
/* Inspired by aurea-ai-solutions.com popup windows */
.float-panel {
  background: rgba(6,13,20,.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0,212,255,.15);
  border-radius: 12px;
  padding: 1.8rem 2rem;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(32px) scale(.97);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 24px 64px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.05);
}
.float-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,.4), transparent);
}
.float-panel.float-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.float-panel.delay-1 { transition-delay: .1s; }
.float-panel.delay-2 { transition-delay: .2s; }
.float-panel.delay-3 { transition-delay: .3s; }
.float-panel.delay-4 { transition-delay: .4s; }

/* Floating panel header */
.fp-header {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.fp-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(0,212,255,.7);
  flex-shrink: 0;
}
.fp-dot.purple { background: var(--purple); box-shadow: 0 0 8px rgba(123,47,190,.7); }
.fp-dot.green  { background: var(--green);  box-shadow: 0 0 8px rgba(0,255,136,.7); }
.fp-title {
  font-family: var(--font-display);
  font-size: .5rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.fp-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--cyan);
  background: rgba(0,212,255,.08);
  border: 1px solid rgba(0,212,255,.15);
  padding: .15rem .6rem;
  border-radius: 3px;
}
.fp-badge.live::before {
  content: '●';
  margin-right: .4rem;
  animation: blink 1.5s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

/* Float panel grid */
.float-panels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (max-width: 900px) {
  .float-panels-grid { grid-template-columns: 1fr; }
}

/* ─── HERO AMBIENT GLOW ───────────────────── */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: .12;
  animation: glowDrift 8s ease-in-out infinite alternate;
}
.hero-glow-1 { width: 500px; height: 500px; background: var(--purple); top: -100px; right: -100px; }
.hero-glow-2 { width: 350px; height: 350px; background: var(--cyan); bottom: 0; left: -50px; animation-delay: -4s; }
@keyframes glowDrift { from{transform:translate(0,0) scale(1)} to{transform:translate(20px,-30px) scale(1.1)} }

/* ─── SECTION ENTRANCE ────────────────────── */
.section-entrance {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s ease, transform .9s ease;
}
.section-entrance.visible { opacity: 1; transform: translateY(0); }

/* ─── STATUS PILL ─────────────────────────── */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(0,255,136,.06);
  border: 1px solid rgba(0,255,136,.2);
  border-radius: 20px;
  padding: .3rem .9rem;
  font-family: var(--font-display);
  font-size: .48rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green);
}
.status-pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 2s infinite;
}

/* ─── METRIC RING ─────────────────────────── */
.metric-ring {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 48px; height: 48px;
}
.metric-ring svg { transform: rotate(-90deg); }
.metric-ring .ring-track { fill: none; stroke: var(--border); stroke-width: 3; }
.metric-ring .ring-fill  { fill: none; stroke: url(#gradRing); stroke-width: 3; stroke-linecap: round; transition: stroke-dashoffset 1.5s ease; }
