/* ---- CSS Reset (mobile-first) ---- */
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
img {
  max-width: 100%;
  display: block;
}
button,
input,
textarea {
  font: inherit;
}

/* ========= LIGHT THEME VARIABLES ========= */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --card: #ffffff;
  --muted: #5a677f;
  --ink: #0b0e13;
  --brand: #4f7cff;
  --brand-2: #10b981;
  --ring: rgba(79, 124, 255, 0.25);
  --shadow: 0 12px 30px rgba(16, 24, 40, 0.06);
  --radius: 18px;
  --radius-sm: 12px;
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: radial-gradient(
      1200px 800px at 10% -10%,
      rgba(79, 124, 255, 0.08) 0%,
      transparent 60%
    ),
    radial-gradient(
      1000px 700px at 90% -20%,
      rgba(16, 185, 129, 0.06) 0%,
      transparent 60%
    ),
    var(--bg);
  line-height: 1.55;
}

.section-head {
  text-align: center;
  margin: 0 auto 22px;
  max-width: 760px;
  padding: 0 16px;
}
.section-head h2 {
  font-family: Sora, Inter, sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: #0b1220;
}
.section-head p {
  color: var(--muted);
  margin: 0;
}

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(2, 6, 23, 0.06);
}
.nav-links {
  display: none;
  gap: 22px;
  align-items: center;
}
.nav-links a {
  color: #0e1320;
  text-decoration: none;
  opacity: 0.9;
}
.nav-links a:hover {
  opacity: 1;
}
.btn {
  --pad: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--pad);
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(79, 124, 255, 0.25);
  border: 1px solid #6f92ff;
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(2, 6, 23, 0.12);
  box-shadow: none;
}
.btn--sm {
  --pad: 10px 14px;
  font-size: 0.95rem;
}

.hamburger {
  background: none;
  border: 0;
  display: grid;
  gap: 4px;
}
.hamburger span {
  width: 26px;
  height: 2px;
  background: #0e1320;
  display: block;
  border-radius: 2px;
  transition: 0.25s;
}

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

/* ===== Mobile drawer ===== */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  visibility: hidden;
}
.drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.45);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}
.drawer.is-open .drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(360px, 82%);
  background: #fff;
  border-left: 1px solid rgba(2, 6, 23, 0.06);
  box-shadow: -24px 0 60px rgba(2, 6, 23, 0.12);
  transform: translateX(100%);
  transition: transform 0.32s ease;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
}
.drawer.is-open .drawer-panel {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px 10px;
}
.drawer-close {
  background: #f1f4fb;
  border: 1px solid rgba(2, 6, 23, 0.08);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  position: relative;
}
.drawer-close span {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 17px;
  height: 2px;
  background: #0e1320;
}
.drawer-close span:first-child {
  transform: rotate(45deg);
}
.drawer-close span:last-child {
  transform: rotate(-45deg);
}

.drawer-list {
  list-style: none;
  padding: 12px 2px 10px;
  margin: 0;
  display: grid;
  gap: 10px;
}
.drawer-link {
  display: block;
  padding: 12px 8px;
  border-radius: 10px;
  text-decoration: none;
  color: #0e1320;
  font-weight: 600;
}
.drawer-link:focus {
  outline: none;
  box-shadow: 0 0 0 4px var(--ring);
}
.drawer-cta {
  width: 100%;
  text-align: center;
}
.drawer-list .divider {
  height: 1px;
  background: rgba(2, 6, 23, 0.08);
  margin: 6px 0;
}

.no-scroll {
  height: 100vh;
  overflow: hidden;
}

