:root {
  --bg: #0f172a;
  --bg-card: #1e293b;
  --border: #334155;
  --accent: #6b39f4;
  --text: #ffffff;
  --text-dim: #94a3b8;
  --text-dimmer: #64748b;
  --max-width: 960px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--accent);
}

/* Header */

header.site {
  padding: 24px 0;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header.site .wrap.wrap-end {
  justify-content: flex-end;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand .logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: block;
}

.wordmark {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-dim);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--text);
}

.lang-toggle .lang-icon {
  font-size: 16px;
  line-height: 1;
}

/* Hero */

.hero {
  text-align: center;
  padding: 8px 0 48px;
}

.brand-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}

.brand-hero .app-icon {
  width: 148px;
  height: 148px;
  border-radius: 34px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
  display: block;
}

.brand-hero .app-name {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.hero h1 {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.hero p.tagline {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 36px;
}

/* Download badges */

.badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px 14px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text-dim);
  cursor: default;
  user-select: none;
  overflow: hidden;
}

.store-badge-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  fill: var(--text-dim);
}

.play-triangle {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  clip-path: polygon(0 0, 0 100%, 100% 50%);
  background: linear-gradient(
    160deg,
    #34c185 0%,
    #34c185 32%,
    #f2c14e 32%,
    #f2c14e 55%,
    #e6604a 55%,
    #e6604a 78%,
    #4a90d9 78%,
    #4a90d9 100%
  );
  opacity: 0.6;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.store-badge-text small {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dimmer);
}

.store-badge-text strong {
  font-size: 15px;
  color: var(--text-dim);
}

.soon-ribbon {
  position: absolute;
  top: 14px;
  right: -34px;
  width: 130px;
  transform: rotate(45deg);
  background: var(--accent);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  padding: 3px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Sections */

section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

section h2 {
  font-size: clamp(22px, 4vw, 30px);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

section .lede {
  color: var(--text-dim);
  margin: 0 0 32px;
  max-width: 640px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
}

/* Screenshot viewer (one at a time, prev/next) */

.slider-viewport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 4px 16px 0;
}

.slide.single-slide {
  flex: 0 1 auto;
  width: min(300px, 72vw);
  margin: 0;
  text-align: center;
}

.phone-mockup {
  perspective: 1700px;
  padding: 12px 0 20px;
}

.phone-frame {
  position: relative;
  aspect-ratio: 1284 / 2778;
  border-radius: 32px;
  background: #232326;
  padding: 5px;
  box-shadow:
    28px 34px 50px -12px rgba(0, 0, 0, 0.6),
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.14);
  transform: rotateY(-16deg) rotateX(3deg) rotateZ(-1deg);
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
  overflow: hidden;
}

.phone-frame:hover {
  transform: rotateY(-8deg) rotateX(1.5deg) rotateZ(-0.5deg);
}

.slide-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 97%;
  height: 97%;
  object-fit: cover;
  display: block;
  border-radius: 22px;
  background: var(--bg-card);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.phone-glare {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(255, 255, 255, 0) 45%
  );
  pointer-events: none;
}

.shot-info {
  margin: 0 0 4px;
}

.shot-info h3 {
  margin: 0;
  font-size: 17px;
  color: var(--text);
}

.slider-nav {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-nav:hover {
  border-color: var(--accent);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--border);
  cursor: pointer;
}

.dot.active {
  background: var(--accent);
}

/* Privacy callout */

.callout {
  background: linear-gradient(135deg, rgba(107, 57, 244, 0.15), rgba(107, 57, 244, 0.03));
  border: 1px solid var(--accent);
  border-radius: 16px;
  padding: 32px;
}

.callout h2 {
  margin-top: 0;
}

.callout .hint {
  margin: 14px 0 0;
  font-size: 13px;
  font-style: italic;
  color: var(--text-dimmer);
}

/* Footer */

footer.site {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--text-dimmer);
  font-size: 14px;
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
}

footer.site a {
  color: var(--text-dim);
  text-decoration: none;
}

footer.site a:hover {
  color: var(--accent);
}

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

/* Legal pages */

.legal .wrap {
  padding-top: 48px;
  padding-bottom: 64px;
}

.legal h1 {
  font-size: 32px;
  margin-bottom: 4px;
}

.legal .updated {
  color: var(--text-dimmer);
  font-size: 14px;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 20px;
  margin-top: 40px;
}

.legal p, .legal li {
  color: var(--text-dim);
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
}

.legal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.legal-nav .back-link {
  margin-bottom: 24px;
}
