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

:root {
  /* Brand palette */
  --purple-950: #1e1b4b;
  --purple-900: #312e81;
  --purple-700: #4338ca;
  --purple-600: #667eea;
  --purple-500: #764ba2;
  --purple-400: #8b77ea;
  --purple-300: #a89cf0;
  --purple-100: #ede9fe;
  --purple-50:  #f5f3ff;

  /* Neutrals */
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;
  --white:    #ffffff;

  /* Semantic */
  --text-primary:   #111827;
  --text-secondary: #4b5563;
  --text-muted:     #9ca3af;

  --border:       rgba(102,126,234,0.14);
  --border-hover: rgba(102,126,234,0.38);

  --card-shadow:       0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(102,126,234,0.06);
  --card-shadow-hover: 0 8px 32px rgba(102,126,234,0.18), 0 2px 8px rgba(0,0,0,0.08);

  --radius:    14px;
  --radius-sm: 9px;
  --ease:      0.22s ease;

  --hero-gradient: linear-gradient(135deg, #4338ca 0%, #667eea 50%, #764ba2 100%);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--purple-300); border-radius: 3px; }

/* ══════════════════════════════════════════════
   NAV
══════════════════════════════════════════════ */
#navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  background: rgba(67,56,202,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: background var(--ease);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}
.nav-logo svg { display: block; flex-shrink: 0; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
  flex: 1;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: color var(--ease);
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }

.nav-end { margin-left: auto; flex-shrink: 0; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--ease);
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 8px 24px 20px;
  gap: 2px;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(60,48,190,0.97);
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color var(--ease);
}

.nav-mobile a:hover { color: var(--white); }
.nav-mobile .btn { margin-top: 12px; width: 100%; justify-content: center; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all var(--ease);
  white-space: nowrap;
}

.btn-white {
  background: var(--white);
  color: var(--purple-700);
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0,0,0,0.26);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.85);
}

.btn-purple {
  background: var(--hero-gradient);
  color: var(--white);
  box-shadow: 0 2px 16px rgba(102,126,234,0.35);
}

.btn-purple:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(102,126,234,0.55);
}

.btn-lg {
  padding: 13px 30px;
  font-size: 15px;
  border-radius: var(--radius);
}

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 88px;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--hero-gradient);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 65% at 50% -10%, rgba(255,255,255,0.16) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 80% 85%,  rgba(118,75,162,0.25)  0%, transparent 60%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 85% 80% at 50% 40%, black 30%, transparent 100%);
}

.hero-inner {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 16px 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.8);
  animation: badgePulse 2s infinite;
  flex-shrink: 0;
}

@keyframes badgePulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.8); }
}

.hero h1 {
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 22px;
}

.gradient-text {
  background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(220,210,255,1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 19px;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin: 0 auto 44px;
  line-height: 1.75;
}

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

/* ── PAGE HERO (subpages) ── */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--hero-gradient);
  padding: 130px 24px 72px;
  text-align: center;
}

.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 110%, black 40%, transparent 100%);
}

.page-hero-inner {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.82);
}

/* ══════════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════════ */
.section { padding: 96px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-alt { background: var(--gray-50); border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }

.section-label {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-600);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.14;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 52px;
}

/* ══════════════════════════════════════════════
   SERVICE CARDS
══════════════════════════════════════════════ */
.cards-grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.service-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px 28px;
  transition: all 0.28s ease;
  box-shadow: var(--card-shadow);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple-600), transparent);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--border-hover);
}

.service-card:hover::before { opacity: 1; }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple-100), rgba(118,75,162,0.08));
  border: 1px solid rgba(102,126,234,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--purple-600);
}

.card-icon svg { width: 24px; height: 24px; }

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.service-card > p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.feature-list {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-list li {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.55;
}

.feature-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--purple-600);
  flex-shrink: 0;
  margin-top: 6px;
}

/* ══════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 16px;
}

.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-mini-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: all 0.25s ease;
  box-shadow: var(--card-shadow);
}

.about-mini-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(102,126,234,0.15);
}

.mini-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--purple-100), rgba(118,75,162,0.08));
  border: 1px solid rgba(102,126,234,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-600);
  margin-bottom: 12px;
}

.mini-icon svg { width: 16px; height: 16px; }

.about-mini-card h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.about-mini-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ══════════════════════════════════════════════
   WHY / VALUE-PROPS
══════════════════════════════════════════════ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.why-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  transition: all 0.28s ease;
  box-shadow: var(--card-shadow);
}

.why-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.why-icon {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--purple-100), rgba(118,75,162,0.1));
  border: 1px solid rgba(102,126,234,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--purple-600);
}

.why-icon svg { width: 26px; height: 26px; }

.why-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.why-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.72;
}

/* ══════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════ */
.contact-box {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 72px 48px;
  text-align: center;
  color: var(--white);
  background: var(--hero-gradient);
}

.contact-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 50% -20%, rgba(255,255,255,0.13) 0%, transparent 60%),
    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: auto, 44px 44px, 44px 44px;
  pointer-events: none;
}

.contact-box h2 {
  position: relative;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.contact-box .lead {
  position: relative;
  font-size: 17px;
  color: rgba(255,255,255,0.84);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.75;
}

.email-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: opacity var(--ease);
  margin-bottom: 48px;
}

.email-link:hover { opacity: 0.8; }
.email-link svg { width: 22px; height: 22px; }

.contact-details {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 52px;
  flex-wrap: wrap;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.18);
}

.cd-block { text-align: left; }

.cd-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}

.cd-value {
  font-size: 14px;
  color: rgba(255,255,255,0.84);
  line-height: 1.65;
}

.cd-value a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: color var(--ease);
}

.cd-value a:hover { color: var(--white); }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
footer {
  background: var(--purple-950);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 36px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
}

.footer-copy { font-size: 13px; color: rgba(255,255,255,0.3); }

.footer-links { display: flex; gap: 22px; }

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color var(--ease);
}

.footer-links a:hover { color: rgba(255,255,255,0.78); }

/* ══════════════════════════════════════════════
   LEGAL CONTENT PAGES
══════════════════════════════════════════════ */
.legal-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.legal-wrap h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--purple-600);
  margin: 40px 0 14px;
  padding-top: 8px;
}

.legal-wrap h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 24px 0 10px;
}

.legal-wrap p {
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 14px;
}

.legal-wrap ul {
  list-style: none;
  margin: 10px 0 18px;
}

.legal-wrap ul li {
  font-size: 15px;
  color: var(--text-secondary);
  padding: 8px 0 8px 22px;
  border-bottom: 1px solid var(--gray-100);
  position: relative;
  line-height: 1.7;
}

.legal-wrap ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 17px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--purple-500);
}

.legal-wrap strong { color: var(--text-primary); }

/* ══════════════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 820px) {
  .nav-links, .nav-end { display: none; }
  .nav-hamburger { display: flex; }

  .hero { min-height: auto; padding: 96px 24px 64px; }
  .section { padding: 72px 24px; }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .about-visual { grid-template-columns: repeat(2, 1fr); }

  .contact-box { padding: 48px 24px; }
  .contact-details { flex-direction: column; align-items: center; text-align: center; }
  .cd-block { text-align: center; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 540px) {
  .hero h1 { font-size: clamp(30px, 8vw, 42px); }
  .hero-actions { flex-direction: column; align-items: center; }
  .why-grid { grid-template-columns: 1fr; }
  .about-visual { grid-template-columns: 1fr 1fr; }
  .contact-box { padding: 36px 16px; }
}