/* ---- Hero ---- */
.hero {
  display: grid;
  gap: 28px;
  padding: 40px 16px 20px;
  position: relative;
  overflow: clip;
}
.hero-copy .eyebrow {
  color: var(--brand-2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  margin: 10px 0;
}
.hero h1 {
  font-family: Sora, Inter, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(32px, 6vw, 56px);
  margin: 10px 0 12px;
}
.hero .accent {
  color: var(--brand);
  text-shadow: 0 8px 30px rgba(79, 124, 255, 0.25);
}
.hero .sub {
  color: var(--muted);
  margin-bottom: 18px;
  max-width: 44ch;
}
.hero .cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 8px;
  color: #3e4a63;
}
.hero-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}
.hero-bullets svg {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.hero-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: end;
}
.tilt-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
  border: 1px solid rgba(2, 6, 23, 0.06);
  background: #fff;
}
.tilt-card.secondary {
  transform: rotate(3deg);
}
.tilt-card svg {
  width: 100%;
  height: auto;
  display: block;
} /* keep cards visible */
.chip {
  position: absolute;
  left: 12px;
  bottom: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(2, 6, 23, 0.08);
  color: #0b0e13;
  font-weight: 600;
  font-size: 0.85rem;
}
.chip--light {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.floating-blob {
  position: absolute;
  right: -80px;
  top: -90px;
  width: 260px;
  height: 260px;
  filter: blur(50px);
  background: radial-gradient(
    closest-side,
    rgba(79, 124, 255, 0.25),
    transparent
  );
  transform: rotate(20deg);
}

/* ---- Trust ---- */
.trust {
  padding: 14px 16px 0;
  text-align: center;
  color: #667189;
}
.trust .logos {
  display: flex;
  gap: 10px;
  overflow: auto;
  padding: 10px 4px 0;
  justify-content: center;
}
.logo-pill {
  border: 1px solid rgba(2, 6, 23, 0.12);
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  white-space: nowrap;
}

/* ---- Products ---- */
.products {
  padding: 40px 0;
  display: grid;
  gap: 22px;
}
.product {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(2, 6, 23, 0.08);
  border-radius: var(--radius);
  background: linear-gradient(
      180deg,
      rgba(2, 6, 23, 0.02),
      rgba(2, 6, 23, 0.01)
    ),
    var(--card);
  box-shadow: var(--shadow);
}
.product.alt {
  background: linear-gradient(
      180deg,
      rgba(79, 124, 255, 0.06),
      rgba(2, 6, 23, 0.01)
    ),
    var(--card);
}
.product-media {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.product-media img {
  aspect-ratio: 16/9;
  object-fit: cover;
}
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  background: var(--brand);
  color: #fff;
  border: 1px solid #6f92ff;
}
.product-copy h3 {
  font-family: Sora, Inter, sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 2px 0 6px;
  font-size: clamp(20px, 4.5vw, 30px);
  color: #0b1220;
}
.product-copy .lead {
  color: #263149;
  margin: 0 0 10px;
}
.feature-list {
  margin: 0;
  padding-left: 18px;
  color: #3a4561;
}
.feature-list li {
  margin: 6px 0;
}
.product .cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.footnote {
  color: #6a7794;
  font-size: 0.9rem;
  margin-top: 8px;
}

/* ---- Solutions ---- */
.solutions {
  padding: 34px 0 10px;
}
.solution-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0 16px;
}
.solution {
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0.02),
    rgba(2, 6, 23, 0.01)
  );
  border: 1px solid rgba(2, 6, 23, 0.08);
  padding: 16px;
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
}
.solution h4 {
  margin: 0;
}
.solution p {
  margin: 0;
  color: var(--muted);
}
.solution .ico {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--brand);
}

/* ---- Process (timeline) ---- */
.process {
  padding: 36px 0;
}
.steps {
  position: relative;
  list-style: none;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 0 16px 0 16px;
}
.steps::before {
  content: "";
  position: absolute;
  left: 34px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(79, 124, 255, 0.22),
    rgba(79, 124, 255, 0.06)
  );
  border-radius: 2px;
}
.steps li {
  position: relative;
  padding: 16px 14px 14px 64px;
  background: var(--bg-soft);
  border: 1px solid rgba(2, 6, 23, 0.08);
  border-radius: 16px;
  color: #1a243b;
  box-shadow: var(--shadow);
}
.steps li > span {
  position: absolute;
  left: 20px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--brand), #6a9aff);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(79, 124, 255, 0.25);
}
.steps li::after {
  content: "";
  position: absolute;
  left: 34px;
  top: 45px;
  width: 2px;
  height: calc(100% - 45px);
  background: rgba(79, 124, 255, 0.12);
}
.steps li:last-child::after {
  display: none;
}

/* Horizontal timeline (desktop) */
@media (min-width: 960px) {
  .process {
    padding: 84px 0 48px;
  }
  .steps {
    max-width: 1200px;
    margin: 0 auto;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    padding: 0 40px;
  }
  .steps::before {
    left: 40px;
    right: 40px;
    top: 22px;
    bottom: auto;
    height: 2px;
    background: linear-gradient(
      90deg,
      rgba(79, 124, 255, 0.22),
      rgba(79, 124, 255, 0.06)
    );
  }
  .steps li {
    text-align: center;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 66px 10px 0 10px;
    color: #1a243b;
  }
  .steps li > span {
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 46px;
    height: 46px;
    font-size: 14px;
  }
  .steps li::after {
    display: none;
  }
}

