:root {
  --text: #111318;
  --muted: #2c3441;
  --card: rgba(255, 255, 255, 0.33);
  --stroke: rgba(255, 255, 255, 0.35);
  --shadow: 0 20px 40px rgba(15, 24, 38, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #bde7f5;
  overscroll-behavior-y: none;
}

body {
  position: relative;
  min-height: 100svh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", sans-serif;
  line-height: 1.4;
  overflow-x: hidden;
  background: transparent;
}

.bg-layer {
  position: fixed;
  inset: -15vh -10vw;
  pointer-events: none;
  z-index: -2;
  background:
    linear-gradient(118deg, #84d9f0 10%, #bde7f5 38%, #f5dcc6 58%, #efb3a6 100%),
    radial-gradient(circle at 50% 23%, rgba(255, 248, 232, 0.82), rgba(255, 255, 255, 0) 36%),
    radial-gradient(circle at 34% 62%, rgba(136, 225, 244, 0.42), rgba(255, 255, 255, 0) 48%),
    radial-gradient(circle at 70% 57%, rgba(248, 188, 153, 0.32), rgba(255, 255, 255, 0) 44%),
    repeating-radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 0 1px, rgba(255, 255, 255, 0) 1px 6px);
  filter: saturate(1.08);
  transform: translate3d(0, 0, 0);
  transition: transform 0.06s linear;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.68' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E");
}

.shell {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 36px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 16px 0 8px;
  }

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 640;
  letter-spacing: 0.01em;
}

.brand img,
.footer-brand img {
  border-radius: 11px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.top-nav {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.top-nav a {
  color: rgba(27, 30, 36, 0.85);
  text-decoration: none;
  font-size: 0.91rem;
}

.download-mini {
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.84);
  color: #121417;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.13);
  font-size: 1rem;
  font-weight: 620;
}

.hero {
  text-align: center;
  padding-top: 56px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5.4vw, 4.45rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-shadow: 0 7px 16px rgba(0, 0, 0, 0.15);
}

.subtitle {
  margin: 12px 0 26px;
  color: rgba(30, 36, 43, 0.78);
  font-size: clamp(1.1rem, 2vw, 2rem);
}

.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  padding: 8px 14px;
  background: #0c0e11;
  border: 1px solid #0c0e11;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.app-store-btn .apple {
  font-size: 1.7rem;
  line-height: 1;
}

.app-store-btn small,
.app-store-btn strong {
  display: block;
  line-height: 1.04;
}

.app-store-btn small {
  font-size: 0.62rem;
  font-weight: 500;
  opacity: 0.93;
}

.app-store-btn strong {
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.hero-phone-wrap {
  margin: 28px auto 0;
  width: min(430px, 84vw);
  filter: drop-shadow(0 34px 34px rgba(22, 14, 9, 0.32));
}

.hero-phone {
  display: block;
  width: 100%;
  border-radius: 40px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 14px;
}

.feature-card {
  padding: 24px 16px;
  border-radius: 22px;
  text-align: center;
  border: 1px solid var(--stroke);
  background: var(--card);
  backdrop-filter: blur(11px);
  box-shadow: var(--shadow);
  transform: translateY(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 42px rgba(16, 24, 35, 0.2);
}

.feature-card h3 {
  margin: 0;
  font-size: clamp(1.7rem, 2vw, 2.2rem);
  letter-spacing: -0.02em;
}

.feature-card p {
  margin: 3px 0 0;
  font-size: 1.06rem;
  color: rgba(30, 37, 46, 0.88);
}

.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.showcase h2,
.cta h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  letter-spacing: -0.02em;
  text-align: center;
}

.phone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.phone-grid img {
  width: 100%;
  border-radius: 36px;
  box-shadow: 0 28px 40px rgba(34, 21, 8, 0.28);
}

.phone-grid img:first-child {
  transform: rotate(-4deg);
}

.phone-grid img:last-child {
  transform: rotate(4deg);
}

.cta {
  text-align: center;
  padding-top: 64px;
  padding-bottom: 32px;
}

.site-footer {
  text-align: center;
  padding: 8px 0 44px;
}

.footer-brand {
  justify-content: center;
  font-size: 1.9rem;
  margin-bottom: 14px;
}

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

.footer-links a {
  color: #252e38;
  text-decoration: none;
}

.footer-links a:hover,
.top-nav a:hover {
  text-decoration: underline;
}

.legal-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 96px 20px;
}

