/* ==========================================================================
   VOXINUM — Cursor-style Minimal Dark Theme
   ========================================================================== */

:root {
  --bg-base: #121212;
  --bg-footer: #121212;
  --bg-card: #0a0a0a;
  --bg-card-hover: #111111;
  --text-white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.6);
  --text-faint: rgba(255, 255, 255, 0.4);
  --accent-purple: #9d4edd;
  --border: rgba(255, 255, 255, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --font-sans: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --gutter: clamp(0.875rem, 2.25vw, 2rem);
  --container: 1400px;
  --container-width: min(92vw, var(--container));
  --nav-height: 72px;
  --nav-offset: calc(var(--nav-height) + 1rem);
  --mobile-break: 1024px;
  --section-space: clamp(7rem, 13vw, 11rem);
  --leading-tight: 1.25;
  --leading-body: 1.7;
  --leading-relaxed: 1.75;
  --letter-body: 0.01em;
  --letter-heading: -0.02em;
  --transition-smooth: all 0.4s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-offset);
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
  background-color: #121212;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: var(--leading-body);
  color: var(--text-muted);
  background-color: #121212;
  min-height: 100%;
  overflow-x: hidden;
  min-width: 0;
  scroll-behavior: smooth;
}

main {
  padding-top: var(--nav-height);
}

/* Translation / RTL safety */
body, main, section, article, nav, header, footer, div, p, h1, h2, h3, blockquote {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

/* Google Translate & browser translation resilience */
font {
  overflow-wrap: break-word;
  word-wrap: break-word;
  height: auto !important;
  max-width: 100%;
}

.text-flow,
.hero__intro,
.hero__lead,
.hero__vision,
.hero__harmony,
.hero__harmony-item,
.hero__cta,
.hero__meta,
.hero__cta-info,
.hero__pricing-note,
.hero__browser-note,
.section-header,
.section-title,
.section-tag,
.card,
.card__title,
.card__text,
.stack__note,
.mobile-cta__headline,
.footer__copyright,
.footer__trust {
  height: auto;
  min-height: max-content;
  max-width: 100%;
}

h1, h2, h3 {
  color: var(--text-white);
  line-height: var(--leading-tight);
  letter-spacing: var(--letter-heading);
  height: auto;
  min-height: max-content;
}

p, li, blockquote {
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  letter-spacing: var(--letter-body);
  height: auto;
  min-height: max-content;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul[role="list"] {
  list-style: none;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.875em;
  color: var(--text-muted);
}

.text-accent {
  color: var(--text-white);
}

.accent-purple {
  color: var(--accent-purple);
}

.sep {
  opacity: 0.5;
}

.container {
  width: var(--container-width);
  max-width: var(--container);
  margin-inline: auto;
  min-width: 0;
  padding-inline: clamp(0.5rem, 1.5vw, 1.25rem);
}

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.features__grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.features__grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.features__grid .reveal:nth-child(4) { transition-delay: 0.24s; }

.stack__grid .reveal:nth-child(2) { transition-delay: 0.1s; }

/* ---- Visibility utilities ---- */
.desktop-only { display: block; }
.mobile-cta { display: none; }

@media (max-width: 639px) {
  .desktop-only { display: none !important; }
  .mobile-cta { display: block; }
}

/* Device-level gate — hides download UI even in mobile "Desktop Site" mode */
html.is-mobile-device #download-btn,
html.is-mobile-device .hero__cta,
html.is-mobile-device a[data-scroll-center],
html.is-mobile-device a[href*="VOXINUM.Setup"],
html.is-mobile-device a[download][href*="voxinumapp/releases"] {
  display: none !important;
}

html.is-mobile-device .mobile-cta {
  display: block !important;
}

/* ---- Ambient — static minimalist dark depth ---- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  width: 100%;
  min-height: 100vh;
  background-color: #121212;
  background-image:
    radial-gradient(ellipse 85% 65% at 50% 42%, rgba(22, 22, 22, 0.5) 0%, transparent 68%),
    radial-gradient(ellipse 48% 38% at 0% 100%, rgba(18, 18, 18, 0.22) 0%, transparent 62%),
    radial-gradient(ellipse 48% 38% at 100% 0%, rgba(18, 18, 18, 0.22) 0%, transparent 62%);
}

/* ---- Navbar — fixed glass header ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: none;
  box-shadow: none;
  transition: background 0.4s ease;
}

.navbar--scrolled {
  background: rgba(18, 18, 18, 0.95);
  border-bottom: none;
  box-shadow: none;
}

.navbar__shell {
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.navbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-height);
  height: auto;
  padding: 0.625rem clamp(0.875rem, 2vw, 1.25rem);
}

.navbar__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-white);
  flex-shrink: 0;
  margin-inline-end: auto;
}

.navbar__logo {
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.navbar__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  min-width: 0;
  height: auto;
  min-height: max-content;
}

.navbar__name {
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  color: var(--text-white);
}

.navbar__byline {
  font-size: 0.625rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.navbar__end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-inline-start: auto;
}

.navbar__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.navbar__link {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  white-space: normal;
  text-wrap: pretty;
  line-height: var(--leading-body);
  letter-spacing: 0;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.navbar__link:hover,
.navbar__link:focus-visible {
  color: var(--text-white);
  text-shadow: none;
}

.navbar__link--btn {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

.navbar__link[data-scroll-center] {
  padding: 0.45rem 1.125rem;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-pill);
  color: var(--text-white);
  font-weight: 500;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.navbar__link[data-scroll-center]:hover,
.navbar__link[data-scroll-center]:focus-visible {
  background: var(--text-white);
  color: var(--bg-base);
  border-color: var(--text-white);
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  flex-shrink: 0;
}

.navbar__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
  max-width: 100%;
  text-align: center;
}

.btn--xl {
  padding: 0.75rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.btn--primary {
  background: transparent;
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-pill);
  box-shadow: none;
}

.btn--primary:hover:not(:disabled) {
  background: var(--text-white);
  color: var(--bg-base);
  transform: none;
  box-shadow: none;
}

.btn--primary:disabled {
  opacity: 0.65;
  cursor: wait;
}

a.btn {
  text-decoration: none;
}

/* ---- Hero ---- */
.hero {
  padding-block: 0 var(--section-space);
  text-align: center;
}

.hero__viewport {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - var(--nav-height));
  min-height: calc(100dvh - var(--nav-height));
  width: 100%;
  box-sizing: border-box;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.hero__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.hero__badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  margin-block-end: 2rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  max-width: 100%;
  line-height: var(--leading-body);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-purple);
  flex-shrink: 0;
}

