/* ============================================
   NOVA DEV — Premium Shared-Hosting Stylesheet
   ============================================ */

:root {
  --primary: #f2cf12;
  --bg: #050505;
  --surface: #111111;
  --card: #161616;
  --glass: rgba(255, 255, 255, 0.05);
  --text: #ffffff;
  --muted: #9a9a9a;
  --glow: rgba(242, 207, 18, 0.4);
  --glow-soft: rgba(242, 207, 18, 0.15);
  --border: rgba(242, 207, 18, 0.2);
  --radius: 16px;
  --radius-lg: 24px;
  --font: 'Inter', system-ui, sans-serif;
  --nav-h: 72px;
  --max-w: 1200px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* Noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
  opacity: 0.4;
}

/* Grid background */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(242, 207, 18, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 207, 18, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent);
}

/* Custom cursor */
.cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 0.2s, height 0.2s;
}
.cursor-ring {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(242, 207, 18, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}
body:has(a:hover) .cursor, body:has(button:hover) .cursor { width: 20px; height: 20px; }
@media (max-width: 768px) { .cursor, .cursor-ring { display: none; } body { cursor: auto; } }

/* Typography */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.text-muted { color: var(--muted); }
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #fff 50%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Layout */
.container { width: min(100% - 2rem, var(--max-w)); margin-inline: auto; }
section { position: relative; z-index: 1; padding: 6rem 0; }
section:nth-child(even) { background: var(--surface); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header p { max-width: 560px; margin: 1rem auto 0; color: var(--muted); }

/* Glass card */
.glass {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}
.glow-border {
  border: 1px solid var(--border);
  box-shadow: 0 0 30px var(--glow-soft), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  cursor: none;
  transition: var(--transition);
  text-decoration: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--primary);
  color: #050505;
  box-shadow: 0 0 40px var(--glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px var(--glow), 0 8px 30px rgba(0,0,0,0.4);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 1.125rem 2.5rem; font-size: 1.05rem; }
.magnetic { position: relative; }

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background 0.3s, backdrop-filter 0.3s;
}
.navbar.scrolled {
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.05em;
}
.logo span { color: var(--primary); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  background: radial-gradient(ellipse 60% 50% at 70% 40%, rgba(242,207,18,0.08), transparent);
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-content { position: relative; z-index: 2; }
.hero-content h1 { margin-bottom: 1.5rem; }
.hero-content h1 em { font-style: normal; color: var(--primary); display: block; }
.hero-sub { font-size: 1.125rem; color: var(--muted); max-width: 480px; margin-bottom: 2rem; line-height: 1.7; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual { position: relative; height: 520px; }
#hero-canvas { width: 100%; height: 100%; border-radius: var(--radius-lg); }
.hero-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: pulse-glow 4s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}
.float-card {
  position: absolute;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  animation: float 6s ease-in-out infinite;
  z-index: 3;
}
.float-card:nth-child(1) { top: 10%; left: 0; animation-delay: 0s; }
.float-card:nth-child(2) { top: 25%; right: -10px; animation-delay: 1s; }
.float-card:nth-child(3) { bottom: 30%; left: -20px; animation-delay: 2s; }
.float-card:nth-child(4) { bottom: 15%; right: 5%; animation-delay: 0.5s; }
.float-card:nth-child(5) { top: 50%; left: 5%; animation-delay: 1.5s; }
.float-card:nth-child(6) { top: 60%; right: 0; animation-delay: 2.5s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Trust */
.trust-logos {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.logo-track {
  display: flex;
  gap: 4rem;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.logo-track span {
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(255,255,255,0.2);
  white-space: nowrap;
  letter-spacing: 0.1em;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--primary);
  display: block;
}
.stat-label { color: var(--muted); font-size: 0.9rem; margin-top: 0.25rem; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: none;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), var(--glow-soft), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px var(--glow-soft);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(242,207,18,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: transform 0.3s;
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(-5deg); }
.service-card h3 { margin-bottom: 0.5rem; }
.service-card p { color: var(--muted); font-size: 0.9rem; }
.service-card .expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0;
}
.service-card:hover .expand { max-height: 40px; margin-top: 1rem; }

/* Process - horizontal timeline (desktop) */
.process-wrap {
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  mask-image: linear-gradient(90deg, transparent, black 24px, black calc(100% - 24px), transparent);
}
.process-wrap::-webkit-scrollbar { display: none; }
.process-scroll-hint {
  display: none;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}
.process-scroll-hint span {
  color: var(--primary);
  animation: hint-pulse 2s ease-in-out infinite;
}
@keyframes hint-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
.process-track {
  display: flex;
  gap: 0;
  min-width: max-content;
  padding: 2rem 1rem;
}
.process-step {
  flex: 0 0 200px;
  text-align: center;
  position: relative;
  padding: 0 1rem;
  scroll-snap-align: center;
}
.process-step::after {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(50% + 28px);
  width: calc(100% - 56px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary), rgba(242,207,18,0.2));
}
.process-step:last-child::after { display: none; }
.process-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--primary);
  margin: 0 auto 1rem;
  transition: var(--transition);
  box-shadow: 0 0 20px var(--glow-soft);
}
.process-step.active .process-num,
.process-step:hover .process-num {
  background: var(--primary);
  color: #050505;
  box-shadow: 0 0 40px var(--glow);
  transform: scale(1.1);
}
.process-step h4 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.process-step p { font-size: 0.8rem; color: var(--muted); }