.legal-card {
  width: min(700px, 100%);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  padding: 34px;
  box-shadow: var(--shadow);
  }

.legal-card h1 {
  margin-top: 0;
  font-size: clamp(2rem, 5vw, 3rem);
}

.legal-card p {
  margin-bottom: 0;
  color: #2d3541;
  font-size: 1.05rem;
}

@media (max-width: 980px) {
  .showcase {
    grid-template-columns: 1fr;
  }

  .site-header {
    padding-top: 12px;
  }
}

@media (max-width: 760px) {
  .hero {
    padding-top: 30px;
  }

  .top-nav {
    gap: 10px;
  }

  .top-nav a {
    font-size: 0.84rem;
  }

  .download-mini {
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 0.93rem;
  }

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

  .phone-grid {
    gap: 12px;
  }

  .phone-grid img:first-child,
  .phone-grid img:last-child {
    transform: none;
  }

  .footer-brand {
    font-size: 1.55rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 8px;
  }
}

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

  .bg-layer,
  .hero-phone,
  .feature-card {
    transform: none !important;
  }
}

/* Legal pages */
.legal-page .site-header {
  background: rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.top-nav a.active {
  font-weight: 650;
  color: #14171c;
}

.legal-main {
  min-height: 70vh;
  padding: 64px 0 40px;
}

.legal-card {
  width: min(900px, 100%);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  padding: 32px 34px 40px;
  box-shadow: 0 22px 46px rgba(15, 24, 38, 0.18);
  backdrop-filter: blur(10px);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1c2430;
  text-decoration: none;
  margin-bottom: 12px;
}

.legal-title {
  margin: 0 0 6px;
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  letter-spacing: -0.02em;
}

.legal-updated {
  margin: 0 0 18px;
  color: rgba(32, 38, 46, 0.72);
  font-size: 0.98rem;
}

.legal-toc {
  margin: 18px 0 28px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 24px rgba(15, 24, 38, 0.08);
}

.legal-toc h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.legal-toc ul {
  margin: 0;
  padding-left: 20px;
}

.legal-toc a {
  text-decoration: none;
  color: #1d2733;
}

.legal-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #1d232b;
}

.legal-content h1,
.legal-content h2 {
  margin: 28px 0 10px;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  letter-spacing: -0.01em;
  position: relative;
}

.legal-content h1.legal-inline-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.legal-content p {
  margin: 0 0 16px;
}

.legal-content ul {
  margin: 0 0 18px 18px;
  padding: 0 0 0 8px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-sep {
  border: none;
  height: 1px;
  background: rgba(20, 28, 36, 0.12);
  margin: 28px 0 14px;
}

.anchor-link {
  margin-left: 10px;
  font-size: 0.9rem;
  color: rgba(22, 27, 34, 0.5);
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.legal-content h2:hover .anchor-link {
  opacity: 1;
}

.anchor-link.copied {
  color: rgba(22, 27, 34, 0.85);
}

@media (max-width: 760px) {
  .legal-main {
    padding-top: 38px;
  }

  .legal-card {
    padding: 26px 22px 32px;
  }

  .anchor-link {
    opacity: 1;
  }
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  filter: blur(6px);
  transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease;
  will-change: transform, opacity;
}

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

.reveal.reveal-pop {
  transition-duration: 0.85s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

html {
  background-color: #bde7f5;
}

@supports (padding: max(0px)) {
  body {
    padding-top: env(safe-area-inset-top);
  }
}

.footer-social {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.72);
  color: #1d232b;
  text-decoration: none;
  font-size: 0.92rem;
  box-shadow: 0 8px 18px rgba(16, 24, 35, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(16, 24, 35, 0.16);
}

@media (max-width: 760px) {
  .footer-social {
    gap: 8px;
  }

  .social-pill {
    font-size: 0.88rem;
  }
}
