/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============ TOKENS ============ */
:root{
  --bg: #0a0a12;
  --bg-soft: #0d0c17;
  --surface: #14131f;
  --surface-2: #1a1829;
  --surface-3: #211f33;
  --border: #262440;
  --border-bright: rgba(146, 124, 255, 0.35);
  --text: #edecf7;
  --text-dim: #9793b0;
  --text-faint: #635f7d;
  --accent: #7c5cff;
  --accent-2: #a78bfa;
  --accent-soft: #cabdff;
  --accent-glow: rgba(124, 92, 255, 0.45);
  --teal: #5eead4;
  --amber: #fbbf6b;

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container: 1180px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

::selection{ background: var(--accent); color: #fff; }

:focus-visible{
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============ SHARED TYPE ============ */
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.eyebrow::before{
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 2px var(--accent-glow);
}

h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-tag{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.gradient-text{
  background: linear-gradient(100deg, #ffffff 10%, var(--accent-soft) 55%, var(--accent) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn-primary{
  background: linear-gradient(135deg, var(--accent), #6845e0);
  color: #fff;
  box-shadow: 0 8px 24px -8px var(--accent-glow);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 14px 32px -10px var(--accent-glow); }
.btn-ghost{
  background: rgba(255,255,255,0.02);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover{ border-color: var(--border-bright); background: rgba(124,92,255,0.06); }
.btn-sm{ padding: 10px 18px; font-size: 13px; }

/* ============ REVEAL ============ */
.reveal{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* ============ AURORA BACKDROP ============ */
.aurora{
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.aurora::before, .aurora::after{
  content: '';
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}
.aurora::before{
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -18%;
  left: 8%;
  animation: drift1 22s ease-in-out infinite alternate;
}
.aurora::after{
  background: radial-gradient(circle, #4c2fb8 0%, transparent 70%);
  bottom: -30%;
  right: -6%;
  animation: drift2 26s ease-in-out infinite alternate;
}
@keyframes drift1{
  0%{ transform: translate(0,0) scale(1); }
  100%{ transform: translate(4%, 6%) scale(1.08); }
}
@keyframes drift2{
  0%{ transform: translate(0,0) scale(1); }
  100%{ transform: translate(-5%, -4%) scale(1.1); }
}

/* ============ HEADER ============ */
header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 18, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
}
.logo{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.logo-mark{
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #4c2fb8);
  position: relative;
  box-shadow: 0 0 18px -2px var(--accent-glow);
}
.logo-mark::before{
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.85);
}
.nav-links{
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a{
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
  transition: color .2s ease;
  position: relative;
}
.nav-links a:hover{ color: var(--text); }

.nav-right{ display: flex; align-items: center; gap: 18px; }
.social-row{ display: flex; align-items: center; gap: 10px; }
.social-row--footer{ margin-top: 18px; }
.social-icon{
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 14px;
  transition: all .2s ease;
}
.social-icon:hover{
  color: var(--accent-soft);
  border-color: var(--border-bright);
  background: rgba(124,92,255,0.08);
  transform: translateY(-2px);
}

.nav-toggle{
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  color: var(--text);
  align-items: center;
  justify-content: center;
}

.mobile-menu{
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0 20px;
  border-top: 1px solid var(--border);
}
.mobile-menu.open{ display: flex; }
.mobile-menu a{
  padding: 12px 4px;
  color: var(--text-dim);
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu .social-row{ padding-top: 14px; }

@media (max-width: 900px){
  .nav-links{ display: none; }
  .nav-right .social-row{ display: none; }
  .nav-toggle{ display: inline-flex; }
}

/* ============ HERO ============ */
.hero{
  position: relative;
  padding-block: clamp(72px, 12vw, 128px) 0;
}
.hero-inner{
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}
.hero h1{
  margin-top: 22px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.06;
}
.hero p.lede{
  margin: 22px auto 0;
  max-width: 560px;
  color: var(--text-dim);
  font-size: clamp(16px, 2vw, 18px);
}
.hero-ctas{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero-stats{
  display: flex;
  justify-content: center;
  gap: clamp(24px, 5vw, 56px);
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.stat{ text-align: center; }
.stat .num{
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
}
.stat .label{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 4px;
}

/* ============ COMMAND DECK (signature element) ============ */
.deck-wrap{
  position: relative;
  z-index: 1;
  margin: 64px auto 0;
  max-width: 1020px;
  padding-inline: 20px;
}
.deck{
  background: linear-gradient(180deg, rgba(26,24,41,0.9), rgba(15,14,26,0.9));
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-xl);
  box-shadow: 0 40px 90px -30px rgba(76, 47, 184, 0.5), 0 0 0 1px rgba(124,92,255,0.06) inset;
  overflow: hidden;
}
.deck-bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}
.deck-dots{ display: flex; gap: 6px; }
.deck-dots span{ width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); }
.deck-url{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 8px;
}
.deck-url .fa-lock{ font-size: 9px; }
.live-badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--teal);
}
.live-dot{
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 8px 1px var(--teal);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot{ 0%,100%{opacity:1;} 50%{opacity:.35;} }

.deck-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.deck-panel{
  padding: 22px;
  border-right: 1px solid var(--border);
}
.deck-panel:last-child{ border-right: none; }
.deck-panel h4{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.deck-panel h4 i{ color: var(--accent-soft); font-size: 12px; }

/* flow nodes */
.flow{ display: flex; flex-direction: column; gap: 10px; }
.flow-node{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-dim);
  position: relative;
}
.flow-node i{ color: var(--accent-soft); width: 14px; text-align: center; }
.flow-node.active{
  border-color: var(--border-bright);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(124,92,255,0.15) inset;
}
.flow-connector{
  width: 1px;
  height: 10px;
  background: var(--border-bright);
  margin-left: 22px;
}
.flow-status{
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* chat mockup */
.chat{ display: flex; flex-direction: column; gap: 10px; }
.bubble{
  max-width: 88%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.4;
}
.bubble.in{
  align-self: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-bottom-left-radius: 3px;
}
.bubble.out{
  align-self: flex-end;
  background: linear-gradient(135deg, var(--accent), #5b3fd6);
  color: #fff;
  border-bottom-right-radius: 3px;
}
.typing{
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  border-bottom-left-radius: 3px;
}
.typing span{
  width: 5px; height: 5px; border-radius: 50%; background: var(--text-faint);
  animation: typing-bounce 1.2s infinite ease-in-out;
}
.typing span:nth-child(2){ animation-delay: .15s; }
.typing span:nth-child(3){ animation-delay: .3s; }
@keyframes typing-bounce{ 0%,60%,100%{ transform: translateY(0); opacity:.4;} 30%{ transform: translateY(-4px); opacity:1;} }

/* chart mockup */
.chart{
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 90px;
  padding-top: 6px;
}
.chart .bar{
  flex: 1;
  background: linear-gradient(180deg, var(--accent-soft), var(--accent));
  border-radius: 4px 4px 0 0;
  height: 10%;
  transition: height 1.1s cubic-bezier(.2,.8,.2,1);
  opacity: 0.85;
}
.chart-meta{
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}
.chart-meta b{ color: var(--text); font-size: 15px; font-family: var(--font-display); display: block; }

@media (max-width: 820px){
  .deck-grid{ grid-template-columns: 1fr; }
  .deck-panel{ border-right: none; border-bottom: 1px solid var(--border); }
  .deck-panel:last-child{ border-bottom: none; }
}

/* ============ SERVICES ============ */
.services{ padding-block: clamp(90px, 12vw, 150px) clamp(60px,8vw,100px); position: relative; }
.section-head{
  max-width: 620px;
  margin-bottom: 56px;
}
.section-head h2{
  font-size: clamp(30px, 4vw, 44px);
  margin-top: 14px;
}
.section-head p{
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 16px;
}

.service-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.service-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
  position: relative;
  overflow: hidden;
}
.service-card::after{
  content:'';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent-glow), transparent 40%);
  opacity: 0;
  transition: opacity .3s ease;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.service-card:hover{ transform: translateY(-5px); border-color: var(--border-bright); background: var(--surface-2); }
.service-card:hover::after{ opacity: 1; }
.service-icon{
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124,92,255,0.18), rgba(124,92,255,0.04));
  border: 1px solid var(--border-bright);
  color: var(--accent-soft);
  font-size: 18px;
  margin-bottom: 18px;
}
.service-card h3{ font-size: 18px; margin-bottom: 10px; }
.service-card p{ color: var(--text-dim); font-size: 14.5px; margin-bottom: 14px; }
.service-tags{ display: flex; flex-wrap: wrap; gap: 6px; }
.service-tags span{
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  color: var(--text-faint);
  border: 1px solid var(--border);
  padding: 4px 9px;
  border-radius: 999px;
}

/* ============ WHY US ============ */
.why{
  padding-block: clamp(60px,8vw,100px);
  border-top: 1px solid var(--border);
}
.why-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.why-list{ margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.why-item{ display: flex; gap: 14px; align-items: flex-start; }
.why-check{
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(124,92,255,0.14);
  border: 1px solid var(--border-bright);
  color: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 2px;
}
.why-item p{ color: var(--text-dim); font-size: 15px; }
.why-item strong{ color: var(--text); }

.why-card{
  background: radial-gradient(circle at 30% 0%, rgba(124,92,255,0.16), transparent 60%), var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-xl);
  padding: 34px 30px;
}
.why-card .quote-mark{ font-family: var(--font-display); font-size: 44px; color: var(--accent-soft); line-height: 1; opacity: .6; }
.why-card p.quote{ margin-top: 6px; font-size: 18px; color: var(--text); line-height: 1.5; font-family: var(--font-display); font-weight: 500; }
.why-card .quote-stats{
  display: flex;
  gap: 26px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.why-card .quote-stats .stat .num{ font-size: 21px; }

@media (max-width: 880px){ .why-grid{ grid-template-columns: 1fr; gap: 36px; } }

/* ============ CONTACT ============ */
.contact{
  padding-block: clamp(70px,9vw,120px);
  position: relative;
}
.contact-grid{
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  align-items: start;
}
.process-steps{ display: flex; flex-direction: column; gap: 22px; margin-top: 30px; }
.process-step{ display: flex; gap: 16px; }
.process-num{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-soft);
  border: 1px solid var(--border-bright);
  border-radius: 50%;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.process-step h4{ font-size: 15px; color: var(--text); margin-bottom: 4px; font-family: var(--font-body); font-weight: 600; }
.process-step p{ font-size: 14px; color: var(--text-dim); }

.form-card{
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 38px);
  box-shadow: 0 30px 70px -30px rgba(76,47,184,0.35);
}
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field{ margin-bottom: 16px; }
.field label{
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea{
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,92,255,0.18);
}
.field textarea{ resize: vertical; min-height: 100px; }
.field select{ appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%239793b0' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.form-note{ font-size: 12.5px; color: var(--text-faint); margin-top: 14px; }
.form-submit{ width: 100%; margin-top: 6px; }
.form-submit:disabled{ opacity: 0.75; cursor: not-allowed; }
.form-success{
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(94,234,212,0.1);
  border: 1px solid rgba(94,234,212,0.35);
  color: var(--teal);
  font-size: 13.5px;
}
.form-success.show{ display: block; }
.form-error{
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(251,191,107,0.1);
  border: 1px solid rgba(251,191,107,0.35);
  color: var(--amber);
  font-size: 13.5px;
}
.form-error.show{ display: block; }

.section-title--contact{
  font-size: clamp(28px, 3.6vw, 38px);
  margin-top: 14px;
}
.section-lead--contact{
  color: var(--text-dim);
  margin-top: 14px;
  font-size: 15px;
}

@media (max-width: 880px){
  .contact-grid{ grid-template-columns: 1fr; }
  .form-row{ grid-template-columns: 1fr; }
}

/* ============ FOOTER ============ */
footer{
  border-top: 1px solid var(--border);
  padding-block: 48px 28px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p{ color: var(--text-dim); font-size: 14px; margin-top: 12px; max-width: 280px; }
.footer-col h5{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.footer-col a, .footer-col p{
  display: block;
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 10px;
  transition: color .2s ease;
}
.footer-col a:hover{ color: var(--accent-soft); }
.footer-bottom{
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p{ font-size: 13px; color: var(--text-faint); }

@media (max-width: 720px){
  .footer-grid{ grid-template-columns: 1fr; gap: 28px; }
}

/* ============ WHATSAPP FLOAT ============ */
.wa-float{
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #1ebe5b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  z-index: 200;
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, 0.6);
}
.wa-float::before{
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37,211,102,0.55);
  animation: wa-pulse 2.2s ease-out infinite;
  z-index: -1;
}
@keyframes wa-pulse{
  0%{ transform: scale(1); opacity: .7; }
  100%{ transform: scale(1.9); opacity: 0; }
}