.hero__harmony {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.875rem;
  max-width: 780px;
  width: 100%;
  margin: 0 auto;
}

.hero__harmony-item {
  flex: 1 1 220px;
  min-width: 0;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: start;
  transition: border-color 0.25s ease;
}

.hero__harmony-item:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.hero__harmony-tag {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-block-end: 0.375rem;
}

.hero__harmony-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-white);
  line-height: var(--leading-relaxed);
  letter-spacing: var(--letter-body);
}

.hero__harmony-label strong {
  color: var(--text-white);
  font-weight: 600;
}

.hero__harmony-bridge {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--text-faint);
  flex-shrink: 0;
  padding-inline: 0.25rem;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: var(--letter-heading);
  color: var(--text-white);
  margin-block-end: 1.5rem;
  line-height: 1.2;
}

.hero__vision {
  max-width: 720px;
  width: 100%;
  margin-block-end: 1.5rem;
  padding-inline: 0.5rem;
  font-size: clamp(1.0625rem, 2.5vw, 1.3125rem);
  font-weight: 500;
  font-style: normal;
  color: var(--text-white);
  line-height: var(--leading-relaxed);
  border-inline-start: 2px solid rgba(255, 255, 255, 0.35);
  padding-inline-start: 1.25rem;
  text-align: start;
}

.hero__vision font {
  font-style: normal;
}

.hero__lead {
  max-width: 680px;
  width: 100%;
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  min-width: 0;
  margin-block-start: clamp(2.75rem, 6vw, 4rem);
  padding-block-start: clamp(2rem, 4vw, 2.75rem);
  border-block-start: 1px solid var(--border-subtle);
  max-width: 560px;
  margin-inline: auto;
  width: 100%;
  scroll-margin-block: 50vh;
}

.hero__meta {
  margin-block-start: 16px;
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  line-height: var(--leading-body);
}

.hero__cta-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
  margin-block-start: 10px;
}

.hero__pricing-note {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: var(--leading-body);
  letter-spacing: 0.01em;
  color: #818CF8;
  text-align: center;
  text-wrap: pretty;
}

.hero__browser-note {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: var(--leading-body);
  letter-spacing: 0.01em;
  color: #818CF8;
  text-align: center;
  text-wrap: pretty;
}

.hero__cursor-link {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-block-start: 40px;
  font-size: 0.75rem;
  font-weight: 400;
  color: #A855F7;
  transition: color 0.25s ease;
  max-width: 100%;
  text-align: center;
}

.hero__cursor-link:hover,
.hero__cursor-link:focus-visible {
  color: #C084FC;
}

.hero__cursor-icon {
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
}

/* ---- App screenshot (full-bleed, outside container) ---- */
.app-showcase {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-top: 40px;
  margin-bottom: 50px;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
}

.app-showcase__frame {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
  overflow: hidden;
  isolation: isolate;
}

