:root {
  --bg: #0B0B0B;
  --bg-top: #0F0D1A;
  --bg-bottom: #0A0A0D;

  --text: #ffffff;
  --text-body: rgba(255, 255, 255, 0.82);
  --text-muted: rgba(255, 255, 255, 0.55);
  --text-tertiary: rgba(255, 255, 255, 0.30);

  --accent: rgb(170, 140, 242);
  --accent-soft: rgb(148, 133, 189);

  --surface: rgba(255, 255, 255, 0.022);
  --hairline: rgba(255, 255, 255, 0.06);

  --card-top: rgb(27, 28, 32);
  --card-bottom: rgb(17, 17, 21);
  --card-radius: 20px;
  --card-shadow: 0 12px 22px rgba(0, 0, 0, 0.4);

  --radius-sm: 12px;
  --radius-md: 16px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-transform: lowercase;
}

body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 45%, var(--bg-bottom) 100%);
  position: relative;
  overflow-x: hidden;
}

/* atmosphere */
.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.45;
}
.glow--purple {
  top: -180px;
  left: -160px;
  width: 480px;
  height: 480px;
  background: rgba(170, 140, 242, 0.15);
}
.glow--blue {
  bottom: -200px;
  right: -200px;
  width: 520px;
  height: 520px;
  background: rgba(90, 125, 220, 0.10);
}
.noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* layout */
main {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* hero */
.hero {
  padding: 48px 0 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__title {
  margin: 0 0 12px;
  font-size: clamp(40px, 7.8vw, 68px);
  font-weight: 500;
  letter-spacing: -0.4px;
  line-height: 1.08;
  color: var(--text);
}
.hero__sub {
  margin: 0;
  color: rgba(255, 255, 255, 0.90);
  font-size: 17px;
  max-width: 520px;
}

/* app store badge */
.badge {
  display: inline-block;
  line-height: 0;
  border-radius: 8px;
  transition: transform 180ms ease, opacity 180ms ease;
}
.badge:hover { opacity: 0.88; transform: translateY(-1px); }
.badge:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.badge svg { display: block; }

/* app icon (primary hero imagery) */
.app-icon {
  position: relative;
  margin: 0 0 28px;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-icon__halo {
  position: absolute;
  inset: -56px;
  background: radial-gradient(closest-side, rgba(170, 140, 242, 0.17), rgba(170, 140, 242, 0) 72%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}
.app-icon__img {
  position: relative;
  z-index: 1;
  width: 180px;
  height: 180px;
  border-radius: 22.37%;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.58),
    0 4px 10px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: block;
}

/* about */
.about {
  padding: 32px 0 20px;
  display: flex;
  justify-content: center;
}
.about__copy {
  max-width: 520px;
  width: 100%;
  text-align: center;
}
.about__copy p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 1.5;
}
.about__copy p:last-child { margin-bottom: 0; }

/* philosophy */
.philosophy {
  padding: 28px 0 18px;
  text-align: center;
}
.philosophy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 15px;
  letter-spacing: 0.1px;
}

/* pricing */
.pricing {
  padding: 24px 0 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pricing__label {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.90);
  font-size: 16px;
  letter-spacing: 0.2px;
}
.pricing__price {
  margin: 0 0 4px;
  font-size: 60px;
  font-weight: 600;
  letter-spacing: -1.3px;
  line-height: 1;
  color: var(--text);
}
.pricing__sub {
  margin: 0 0 36px;
  color: var(--text-muted);
  font-size: 14px;
}
.pricing__cta-line {
  margin: 0 0 24px;
  color: var(--text-body);
  font-size: 14px;
  letter-spacing: 0.1px;
}
.pricing__trust {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.22);
  font-size: 12px;
  letter-spacing: 0.2px;
}

/* footer */
footer {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.035);
}
.footer__inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.footer__by {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.10);
  letter-spacing: 0.2px;
}
.footer__sep {
  color: rgba(255, 255, 255, 0.07);
  font-size: 12px;
}
.footer__link {
  color: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  letter-spacing: 0.2px;
  text-decoration: none;
  transition: color 180ms ease;
}
.footer__link:hover { color: rgba(255, 255, 255, 0.45); }
.footer__link:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* responsive tuning */
@media (max-width: 520px) {
  .hero { padding: 36px 0 24px; }
  .about { padding: 24px 0 16px; }
  .philosophy { padding: 22px 0 14px; }
  .pricing { padding: 20px 0 32px; }
  .app-icon,
  .app-icon__img { width: 140px; height: 140px; }
  .app-icon { margin: 0 0 22px; }
  .pricing__price { font-size: 52px; letter-spacing: -1.1px; }
}

/* document pages (privacy, etc.) */
.doc {
  max-width: 640px;
  padding-top: 56px;
  padding-bottom: 72px;
}
.doc__back {
  margin: 0 0 36px;
  font-size: 13px;
}
.doc__back a {
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.1px;
  transition: color 180ms ease;
}
.doc__back a:hover { color: var(--text); }
.doc__header {
  margin-bottom: 32px;
}
.doc__title {
  margin: 0 0 8px;
  font-size: clamp(32px, 5.2vw, 40px);
  font-weight: 500;
  letter-spacing: -0.3px;
  line-height: 1.15;
  color: var(--text);
}
.doc__meta {
  margin: 0;
  color: var(--text-tertiary);
  font-size: 13px;
  letter-spacing: 0.1px;
}
.doc__body p,
.doc__body ul {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.65;
}
.doc__body h2 {
  margin: 32px 0 10px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.1px;
  color: var(--text);
}
.doc__body strong {
  font-weight: 500;
  color: var(--text);
}
.doc__body ul {
  padding-left: 20px;
}
.doc__body li {
  margin-bottom: 8px;
}
.doc__body li:last-child { margin-bottom: 0; }
.doc__body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(170, 140, 242, 0.3);
  transition: border-color 180ms ease;
}
.doc__body a:hover { border-bottom-color: var(--accent); }

@media (max-width: 520px) {
  .doc {
    padding-top: 36px;
    padding-bottom: 48px;
  }
  .doc__back { margin-bottom: 28px; }
  .doc__body h2 { margin-top: 28px; }
}

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