:root {
  --bg: #1b1b1b;
  --surface: #232323;
  --surface-2: #2b2b2b;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f3f3f3;
  --text-muted: rgba(243, 243, 243, 0.64);
  --teal: #00a3a3;
  --teal-strong: #00c2c2;
  --teal-deep: #006666;
  --on-teal: #04201f;
  --max-width: 1160px;
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "Cascadia Code", Consolas, "Roboto Mono", monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(640px 420px at 10% -4%, rgba(94, 234, 212, 0.20), transparent 60%),
    radial-gradient(720px 480px at 105% 6%, rgba(0, 194, 194, 0.16), transparent 60%),
    radial-gradient(820px 620px at 8% 48%, rgba(0, 163, 163, 0.12), transparent 55%),
    radial-gradient(820px 620px at 96% 62%, rgba(45, 212, 176, 0.12), transparent 55%),
    radial-gradient(900px 700px at 50% 102%, rgba(0, 163, 163, 0.16), transparent 60%),
    linear-gradient(180deg, #1b1b1b 0%, #181c1b 40%, #16191a 100%);
  pointer-events: none;
  z-index: 0;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(2%, -2%); }
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-s);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

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

.btn-primary {
  position: relative;
  isolation: isolate;
  border: none;
  color: #eefffb;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--teal-strong), var(--teal-deep));
  box-shadow: 0 14px 32px -12px rgba(0, 194, 194, 0.55);
}

.btn-primary:hover::before {
  box-shadow: 0 18px 38px -12px rgba(0, 194, 194, 0.7);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.btn-rustore {
  position: relative;
  background: var(--surface-2);
  color: var(--text);
  border: none;
}

.btn-rustore::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(0, 194, 194, 0.35);
  pointer-events: none;
}

.btn-rustore:hover {
  background: #303030;
}

.btn-rustore:hover::after {
  border-color: var(--teal-strong);
}

.btn-rustore svg {
  flex-shrink: 0;
}

.btn-rustore .btn-rustore-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.btn-rustore .btn-rustore-text small {
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Phone mockup */

.phone-mockup {
  position: relative;
  width: 100%;
}

.phone-mockup .phone-glow {
  position: absolute;
  inset: -18% -30%;
  background: radial-gradient(ellipse at 50% 38%, rgba(255, 255, 255, 0.5) 0%, rgba(170, 255, 230, 0.4) 22%, rgba(0, 194, 194, 0.32) 45%, transparent 72%);
  filter: blur(48px);
  z-index: 0;
  pointer-events: none;
  animation: drift 10s ease-in-out infinite;
}

.phone-mockup {
  --bezel: 10px;
  --radius-outer: 36px;
  --radius-inner: 26px;
}

.phone-mockup--sm {
  --bezel: 6px;
  --radius-outer: 20px;
  --radius-inner: 14px;
}

.phone-mockup .phone-body {
  position: relative;
  z-index: 1;
  padding: var(--bezel);
  border-radius: var(--radius-outer);
  background: linear-gradient(145deg, #4a4d50 0%, #232628 28%, #0b0d0e 65%, #2e3134 100%);
  box-shadow:
    0 50px 100px -24px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(225, 255, 248, 0.35),
    0 0 70px rgba(0, 194, 194, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone-mockup .phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-inner);
  aspect-ratio: 855 / 1900;
  background: #000;
}

.phone-mockup .phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.phone-mockup .phone-notch {
  position: absolute;
  top: 2.8%;
  left: 50%;
  transform: translateX(-50%);
  width: 3%;
  aspect-ratio: 1;
  background: #03110f;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
  z-index: 3;
}

.phone-mockup .phone-sheen {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-inner);
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 16%, transparent 32%);
  pointer-events: none;
  z-index: 2;
}