/* Bento grid */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 180px);
  gap: 1rem;
}
.bento-item {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.bento-item:hover {
  border-color: var(--border);
  transform: scale(1.02);
  box-shadow: 0 0 30px var(--glow-soft);
}
.bento-item.large { grid-column: span 2; grid-row: span 2; }
.bento-item.wide { grid-column: span 2; }
.bento-icon { font-size: 2rem; margin-bottom: auto; opacity: 0.9; }
.bento-item h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.bento-item p { font-size: 0.8rem; color: var(--muted); }
.bento-illus {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px dashed var(--border);
  animation: spin-slow 20s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.project-card {
  perspective: 1000px;
  cursor: none;
}
.project-device {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.5s ease, box-shadow 0.5s;
  transform-style: preserve-3d;
  animation: float 8s ease-in-out infinite;
}
.project-card:nth-child(2) .project-device { animation-delay: 2s; }
.project-card:nth-child(3) .project-device { animation-delay: 4s; }
.project-card:hover .project-device {
  transform: rotateY(-8deg) rotateX(5deg) translateY(-10px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 50px var(--glow-soft);
}
.device-screen {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  overflow: hidden;
  position: relative;
}
.device-screen.phone { aspect-ratio: 9/16; max-width: 120px; margin-inline: auto; }
.project-info { opacity: 0.7; transition: opacity 0.3s; }
.project-card:hover .project-info { opacity: 1; }
.project-info h4 { margin-bottom: 0.25rem; }
.project-info p { font-size: 0.85rem; color: var(--muted); }
.project-tags { display: flex; gap: 0.5rem; margin-top: 0.75rem; flex-wrap: wrap; }
.project-tags span {
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  background: rgba(242,207,18,0.1);
  color: var(--primary);
  border-radius: 100px;
}

/* Calculator */
.calculator {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}
.calc-options { display: flex; flex-direction: column; gap: 1.5rem; }
.calc-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  font-weight: 500;
}
.calc-types {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
}
.calc-type-btn {
  padding: 0.875rem;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: none;
  transition: var(--transition);
  text-align: center;
}
.calc-type-btn:hover, .calc-type-btn.active {
  border-color: var(--primary);
  background: rgba(242,207,18,0.08);
  box-shadow: 0 0 20px var(--glow-soft);
}
.calc-type-btn.active { color: var(--primary); font-weight: 600; }
input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
  height: 6px;
}
.calc-features { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.calc-feat {
  padding: 0.5rem 1rem;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  font-size: 0.8rem;
  cursor: none;
  transition: var(--transition);
  color: var(--muted);
  font-family: inherit;
}
.calc-feat.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(242,207,18,0.08);
}
.calc-result {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  padding: 2rem;
  text-align: center;
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 0 60px var(--glow-soft);
}
.calc-price {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--primary);
  margin: 1rem 0;
}
.calc-range { color: var(--muted); font-size: 0.85rem; }

