:root {
  --bg: #fbfbfd;
  --bg-soft: #f3f3f8;
  --surface: #ffffff;
  --ink: #12131a;
  --muted: #5b6072;
  --line: #e6e6ee;
  --accent: #4338ca;
  --accent-hover: #3730a3;
  --accent-2: #db2777;
  --accent-ink: #ffffff;
  --accent-soft: #eef0ff;
  --glow-1: rgba(99, 102, 241, 0.22);
  --glow-2: rgba(236, 72, 153, 0.16);
  --shadow: 0 1px 2px rgba(18, 19, 26, 0.04), 0 12px 32px rgba(18, 19, 26, 0.08);
  --radius: 18px;
  --max: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0d12;
    --bg-soft: #12131b;
    --surface: #161823;
    --ink: #eceef5;
    --muted: #a2a7b8;
    --line: #262938;
    --accent: #8b8ffc;
    --accent-hover: #a5a8ff;
    --accent-2: #f472b6;
    --accent-ink: #0c0d12;
    --accent-soft: #1d1f3d;
    --glow-1: rgba(99, 102, 241, 0.28);
    --glow-2: rgba(236, 72, 153, 0.18);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px rgba(0, 0, 0, 0.45);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 15px;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 30px;
  height: 30px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

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

.nav .nav-cta {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
}

.nav .nav-cta:hover {
  border-color: var(--muted);
}

/* Shared */

section {
  padding: 96px 0;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.4rem, 5.6vw, 4rem);
  font-weight: 750;
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 720;
}

h3 {
  font-size: 1.2rem;
  font-weight: 680;
  letter-spacing: -0.01em;
}

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}

.section-head p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.gradient-text {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease,
    background 0.15s ease;
}

.btn:hover {
  color: var(--ink);
  border-color: var(--muted);
  transform: translateY(-1px);
}

.btn-primary {
  border-color: transparent;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 24px var(--glow-1);
}

.btn-primary:hover {
  border-color: transparent;
  background: var(--accent-hover);
  color: var(--accent-ink);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 96px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 640px;
  background: radial-gradient(
      40% 50% at 18% 30%,
      var(--glow-1),
      transparent 70%
    ),
    radial-gradient(35% 45% at 85% 20%, var(--glow-2), transparent 70%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.lead {
  max-width: 54ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-visual {
  position: relative;
}

.hero-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

.hero-frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.hero-frame-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}

.hero-frame-bar span {
  margin-left: 8px;
}

.hero-chip {
  position: absolute;
  left: -18px;
  bottom: -22px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-chip img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.hero-chip strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}

.hero-chip span {
  color: var(--muted);
  font-size: 13px;
}

/* What we do */

.services {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

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

.card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15.5px;
}

/* Product */

.product {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-media {
  min-height: 100%;
  background: #1e1bb3;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 82% center;
}

.product-body {
  padding: 40px;
}

.product-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.product-title img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.product-title span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.features {
  display: grid;
  gap: 12px;
  margin: 26px 0 30px;
  padding: 0;
  list-style: none;
}

.features li {
  display: flex;
  gap: 12px;
  font-size: 15.5px;
}

.features li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234338ca' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-grid p {
  margin: 18px 0 0;
  color: var(--muted);
}

.facts {
  margin: 0;
  padding: 6px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.facts div {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.facts div:last-child {
  border-bottom: 0;
}

.facts dt {
  color: var(--muted);
  font-size: 15px;
}

.facts dd {
  margin: 0;
  font-weight: 620;
  overflow-wrap: anywhere;
}

/* Contact */

.contact {
  padding-top: 0;
}

.cta {
  position: relative;
  overflow: hidden;
  padding: 56px;
  border-radius: 28px;
  background: linear-gradient(120deg, #312e81 0%, #4338ca 45%, #be185d 100%);
  color: #ffffff;
}

.cta::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.cta-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.cta h2 {
  color: #ffffff;
}

.cta p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.cta-links {
  display: grid;
  gap: 12px;
}

.cta-link {
  display: block;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-decoration: none;
  transition: background 0.15s ease;
}

.cta-link:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.cta-link span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.cta-link strong {
  font-size: 17px;
  overflow-wrap: anywhere;
}

/* Legal page */

.legal {
  padding: 72px 0 96px;
}

.legal .wrap {
  max-width: 760px;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.legal h2 {
  margin: 40px 0 10px;
  font-size: 1.25rem;
}

.legal p,
.legal li {
  color: var(--muted);
}

.updated {
  margin: 12px 0 32px;
  color: var(--muted);
  font-size: 15px;
}

/* Footer */

.site-footer {
  padding: 32px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

/* Responsive */

@media (max-width: 900px) {
  .hero .wrap,
  .product,
  .about-grid,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    margin: 8px 8px 24px;
  }

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

  .about-grid {
    gap: 32px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .wrap {
    padding: 0 16px;
  }

  section {
    padding: 64px 0;
  }

  .hero {
    padding: 56px 0 64px;
  }

  .nav {
    gap: 14px;
    font-size: 14px;
  }

  .nav .nav-link {
    display: none;
  }

  .hero-chip {
    left: 8px;
    bottom: -20px;
  }

  .product-body {
    padding: 26px;
  }

  .facts {
    padding: 4px 18px;
  }

  .facts div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .cta {
    padding: 32px 22px;
    border-radius: 22px;
  }
}
