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

:root {
  --bg: #050810;
  --bg-2: #080d1a;
  --bg-3: #0c1220;
  --surface: rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.08);
  --border-bright: rgba(255,255,255,0.15);
  --text: #f0f4ff;
  --text-muted: #8892a4;
  --text-dim: #4a5568;
  --purple: #1D6FDB;
  --cyan: #38BDF8;
  --purple-light: #60A5FA;
  --cyan-light: #93C5FD;
  --glow-purple: rgba(29,111,219,0.3);
  --glow-cyan: rgba(56,189,248,0.3);
  --grad: linear-gradient(135deg, #1D6FDB, #38BDF8);
  --grad-text: linear-gradient(135deg, #60A5FA, #93C5FD);
  --font: 'Space Grotesk', 'Inter', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all 0.3s ease;
}
.nav.scrolled {
  background: rgba(5,8,16,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
  margin-right: auto;
}
.logo-accent { color: var(--purple-light); }
.logo-dot { color: var(--cyan); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 9px 22px;
  background: var(--grad);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(29,111,219,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,111,219,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin-left: auto;
  margin-right: 80px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border-bright);
  border-radius: 100px;
  font-size: 13px;
  color: var(--cyan-light);
  margin-bottom: 28px;
  background: rgba(56,189,248,0.07);
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--cyan); }
  50% { opacity: 0.6; box-shadow: 0 0 16px var(--cyan); }
}
.hero-title {
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
}
.title-line { display: block; }
.title-meets {
  display: block;
  font-size: 0.5em;
  font-weight: 300;
  letter-spacing: 4px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 8px 0;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 16px; margin-bottom: 56px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--font);
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 0 30px rgba(29,111,219,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(29,111,219,0.5); }
.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-hover); border-color: var(--border-bright); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border-bright);
  color: var(--text);
}
.btn-outline:hover { background: var(--surface); }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }
.btn-icon { font-size: 12px; }

.hero-stats { display: flex; align-items: center; gap: 32px; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--text); }
.stat-unit { font-size: 16px; font-weight: 400; color: var(--text-muted); }
.stat-label { display: block; font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

.hero-visual {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  height: 380px;
  z-index: 2;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: orb-float 6s ease-in-out infinite;
}
.orb-1 { width: 260px; height: 260px; background: rgba(29,111,219,0.35); top: 10%; left: 10%; animation-delay: 0s; }
.orb-2 { width: 200px; height: 200px; background: rgba(56,189,248,0.25); bottom: 10%; right: 10%; animation-delay: 2s; }
.orb-3 { width: 140px; height: 140px; background: rgba(159,122,234,0.2); top: 40%; left: 40%; animation-delay: 4s; }
@keyframes orb-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(12,18,32,0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  font-size: 13px;
  animation: card-float 4s ease-in-out infinite;
  z-index: 3;
}
.card-1 { top: 5%; left: -20px; animation-delay: 0s; }
.card-2 { bottom: 20%; right: -30px; animation-delay: 1.5s; }
.card-3 { top: 50%; left: -40px; animation-delay: 3s; }
@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.fc-icon { font-size: 22px; }
.fc-label { color: var(--text-muted); font-size: 11px; margin-bottom: 2px; }
.fc-value { color: var(--text); font-weight: 600; font-size: 14px; }
.fc-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse-dot 1.5s infinite;
  margin-left: auto;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--purple), transparent);
  animation: scroll-line 2s infinite;
}
@keyframes scroll-line {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: top; }
}

/* ── SECTION COMMONS ── */
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(29,111,219,0.12);
  border: 1px solid rgba(29,111,219,0.3);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-desc { color: var(--text-muted); font-size: 17px; max-width: 520px; margin: 0 auto; }

/* ── SERVICES ── */
.services { padding: 120px 0; background: var(--bg-2); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  position: relative;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  overflow: hidden;
}
.service-card:hover {
  border-color: var(--border-bright);
  background: var(--surface-hover);
  transform: translateY(-4px);
}
.service-card.featured {
  border-color: rgba(29,111,219,0.4);
  background: rgba(29,111,219,0.07);
}
.service-card.featured:hover { border-color: rgba(29,111,219,0.7); }
.card-glow {
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(29,111,219,0.2), transparent 70%);
  pointer-events: none;
}
.service-icon {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin-bottom: 20px; }
.service-features { list-style: none; margin-bottom: 24px; display: flex; flex-direction: column; gap: 8px; }
.service-features li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}
.service-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--purple-light);
}
.service-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan-light);
  text-decoration: none;
  transition: color 0.2s;
}
.service-link:hover { color: var(--text); }

