:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.09);
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --max: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.47;
  font-size: 17px;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.4);
  outline-offset: 4px;
  border-radius: 6px;
}

.wrap {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

.site-header,
body > header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 56px;
  background: rgba(250, 250, 252, 0.82);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.nav {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.logo:hover { text-decoration: none; }

.logo-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav a {
  color: #424245;
  font-size: 12px;
  letter-spacing: 0;
  transition: color 180ms ease;
}

nav a:hover {
  color: #000;
  text-decoration: none;
}

.hero {
  min-height: 820px;
  display: grid;
  align-items: center;
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 52%, rgba(107, 184, 255, 0.2), transparent 30%),
    radial-gradient(circle at 65% 46%, rgba(170, 140, 255, 0.12), transparent 25%),
    #fbfbfd;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 20px;
  color: #86868b;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero h1,
.section-heading h2,
.contact-block h2,
.legal h1 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero h1 {
  max-width: 770px;
  font-size: clamp(64px, 8vw, 104px);
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(92deg, #0071e3 4%, #8154e8 52%, #d3497d 96%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy {
  max-width: 600px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(20px, 2.1vw, 25px);
  line-height: 1.35;
  letter-spacing: -0.028em;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 250ms var(--ease), background 180ms ease, color 180ms ease;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--blue);
}

.button-primary:hover { background: var(--blue-hover); }

.button-secondary {
  color: var(--blue);
  background: rgba(0, 113, 227, 0.08);
}

.button-secondary:hover { background: rgba(0, 113, 227, 0.13); }

.hero-orb {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -70px;
  width: min(38vw, 450px);
  aspect-ratio: 1;
  transform: translateY(-48%);
  display: grid;
  place-items: center;
  border-radius: 42%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.2)),
    linear-gradient(145deg, #5cb6ff, #a983f4 55%, #f079a7);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.9),
    0 40px 100px rgba(58, 92, 160, 0.22);
  rotate: 8deg;
}

.hero-orb::before {
  content: "";
  position: absolute;
  inset: 7%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 38%;
}

.orb-core {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 700;
  letter-spacing: -0.08em;
  text-shadow: 0 3px 24px rgba(53, 40, 130, 0.18);
}

.products-section {
  padding: 132px 0 144px;
  background: var(--bg);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: 72px;
  margin-bottom: 64px;
}

.section-heading .eyebrow { margin-bottom: 16px; }

.section-heading h2,
.contact-block h2 {
  font-size: clamp(44px, 5vw, 66px);
}

.section-heading > p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.022em;
}

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

.card {
  min-height: 640px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border-radius: 30px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: transform 450ms var(--ease), box-shadow 450ms var(--ease);
}

.card:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.09);
}

.card:first-child { grid-column: 1 / -1; }

.product-visual {
  min-height: 330px;
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #ececf0;
}

.card:first-child .product-visual { min-height: 390px; }

.product-visual img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}

.card:hover .product-visual img { transform: scale(1.018); }

.card-content { padding: 32px 34px 38px; }

.card:first-child .card-content { padding-inline: 42px; }

.card-meta {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: #86868b;
  font-size: 12px;
  font-weight: 500;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #248a3d;
}

.status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 0 4px rgba(48, 209, 88, 0.12);
}

.card h3 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.card p {
  max-width: 640px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.48;
  letter-spacing: -0.018em;
}

.card .link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
}

.card .link span { transition: transform 200ms var(--ease); }
.card .link:hover { text-decoration: none; }
.card .link:hover span { transform: translate(2px, -2px); }

.contact-block {
  padding: 136px 0 142px;
  color: #f5f5f7;
  background: #101011;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 100px;
}

.contact-block .eyebrow { color: #86868b; }
.contact-block h2 span { color: #86868b; }

.contact-details {
  align-self: end;
  padding-bottom: 4px;
}

.contact-details > p {
  max-width: 400px;
  margin: 0 0 26px;
  color: #a1a1a6;
  font-size: 19px;
}

.button-light {
  color: #111;
  background: #f5f5f7;
}

.button-light:hover { background: #fff; }

.contact-block address {
  margin-top: 34px;
  color: #86868b;
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
}

footer {
  padding: 44px 0 54px;
  color: var(--muted);
  background: #101011;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

footer .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.footer-logo { color: #f5f5f7; }
.footer-logo .logo-mark { color: #111; background: #f5f5f7; }

.footer-meta {
  display: flex;
  align-items: center;
  gap: 32px;
}

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

.footer-links a,
footer a { color: #a1a1a6; }
.footer-links a:hover { color: #fff; }

.legal {
  width: min(100% - 48px, 760px);
  min-height: calc(100vh - 215px);
  padding: 88px 0 120px;
}

.legal .back {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--blue);
  font-size: 14px;
}

.legal h1 {
  margin-bottom: 48px;
  font-size: clamp(46px, 7vw, 68px);
}

.legal h2 {
  margin: 42px 0 10px;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.legal p,
.legal li {
  color: var(--muted);
  font-size: 16px;
}

.legal ul { padding-left: 1.2rem; }

@media (max-width: 900px) {
  .hero {
    min-height: 760px;
    padding-top: 70px;
  }

  .hero h1 { max-width: 680px; }

  .hero-orb {
    top: auto;
    right: -50px;
    bottom: -100px;
    width: 340px;
    transform: none;
    opacity: 0.65;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .section-heading > p { max-width: 520px; }
  .card { min-height: 600px; }

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

@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 32px, var(--max)); }
  .site-header, body > header { min-height: 52px; }
  .nav { min-height: 52px; }
  nav { gap: 20px; }
  .logo-mark { width: 26px; height: 26px; border-radius: 7px; }

  .hero {
    min-height: 720px;
    align-items: start;
    padding: 90px 0 80px;
  }

  .hero h1 {
    font-size: clamp(50px, 15vw, 68px);
    line-height: 1;
  }

  .hero-copy {
    max-width: 92%;
    margin-top: 28px;
    font-size: 20px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 30px;
  }

  .button { min-height: 46px; }

  .hero-orb {
    right: -85px;
    bottom: -90px;
    width: 285px;
  }

  .products-section { padding: 92px 0 100px; }
  .section-heading { margin-bottom: 42px; }

  .section-heading h2,
  .contact-block h2 {
    font-size: 42px;
    line-height: 1.02;
  }

  .cards { grid-template-columns: 1fr; gap: 18px; }
  .card:first-child { grid-column: auto; }
  .card, .card:first-child { min-height: 560px; }
  .product-visual, .card:first-child .product-visual { min-height: 310px; }
  .card-content, .card:first-child .card-content { padding: 28px 26px 32px; }
  .card h3 { font-size: 29px; }

  .contact-block { padding: 94px 0 98px; }
  .contact-inner { gap: 48px; }

  footer .row,
  .footer-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  footer .row { gap: 30px; }
  .footer-meta { gap: 16px; }
  .footer-links { flex-wrap: wrap; }

  .legal {
    width: min(100% - 32px, 760px);
    padding: 64px 0 90px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
