@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('../fonts/caveat-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Lexend';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/lexend-latin.woff2') format('woff2');
}

:root {
  --bg-darker: #090a0c;
  --bg-main: #0d0f12;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-sidebar: #0b0d0f;
  --accent: #1eb8a5;
  --accent-glow: rgba(30, 184, 165, 0.15);
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --danger: #ef4444;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-active: rgba(30, 184, 165, 0.4);
  --glass-blur: blur(12px);
  --trans-smooth: all 0.2s ease;
  --font-sans: 'Lexend', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-logo: 'Caveat', 'Brush Script MT', cursive;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-main);
}

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

#app-content {
  opacity: 1;
  transform: translateY(0);
}

#app-content.page-exit {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#app-content.page-enter {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--trans-smooth);
}

a:hover {
  opacity: 0.8;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 15, 18, 0.6);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-light);
  transition: background 0.3s ease;
}

.nav--scrolled {
  background: rgba(13, 15, 18, 0.92);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav__logo {
  font-family: var(--font-logo);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav__logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--trans-smooth);
}

.nav__link:hover {
  color: var(--text-main);
}

.nav__link--icon {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__item--right {
  margin-left: auto;
}

.nav__cta {
  padding: 8px 20px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--bg-darker) !important;
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--trans-smooth);
}

.nav__cta:hover {
  background: #23d4be;
  box-shadow: 0 2px 16px var(--accent-glow);
  color: var(--bg-darker) !important;
  opacity: 1;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--trans-smooth);
}

.nav__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero ── */

.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__banner {
  display: flex;
  justify-content: center;
  border-radius: 76px;
  margin-bottom: 24px;
}

.hero__banner img {
  height: 300px;
  border-radius: 65px;
  border: 3px solid white;
  object-fit: contain;
}

.hero__title {
  font-size: 5.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero__title-accent {
  font-family: var(--font-logo);
  font-size: 1.2em;
  color: var(--accent);
}

.hero__tagline {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
}

.hero__subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hero__info {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 48px;
}

.hero__screenshot {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  /*background: var(--bg-card);*/
  position: relative;
  /*overflow: hidden;*/
}

.hero__screenshot::before{
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--accent);
  filter: blur(5px);
  z-index: -2;
}

.hero__screenshot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: var(--trans-smooth);
  border: none;
  line-height: 1;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg-darker);
}

.btn--secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

/* ── Animations ── */

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

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

.animate--delay-1 { transition-delay: 0.15s; }
.animate--delay-2 { transition-delay: 0.30s; }
.animate--delay-3 { transition-delay: 0.45s; }
.animate--delay-4 { transition-delay: 0.60s; }
.animate--delay-5 { transition-delay: 0.75s; }
.animate--delay-6 { transition-delay: 0.90s; }
.animate--delay-7 { transition-delay: 1.05s; }
.animate--delay-8 { transition-delay: 1.20s; }
.animate--delay-9 { transition-delay: 1.35s; }

@keyframes ctaPulse {
  0%, 100% {
    box-shadow: 0 4px 20px var(--accent-glow);
  }
  50% {
    box-shadow: 0 4px 32px rgba(30, 184, 165, 0.35);
  }
}

.nav__cta:hover {
  animation: ctaHover 0.3s ease;
}

@keyframes ctaHover {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.hero::before {
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.download::before {
  opacity: 0.6;
}

.btn--large {
  padding: 16px 36px;
  font-size: 1.0625rem;
}

/* ── Section Shared ── */

.section {
  padding: 80px 0;
}

.section__header {
  text-align: center;
  margin-bottom: 56px;
}

.section__title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section__subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ── Features Grid ── */

#features {
    padding: 80px 0px 20px 0px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 28px;
  transition: var(--trans-smooth);
  z-index: 0;
  position: relative;
  display: block;
}

.feature-card:hover {
  transform: translateY(-4px);
}

a.feature-card {
  color: inherit;
  text-decoration: none;
}

a.feature-card .feature-card__arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 20px;
  height: 20px;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  color: var(--accent);
}

a.feature-card:hover .feature-card__arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.feature-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  width: 48px;
  height: 48px;
}

.feature-card__icon img,
.feature-card__icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── How It Works ── */

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 48px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(16.67% + 24px);
  right: calc(16.67% + 24px);
  height: 2px;
  background: var(--border-light);
  z-index: 0;
}

.step {
  text-align: center;
  flex: 1;
  max-width: 260px;
  position: relative;
  z-index: 1;
}

.step__number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-darker);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
}

.step__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.step__desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Download ── */

.download {
  text-align: center;
  padding: 40px 24px 80px 24px;
  position: relative;
  overflow: hidden;
}

.download::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  transform: translate(-50%, 50%);
  pointer-events: none;
}

.download__inner {
  position: relative;
  z-index: 1;
}