/* Tech stack */
#tech-canvas {
  width: 100%;
  height: 500px;
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at center, rgba(242,207,18,0.05), transparent);
}
.tech-fallback {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.tech-orb {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  animation: float 5s ease-in-out infinite;
  box-shadow: 0 0 30px var(--glow-soft);
}
.tech-orb:nth-child(odd) { animation-delay: 1s; }

/* Testimonials */
.testimonials-slider { position: relative; overflow: hidden; }
.testimonials-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.testimonial-card {
  flex: 0 0 100%;
  padding: 0 0.5rem;
}
.testimonial-inner {
  padding: 2.5rem;
  max-width: 700px;
  margin: 0 auto;
}
.stars { color: var(--primary); font-size: 1.25rem; margin-bottom: 1rem; letter-spacing: 2px; }
.testimonial-text { font-size: 1.125rem; line-height: 1.8; margin-bottom: 1.5rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #b8960e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #050505;
}
.author-name { font-weight: 600; }
.author-role { font-size: 0.85rem; color: var(--muted); }
.slider-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.slider-dot.active { background: var(--primary); width: 24px; border-radius: 4px; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 1.5rem 0;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s;
  color: var(--muted);
  line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 200px; padding-bottom: 1.5rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}
.contact-heading h2 { margin-bottom: 1rem; }
.contact-heading p { color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.contact-info { margin-top: 2rem; }
.contact-info div { margin-bottom: 1rem; }
.contact-info strong { color: var(--primary); display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.25rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.full { grid-column: span 2; }
.form-group label { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.875rem 1rem;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--glow-soft);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-status { margin-top: 1rem; font-size: 0.9rem; }
.form-status.success { color: #4ade80; }
.form-status.error { color: #f87171; }

/* Final CTA */
.final-cta {
  text-align: center;
  padding: 8rem 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(242,207,18,0.1), transparent);
  position: relative;
  overflow: hidden;
}
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.4;
  animation: particle-float 8s ease-in-out infinite;
}
@keyframes particle-float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.2; }
  50% { transform: translateY(-30px) scale(1.5); opacity: 0.6; }
}
.final-cta h2 { margin-bottom: 1rem; max-width: 600px; margin-inline: auto; }
.final-cta p { color: var(--muted); margin-bottom: 2rem; }

/* Footer */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 1rem; max-width: 280px; }
.footer-col h5 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--primary); }
.newsletter { display: flex; gap: 0.5rem; margin-top: 1rem; }
.newsletter input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  color: var(--text);
  font-family: inherit;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--muted);
  font-size: 0.85rem;
}
.social-links { display: flex; gap: 1rem; }
.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.85rem;
}
.social-links a:hover { border-color: var(--primary); color: var(--primary); }

/* Sticky mobile CTA */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  padding: 1rem;
  background: rgba(5,5,5,0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.08);
  z-index: 999;
}
.mobile-cta .btn { width: 100%; }

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { height: 400px; order: -1; }
  .calculator { grid-template-columns: 1fr; }
  .calc-result { position: static; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .bento-item.large { grid-column: span 2; grid-row: span 1; }
  .projects-grid { grid-template-columns: 1fr; max-width: 400px; margin-inline: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .process-scroll-hint { display: block; }
  .process-step { flex: 0 0 160px; }
  .process-step h4 { font-size: 0.875rem; }
  .process-step p { font-size: 0.75rem; }
}

@media (max-width: 768px) {
  section { padding: 4rem 0; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(5,5,5,0.98);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-toggle { display: block; }
  .bento { grid-template-columns: 1fr; }
  .bento-item.wide, .bento-item.large { grid-column: span 1; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .whatsapp-float { display: none; }

  /* Process — vertical timeline on mobile */
  #process .section-header { margin-bottom: 2rem; }
  .process-scroll-hint { display: none; }
  .process-wrap {
    overflow-x: visible;
    mask-image: none;
    padding-bottom: 0;
    scroll-snap-type: none;
  }
  .process-track {
    flex-direction: column;
    min-width: unset;
    width: 100%;
    padding: 0;
    gap: 0;
    position: relative;
  }
  .process-track::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 28px;
    bottom: 28px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), rgba(242, 207, 18, 0.15));
    z-index: 0;
  }
  .process-step {
    flex: none;
    width: 100%;
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
    column-gap: 1rem;
    row-gap: 0.15rem;
    text-align: left;
    padding: 0.75rem 0 1.25rem;
    align-items: center;
    scroll-snap-align: unset;
  }
  .process-step::after { display: none; }
  .process-num {
    grid-row: 1 / 3;
    grid-column: 1;
    margin: 0;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
  }
  .process-step h4 {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin-bottom: 0;
    font-size: 1rem;
  }
  .process-step p {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    font-size: 0.85rem;
    line-height: 1.4;
  }
}

