:root {
  --bg: #07060b;
  --surface: #13111b;
  --surface-2: #1a1724;
  --text: #faf9ff;
  --muted: #a29db8;
  --accent: #8b5cf6;
  --accent-2: #6366f1;
  --accent-soft: rgba(139, 92, 246, 0.14);
  --accent-glow: rgba(139, 92, 246, 0.4);
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.11);
  --max: 1040px;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

::selection {
  background: rgba(139, 92, 246, 0.35);
  color: #fff;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", sans-serif;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(900px 480px at 8% -12%, rgba(139, 92, 246, 0.22), transparent 62%),
    radial-gradient(700px 420px at 92% 0%, rgba(59, 130, 246, 0.12), transparent 58%),
    radial-gradient(500px 300px at 50% 100%, rgba(139, 92, 246, 0.07), transparent 70%),
    var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body.lightbox-open { overflow: hidden; }

a {
  color: #c4b5fd;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover { color: #ddd6fe; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(167, 139, 250, 0.85);
  outline-offset: 3px;
}

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

header {
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(150%);
  background: rgba(7, 6, 11, 0.82);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand:hover { color: var(--text); text-decoration: none; }

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.brand-sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.05rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a {
  font-size: 0.92rem;
  color: var(--muted);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: #ede9fe;
  background: var(--accent-soft);
  border-color: rgba(139, 92, 246, 0.28);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.35rem;
  padding-left: 0.65rem;
  border-left: 1px solid var(--border);
}

.lang-switch a {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  border: 1px solid transparent;
}

.lang-switch a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}

.lang-switch a[aria-current="true"] {
  color: #ede9fe;
  background: var(--accent-soft);
  border-color: rgba(139, 92, 246, 0.28);
}

.lang-switch-sep {
  color: rgba(255, 255, 255, 0.18);
  font-size: 0.75rem;
  user-select: none;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
}

.section-block {
  margin-bottom: 3rem;
}

.section-block:last-child { margin-bottom: 0; }

.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(200px, 240px) 1fr;
  gap: 2rem 3rem;
  align-items: center;
  padding: 1.5rem 0 1rem;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 240px;
  flex-shrink: 0;
  justify-self: center;
}

.hero-phone {
  position: relative;
  padding: 11px;
  border-radius: 38px;
  background: linear-gradient(165deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 32px 64px rgba(99, 102, 241, 0.22),
    var(--shadow);
  transition: transform 0.4s var(--ease);
}

.hero-visual:hover .hero-phone {
  transform: translateY(-4px) rotate(-1deg);
}

.hero-phone::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2;
}

.hero-phone img {
  width: 100%;
  border-radius: 28px;
  aspect-ratio: 1320 / 2868;
  object-fit: cover;
  object-position: top;
}

.hero-app-badge {
  position: absolute;
  right: -14px;
  bottom: -14px;
  width: 62px;
  height: 62px;
  border-radius: 16px;
  border: 3px solid var(--bg);
  box-shadow: 0 14px 32px rgba(99, 102, 241, 0.4);
}

.hero-glow {
  position: absolute;
  inset: -25%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.38), transparent 68%);
  filter: blur(22px);
  z-index: -1;
  animation: pulse-glow 5s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 5vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin: 0 0 0.9rem;
  background: linear-gradient(135deg, #fff 0%, #ddd6fe 55%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 38rem;
  margin: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
  padding: 0.38rem 0.8rem 0.38rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: #ddd6fe;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.65);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.35rem;
}

.pill {
  background: rgba(139, 92, 246, 0.1);
  color: #ddd6fe;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.2rem;
  border-radius: 13px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 32px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 18px 40px rgba(99, 102, 241, 0.38);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  max-width: 30rem;
  line-height: 1.55;
}

.section-title {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a78bfa;
  margin: 0 0 0.5rem;
}

.section-block > .section-title:only-child,
.section-block > .section-title:first-child:last-of-type {
  margin-bottom: 0.85rem;
}

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

.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 45%), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.45rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.card:hover {
  border-color: rgba(139, 92, 246, 0.22);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 32px rgba(0, 0, 0, 0.22);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 0.95rem;
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.2), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(139, 92, 246, 0.24);
  color: #c4b5fd;
}