.download__title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.download__info {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ── Footer ── */

.footer {
  border-top: 1px solid var(--border-light);
  padding: 32px 24px;
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__text {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.footer__link {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer__link:hover {
  color: var(--text-main);
}

/* ── Docs Layout ── */

.docs-layout {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px 40px;
  min-height: 100vh;
}

.docs-sidebar {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  align-self: start;
  padding-right: 32px;
}

.docs-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.docs-sidebar__link {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--trans-smooth);
}

.docs-sidebar__link:hover {
  color: var(--text-main);
  background: var(--bg-card);
  opacity: 1;
}

.docs-sidebar__link--active {
  color: var(--accent);
  background: var(--accent-glow);
}

.docs-sidebar__section {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 16px 12px 6px;
  opacity: 0.6;
}

.docs-sidebar__section:first-child {
  padding-top: 0;
}

/* ── Sidebar Links ── */

.docs-sidebar__links {
  padding-left: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.docs-content {
  flex: 1;
  min-width: 0;
  max-width: 800px;
}

.docs-content h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
  line-height: 1.2;
}

.docs-content > p:first-of-type {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.docs-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.docs-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 10px;
}

.docs-content p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.docs-content ul, .docs-content ol {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: 24px;
  margin-bottom: 16px;
}

.docs-content li {
  margin-bottom: 4px;
}

.docs-content a {
  color: var(--accent);
}

.docs-content pre {
  background: var(--bg-darker);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.docs-content code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.docs-content :not(pre) > code {
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8125rem;
  color: var(--accent);
}

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 0.875rem;
}

.docs-content th {
  text-align: left;
  font-weight: 600;
  padding: 10px 14px;
  border-bottom: 2px solid var(--border-light);
  color: var(--text-main);
}

.docs-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted);
}

.docs-content tr:nth-child(even) td {
  background: var(--bg-card);
}

.docs-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 20px;
  margin-bottom: 20px;
  background: var(--bg-card);
  border-radius: 0 8px 8px 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* ── Docs Card Grid ── */

.docs-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.docs-card {
  background: var(--bg-card);
  border-radius: 10px;
  padding: 24px;
  transition: var(--trans-smooth);
  display: flex;
  flex-direction: column;
}

.docs-card:hover {
  transform: translateY(-2px);
}

.docs-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.docs-card__desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Mobile Nav Overlay ── */

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 98;
}

.mobile-overlay--open {
  display: block;
}

.docs-sidebar--mobile {
  display: none;
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .docs-sidebar {
    display: none;
  }

  .docs-sidebar--mobile {
    display: block;
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    width: 260px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-light);
    padding: 24px 16px;
    z-index: 99;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }

  .docs-sidebar--mobile.open {
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .hero__title {
    font-size: 3.25rem;
  }

  .hero__tagline {
    font-size: 1.0625rem;
  }

  .hero__subtitle {
    font-size: 0.9375rem;
  }

  .section {
    padding: 56px 0;
  }

  .section__title {
    font-size: 1.625rem;
  }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .steps::before {
    display: none;
  }

  .step {
    max-width: 320px;
  }

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

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

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

  .docs-layout {
    padding-top: 64px;
  }

  .nav__links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(11, 13, 15, 0.98);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border-light);
  }

  .nav__links.open {
    display: flex;
  }

  .nav__hamburger {
    display: flex;
  }

  .download__title {
    font-size: 1.75rem;
  }

  .hero__banner img {
    height: 220px;
    border-radius: 50px;
  }
}

@media (max-width: 500px) {
  .hero__title {
    font-size: 2.5rem;
  }

  .hero {
    padding: 100px 16px 60px;
  }

  .container {
    padding: 0 16px;
  }

  .btn--large {
    padding: 14px 28px;
    font-size: 1rem;
  }

  .section__title {
    font-size: 1.375rem;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__banner {
    width: 100%;
    padding: 0 8px;
  }

  .hero__banner img {
    height: auto;
    max-height: 180px;
    max-width: 100%;
    border-radius: 40px;
  }
}

/* ── Prism.js Overrides ── */

code[class*="language-"],
pre[class*="language-"] {
  font-family: var(--font-mono) !important;
  font-size: 0.8125rem !important;
  text-shadow: none !important;
  direction: ltr;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  line-height: 1.6;
  tab-size: 2;
  hyphens: none;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #6a737d;
}

.token.punctuation {
  color: #c9d1d9;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
  color: #79c0ff;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
  color: #a5d6ff;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
  color: #d2a8ff;
}

.token.atrule,
.token.attr-value,
.token.keyword {
  color: #ff7b72;
}

.token.function,
.token.class-name {
  color: #d2a8ff;
}

.token.regex,
.token.important,
.token.variable {
  color: #ffa657;
}

.token.important,
.token.bold {
  font-weight: bold;
}

.token.italic {
  font-style: italic;
}
