/* DeepSky3D — Deep Space Theme
   ------------------------------------------------------------- */

:root {
  --bg: #06080e;
  --bg-elev: #0d1220;
  --bg-card: #111933;
  --border: rgba(78, 205, 196, 0.12);
  --border-strong: rgba(78, 205, 196, 0.28);
  --gold: #E3B341;
  --gold-hover: #F5C842;
  --cyan: #4ECDC4;
  --cyan-dim: rgba(78, 205, 196, 0.6);
  --blue: #2D7DD2;
  --blue-hover: #3A8EE0;
  --text: #E8EAF6;
  --text-dim: #B0B7C9;
  --text-mute: #7A88A4;
  --success: #22C55E;
  --warn: #F59E0B;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-glow: 0 0 60px -10px rgba(78, 205, 196, 0.25);
  --shadow-gold: 0 12px 40px -10px rgba(227, 179, 65, 0.45);

  --font-sans: 'Exo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Exo 2', var(--font-sans);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }

p { color: var(--text-dim); }

a { color: var(--cyan); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

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

/* Layout */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 120px 0;
  position: relative;
}

@media (max-width: 768px) {
  section { padding: 72px 0; }
}

.kicker {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(78, 205, 196, 0.06);
  margin-bottom: 18px;
}

.section-title {
  margin-bottom: 18px;
}

.section-intro {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 720px;
  margin-bottom: 64px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: #1a1200;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 50px -8px rgba(245, 200, 66, 0.6);
  color: #1a1200;
}

.btn-secondary {
  background: rgba(78, 205, 196, 0.08);
  color: var(--cyan);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
  background: rgba(78, 205, 196, 0.16);
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(6, 8, 14, 0.65);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(6, 8, 14, 0.85);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-brand img {
  height: 28px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); }
.nav-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang-switch {
  display: flex;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  font-size: 0.75rem;
  font-weight: 600;
}
.lang-switch button {
  background: transparent;
  border: none;
  color: var(--text-mute);
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.05em;
}
.lang-switch button.active {
  background: var(--cyan);
  color: var(--bg);
}
/* Burger + mobile nav */
.nav-burger {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  transition: all 0.25s ease;
}
.nav-burger:hover {
  border-color: var(--border-strong);
  background: rgba(78, 205, 196, 0.06);
}
.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: rgba(6, 8, 14, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0 20px;
}
.nav-mobile.open {
  display: block;
  animation: nav-mobile-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 24px;
}
.nav-mobile a {
  display: block;
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.nav-mobile a:hover,
.nav-mobile a:focus {
  background: rgba(78, 205, 196, 0.06);
  border-color: var(--border);
  color: var(--cyan);
}
@keyframes nav-mobile-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}
#stars-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, var(--bg) 90%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.hero-logo {
  height: 90px;
  margin: 0 auto 32px;
  filter: drop-shadow(0 0 40px rgba(78, 205, 196, 0.4));
}
.hero h1 {
  background: linear-gradient(180deg, #ffffff 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
}
.hero-subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto 40px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-version {
  font-size: 0.82rem;
  color: var(--text-mute);
  letter-spacing: 0.06em;
}

/* Problem section */
.problem {
  text-align: center;
  background: linear-gradient(180deg, transparent 0%, rgba(78, 205, 196, 0.03) 50%, transparent 100%);
}
.problem .section-title {
  max-width: 880px;
  margin: 0 auto 24px;
}
.problem p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.15rem;
}

/* Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 16px;
}
.pillar {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.pillar::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  opacity: 0;
  transition: opacity 0.3s;
}
.pillar:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.pillar:hover::before { opacity: 1; }
@media (max-width: 1100px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
}
.pillar-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}
.pillar h3 {
  margin-bottom: 12px;
  color: var(--text);
}
@media (max-width: 900px) {
  .pillars-grid { grid-template-columns: 1fr; }
}

/* Interface showcase */
.interface-block {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 140px;
}
.interface-block:last-child { margin-bottom: 0; }
.interface-block.reverse {
  grid-template-columns: 1.2fr 1fr;
}
.interface-block.reverse .interface-text { order: 2; }
.interface-block.reverse .interface-visual { order: 1; }