/* ---- Contact ---- */
.contact {
  padding: 34px 0;
}
.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0 16px;
  max-width: 760px;
  margin: 0 auto;
}
.field {
  display: grid;
  gap: 6px;
}
.field.full {
  grid-column: 1 / -1;
}
label {
  font-size: 0.95rem;
  color: #1c2742;
}
input,
textarea {
  background: #fff;
  border: 1px solid rgba(2, 6, 23, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink);
  outline: none;
}
input:focus,
textarea:focus {
  border-color: #8fb0ff;
  box-shadow: 0 0 0 4px var(--ring);
}
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
#formNote {
  color: var(--muted);
}

/* ---- Footer ---- */
.footer {
  margin-top: 28px;
  border-top: 1px solid rgba(2, 6, 23, 0.08);
  padding: 22px 16px;
  background: #fbfcfe;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.footer h5 {
  margin: 0 0 8px;
  font-family: Sora, Inter, sans-serif;
  color: #0b1220;
}
.footer address {
  font-style: normal;
  color: #263149;
}
.brand--foot .logo-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--brand), #6a9aff);
  box-shadow: 0 0 0 4px var(--ring);
}
.muted {
  color: #647090;
}
.foot-bottom {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #6a7794;
  flex-wrap: wrap;
  gap: 10px;
}
.foot-links a {
  color: #4b5a79;
  text-decoration: none;
  margin-left: 10px;
}

/* ---- Legal Pages (privacy / terms) ---- */
.legal-hero {
  padding: 54px 16px 10px;
  max-width: 960px;
  margin: 0 auto;
}
.legal-hero h1 {
  font-family: Sora, Inter, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(34px, 6vw, 58px);
  margin: 0 0 12px;
}
.legal-hero p.meta {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 0.9rem;
}
.legal-body {
  max-width: 960px;
  margin: 10px auto 0;
  padding: 0 16px 40px;
  display: grid;
  gap: 34px;
}
.legal-body h2,
.legal-body h3 {
  font-family: Sora, Inter, sans-serif;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: #0b1220;
}
.legal-body h2 {
  font-size: clamp(22px, 3.4vw, 34px);
}
.legal-body h3 {
  font-size: clamp(18px, 2.6vw, 26px);
}
.legal-body p,
.legal-body li {
  color: #1a243b;
}
.legal-body section {
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0.02),
    rgba(2, 6, 23, 0.01)
  );
  border: 1px solid rgba(2, 6, 23, 0.08);
  padding: 26px 22px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.legal-body ol,
.legal-body ul {
  padding-left: 20px;
  margin: 8px 0 0;
}
.legal-back {
  margin-top: 6px;
  display: inline-flex;
  gap: 6px;
  font-size: 0.9rem;
  text-decoration: none;
  color: #4f7cff;
  font-weight: 600;
}
.legal-back svg {
  width: 16px;
  height: 16px;
}

@media (min-width: 720px) {
  .legal-hero {
    padding: 80px 30px 10px;
  }
  .legal-body {
    padding: 0 30px 70px;
    gap: 40px;
  }
  .legal-body section {
    padding: 34px 34px 30px;
  }
}

/* ---- Animations / Interactions ---- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: 0.6s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.product:hover,
.solution:hover {
  transform: translateY(-2px);
  transition: transform 0.25s ease;
}

/* ---- Responsive ---- */
@media (min-width: 720px) {
  .nav {
    padding: 14px 30px;
  }
  .nav-links {
    display: flex;
  }
  .hamburger {
    display: none;
  }
  .hero {
    grid-template-columns: 1.1fr 1fr;
    padding: 60px 30px 30px;
  }
  .trust {
    padding: 14px 30px 0;
  }
  .products {
    padding: 56px 30px;
  }
  .product {
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
  }
  .product.alt {
    grid-template-columns: 1fr 1.15fr;
  }
  .product.alt .product-media {
    order: 2;
  }
  .solution-grid {
    grid-template-columns: repeat(4, 1fr);
    padding: 0 30px;
    gap: 18px;
  }
  .contact {
    padding: 64px 0;
  }
  .footer {
    padding: 28px 30px;
  }
  .foot-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}
