:root {
  --navy: #112E81;
  --navy-deep: #0b1f5c;
  --indigo: #4647AE;
  --indigo-soft: #6d6ec4;
  --accent: #F2A93B;

  --bg: #f5f6fd;
  --surface: #ffffff;
  --surface-tint: #eef0fb;
  --text: #16182b;
  --muted: #5a5d7d;
  --border: #e0e3f4;

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

  --shadow-sm: 0 2px 8px rgba(17, 46, 129, 0.06);
  --shadow: 0 12px 32px rgba(17, 46, 129, 0.10);
  --shadow-lg: 0 24px 60px rgba(17, 46, 129, 0.16);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4 {
  font-family: 'Fraunces', Georgia, serif;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.container {
  width: min(1140px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 200;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 246, 253, 0.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--navy);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--indigo), var(--navy));
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.brand-text strong {
  font-weight: 700;
}

.brand-text {
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.2rem 0;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--indigo);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links a:not(.btn).active {
  color: var(--navy);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.4rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s,
    color 0.25s, border-color 0.25s;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--indigo), var(--navy));
  color: #fff;
  box-shadow: 0 8px 20px rgba(17, 46, 129, 0.24);
}

.btn-primary:hover {
  box-shadow: 0 14px 30px rgba(17, 46, 129, 0.32);
}

.btn-ghost {
  background: var(--surface);
  color: var(--navy);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

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

.btn-accent {
  background: var(--accent);
  color: #3b2405;
  box-shadow: 0 10px 24px rgba(242, 169, 59, 0.34);
}

.btn-sm {
  padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg, #eef0fb 0%, #f5f6fd 62%, var(--bg) 100%);
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem);
}

.hero-glow {
  position: absolute;
  inset: -30% -10% auto auto;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(70, 71, 174, 0.20) 0%, rgba(70, 71, 174, 0) 68%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.4rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(242, 169, 59, 0.22);
}

h1 {
  font-size: clamp(2.35rem, 4.6vw, 3.9rem);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

h1 em {
  display: inline;
  font-style: italic;
  color: var(--indigo);
}

.lead {
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  color: var(--muted);
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 2rem 0 1.8rem;
}

.highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.highlights li {
  position: relative;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  padding: 0.5rem 0.9rem 0.5rem 2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--muted);
}

.highlights li::before {
  content: '';
  position: absolute;
  left: 0.85rem;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--indigo);
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.5s var(--ease);
}

.hero-visual:hover .hero-card {
  transform: translateY(-6px);
}

.hero-art {
  background: linear-gradient(150deg, var(--surface-tint), #fff);
  border-radius: var(--radius);
  padding: 0.5rem;
}

.hero-art svg {
  width: 100%;
  height: auto;
}

.hero-card-body {
  padding: 1.2rem 0.4rem 0.3rem;
}

.hero-card-body h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.hero-card-body p {
  color: var(--muted);
  font-size: 0.95rem;
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow);
  animation: float 5s ease-in-out infinite;
}

.float-chip-a {
  top: 8%;
  left: -6%;
}

.float-chip-b {
  bottom: 12%;
  right: -5%;
  animation-delay: -2.5s;
}

.chip-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--indigo);
}

.chip-icon svg {
  width: 100%;
  height: 100%;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.85rem 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: scroll-x 34s linear infinite;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-track span[aria-hidden='true'] {
  color: var(--accent);
}

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

/* ---------- Sections ---------- */

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section-heading {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--indigo);
  margin-bottom: 0.7rem;
}

.eyebrow-light {
  color: var(--accent);
}

.section-heading h2 {
  font-size: clamp(1.7rem, 3.1vw, 2.6rem);
  font-weight: 600;
}

.section-sub {
  color: var(--muted);
  margin-top: 0.9rem;
  font-size: 1.02rem;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.product-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.7rem;
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s;
}

.section-alt .card,
.section-alt .product-card {
  background: var(--bg);
}

.card:hover,
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--indigo-soft);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(70, 71, 174, 0.14), rgba(17, 46, 129, 0.1));
  color: var(--navy);
  margin-bottom: 1.1rem;
}

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

.card h3,
.product-card h3 {
  font-size: 1.22rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card p,
.product-card > p {
  color: var(--muted);
  font-size: 0.96rem;
}

.product-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.7rem;
}

.product-top .card-icon {
  margin-bottom: 0;
  flex: none;
}

.product-top h3 {
  margin-bottom: 0;
}

.product-list {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
  display: grid;
  gap: 0.5rem;
}

.product-list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.product-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--indigo);
  border-bottom: 2px solid var(--indigo);
  transform: rotate(-45deg);
}

.product-card.featured {
  border-color: var(--indigo);
  box-shadow: 0 14px 36px rgba(70, 71, 174, 0.16);
}

.tag {
  position: absolute;
  top: -0.75rem;
  right: 1.4rem;
  background: var(--accent);
  color: #3b2405;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.step {
  position: relative;
  padding: 1.6rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.step-num {
  display: inline-block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--indigo);
  opacity: 0.4;
  margin-bottom: 0.6rem;
}

.step h3 {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--muted);
  font-size: 0.93rem;
}

/* ---------- CTA + form ---------- */

.cta-box {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: center;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--navy) 55%, var(--navy-deep) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 3.2rem);
  box-shadow: var(--shadow-lg);
}

.cta-copy h2 {
  font-size: clamp(1.7rem, 2.9vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.cta-copy p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 32em;
}

.cta-actions {
  margin-top: 1.6rem;
}

.contact-form {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}

.form-title {
  font-weight: 600;
  margin-bottom: 1rem;
}

.field {
  margin-bottom: 0.9rem;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.35rem;
}

.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  transition: border-color 0.25s, background 0.25s;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.16);
}

.field.invalid input,
.field.invalid textarea {
  border-color: #ffb4b4;
}

.contact-form .btn-primary {
  background: #fff;
  color: var(--navy);
  margin-top: 0.4rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.form-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.7rem;
  text-align: center;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.brand-light {
  color: #fff;
  margin-bottom: 0.9rem;
}

.brand-light .brand-mark {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-brand p {
  font-size: 0.94rem;
  max-width: 26em;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.3rem;
}

.footer-col a {
  text-decoration: none;
  font-size: 0.94rem;
  width: fit-content;
  transition: color 0.25s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
}

.to-top {
  text-decoration: none;
  transition: color 0.25s;
}

.to-top:hover {
  color: var(--accent);
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.card-grid .reveal:nth-child(2),
.steps .reveal:nth-child(2) {
  transition-delay: 0.09s;
}

.card-grid .reveal:nth-child(3),
.steps .reveal:nth-child(3) {
  transition-delay: 0.18s;
}

.steps .reveal:nth-child(4) {
  transition-delay: 0.27s;
}

.hero-copy .reveal:nth-child(2) { transition-delay: 0.06s; }
.hero-copy .reveal:nth-child(3) { transition-delay: 0.12s; }
.hero-copy .reveal:nth-child(4) { transition-delay: 0.18s; }
.hero-copy .reveal:nth-child(5) { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-inner,
  .cta-box {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .float-chip-a { left: 0; }
  .float-chip-b { right: 0; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1.25rem;
    right: 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    background: var(--surface);
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-links a:not(.btn) {
    padding: 0.6rem 0.4rem;
    border-radius: var(--radius-sm);
  }

  .nav-links a:not(.btn)::after {
    display: none;
  }

  .nav-cta {
    margin-top: 0.4rem;
  }

  .card-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .float-chip {
    display: none;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

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