/* ========== NEW FEATURES ========== */

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--primary), #fff);
  z-index: 10001;
  box-shadow: 0 0 10px var(--glow);
}

.trust-bar {
  position: fixed;
  top: var(--nav-h);
  inset-inline: 0;
  z-index: 999;
  background: rgba(5, 5, 5, 0.92);
  border-bottom: 1px solid rgba(242, 207, 18, 0.15);
  backdrop-filter: blur(12px);
  transform: translateY(-100%);
  transition: transform 0.3s;
}
.trust-bar.visible { transform: translateY(0); }
.trust-bar-inner {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.trust-bar-inner span { display: flex; align-items: center; gap: 0.35rem; }
.trust-bar-inner strong { color: var(--primary); }

.nav-utils { display: flex; align-items: center; gap: 0.5rem; }
.nav-select {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  font-size: 0.75rem;
  font-family: inherit;
  cursor: pointer;
}
.lang-link {
  font-size: 0.8rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.whatsapp-float {
  position: fixed;
  bottom: 5.5rem;
  right: 1.25rem;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  z-index: 998;
  text-decoration: none;
  transition: transform 0.2s;
  cursor: pointer;
}
.whatsapp-float svg {
  width: 30px;
  height: 30px;
  display: block;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }
@media (max-width: 768px) { .whatsapp-float { display: none; } }

.btn-whatsapp,
a[data-whatsapp],
a[data-exit-whatsapp] {
  cursor: pointer;
}

.exit-popup { position: fixed; inset: 0; z-index: 10002; display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; visibility: hidden; transition: 0.3s; }
.exit-popup.open { opacity: 1; visibility: visible; }
.exit-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(4px); }
.exit-content {
  position: relative;
  max-width: 420px;
  width: 100%;
  padding: 2.5rem;
  text-align: center;
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 0 60px var(--glow-soft);
}
.exit-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: var(--muted); font-size: 1.5rem; cursor: pointer; }
.exit-code { font-size: 2rem; font-weight: 800; color: var(--primary); margin: 1rem 0; letter-spacing: 0.1em; }