.interface-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7), var(--shadow-glow);
  background: var(--bg-elev);
}
.interface-visual img {
  width: 100%;
  display: block;
}
.interface-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  pointer-events: none;
  background: linear-gradient(135deg, transparent 60%, rgba(78, 205, 196, 0.08));
}

.interface-subtitle {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.interface-text h3 {
  margin-bottom: 18px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}
.interface-text > p {
  font-size: 1.08rem;
  margin-bottom: 28px;
}
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.96rem;
  color: var(--text-dim);
}
.feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  background: var(--cyan);
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='4 11 8 15 16 6'/></svg>");
  mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='4 11 8 15 16 6'/></svg>");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
}
@media (max-width: 900px) {
  .interface-block,
  .interface-block.reverse {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 96px;
  }
  .interface-block.reverse .interface-text { order: 1; }
  .interface-block.reverse .interface-visual { order: 2; }
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
.step {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}
.step-n {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 12px;
}
.step h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text);
}
.step p { font-size: 0.92rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .steps { grid-template-columns: 1fr; }
}

/* Demo / YouTube */
.demo-block {
  background: linear-gradient(135deg, var(--bg-elev), var(--bg-card));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.demo-block::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(78, 205, 196, 0.12) 0%, transparent 50%);
  animation: pulse 6s ease-in-out infinite;
}
.demo-block > * { position: relative; z-index: 1; }
.demo-block h2 { margin-bottom: 18px; }
.demo-block p {
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 1.08rem;
}
.demo-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--gold);
  color: #1a1200;
  padding: 18px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: var(--shadow-gold);
  transition: all 0.25s;
}
.demo-cta:hover {
  background: var(--gold-hover);
  transform: translateY(-2px) scale(1.02);
  color: #1a1200;
}
.demo-cta svg { width: 24px; height: 24px; }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* Availability newsletter link */
.availability-newsletter {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--text-mute);
}
.availability-newsletter a {
  color: var(--cyan);
  border-bottom: 1px dashed var(--cyan-dim);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.availability-newsletter a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Availability */
.availability-block {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
}
.platforms-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}
.platforms-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(78, 205, 196, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 500;
}
.platforms-list li::before {
  content: '✦';
  color: var(--gold);
  font-size: 1.2rem;
}
@media (max-width: 900px) {
  .availability-block { grid-template-columns: 1fr; padding: 40px 28px; gap: 32px; }
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  background: var(--bg-elev);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-mute);
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-social:hover {
  color: var(--cyan);
  transform: translateY(-1px);
}
.footer-social svg { flex-shrink: 0; }
.footer-brand img {
  height: 32px;
  margin-bottom: 14px;
}
.footer-brand p {
  font-size: 0.92rem;
  color: var(--text-mute);
  max-width: 360px;
}
.footer h5 {
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 14px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a {
  color: var(--text-mute);
  font-size: 0.92rem;
}
.footer ul a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--text-mute);
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* Scroll reveal base */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============ Modal (Contact / Newsletter) ============ */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.modal.open {
  display: flex;
  opacity: 1;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 14, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.modal-dialog {
  position: relative;
  background: linear-gradient(135deg, var(--bg-elev), var(--bg-card));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), var(--shadow-glow);
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  padding: 0;
  transform: translateY(12px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal.open .modal-dialog {
  transform: translateY(0);
}
.modal-dialog::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 140%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(78, 205, 196, 0.12) 0%, transparent 55%);
  pointer-events: none;
  animation: pulse 6s ease-in-out infinite;
}
.modal-dialog > * { position: relative; z-index: 1; }

.modal-scroll {
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 40px 40px 36px;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-mute);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 2;
}
.modal-close:hover {
  color: var(--cyan);
  border-color: var(--border-strong);
  background: rgba(78, 205, 196, 0.08);
}

.modal-kicker {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 5px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(78, 205, 196, 0.06);
  margin-bottom: 18px;
}

.modal-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(6, 8, 14, 0.5);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 26px;
}
.modal-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 16px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-mute);
  cursor: pointer;
  border-radius: 999px;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
}
.modal-tab:hover { color: var(--text); }
.modal-tab.active {
  color: var(--bg);
  background: var(--cyan);
  box-shadow: 0 6px 20px -6px rgba(78, 205, 196, 0.6);
}

