:root {
  --ink: #102033;
  --ink-soft: #3d5166;
  --paper: #e9eef4;
  --paper-2: #f4f7fa;
  --ember: #d4562a;
  --sea: #1f7a8c;
  --sea-deep: #0d4f5c;
  --line: rgba(16, 32, 51, 0.12);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  background: var(--paper-2);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

/* ——— Hero ——— */

.hero {
  position: relative;
  min-height: 100svh;
  overflow: clip;
  background: #d5dde6;
}

.hero-ambient {
  position: absolute;
  inset: -8%;
  pointer-events: none;
}

.hero-ambient img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(48px) saturate(1.15);
  transform: scale(1.08);
  opacity: 0.55;
}

.hero-ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 75% 40%, rgba(255, 255, 255, 0.35), transparent 65%),
    linear-gradient(180deg, rgba(244, 247, 250, 0.55) 0%, rgba(213, 221, 230, 0.75) 100%);
}

.hero-layout {
  position: relative;
  z-index: 1;
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 100svh;
  display: grid;
  align-items: center;
  gap: 1.75rem;
  padding: 1.75rem 0 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    padding: 3.5rem 0;
  }
}

.hero-copy {
  color: var(--ink);
  animation: rise 1s var(--ease) both;
  text-align: center;
}

@media (min-width: 900px) {
  .hero-copy {
    text-align: left;
    padding-right: 1rem;
  }
}

.brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.hero h1 {
  margin: 0 0 0.85rem;
  max-width: 16ch;
  margin-inline: auto;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.6vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

@media (min-width: 900px) {
  .hero h1 {
    margin-inline: 0;
  }
}

.hero-lead {
  margin: 0 auto 1.5rem;
  max-width: 34ch;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

@media (min-width: 900px) {
  .hero-lead {
    margin-inline: 0;
  }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: center;
}

@media (min-width: 900px) {
  .cta-row {
    justify-content: flex-start;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.7rem 1.2rem;
  border-radius: 0.65rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: transform 0.35s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink);
  color: #f4f7fa;
}

.btn-primary:hover {
  background: #0a1624;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
  border: 1px solid rgba(16, 32, 51, 0.16);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: rgba(16, 32, 51, 0.35);
  background: rgba(255, 255, 255, 0.7);
}

.apple-mark {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
}

/* Phone frame */

.phone-stage {
  order: -1;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: float-in 1.1s var(--ease) both;
}

@media (min-width: 900px) {
  .phone-stage {
    order: 0;
  }
}

.phone {
  position: relative;
  width: min(17.5rem, 72vw);
}

@media (min-width: 900px) {
  .phone {
    width: min(20rem, 34vw);
  }
}

.phone-bezel {
  position: relative;
  border-radius: 2.35rem;
  padding: 0.55rem;
  background: linear-gradient(160deg, #2a2f36 0%, #0c0e12 45%, #1a1e24 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 -1px 0 rgba(0, 0, 0, 0.45) inset,
    0 28px 60px rgba(16, 32, 51, 0.35),
    0 8px 18px rgba(16, 32, 51, 0.18);
}

.phone-screen {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: center top;
  border-radius: 1.85rem;
  background: #111;
}

.phone-side {
  position: absolute;
  width: 0.18rem;
  background: #1c2128;
  border-radius: 2px;
}

.phone-side-l {
  left: -0.12rem;
  top: 18%;
  height: 9%;
  box-shadow: 0 3.2rem 0 #1c2128, 0 5.6rem 0 #1c2128;
}

.phone-side-r {
  right: -0.12rem;
  top: 26%;
  height: 12%;
}

/* ——— Sections ——— */

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 1.25rem;
}

.section-inner {
  width: min(68rem, 100%);
  margin: 0 auto;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.section-lead {
  margin: 0;
  max-width: 38ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.effects {
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(212, 86, 42, 0.1), transparent 55%),
    radial-gradient(50% 70% at 100% 20%, rgba(31, 122, 140, 0.12), transparent 50%),
    var(--paper);
}

.effect-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 2.25rem;
  list-style: none;
  padding: 0;
}

@media (min-width: 720px) {
  .effect-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

.effect-grid li {
  padding: 1.1rem 1rem 1.15rem;
  border-top: 1px solid var(--line);
  animation: rise 0.8s var(--ease) both;
}

.effect-grid li:nth-child(1) { animation-delay: 0.05s; }
.effect-grid li:nth-child(2) { animation-delay: 0.1s; }
.effect-grid li:nth-child(3) { animation-delay: 0.15s; }
.effect-grid li:nth-child(4) { animation-delay: 0.2s; }
.effect-grid li:nth-child(5) { animation-delay: 0.25s; }
.effect-grid li:nth-child(6) { animation-delay: 0.3s; }
.effect-grid li:nth-child(7) { animation-delay: 0.35s; }
.effect-grid li:nth-child(8) { animation-delay: 0.4s; }

.effect-grid strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.effect-grid span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.studio {
  background: linear-gradient(160deg, #0d4f5c 0%, #102033 58%, #1a2838 100%);
  color: #eef5f7;
}

.studio .section-lead {
  color: rgba(238, 245, 247, 0.78);
}

.studio-cta {
  margin-top: 1.75rem;
}

.studio .btn-primary {
  background: #e8f4f6;
  color: var(--sea-deep);
}

/* ——— Footer ——— */

.site-footer {
  padding: 2rem 1.25rem 2.5rem;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}

.footer-inner {
  width: min(68rem, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

.footer-links a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer-links a:hover {
  border-bottom-color: currentColor;
}

/* ——— Privacy page ——— */

.page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.page-top {
  padding: 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.page-top a {
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.legal {
  width: min(42rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.legal h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.035em;
}

.legal .updated {
  margin: 0 0 2rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.legal h2 {
  margin: 2rem 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

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

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

  html {
    scroll-behavior: auto;
  }
}
