/* === Variables === */
:root {
  --blue-400: #60A5FA;
  --blue-500: #3B82F6;
  --blue-600: #2563EB;
  --blue-700: #1D4ED8;
  --blue-900: #1E3A8A;

  --dark-bg: #080D1A;
  --dark-surface: #0F172A;
  --dark-card: #1A2234;
  --dark-border: rgba(255, 255, 255, 0.08);

  --light-bg: #F8FAFC;
  --light-surface: #FFFFFF;
  --light-border: #E2E8F0;

  --text-on-dark: #E2E8F0;
  --text-on-dark-muted: #94A3B8;
  --text-on-light: #0F172A;
  --text-on-light-muted: #64748B;

  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --accent-glow: rgba(37, 99, 235, 0.35);

  --font-heading: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  --transition: 0.25s ease;

  --container: 1180px;
  --pad: clamp(20px, 5vw, 40px);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-on-light);
  background: var(--light-bg);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea { font-family: inherit; font-size: inherit; }
[hidden] { display: none !important; }

/* === Typography === */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.05;
  letter-spacing: 0.02em;
}
h1 { font-size: clamp(2.8rem, 5.5vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

/* === Layout === */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}
section { padding: clamp(64px, 8vw, 120px) 0; }

.section-header {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-header .section-desc {
  max-width: 600px;
  margin: 14px auto 0;
  font-size: 1.05rem;
  line-height: 1.7;
}
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: 12px;
}

/* === Section Themes === */
.section-dark {
  background: var(--dark-surface);
  color: var(--text-on-dark);
}
.section-dark .section-label { color: var(--blue-400); }
.section-dark h2 { color: #F1F5F9; }
.section-dark p { color: var(--text-on-dark-muted); }

.section-light {
  background: var(--light-bg);
  color: var(--text-on-light);
}
.section-light .section-label { color: var(--blue-600); }
.section-light h2 { color: var(--text-on-light); }
.section-light p { color: var(--text-on-light-muted); }

.section-accent {
  background: linear-gradient(135deg, #1D4ED8 0%, #1E3A8A 100%);
  color: white;
}

/* === Grid Background === */
.grid-bg { position: relative; }
.grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.1) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}
.grid-bg > .container { position: relative; z-index: 1; }

/* === Glow === */
.glow-text {
  color: var(--blue-400);
  text-shadow: 0 0 24px rgba(96, 165, 250, 0.55);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}
.btn-sm  { padding: 8px 18px; font-size: 0.875rem; }
.btn-lg  { padding: 14px 32px; font-size: 1.05rem; }
.btn-full { width: 100%; padding: 14px; }

.btn-accent {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 6px 28px var(--accent-glow);
  transform: translateY(-2px);
}
.btn-accent:disabled {
  opacity: 0.6;
  transform: none;
  cursor: not-allowed;
}

.btn-white {
  background: white;
  color: var(--blue-700);
  border-color: white;
}
.btn-white:hover {
  background: #EFF6FF;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn-outline {
  background: transparent;
  color: var(--text-on-dark);
  border-color: rgba(255,255,255,0.2);
}
.btn-outline:hover { background: rgba(255,255,255,0.06); }

.btn-ghost {
  background: transparent;
  color: var(--text-on-dark-muted);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--text-on-dark); }

/* === Header === */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(8, 13, 26, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: white;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav a {
  color: var(--text-on-dark-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav a:hover { color: white; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all var(--transition);
}
.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 {
  background: var(--dark-bg);
  padding-top: calc(68px + clamp(60px, 8vw, 100px));
  padding-bottom: clamp(60px, 8vw, 100px);
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-title { color: white; margin-bottom: 20px; }
.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-on-dark-muted);
  margin-bottom: 10px;
  line-height: 1.65;
}
.hero-note {
  font-size: 0.875rem;
  color: var(--text-on-dark-muted);
  opacity: 0.65;
  margin-bottom: 36px;
}

/* Dashboard Mockup */
.dashboard-mockup {
  background: var(--dark-card);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 8px 48px rgba(37, 99, 235, 0.15), 0 0 0 1px rgba(37, 99, 235, 0.08);
  position: relative;
  overflow: hidden;
}
.dashboard-mockup::after {
  content: '';
  position: absolute;
  top: -60%;
  right: -30%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1), transparent 65%);
  pointer-events: none;
}
.dash-header { display: flex; gap: 6px; margin-bottom: 20px; }
.dash-dot { width: 10px; height: 10px; border-radius: 50%; }
.dash-dot.red    { background: #FF5F57; }
.dash-dot.yellow { background: #FFBD2E; }
.dash-dot.green  { background: #28CA42; }

.dash-chart {
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
  padding: 16px 16px 0;
  margin-bottom: 20px;
  height: 130px;
  display: flex;
  align-items: flex-end;
}
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 100%;
  width: 100%;
}
.bar {
  flex: 1;
  height: var(--h, 50%);
  background: linear-gradient(to top, var(--blue-700), var(--blue-500));
  border-radius: 4px 4px 0 0;
  opacity: 0.55;
  animation: bar-grow 1s ease both;
  animation-delay: calc(var(--i, 0) * 0.07s);
}
.bar.active {
  opacity: 1;
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.5);
}
@keyframes bar-grow {
  from { transform: scaleY(0); transform-origin: bottom; }
  to   { transform: scaleY(1); transform-origin: bottom; }
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.stat-item {
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}
.stat-label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-on-dark-muted);
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}
.stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}