.app-showcase__frame::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 2;
  width: 140%;
  height: 45%;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(ellipse at top, rgba(255, 255, 255, 0.05) 0%, rgba(18, 18, 18, 0) 70%);
  filter: blur(40px);
}

.app-showcase__img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 100%);
}

/* ---- Section headers ---- */
.section-header {
  text-align: center;
  margin-block-end: clamp(3rem, 6vw, 4rem);
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  margin-block-end: 1rem;
  line-height: var(--leading-body);
}

.section-title {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: var(--letter-heading);
  color: var(--text-white);
  line-height: var(--leading-tight);
}

/* ---- Features ---- */
.features {
  padding-block: var(--section-space);
  border-block-start: 1px solid var(--border-subtle);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

/* ---- Stack (Vision & Builder) ---- */
.stack {
  padding-block: var(--section-space);
  background: var(--bg-base);
  border-block: 1px solid var(--border-subtle);
}

.stack__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-block-end: 2rem;
}

.stack__note {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

#download-btn {
  scroll-margin-block: 50vh;
}

.stack__link {
  color: var(--accent-purple);
  transition: color 0.25s ease;
}

.stack__link:hover,
.stack__link:focus-visible {
  color: var(--text-white);
}

/* ---- Cards ---- */
.card {
  padding: clamp(1.75rem, 3.5vw, 2.25rem);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-width: 0;
  height: auto;
  min-height: max-content;
  transition: border-color 0.25s ease;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.card--accent {
  border-block-start: 1px solid rgba(255, 255, 255, 0.35);
}

.card__tag {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  margin-block-end: 0.5rem;
}

.card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-white);
  margin-block-end: 0.75rem;
  line-height: var(--leading-tight);
  letter-spacing: var(--letter-heading);
}

.card__text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  letter-spacing: var(--letter-body);
}

/* ---- Mobile CTA ---- */
.mobile-cta {
  padding-block: var(--section-space) clamp(3rem, 6vw, 4.5rem);
}

.mobile-cta__headline {
  max-width: 640px;
  margin-inline: auto;
  font-size: clamp(1.375rem, 4.5vw, 1.875rem);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: var(--letter-heading);
  color: var(--text-white);
  text-align: center;
  text-wrap: pretty;
}

/* ---- Footer — two-column bar ---- */
.footer {
  padding-block: clamp(2rem, 4vw, 2.75rem);
  border-block-start: 1px solid var(--border-subtle);
  background: var(--bg-footer);
}

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  min-width: 0;
}

.footer__start {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.875rem, 1.75vw, 1.125rem);
  flex: 1 1 280px;
  min-width: 0;
}

.footer__copyright {
  max-width: 640px;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  text-align: start;
}

.footer__trust {
  flex-shrink: 0;
  margin-inline-start: auto;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.35);
  text-align: end;
  white-space: nowrap;
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.25s ease;
  flex-shrink: 0;
}

.footer__social-link:hover,
.footer__social-link:focus-visible {
  color: var(--text-white);
}

.footer__social-link svg {
  width: 20px;
  height: 20px;
}

@media (prefers-reduced-motion: reduce) {
  html, body {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    will-change: auto;
  }
}

/* ---- RTL mirror support (browser translation) ---- */
[dir="rtl"] .hero__vision {
  border-inline-start: none;
  border-inline-end: 2px solid rgba(255, 255, 255, 0.35);
  padding-inline-start: 0.5rem;
  padding-inline-end: 1.25rem;
  text-align: start;
}

[dir="rtl"] .navbar__brand {
  margin-inline-end: 0;
  margin-inline-start: auto;
}

[dir="rtl"] .navbar__end {
  margin-inline-start: 0;
  margin-inline-end: auto;
}

[dir="rtl"] .footer__copyright {
  text-align: start;
}

[dir="rtl"] .footer__trust {
  margin-inline-start: 0;
  margin-inline-end: auto;
  text-align: start;
}

[dir="rtl"] .footer__social {
  justify-content: flex-start;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .features__grid,
  .stack__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .footer__trust {
    margin-inline-start: 0;
    text-align: start;
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .navbar__links {
    display: none;
  }

  .navbar__toggle {
    display: flex;
  }

  .navbar__shell {
    position: relative;
  }

  .navbar__links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    inset-block-start: calc(100% + 0.25rem);
    inset-inline: 0;
    padding: 1.25rem 1.5rem;
    gap: 1rem;
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    box-shadow: none;
    border-radius: var(--radius-md);
    z-index: 10;
  }

  .navbar__links.is-open .navbar__link--btn {
    text-align: start;
    width: 100%;
  }

  .hero__harmony-bridge {
    width: 100%;
    padding-block: 0.125rem;
  }
}

@media (max-width: 480px) {
  .hero__harmony-item {
    flex-basis: 100%;
  }

  .card {
    padding: 1.375rem;
  }
}
