:root {
  --bg: #0b0a12;
  --bg-alt: #110f1c;
  --card: #17152389;
  --card-solid: #171523;
  --border: rgba(255,255,255,0.08);
  --text: #f2f1f7;
  --text-dim: #a9a6bd;
  --purple: #6a2fb0;
  --magenta: #c8348f;
  --gradient: linear-gradient(135deg, var(--purple), var(--magenta));
  --radius: 16px;
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Fixed, full-viewport particle network — sits behind every section like a
   parallax layer; section backgrounds below are intentionally translucent
   so it stays visible while scrolling past the hero. */
.site-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* Progress bar */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient);
  z-index: 2000;
  transition: width 0.1s ease-out;
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(11,10,18,0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(11,10,18,0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

.brand-logo { height: 88px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.95rem;
  font-weight: 500;
}

.main-nav a {
  color: var(--text-dim);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--text); }
.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--gradient);
  transition: width 0.25s ease;
}
.main-nav a:not(.nav-cta):hover::after { width: 100%; }

.main-nav a.nav-cta {
  background: var(--gradient);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.3;
  display: inline-block;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; }

.eyebrow {
  color: transparent;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 24px;
}
.hero h1 .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 640px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px rgba(150,40,140,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(150,40,140,0.45); }
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); }

/* Sections — translucent so the fixed particle canvas reads through while scrolling.
   Kept dark enough for text contrast, but low enough alpha that the canvas
   underneath isn't smothered (a section painted on top of the canvas at high
   alpha would hide almost all of it: visible fraction ≈ 1 - alpha). */
.section { padding: 110px 0; position: relative; background: rgba(11,10,18,0.8); }
.section-alt { background: rgba(17,15,28,0.8); }

.section-eyebrow {
  color: var(--magenta);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700;
  max-width: 760px;
  margin-bottom: 56px;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200,52,143,0.4);
}

.service-index {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--magenta);
  border: 1px solid rgba(200,52,143,0.4);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 18px;
}

.service-card h3 { font-size: 1.25rem; margin-bottom: 6px; }

.service-subtitle {
  color: var(--text-dim);
  font-size: 0.92rem;
  font-style: italic;
  margin-bottom: 14px;
}

.service-desc {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.service-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.service-list li {
  font-size: 0.9rem;
  color: var(--text-dim);
  padding-left: 18px;
  position: relative;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
}
.service-list strong { color: var(--text); }

.pull-quote {
  margin-top: 64px;
  padding: 40px 44px;
  border-left: 3px solid;
  border-image: var(--gradient) 1;
  background: var(--card-solid);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.pull-quote-title {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 14px;
}
.pull-quote-sub {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-dim);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text { color: var(--text-dim); margin-bottom: 16px; }

.about-stat {
  position: relative;
  overflow: hidden;
  background: var(--card-solid);
  border: 1px solid rgba(200,52,143,0.35);
  border-radius: var(--radius);
  padding: 56px 32px;
  text-align: center;
  box-shadow: 0 0 70px rgba(150,40,140,0.28), inset 0 0 50px rgba(106,47,176,0.1);
}
.about-stat::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle, rgba(200,52,143,0.35), transparent 60%);
  filter: blur(30px);
  z-index: 0;
}
.stat-number {
  position: relative;
  z-index: 1;
  display: block;
  font-size: clamp(4.2rem, 8vw, 6.4rem);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 30px rgba(200,52,143,0.45));
}
.stat-label {
  position: relative;
  z-index: 1;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 600;
}

/* Why us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.why-card {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.why-icon {
  display: inline-block;
  font-weight: 800;
  font-size: 1.4rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}
.why-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.why-card p { color: var(--text-dim); font-size: 0.92rem; }

/* Tech grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 18px;
  align-items: center;
}
.tech-grid img {
  background: #fff;
  border-radius: 10px;
  padding: 18px;
  height: 78px;
  width: 100%;
  object-fit: contain;
  filter: grayscale(0%);
  transition: transform 0.2s ease;
}
.tech-grid img:hover { transform: translateY(-3px); }

/* Contact */
.contact-inner { max-width: 640px; }

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}
.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.contact-detail:hover {
  border-color: rgba(200,52,143,0.4);
  transform: translateY(-2px);
}
.contact-detail-label {
  color: var(--magenta);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact-detail-value { color: var(--text); font-weight: 600; }

.contact-form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--magenta);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-dim); }
.contact-form .btn { align-self: flex-start; border: none; cursor: pointer; }
.contact-form .btn:disabled { opacity: 0.7; cursor: not-allowed; }
.form-note { color: var(--text-dim); font-size: 0.88rem; min-height: 1.2em; }
.form-note.form-note-error { color: #ff7aa2; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  background: rgba(17,15,28,0.85);
  position: relative;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo { height: 64px; }
.footer-inner p { color: var(--text-dim); font-size: 0.88rem; }
.footer-contact {
  display: flex;
  gap: 20px;
  font-size: 0.88rem;
}
.footer-contact a { color: var(--text-dim); transition: color 0.2s ease; }
.footer-contact a:hover { color: var(--text); }

/* WhatsApp floating button */
.whatsapp-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 30px rgba(150,40,140,0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-fab:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 36px rgba(150,40,140,0.55);
}
.whatsapp-fab-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(200,52,143,0.6);
  animation: whatsapp-pulse 2.4s ease-out infinite;
}
@keyframes whatsapp-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.7); opacity: 0; }
}

@media (max-width: 480px) {
  .whatsapp-fab { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .main-nav {
    position: fixed;
    top: 100px;
    left: 0; right: 0;
    background: rgba(11,10,18,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 24px 24px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; }
  .main-nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .main-nav a::after { display: none; }
  .nav-cta { margin-top: 10px; text-align: center; }
  .nav-toggle { display: flex; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .section { padding: 80px 0; }
  .service-card, .why-card { padding: 24px; }
  .pull-quote { padding: 28px 24px; }
}