/* ── ABOUT ── */
.about { padding: 120px 0; background: var(--bg); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-visual {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-rings { position: relative; width: 260px; height: 260px; }
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: spin-ring 20s linear infinite;
}
.ring-1 { width: 260px; height: 260px; border-color: rgba(29,111,219,0.3); animation-duration: 30s; }
.ring-2 { width: 190px; height: 190px; border-color: rgba(56,189,248,0.25); animation-duration: 20s; animation-direction: reverse; }
.ring-3 { width: 130px; height: 130px; border-color: rgba(29,111,219,0.2); animation-duration: 15s; }
@keyframes spin-ring { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(360deg); } }
.about-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
}
.core-text { display: block; font-size: 36px; font-weight: 800; background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.core-sub { display: block; font-size: 11px; color: var(--text-dim); letter-spacing: 2px; text-transform: uppercase; margin-top: 4px; }

.about-pill {
  position: absolute;
  padding: 8px 16px;
  background: rgba(12,18,32,0.9);
  border: 1px solid var(--border-bright);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}
.pill-1 { top: 10%; left: 0; }
.pill-2 { top: 10%; right: 0; }
.pill-3 { bottom: 15%; left: 5%; }
.pill-4 { bottom: 15%; right: 5%; }

.about-content .section-tag { display: inline-block; }
.about-content p { color: var(--text-muted); margin-bottom: 20px; line-height: 1.75; }
.about-pillars { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.pillar { display: flex; gap: 16px; align-items: flex-start; }
.pillar-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.pillar strong { display: block; font-weight: 600; margin-bottom: 4px; }
.pillar span { font-size: 14px; color: var(--text-muted); }

/* ── TECH ── */
.tech { padding: 120px 0; background: var(--bg-2); }
.tech-track-wrapper {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  margin-bottom: 80px;
}
.tech-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tech-chip {
  padding: 10px 20px;
  border: 1px solid var(--border-bright);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  white-space: nowrap;
  flex-shrink: 0;
}
.tech-track:hover { animation-play-state: paused; }

.process-steps {
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.process-step {
  flex: 1;
  min-width: 160px;
  max-width: 200px;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: border-color 0.3s;
}
.process-step:hover { border-color: rgba(29,111,219,0.4); }
.step-num {
  font-size: 32px;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
}
.process-step h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.process-step p { font-size: 13px; color: var(--text-muted); }
.step-arrow { font-size: 20px; color: var(--text-dim); flex-shrink: 0; }

/* ── CTA BANNER ── */
.cta-banner {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  text-align: center;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(29,111,219,0.15) 0%, rgba(56,189,248,0.07) 50%, transparent 70%);
}
.cta-banner .container { position: relative; }
.cta-inner h2 { font-size: clamp(32px, 4vw, 52px); font-weight: 700; margin-bottom: 16px; letter-spacing: -1px; }
.cta-inner p { color: var(--text-muted); font-size: 18px; margin-bottom: 36px; }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ── CONTACT ── */
.contact { padding: 120px 0; background: var(--bg-3); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: start; }
.contact-info .section-title { font-size: 36px; margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); margin-bottom: 40px; line-height: 1.75; }
.contact-details { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 16px; align-items: center; }
.ci-icon { font-size: 22px; width: 48px; height: 48px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ci-label { font-size: 12px; color: var(--text-dim); margin-bottom: 3px; text-transform: uppercase; letter-spacing: 1px; }
.ci-value { font-size: 15px; font-weight: 500; color: var(--text); }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-size: 15px;
  font-family: var(--font);
  transition: border-color 0.2s;
  outline: none;
  resize: vertical;
  -webkit-appearance: none;
}
.form-group select { cursor: pointer; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(29,111,219,0.12); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }
.form-group select option { background: #0c1220; color: var(--text); }

/* ── FOOTER ── */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding: 60px 0 30px; }
.footer-top { display: flex; gap: 60px; margin-bottom: 48px; }
.footer-brand { flex: 1; }
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 12px; font-style: italic; }
.footer-links { display: flex; gap: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h5 { font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 4px; }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 8px;
}

/* ── ANIMATIONS ── */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .hero { padding-top: 100px; }
  .hero-content { margin-right: 0; max-width: 100%; }
  .hero-visual { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { height: 300px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-links { flex-wrap: wrap; gap: 32px; }
  .hero-stats { gap: 20px; }
  .process-steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .cta-actions { flex-direction: column; align-items: center; }
}