.modal-panel { display: none; }
.modal-panel.active { display: block; animation: panel-in 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.modal-panel h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  margin-bottom: 10px;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, var(--cyan) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.modal-intro {
  color: var(--text-dim);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 26px;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Form fields */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.form-field > span {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--cyan-dim);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: rgba(78, 205, 196, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-mute); }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(78, 205, 196, 0.08);
  box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.12);
}
.form-field textarea { resize: vertical; min-height: 120px; line-height: 1.55; }

.form-captcha > span {
  color: var(--gold);
  letter-spacing: 0.12em;
}
.form-captcha input {
  max-width: 180px;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 10px 0 22px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(78, 205, 196, 0.03);
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.55;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.form-consent:hover { border-color: var(--border-strong); }
.form-consent input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--cyan);
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.form-consent a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px dashed var(--cyan-dim);
}
.form-consent a:hover { color: var(--gold); border-bottom-color: var(--gold); }

.form-submit {
  width: 100%;
  justify-content: center;
  padding: 15px 28px;
  font-size: 1rem;
}

/* Honeypot (hidden field) */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-status {
  margin-top: 16px;
  font-size: 0.88rem;
  min-height: 1.4em;
  text-align: center;
  letter-spacing: 0.01em;
}
.form-status.success { color: var(--success); }
.form-status.error   { color: #ef4444; }

/* Body lock when modal open */
body.modal-open { overflow: hidden; }

@media (max-width: 600px) {
  .modal { padding: 12px; }
  .modal-scroll { padding: 32px 22px 26px; }
  .modal-tab { font-size: 0.82rem; padding: 9px 10px; }
  .modal-close { top: 12px; right: 12px; }
  .form-consent { padding: 12px 14px; font-size: 0.84rem; }
}

/* ============ Video embed (YouTube) ============ */
.video-block {
  text-align: center;
  margin-bottom: 96px;
}
.video-block .kicker { margin-bottom: 18px; }
.video-block .section-title { margin: 0 auto 18px; }
.video-intro {
  max-width: 640px;
  margin: 0 auto 36px;
  font-size: 1.05rem;
  color: var(--text-dim);
}
.video-embed-wrap {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.6), var(--shadow-glow);
}
.video-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ============ Screenshot gallery ============ */
.screen-gallery {
  margin-top: 32px;
}
.gallery-title {
  text-align: center;
  margin-bottom: 36px;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 1000px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
.gallery-item {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.gallery-item figcaption {
  padding: 14px 18px;
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 500;
  border-top: 1px solid var(--border);
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}
.gallery-item-placeholder { position: relative; }
.placeholder-canvas {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1a1f2e, #0f1422);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--cyan-dim);
  position: relative;
}
.placeholder-icon {
  width: 48px;
  height: 48px;
  opacity: 0.55;
}
.placeholder-badge {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(227, 179, 65, 0.1);
  border: 1px solid rgba(227, 179, 65, 0.35);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 600;
}

/* ============ News page ============ */
.page-hero {
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
}
.page-hero h1 {
  background: linear-gradient(180deg, #ffffff 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}
.page-hero p {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--text-dim);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 0 80px;
}
.news-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 36px 32px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.news-card-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: rgba(227, 179, 65, 0.1);
  border: 1px solid rgba(227, 179, 65, 0.35);
  padding: 5px 12px;
  border-radius: 999px;
}
.badge-current {
  color: var(--bg);
  background: var(--cyan);
  border-color: var(--cyan);
}
.news-date {
  color: var(--text-mute);
  font-size: 0.86rem;
  letter-spacing: 0.05em;
}
.news-card h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  margin-bottom: 14px;
  color: var(--text);
}
.news-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.news-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-dim);
  font-size: 0.96rem;
  line-height: 1.55;
}
.news-card ul li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 9px;
  background: var(--cyan);
  border-radius: 999px;
}
.news-shot {
  margin-top: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.news-shot img { width: 100%; display: block; }
@media (max-width: 600px) {
  .news-card { padding: 24px 22px; }
}

/* ============ Howto page ============ */
.howto-sections {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 0 40px;
}
.howto-section {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 32px 30px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: flex-start;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.howto-section:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.howto-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(78, 205, 196, 0.08);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
}
.howto-icon svg { width: 28px; height: 28px; }
.howto-body h2 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-bottom: 10px;
  color: var(--text);
}
.howto-body p { color: var(--text-dim); font-size: 0.98rem; line-height: 1.65; }
.howto-body ol,
.howto-body ul {
  list-style: none;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.howto-body ol li,
.howto-body ul li {
  position: relative;
  padding-left: 22px;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}
.howto-body ol { counter-reset: howto-step; }
.howto-body ol li {
  counter-increment: howto-step;
}
.howto-body ol li::before {
  content: counter(howto-step) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: 600;
  font-family: var(--font-display);
}
.howto-body ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 999px;
}
@media (max-width: 600px) {
  .howto-section {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px;
  }
  .howto-icon { width: 48px; height: 48px; }
}

