/* ============================================================
   CONVO WEBSITE — Design System
   Matching the ConVo App aesthetic (Dark Theme, Bronze/Flame Branding)
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────────── */

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

:root {
  /* Background Colors */
  --bg-primary: #18191c;
  --bg-secondary: #1e2124;
  --bg-tertiary: #282a2e;

  /* Text Colors */
  --text-primary: #f2f3f5;
  --text-secondary: #b9bbbe;
  --text-muted: #8e9297;

  /* Card/Surface */
  --card: #2f3136;
  --card-hover: #36393f;

  /* Brand */
  --bronze: #C4A06A;
  --flame: #E86A4A;
  --primary: #f97316;
  --primary-hover: #ea6c0e;

  /* UI */
  --border: #35373c;
  --border-strong: #45474c;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-feature-settings: 'rlig' 1, 'calt' 1;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

::selection {
  background: rgba(249, 115, 22, 0.3);
  color: var(--text-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(142, 146, 151, 0.4);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(142, 146, 151, 0.6);
}
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(142, 146, 151, 0.4) transparent;
}


/* ── Container ────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}


/* ── Header ───────────────────────────────────────────────────── */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(24, 25, 28, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  cursor: pointer;
  text-decoration: none;
}

.logo-img {
  height: 2.4rem;
  width: 2.4rem;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-img-sm {
  height: 1.5rem;
  width: 1.5rem;
}

.logo-con {
  color: var(--bronze);
}

.logo-vo {
  color: var(--flame);
}

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

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--bronze), var(--flame));
  transition: width 0.3s ease;
  border-radius: 1px;
}

.nav-link:hover::after {
  width: 100%;
}

/* Language switcher — centered in header */
.lang-switch {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all 0.2s ease;
  z-index: 1;
}

.lang-switch:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
  background: var(--bg-tertiary);
}

/* Fixed width for nav CTA button */
.btn-nav {
  min-width: 110px;
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.25);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.35);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-outline:hover {
  background: var(--bg-tertiary);
  border-color: var(--text-muted);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

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

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


/* ── Hero Section ─────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 10rem 0 6rem;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(249, 115, 22, 0.06), transparent 70%),
              radial-gradient(ellipse 60% 50% at 70% 60%, rgba(196, 160, 106, 0.04), transparent 60%);
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.08), transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.text-gradient {
  background: linear-gradient(to right, var(--bronze), var(--flame));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-stat svg {
  color: var(--primary);
  flex-shrink: 0;
}


/* ── Features Section ─────────────────────────────────────────── */

.features {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(249, 115, 22, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(249, 115, 22, 0.05);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: rgba(249, 115, 22, 0.1);
  color: var(--primary);
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: #fff;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}


/* ── About Section ────────────────────────────────────────────── */

.about {
  padding: 6rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content {
  max-width: 520px;
}

.about-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.about-highlight {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.about-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.about-item-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: rgba(249, 115, 22, 0.1);
  color: var(--primary);
}

.about-item-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.about-item-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-logo {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 8rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  opacity: 0.15;
  user-select: none;
  line-height: 1;
}

.about-logo-img {
  height: 8rem;
  width: 8rem;
  object-fit: contain;
}

.about-logo .logo-con {
  color: var(--bronze);
}

.about-logo .logo-vo {
  color: var(--flame);
}


/* ── Beta Section ─────────────────────────────────────────────── */

.beta {
  padding: 6rem 0;
  text-align: center;
}

.beta-inner {
  max-width: 640px;
  margin: 0 auto;
}

/* Countdown */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 2.5rem 0;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}

.countdown-value {
  font-size: 2.5rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  line-height: 1.1;
}

.countdown-label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.countdown-separator {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.countdown-live {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

/* Beta Form */
.beta-form {
  text-align: left;
  margin-top: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-full {
  width: 100%;
  margin-top: 0.5rem;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.15);
}

.form-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  display: none;
  text-align: center;
}

.form-message.success {
  display: block;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.form-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
}


/* ── Footer ───────────────────────────────────────────────────── */

.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

.footer-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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


/* ── Animations ───────────────────────────────────────────────── */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Scroll-triggered fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }


/* ── Download Section ─────────────────────────────────────────── */
.download {
  padding: 6rem 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(196, 160, 106, 0.06) 0%, transparent 55%),
    radial-gradient(circle at 10% 100%, rgba(232, 106, 74, 0.05) 0%, transparent 55%);
}

.download-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: -1.25rem 0 2.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.download-version {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.download-divider {
  opacity: 0.6;
}
.download-released { font-variant-numeric: tabular-nums; }

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.download-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.download-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 36px -22px rgba(0, 0, 0, 0.45);
}

.download-card.recommended {
  border-color: var(--bronze);
  box-shadow: 0 0 0 1px rgba(196, 160, 106, 0.35), 0 18px 36px -22px rgba(196, 160, 106, 0.25);
}

.download-card.recommended::after {
  content: "Empfohlen";
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1a1a;
  background: linear-gradient(135deg, var(--bronze) 0%, var(--flame) 100%);
  border-radius: 999px;
}
html[lang="en"] .download-card.recommended::after { content: "Recommended"; }

.download-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 0.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(196, 160, 106, 0.12) 0%, rgba(232, 106, 74, 0.12) 100%);
  color: var(--bronze);
}

/* Variante fuer Marken-Logos in Originalfarben (Windows/Apple/Tux). Der
   Hintergrund wird neutral hell, damit die Markenfarben sauber lesbar sind
   und nicht gegen die Bronze/Flame-Toene der Card kaempfen. */
.download-card-icon--color {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 10px -6px rgba(0, 0, 0, 0.4);
}

/* Marken-SVGs haben unterschiedliche natuerliche Seitenverhaeltnisse (Apple
   814x1000, Tux 216x256, Windows 88x88). Wir geben nur die Hoehe vor und
   lassen die Breite proportional, damit nichts gequetscht aussieht. */
.download-card-icon--color img {
  height: 40px;
  width: auto;
  max-width: 40px;
  display: block;
}

.download-card-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.download-card-format {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.download-card-btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.download-card-split {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}
.download-card-split .download-card-btn { flex: 1; }

.download-card.unavailable {
  opacity: 0.55;
}
.download-card.unavailable .download-card-btn {
  pointer-events: none;
  background: transparent;
  border: 1px dashed var(--border-strong);
  color: var(--text-muted);
}

.download-card-size {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.download-footnote {
  margin: 2.5rem auto 0;
  max-width: 640px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.download-footnote .link {
  color: var(--bronze);
  text-decoration: none;
  transition: color 0.2s ease;
}
.download-footnote .link:hover { color: var(--flame); }


/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .download-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .download {
    padding: 4rem 0;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(24, 25, 28, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }

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

  .nav-link::after {
    display: none;
  }

  .hero {
    padding: 8rem 0 4rem;
    min-height: auto;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-visual {
    order: -1;
  }

  .about-logo {
    font-size: 5rem;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .countdown-value {
    font-size: 2rem;
  }

  .countdown-item {
    min-width: 56px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .countdown-value {
    font-size: 1.5rem;
  }

  .countdown-separator {
    font-size: 1.5rem;
  }

  .countdown-item {
    min-width: 48px;
  }
}

/* ── Reduced Motion ───────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

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