:root {
  --sky: #5b9fff;
  --blue: #2563eb;
  --deep: #1e40af;
  --cyan: #22d3ee;
  --ink: #0f172a;
  --muted: #475569;
  --surface: #f8fafc;
  --white: #ffffff;
  --line: rgba(30, 64, 175, 0.12);
  --shadow: 0 24px 60px rgba(37, 99, 235, 0.18);
  --radius: 18px;
  --font-display: "Outfit", "Zen Kaku Gothic New", sans-serif;
  --font-body: "Zen Kaku Gothic New", "Outfit", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.7;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(91, 159, 255, 0.45), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(34, 211, 238, 0.28), transparent 50%),
    linear-gradient(180deg, #eef5ff 0%, var(--surface) 42%, #ffffff 100%);
  min-height: 100vh;
}

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

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.wrap {
  width: min(1080px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(238, 245, 255, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

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

.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.7rem;
  color: inherit;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem 1.1rem;
  font-size: 0.95rem;
}

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

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

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
}

.lang-switch a {
  padding: 0.25rem 0.7rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}

.lang-switch a[aria-current="page"] {
  background: var(--blue);
  color: white;
}

.hero {
  position: relative;
  min-height: min(96vh, 980px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 2.5rem 0 3.5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(circle at 30% 40%, rgba(37, 99, 235, 0.22), transparent 45%),
    radial-gradient(circle at 70% 30%, rgba(34, 211, 238, 0.18), transparent 40%);
  animation: drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 2rem;
  justify-items: center;
  text-align: center;
}

.hero-copy {
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.hero-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 10vw, 5.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: var(--deep);
}

.hero-title {
  margin: 0;
  max-width: 18em;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.4vw, 1.9rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-lead {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* iPhone CSS device frame */
.phone {
  --phone-w: min(260px, 72vw);
  width: var(--phone-w);
  border-radius: calc(var(--phone-w) * 0.14);
  background: #0b1220;
  padding: calc(var(--phone-w) * 0.035);
  box-shadow:
    0 30px 60px rgba(15, 23, 42, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  position: relative;
}

.phone::before {
  content: "";
  position: absolute;
  top: calc(var(--phone-w) * 0.028);
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: calc(var(--phone-w) * 0.045);
  border-radius: 999px;
  background: #020617;
  z-index: 2;
}

.phone-screen {
  position: relative;
  display: block;
  width: 100%;
  border-radius: calc(var(--phone-w) * 0.1);
  overflow: hidden;
  background: #e2e8f0;
  aspect-ratio: 9 / 19.5;
}

.phone-screen > picture {
  position: absolute;
  inset: 0;
  display: block;
  margin: 0;
}

.phone-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.hero-phones {
  position: relative;
  width: min(560px, 100%);
  min-height: 420px;
  display: grid;
  place-items: center;
  margin-top: 0.5rem;
}

.hero-phones .phone-primary {
  --phone-w: min(280px, 68vw);
  z-index: 2;
}

.hero-phones .phone-secondary {
  --phone-w: min(230px, 56vw);
  position: absolute;
  left: 4%;
  bottom: 4%;
  z-index: 1;
  transform: rotate(-8deg);
  opacity: 0.96;
}

@media (min-width: 900px) {
  .hero-phones .phone-secondary {
    left: 2%;
  }

  .hero-phones .phone-primary {
    margin-left: 18%;
  }
}

.feature-showcase {
  display: grid;
  gap: 2.5rem;
}

.feature-row {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: 0.4rem 0 1.6rem;
  border-bottom: 1px solid var(--line);
}

.feature-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.feature-row .phone {
  --phone-w: min(240px, 62vw);
  justify-self: center;
}

@media (min-width: 800px) {
  .feature-row {
    grid-template-columns: 1fr 1.1fr;
    gap: 2.5rem;
  }

  .feature-row:nth-child(even) {
    grid-template-columns: 1.1fr 1fr;
  }

  .feature-row:nth-child(even) .feature-copy {
    order: 2;
  }

  .feature-row:nth-child(even) .phone {
    order: 1;
  }

  .feature-row .phone {
    --phone-w: 250px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-phones .phone-primary {
    animation: phone-float 5.5s ease-in-out infinite;
  }

  .hero-phones .phone-secondary {
    animation: phone-float 6.5s ease-in-out 0.4s infinite;
  }
}

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

.hero-phones .phone-secondary {
  animation-name: phone-float-tilt;
}

@keyframes phone-float-tilt {
  0%,
  100% {
    transform: rotate(-8deg) translateY(0);
  }
  50% {
    transform: rotate(-8deg) translateY(-8px);
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--sky), var(--blue) 55%, var(--deep));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
}

.button-primary:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.34);
}

.button-ghost {
  color: var(--deep);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.button-ghost:hover {
  background: white;
}

.section {
  padding: 4.5rem 0;
}

.section-muted {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
  color: var(--deep);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.feature-list {
  display: grid;
  gap: 1.4rem;
}

.feature {
  display: grid;
  gap: 0.45rem;
  padding: 0.2rem 0 1.4rem;
  border-bottom: 1px solid var(--line);
}

.feature:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.feature h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--blue);
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.usecase-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .usecase-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.usecase h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--deep);
}

.usecase p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.site-footer {
  background: linear-gradient(160deg, var(--blue), var(--deep));
  color: rgba(255, 255, 255, 0.86);
  padding: 3.5rem 0 2.5rem;
}

.site-footer a {
  color: white;
}

.footer-brand {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin: 1.4rem 0 1.8rem;
}

.footer-links a {
  text-decoration: none;
  opacity: 0.92;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.copyright {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.75;
}

.page {
  padding: 2.5rem 0 4rem;
}

.page-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
}

.page h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
  color: var(--deep);
}

.page h2 {
  margin: 2rem 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--blue);
}

.page h3 {
  margin: 1.4rem 0 0.45rem;
  font-size: 1.05rem;
  color: var(--ink);
}

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

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

.page .meta {
  margin: -0.3rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-nav {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.legal-nav a {
  display: block;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.06);
  text-decoration: none;
  color: var(--deep);
  font-weight: 700;
}

.legal-nav a:hover {
  background: rgba(37, 99, 235, 0.12);
}

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

@media (prefers-reduced-motion: no-preference) {
  .reveal.js-animate:not(.is-visible) {
    transform: translateY(14px);
    transition: transform 0.7s ease;
  }

  .reveal.js-animate.is-visible {
    transform: none;
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(2%, 4%, 0) scale(1.05);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-brand,
  .hero-title,
  .hero-lead,
  .cta-row {
    animation: hero-slide 0.75s ease-out;
  }

  .hero-brand { animation-delay: 0.05s; animation-fill-mode: backwards; }
  .hero-title { animation-delay: 0.1s; animation-fill-mode: backwards; }
  .hero-lead { animation-delay: 0.15s; animation-fill-mode: backwards; }
  .cta-row { animation-delay: 0.2s; animation-fill-mode: backwards; }
}

@keyframes hero-slide {
  from { transform: translateY(16px); }
  to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }

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