:root {
  --navy: #041B66;
  --blue: #2F66FF;
  --blue-light: #5E8CFF;
  --white: #FFFFFF;
  --gray-bg: #F5F7FB;
  --ink: #0B1430;
  --ink-soft: #4A5577;
  --border: #E2E7F3;
  --shadow: 0 20px 40px -20px rgba(4, 27, 102, 0.18);
  --radius: 16px;
  --font-display: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

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

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

.accent { color: var(--blue); }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.nav-links {
  display: flex;
  gap: 28px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.nav-links a:hover { color: var(--blue); }

.nav-cta { white-space: nowrap; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  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); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 20px;
  border-top: 1px solid var(--border);
}

.nav-mobile a {
  padding: 12px 4px;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--border);
}

.nav-mobile .btn { margin-top: 12px; text-align: center; }

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-body);
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 10px 24px -8px rgba(47, 102, 255, 0.5);
}

.btn-primary:hover {
  background: var(--navy);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--navy);
}

.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-block { width: 100%; }

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 24px 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.circuit {
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.circuit path {
  fill: none;
  stroke: var(--border);
  stroke-width: 2;
}

.circuit circle {
  fill: var(--white);
  stroke: var(--blue-light);
  stroke-width: 2;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--gray-bg);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  position: relative;
}

.dot-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #2ecc71;
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.6); opacity: 0; }
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 22px;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 32px;
}

.stat dt {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy);
}

.stat dd {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 2px;
}

.hero-photo { display: flex; justify-content: center; }

.photo-frame {
  position: relative;
  width: min(320px, 80%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--gray-bg), var(--white));
  border: 4px solid var(--white);
  outline: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 10px rgba(47, 102, 255, 0.06);
}

.photo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--blue) 0deg, var(--blue-light) 70deg, transparent 140deg, transparent 360deg);
  opacity: 0.9;
  z-index: 0;
}

.photo-frame img,
.photo-frame video {
  position: relative;
  z-index: 1;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  background: var(--white);
}

/* ===== MARQUEE ===== */
.marquee {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  overflow: hidden;
  padding: 22px 0;
  background: var(--gray-bg);
}

.marquee-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: scroll 28s linear infinite;
  width: max-content;
}

.marquee-track span {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== SECTIONS ===== */
.section { padding: 96px 24px; }

.section-alt { background: var(--gray-bg); }

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.kicker {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 14px;
}

.section h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.section-lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 52px;
}

/* ===== CARDS ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.section-alt .card { background: var(--white); }

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

.card-icon {
  font-size: 1.8rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-bg);
  border-radius: 14px;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.tags li {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--gray-bg);
  padding: 5px 12px;
  border-radius: 999px;
}

.card-stat { position: relative; }

.result-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  background: rgba(47, 102, 255, 0.08);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-featured {
  border-color: var(--blue);
  box-shadow: var(--shadow);
}

.price-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
}

.price-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.price {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
}

.price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.price-desc {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.check-list {
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
}

.check-list li {
  font-size: 0.92rem;
  color: var(--ink);
  padding: 7px 0 7px 26px;
  position: relative;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

.price-footnote {
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ===== CERTIFICATES ===== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.cert-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.cert-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.cert-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.cert-card a {
  font-weight: 600;
  color: var(--blue);
}

.cert-card a:hover { color: var(--navy); }

/* ===== CONTACT ===== */
.section-contact { background: var(--gray-bg); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}

.contact-direct a {
  font-weight: 600;
  color: var(--navy);
}

.contact-direct a:hover { color: var(--blue); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--gray-bg);
  color: var(--ink);
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
}

.hidden-field { display: none !important; }

.form-status {
  font-size: 0.88rem;
  text-align: center;
  min-height: 1.2em;
}

.form-status.success { color: #1a9e5c; }
.form-status.error { color: #d6463f; }

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 32px 24px;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
}

.footer-photo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
}

.footer p { font-size: 0.85rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .stats { justify-content: center; }
  .hero-photo { order: -1; margin-bottom: 12px; }
  .photo-frame { width: min(260px, 70vw); }

  .cards-grid,
  .pricing-grid,
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .contact-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .stats { grid-template-columns: repeat(2, auto); }
  .hero h1 { font-size: 2.4rem; }
  .section { padding: 64px 20px; }
}