/* FAQ accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 0 80px;
}
.faq-item {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.faq-item.open { border-color: var(--border-strong); }
.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 500;
  text-align: left;
  padding: 18px 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.2s ease;
}
.faq-question:hover { color: var(--cyan); }
.faq-toggle {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
  display: inline-block;
}
.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  background: var(--cyan);
  border-radius: 2px;
  transition: transform 0.25s ease;
}
.faq-toggle::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}
.faq-toggle::after {
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}
.faq-item.open .faq-toggle::after { transform: translateX(-50%) scaleY(0); }
.faq-answer {
  display: none;
  padding: 0 22px 20px;
  color: var(--text-dim);
  font-size: 0.96rem;
  line-height: 1.65;
}
.faq-item.open .faq-answer { display: block; animation: panel-in 0.3s cubic-bezier(0.16, 1, 0.3, 1); }

/* ============ Download page ============ */
.download-hero {
  padding: 140px 0 40px;
  text-align: center;
}
.download-hero h1 {
  background: linear-gradient(180deg, #ffffff 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}
.download-hero p {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--text-dim);
}
.download-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 40px 0 16px;
}
.download-btn {
  min-width: 240px;
  padding: 18px 28px;
  font-size: 1rem;
}
.download-btn svg { width: 22px; height: 22px; }
.download-disclaimer {
  color: var(--text-mute);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}
.download-section {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 0;
}
.download-section h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin-bottom: 24px;
  color: var(--text);
}
.requirements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 600px) {
  .requirements-grid { grid-template-columns: 1fr; }
}
.requirement-item {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--text-dim);
  font-size: 0.96rem;
}
.requirement-item::before {
  content: '✓';
  color: var(--cyan);
  font-weight: 700;
  flex-shrink: 0;
}
.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  transition: border-color 0.2s ease;
}
.history-item:hover { border-color: var(--border-strong); }
.history-item .history-version {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
}
.history-item .history-date {
  color: var(--text-mute);
  font-size: 0.88rem;
}
.history-item a {
  color: var(--cyan);
  font-size: 0.9rem;
}

/* ============ Legal pages ============ */
.legal-page {
  padding: 140px 0 80px;
  min-height: 100vh;
}
.legal-page .container { max-width: 820px; }
.legal-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}
.legal-page .updated {
  color: var(--text-mute);
  font-size: 0.88rem;
  margin-bottom: 32px;
}
.legal-page h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--cyan);
}
.legal-page h3 {
  font-size: 1.1rem;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--text);
}
.legal-page p,
.legal-page li {
  color: var(--text-dim);
  font-size: 0.98rem;
  margin-bottom: 10px;
}
.legal-page ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 14px;
}
.legal-page .back-link {
  display: inline-block;
  margin-top: 40px;
  color: var(--cyan);
  font-size: 0.92rem;
}

/* ============ Lightbox ============ */
.gallery-item:not(.gallery-item-placeholder) img {
  cursor: zoom-in;
}

.lightbox-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(6, 8, 14, 0.92);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-inner {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.lightbox-overlay.is-open .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.lightbox-close:hover {
  background: var(--cyan);
  color: #000;
  border-color: var(--cyan);
}