/* === About === */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text h2 { margin-bottom: 20px; }
.about-text p { margin-bottom: 16px; font-size: 1.05rem; }
.about-visual { display: flex; justify-content: center; }

.about-illustration {
  position: relative;
  width: 280px;
  height: 280px;
}
.ill-circle {
  position: absolute;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border: 1.5px solid rgba(37, 99, 235, 0.22);
}
.ill-circle.large  { width: 260px; height: 260px; }
.ill-circle.medium { width: 170px; height: 170px; border-color: rgba(37, 99, 235, 0.38); }

.glow-ring {
  animation: pulse-ring 3.5s ease-in-out infinite;
}
@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 28px rgba(37, 99, 235, 0.12), inset 0 0 28px rgba(37, 99, 235, 0.04); }
  50%       { box-shadow: 0 0 56px rgba(37, 99, 235, 0.22), inset 0 0 56px rgba(37, 99, 235, 0.08); }
}

.ill-nodes { position: absolute; inset: 0; }
.node {
  position: absolute;
  width: 44px; height: 44px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 0 0 1px var(--light-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.node svg { width: 24px; height: 24px; color: var(--blue-600); }
.node-1 { top: 0;   left: 50%; transform: translateX(-50%); }
.node-2 { right: 0; top:  50%; transform: translateY(-50%); }
.node-3 { bottom: 0;left: 50%; transform: translateX(-50%); }
.node-4 { left: 0;  top:  50%; transform: translateY(-50%); }

/* === Services === */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.service-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  width: calc(33.33% - 16px);
  min-width: 240px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover {
  border-color: rgba(37, 99, 235, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12);
}
.service-card:hover::before { opacity: 1; }
.card-icon {
  width: 52px; height: 52px;
  background: rgba(37, 99, 235, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  transition: box-shadow var(--transition);
}
.service-card:hover .card-icon { box-shadow: 0 0 24px rgba(37, 99, 235, 0.35); }
.card-icon svg { width: 24px; height: 24px; color: var(--blue-400); }
.service-card h3 { color: #F1F5F9; margin-bottom: 10px; }
.service-card p  { color: var(--text-on-dark-muted); font-size: 0.9rem; line-height: 1.65; }

/* === Process === */
.process-steps {
  display: flex;
  align-items: flex-start;
}
.step {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}
.step-connector {
  flex: 0 0 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-600), rgba(37, 99, 235, 0.15));
  align-self: center;
  margin-top: -40px;
}
.step-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--blue-600);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 6px;
}
.step-icon {
  width: 56px; height: 56px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.12);
  border: 1.5px solid var(--light-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: all var(--transition);
}
.step:hover .step-icon {
  box-shadow: 0 6px 28px rgba(37, 99, 235, 0.25);
  border-color: rgba(37, 99, 235, 0.35);
}
.step-icon svg { width: 26px; height: 26px; color: var(--blue-600); }
.step h3 { color: var(--text-on-light); font-size: 1.1rem; margin-bottom: 8px; }
.step p   { color: var(--text-on-light-muted); font-size: 0.875rem; }