.card-icon .icon {
  width: 22px;
  height: 22px;
}

.card h2, h2 {
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.55rem;
}

.card p { color: var(--muted); margin: 0; }
.card p + p { margin-top: 0.65rem; }
.card p:last-child { margin-bottom: 0; }
section p:last-child { margin-bottom: 0; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.95rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.card-link::after {
  content: "→";
  transition: transform 0.2s var(--ease);
}

.card:hover .card-link::after {
  transform: translateX(3px);
}

.stack > * + * { margin-top: 1rem; }

ul, ol {
  padding-left: 1.2rem;
  margin: 0.5rem 0 0;
  color: var(--muted);
}

li + li { margin-top: 0.4rem; }

code {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.12em 0.42em;
  border-radius: 6px;
  font-size: 0.9em;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.page-hero {
  padding: 0.75rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.75rem;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  letter-spacing: -0.035em;
  margin: 0 0 0.65rem;
  background: linear-gradient(135deg, #fff, #ddd6fe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero p {
  color: var(--muted);
  max-width: 42rem;
  margin: 0;
  font-size: 1.02rem;
}

.feature-list {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--muted);
}

.feature-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  flex-shrink: 0;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(99, 102, 241, 0.04));
  border: 1px solid rgba(139, 92, 246, 0.16);
}

.info-strip > div {
  padding: 0.25rem 0;
  border-right: 1px solid var(--border);
}

.info-strip > div:last-child { border-right: 0; }

.info-strip dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.info-strip dd {
  margin: 0;
  font-weight: 600;
  font-size: 0.98rem;
}

.screenshots-section {
  position: relative;
}

.screenshots-wrap {
  position: relative;
}

.screenshots-wrap::before,
.screenshots-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 1.25rem;
  width: 48px;
  z-index: 2;
  pointer-events: none;
}

.screenshots-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.screenshots-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}

.screenshots-scroll {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 1.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.35) transparent;
}

.screenshots-scroll::-webkit-scrollbar { height: 5px; }
.screenshots-scroll::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.35);
  border-radius: 999px;
}

.screenshot-item {
  flex: 0 0 auto;
  width: min(210px, 46vw);
  scroll-snap-align: center;
  margin: 0;
}

.screenshot-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  text-align: inherit;
  font: inherit;
  color: inherit;
}

.screenshot-frame {
  padding: 8px;
  border-radius: 28px;
  background: linear-gradient(165deg, rgba(255,255,255,0.13), rgba(255,255,255,0.03));
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s ease;
}

.screenshot-trigger:hover .screenshot-frame,
.screenshot-trigger:focus-visible .screenshot-frame {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 24px 48px rgba(99, 102, 241, 0.2);
}

.screenshot-frame img {
  width: 100%;
  border-radius: 21px;
  aspect-ratio: 1320 / 2868;
  object-fit: cover;
  object-position: top;
}

.screenshot-caption {
  margin: 0.7rem 0 0;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
}

.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(167, 139, 250, 0.85);
}

.scroll-hint::after {
  content: "→";
  animation: nudge 1.4s ease-in-out infinite;
}

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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(4, 3, 8, 0.88);
  backdrop-filter: blur(12px);
}

.lightbox[hidden] { display: none; }

.lightbox-inner {
  position: relative;
  max-width: min(420px, 92vw);
  width: 100%;
}

.lightbox-img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
}

.lightbox-caption {
  margin: 0.85rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.lightbox-close {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(19, 17, 27, 0.95);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}

.lightbox-close:hover {
  background: rgba(139, 92, 246, 0.25);
}

footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
  padding: 1.75rem 1.25rem 2.25rem;
  background: rgba(0, 0, 0, 0.15);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  opacity: 0.9;
}

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

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

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-visual {
    max-width: 220px;
  }

  .hero-copy p,
  .page-hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .pill-row,
  .cta-row {
    justify-content: center;
  }

  .card-grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .info-strip {
    grid-template-columns: 1fr;
  }

  .info-strip > div {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.85rem;
  }

  .info-strip > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
}

@media (max-width: 560px) {
  .nav {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .lang-switch {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    width: 100%;
    justify-content: center;
    padding-top: 0.25rem;
  }

  .card-grid-3 {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand,
  .footer-links {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}