.phone-mockup .phone-btn {
  position: absolute;
  background: linear-gradient(180deg, #5a5d60, #1a1c1d);
  border-radius: 3px;
  z-index: 1;
}

.phone-mockup .phone-btn--power {
  right: -2px;
  top: 19%;
  width: 3px;
  height: 7.5%;
  border-radius: 3px 0 0 3px;
}

.phone-mockup .phone-btn--vol-up {
  left: -2px;
  top: 14%;
  width: 3px;
  height: 5.5%;
  border-radius: 0 3px 3px 0;
}

.phone-mockup .phone-btn--vol-down {
  left: -2px;
  top: 20.5%;
  width: 3px;
  height: 5.5%;
  border-radius: 0 3px 3px 0;
}

.phone-mockup--sm .phone-btn {
  display: none;
}

.phone-mockup--sm .phone-glow {
  inset: -10% -16%;
  filter: blur(24px);
  animation: none;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(27, 27, 27, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a:not(.btn) {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.main-nav a:not(.btn):hover {
  color: var(--text);
}

.lang-switch {
  display: flex;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}

.lang-switch a {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.lang-switch a.active {
  background: var(--teal);
  color: #04201f;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

/* Hero */

.hero {
  position: relative;
  z-index: 1;
  padding: 96px 0 64px;
  text-align: center;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--teal-strong);
  background: rgba(0, 163, 163, 0.12);
  border: 1px solid rgba(0, 163, 163, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 820px;
  margin: 0 auto 20px;
}

.gradient-text {
  background: linear-gradient(90deg, #5eead4, #00c2c2 55%, #00a3a3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 .accent {
  color: var(--teal-strong);
}

.hero p.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-phone-wrap {
  position: relative;
  z-index: 1;
  margin: 72px auto 0;
  width: min(300px, 62vw);
}

/* Sections */

section {
  position: relative;
  z-index: 1;
  padding: 88px 0;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

.section-head .kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--teal-strong);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: block;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 14px;
}

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

/* USP strip */

.usp-strip {
  padding: 0 0 96px;
}

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

.usp-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(0, 163, 163, 0.14), transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.usp-card::before {
  content: "";
  position: absolute;
  top: -70%;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 220px;
  background: radial-gradient(ellipse, rgba(0, 194, 194, 0.3), transparent 70%);
  filter: blur(18px);
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.usp-card > * {
  position: relative;
}

.usp-card:hover {
  border-color: rgba(0, 194, 194, 0.5);
  background: linear-gradient(180deg, rgba(0, 163, 163, 0.24), transparent);
}

.usp-card:hover::before {
  opacity: 1;
}

.usp-card .icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(0, 194, 194, 0.3), rgba(0, 194, 194, 0.05));
  box-shadow: inset 0 0 0 1px rgba(0, 194, 194, 0.4), 0 16px 28px -16px rgba(0, 194, 194, 0.5);
  color: var(--teal-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.usp-card .icon svg {
  width: 26px;
  height: 26px;
}

.usp-card h3 {
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.usp-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Features */

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(0, 194, 194, 0.4);
  transform: translateY(-2px);
}

.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 163, 163, 0.14);
  color: var(--teal-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Screenshots */

.scroll-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px !important;
  font-size: 0.84rem;
  color: var(--teal-strong);
}

.scroll-hint .arrow {
  display: inline-block;
  animation: nudge 1.4s ease-in-out infinite;
}

@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

.screenshots-scroll {
  position: relative;
}

.screenshots-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 22px;
  align-items: start;
}

.screenshot-frame {
  text-align: center;
  transition: transform 0.25s ease;
}

.screenshot-frame:hover {
  transform: translateY(-6px);
}

.screenshot-frame figcaption {
  margin-top: 16px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Theme colors teaser */

.theme-teaser {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.theme-teaser-text h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.theme-teaser-text p {
  color: var(--text-muted);
  max-width: 420px;
}

.color-swatches {
  display: flex;
  gap: 14px;
}

.color-swatches span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

/* Final CTA */

.final-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(180deg, rgba(0, 163, 163, 0.14), transparent);
  border-radius: var(--radius-l);
  padding: 72px 24px;
  border: 1px solid var(--border);
}

.final-cta::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(0, 194, 194, 0.28), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.final-cta > * {
  position: relative;
}

.final-cta h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.final-cta p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* Footer */

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}

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

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 32px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-height: 88vh;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* Privacy page */

.policy-page {
  position: relative;
  z-index: 1;
  padding: 64px 0 96px;
}

.policy-page .container {
  max-width: 760px;
}

.policy-page h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.policy-page .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.policy-page h2 {
  font-size: 1.15rem;
  margin: 36px 0 12px;
  color: var(--teal-strong);
}

.policy-page p {
  color: rgba(243, 243, 243, 0.85);
}

.policy-page a {
  color: var(--teal-strong);
  text-decoration: underline;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.back-link:hover {
  color: var(--text);
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger.is-visible > *:nth-child(2) { transition-delay: 70ms; }
.stagger.is-visible > *:nth-child(3) { transition-delay: 140ms; }
.stagger.is-visible > *:nth-child(4) { transition-delay: 210ms; }
.stagger.is-visible > *:nth-child(5) { transition-delay: 280ms; }
.stagger.is-visible > *:nth-child(6) { transition-delay: 350ms; }
.stagger.is-visible > *:nth-child(7) { transition-delay: 420ms; }
.stagger.is-visible > *:nth-child(8) { transition-delay: 490ms; }
.stagger.is-visible > *:nth-child(9) { transition-delay: 560ms; }

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

  .phone-mockup .phone-glow {
    animation: none;
  }
}

/* Responsive */

@media (max-width: 900px) {
  .screenshots-rail .phone-glow {
    display: none;
  }

  .screenshots-rail {
    grid-template-columns: repeat(5, minmax(220px, 1fr));
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding: 24px 4px 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--teal-strong) rgba(255, 255, 255, 0.08);
  }

  .screenshots-rail::-webkit-scrollbar {
    height: 5px;
  }

  .screenshots-rail::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
  }

  .screenshots-rail::-webkit-scrollbar-thumb {
    background: var(--teal-strong);
    border-radius: 999px;
  }

  .screenshot-frame {
    scroll-snap-align: start;
  }

  .screenshots-scroll::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 20px;
    width: 40px;
    background: linear-gradient(90deg, transparent, var(--bg) 80%);
    pointer-events: none;
  }

  .scroll-hint {
    display: flex;
  }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }

  .main-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-toggle {
    display: block;
  }

  .theme-teaser {
    flex-direction: column;
    text-align: center;
  }

  .footer-grid {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 64px 0 48px;
  }

  section {
    padding: 64px 0;
  }
}