.ba-section { padding: 6rem 0; background: var(--surface); }
.ba-slider {
  position: relative;
  height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  border: 1px solid var(--border);
}
.ba-before, .ba-after {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.ba-before { background: linear-gradient(135deg, #1a1a1a, #2a2a2a); }
.ba-after { background: linear-gradient(135deg, #1a1800, #2a2500); clip-path: inset(0 50% 0 0); }
.ba-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); margin-bottom: 0.5rem; }
.ba-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.ba-metrics { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.ba-metrics div { text-align: center; }
.ba-metrics span { display: block; font-size: 0.7rem; color: var(--muted); }
.ba-metrics strong { font-size: 1.25rem; color: var(--primary); }
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary);
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 20px var(--glow);
}
.ba-handle::after {
  content: '⟷';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #050505;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.terminal-wrap {
  background: #0a0a0a;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  font-family: 'Courier New', monospace;
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
}
.terminal-header {
  display: flex;
  gap: 6px;
  padding: 0.75rem 1rem;
  background: #141414;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-dot.r { background: #ff5f57; }
.terminal-dot.y { background: #febc2e; }
.terminal-dot.g { background: #28c840; }
.terminal-output {
  padding: 1.25rem;
  height: 280px;
  overflow-y: auto;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #a0a0a0;
}
.terminal-line.success { color: #28c840; }

.qa-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.qa-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  transition: var(--transition);
}
.qa-card:hover {
  transform: translateY(-3px);
  border-color: var(--border);
}
.qa-wide { grid-column: 1 / -1; }
.qa-icon { font-size: 1.75rem; display: block; margin-bottom: 0.75rem; }
.qa-card h4 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--primary); }
.qa-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.65; margin: 0; }
.qa-card strong { color: var(--text); }
@media (max-width: 768px) { .qa-grid { grid-template-columns: 1fr; } .qa-wide { grid-column: auto; } }

.comparison-table-wrap { overflow-x: auto; }
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
.comparison-table th, .comparison-table td {
  padding: 1rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.comparison-table th { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.comparison-table td:first-child { text-align: left; font-weight: 500; }
.comparison-table .col-nova { background: rgba(242,207,18,0.06); color: var(--primary); font-weight: 700; }
.comparison-table thead .col-nova { color: var(--primary); }

.calendly-wrap {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  text-align: center;
}
.calendly-wrap a { color: var(--primary); font-weight: 600; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  display: block;
}
.blog-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.blog-tag { font-size: 0.7rem; color: var(--primary); text-transform: uppercase; letter-spacing: 0.1em; }
.blog-card h3 { margin: 0.75rem 0 0.5rem; font-size: 1.1rem; }
.blog-card p { font-size: 0.85rem; color: var(--muted); }

.case-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.case-link:hover { text-decoration: underline; }

.lp-page .navbar .nav-links { display: none; }
.lp-hero { min-height: 70vh; padding-top: calc(var(--nav-h) + 2rem); }
.lp-minimal-footer { text-align: center; padding: 2rem; color: var(--muted); font-size: 0.85rem; }

.case-hero { padding: calc(var(--nav-h) + 3rem) 0 3rem; background: var(--surface); }
.case-content { max-width: 760px; margin: 0 auto; padding: 0 1rem 4rem; }
.case-content h2 { margin: 2rem 0 1rem; }
.case-content p, .case-content li { color: var(--muted); line-height: 1.8; margin-bottom: 1rem; }
.case-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 2rem 0; }
.case-stat { text-align: center; padding: 1rem; background: var(--card); border-radius: 12px; border: 1px solid var(--border); }
.case-stat strong { display: block; font-size: 1.5rem; color: var(--primary); }
@media (max-width: 768px) { .case-stats { grid-template-columns: repeat(2, 1fr); } .nav-utils .nav-select { display: none; } }

html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .whatsapp-float { right: auto; left: 1.25rem; }
html[dir="rtl"] .contact-grid { direction: rtl; }
html[dir="rtl"] .ba-handle::after { transform: translate(-50%, -50%) scaleX(-1); }

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover {
  background: #20bd5a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.45);
}

.section-wa-cta {
  display: flex;
  justify-content: center;
  padding: 1.25rem 1rem 2.5rem;
}
.section-wa-cta .btn-whatsapp {
  min-width: 260px;
  text-align: center;
  font-weight: 700;
}

.portfolio-cta-box {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.portfolio-cta-box p {
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}
.portfolio-cta-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
  opacity: 0.85;
}

/* Clients logos */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
  min-height: 72px;
  transition: var(--transition);
}
.client-logo span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-align: center;
}
.client-logo:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}
.client-logo:hover span { color: var(--primary); }

/* Payment methods */
.payments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.payment-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
}
.payment-card:hover { transform: translateY(-3px); border-color: var(--border); }
.payment-icon { font-size: 2rem; display: block; margin-bottom: 0.75rem; }
.payment-card h4 { font-size: 0.95rem; margin-bottom: 0.35rem; }
.payment-card p { font-size: 0.8rem; color: var(--muted); margin: 0; }

/* Mobile sticky bar */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 999;
  background: rgba(5,5,5,0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.08);
  grid-template-columns: 1fr 1fr 1fr;
}
.mobile-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-inline-end: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s;
}
.mobile-bar-item:last-child { border-inline-end: none; }
.mobile-bar-wa { color: #25d366; }
.mobile-bar-call { color: var(--primary); }
.mobile-bar-item:active { background: rgba(255,255,255,0.05); }

@media (max-width: 1024px) {
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .payments-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .payments-grid { grid-template-columns: 1fr 1fr; }
  .mobile-bar { display: grid; }
  body { padding-bottom: 56px; }
}

