:root {
  color-scheme: light;
  --bg: #fbfbfd;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --text-muted: #86868b;
  --line: #dcdde1;
  --brand: #0066cc;
  --brand-hover: #0077ed;
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-premium: 0 18px 38px rgba(0, 0, 0, 0.1);
  --shadow-soft: 0 6px 20px rgba(0, 0, 0, 0.035);
  --container: 1040px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  touch-action: manipulation;
}

button {
  touch-action: manipulation;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -44px;
  z-index: 999;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: top 0.25s var(--ease-out);
}

.skip-link:focus-visible {
  top: 12px;
}

.shell {
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(251, 251, 253, 0.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.site-header.is-scrolled {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand img {
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

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

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), background-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), opacity 0.2s var(--ease-out);
}

.btn-primary {
  color: #fff;
  background: var(--brand);
}

.btn-primary:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 102, 204, 0.2);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  color: var(--text);
  background: #ececf0;
}

.btn-secondary:hover {
  background: #e1e2e7;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.btn-secondary:active {
  transform: scale(0.98);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 5.4vw, 3.6rem);
  line-height: 1.06;
}

h2 {
  font-size: clamp(1.55rem, 3.4vw, 2.3rem);
  line-height: 1.14;
}

h3 {
  font-size: 21px;
  line-height: 1.24;
}

.lead {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  line-height: 1.42;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 36ch;
  margin-inline: auto;
  margin-top: 20px;
  text-wrap: balance;
}

.hero {
  padding: 92px 0 66px;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: min(640px, 78vw);
  height: 120px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0, 102, 204, 0.07) 0%, rgba(0, 102, 204, 0.02) 52%, transparent 78%);
  filter: blur(18px);
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-row {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-mockup-wrapper {
  margin-top: 56px;
  position: relative;
  max-width: 280px;
  margin-inline: auto;
  padding: 14px;
}

.hero-mockup-wrapper::before {
  content: "";
  position: absolute;
  top: 18%;
  left: -8%;
  right: -8%;
  bottom: 18%;
  background: radial-gradient(circle, rgba(0, 102, 204, 0.08) 0%, transparent 70%);
  z-index: 0;
  border-radius: 50%;
  filter: blur(26px);
}

.hero-mockup {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 36px;
  box-shadow: 0 0 0 8px #1a1a1a, inset 0 0 0 2px #333, var(--shadow-premium);
  background: #000;
  position: relative;
  z-index: 2;
  transform: none;
  transition: transform 0.24s var(--ease-out), box-shadow 0.24s var(--ease-out);
}

.hero-mockup-wrapper:hover .hero-mockup {
  transform: translateY(-2px);
  box-shadow: 0 0 0 8px #1a1a1a, inset 0 0 0 2px #333, 0 20px 42px rgba(0, 0, 0, 0.12);
}

.section {
  padding: 92px 0;
}

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

.zigzag {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.zigzag.reverse .zigzag-content {
  order: 2;
}

.zigzag.reverse .zigzag-image {
  order: 1;
}

.zigzag-content h2 {
  margin-bottom: 16px;
}

.zigzag-content p {
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.005em;
}

.zigzag-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 22px;
}

.zigzag-image::before {
  content: "";
  position: absolute;
  width: 106%;
  height: 106%;
  background: radial-gradient(circle, rgba(0, 102, 204, 0.06) 0%, transparent 65%);
  z-index: 0;
  border-radius: 50%;
  filter: blur(22px);
}

.device-mockup {
  width: 100%;
  height: auto;
  max-width: 252px;
  border-radius: 34px;
  box-shadow: 0 0 0 8px #1a1a1a, inset 0 0 0 2px #333, var(--shadow-soft);
  background: #000;
  position: relative;
  z-index: 2;
  transition: transform 0.28s var(--ease-out);
}

.zigzag:hover .device-mockup {
  transform: translateY(-4px);
}

.floating-badge {
  position: absolute;
  z-index: 3;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  color: var(--text);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
  animation: floatBadge 3.8s ease-in-out infinite;
}

.badge-top-right {
  top: 12%;
  right: 2%;
}

.badge-bottom-left {
  bottom: 18%;
  left: 4%;
  animation-delay: -2s;
}

.badge-top-left {
  top: 16%;
  left: 3%;
}

.badge-bottom-right {
  bottom: 16%;
  right: 4%;
  animation-delay: -1.4s;
}

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

.bento-grid {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.bento-grid::before {
  content: "";
  position: absolute;
  inset: -18px -10px auto;
  height: 180px;
  background: radial-gradient(circle at 30% 40%, rgba(0, 102, 204, 0.045) 0%, transparent 72%);
  filter: blur(12px);
  z-index: -1;
  pointer-events: none;
}

.bento-card {
  background: #fcfcfd;
  border-radius: 22px;
  padding: 34px 28px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.025);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.bento-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.045);
  border-color: rgba(0, 0, 0, 0.05);
}

.bento-card.full-width {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #f9f9fb 0%, #ffffff 100%);
  border: 1px solid rgba(0, 0, 0, 0.045);
}

.stat-value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 6px;
}

.stat-label {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: -0.005em;
}

.final-cta {
  text-align: center;
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg-alt) 0%, #f2f6fc 100%);
}

.final-cta h2 {
  margin-bottom: 26px;
}

.legal-layout {
  padding: 80px 0 120px;
  max-width: 700px;
  margin: 0 auto;
}

.legal-page-title {
  font-size: clamp(2.2rem, 4.6vw, 3.2rem);
  margin-bottom: 20px;
}

.legal-intro {
  font-size: 19px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 50px;
}

.legal-content section {
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 22px;
  margin-bottom: 14px;
}

.legal-content p,
.legal-content li {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

.legal-content ul,
.legal-content ol {
  padding-left: 22px;
  margin-bottom: 14px;
}

footer {
  background: var(--bg-alt);
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.reveal-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.06s;
}

.delay-2 {
  transition-delay: 0.12s;
}

.delay-3 {
  transition-delay: 0.18s;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .zigzag {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .zigzag.reverse .zigzag-content {
    order: 1;
  }

  .zigzag.reverse .zigzag-image {
    order: 2;
  }

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

@media (max-width: 760px) {
  .hero {
    padding: 78px 0 48px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(251, 251, 253, 0.98);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--line);
    display: none;
  }

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

  .nav-links a {
    font-size: 17px;
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .cta-row {
    flex-direction: column;
    padding: 0 24px;
  }

  .btn {
    width: 100%;
  }

  .hero-mockup-wrapper {
    padding: 0 24px;
    max-width: 255px;
  }

  .floating-badge {
    font-size: 11px;
    padding: 7px 10px;
  }
}

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

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