/* === Why Choose Us === */
.why-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.why-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  width: calc(33.33% - 14px);
  min-width: 220px;
  transition: all var(--transition);
}
.why-item:hover {
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.06);
}
.why-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  background: rgba(37, 99, 235, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-icon svg { width: 20px; height: 20px; color: var(--blue-400); }
.why-item span { color: #E2E8F0; font-size: 0.95rem; font-weight: 500; }

/* === Who It's For === */
.audience-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}
.audience-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  border: 1.5px solid var(--light-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all var(--transition);
}
.audience-item:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}
.check-icon { width: 32px; height: 32px; flex-shrink: 0; color: var(--blue-600); }
.check-icon svg { width: 32px; height: 32px; }
.audience-item span { font-weight: 500; color: var(--text-on-light); }

/* === CTA === */
.cta-section {
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.cta-section::after {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 65%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.cta-inner h2 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 16px; }
.cta-inner p  { font-size: 1.1rem; opacity: 0.85; margin-bottom: 36px; }

/* === Contact === */
.contact { background: var(--dark-surface); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  margin-top: 48px;
}
.contact-info h3 { font-size: 1.4rem; color: #F1F5F9; margin-bottom: 12px; }
.contact-info > p { color: var(--text-on-dark-muted); margin-bottom: 16px; }
.contact-email {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  transition: opacity var(--transition);
}
.contact-email:hover { opacity: 0.75; }
.contact-note { font-size: 0.875rem; color: var(--text-on-dark-muted); font-style: italic; }

.contact-form-wrap h3 { font-size: 1.4rem; color: #F1F5F9; margin-bottom: 24px; }

/* === Form === */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #CBD5E1;
  margin-bottom: 7px;
}
.optional { color: var(--text-on-dark-muted); font-weight: 400; }
.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: white;
  transition: all var(--transition);
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.22); }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background: rgba(37, 99, 235, 0.07);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
.form-consent { margin-bottom: 20px; }
.form-consent p { font-size: 0.8rem; color: var(--text-on-dark-muted); }
.form-success,
.form-error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 500;
}
.form-success { background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.28); color: #86EFAC; }
.form-success svg { width: 20px; height: 20px; flex-shrink: 0; }
.form-error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.28); color: #FCA5A5; }

/* === Footer === */
.site-footer {
  background: var(--dark-bg);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 20px;
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand .logo { font-size: 1.3rem; color: white; }
.footer-brand a { color: var(--text-on-dark-muted); font-size: 0.875rem; transition: color var(--transition); }
.footer-brand a:hover { color: white; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-on-dark-muted); font-size: 0.875rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--blue-400); }
.footer-copy { color: rgba(148, 163, 184, 0.4); font-size: 0.8rem; text-align: center; }

/* === Scroll Animations === */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll { opacity: 1; transform: none; transition: none; }
  .bar { animation: none; }
  .glow-ring { animation: none; }
}

/* === Responsive === */
@media (max-width: 960px) {
  .hero-inner      { grid-template-columns: 1fr; gap: 48px; }
  .about-inner     { grid-template-columns: 1fr; gap: 40px; }
  .about-visual    { display: none; }
  .contact-inner   { grid-template-columns: 1fr; gap: 40px; }
  .service-card    { width: calc(50% - 12px); }
  .why-item        { width: calc(50% - 10px); }
  .process-steps   { flex-direction: column; align-items: center; gap: 16px; }
  .step-connector  {
    flex: 0 0 auto;
    width: 2px;
    height: 28px;
    background: linear-gradient(180deg, var(--blue-600), rgba(37, 99, 235, 0.15));
    margin-top: 0;
  }
  .step { padding: 0; max-width: 300px; width: 100%; }
}

@media (max-width: 640px) {
  .nav            { display: none; }
  .nav-toggle     { display: flex; }
  .header-inner .btn-accent { display: none; }
  .dashboard-mockup { display: none; }
  .hero { min-height: auto; padding-top: calc(68px + 56px); }
  .service-card   { width: 100%; min-width: unset; }
  .why-item       { width: 100%; min-width: unset; }
  .audience-list  { grid-template-columns: 1fr; }
  .footer-inner   { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-links   { flex-direction: column; gap: 12px; }
}

/* === Mobile Nav === */
.nav.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 68px 0 0 0;
  background: var(--dark-bg);
  padding: 40px 24px;
  gap: 0;
  z-index: 99;
  overflow-y: auto;
}
.nav.open a {
  padding: 18px 0;
  font-size: 1.2rem;
  border-bottom: 1px solid var(--dark-border);
  color: var(--text-on-dark);
}
.nav.open a:hover { color: var(--blue-400); }
