/* ===== Lingofonex Global Styles ===== */

:root {
  --bg-primary: #1c1c1c;
  --bg-secondary: #242424;
  --bg-card: #2a2a2a;
  --bg-nav: #161616;
  --text-primary: #f9f9f9;
  --text-secondary: #b0b0b0;
  --accent-blue: rgba(12, 68, 102, 1);
  --accent-blue-light: rgba(12, 68, 102, 0.6);
  --accent-green: rgba(213, 242, 221, 1);
  --accent-green-dim: rgba(213, 242, 221, 0.15);
  --border-color: rgba(255, 255, 255, 0.08);
  --radius: 10px;
  --max-width: 1100px;
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  line-height: 1.3;
}

a {
  color: var(--accent-green);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: #fff; }

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

/* ===== Navigation ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
}

.nav-brand {
  font-family: 'Merriweather', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}
.nav-brand:hover { color: var(--accent-green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a,
.nav-links > li > button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-links > li > a:hover,
.nav-links > li > button:hover,
.nav-links > li > a.active,
.nav-links > li > button.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}

.dropdown-arrow {
  font-size: 0.6rem;
  transition: transform var(--transition);
}
li.open .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 6px 0;
  min-width: 180px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

li.open > .dropdown {
  display: block;
  animation: fadeDown 0.2s ease;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.dropdown a {
  display: block;
  padding: 8px 18px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
}
.dropdown a:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ===== Main Content ===== */
main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 64px 24px 48px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-logo {
  height: 32px;
  width: auto;
  margin-right: 8px;
  vertical-align: middle;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent-green), #a8d8ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Section headings ===== */
.section-title {
  font-size: 1.75rem;
  margin-bottom: 32px;
  text-align: center;
  color: var(--accent-green);
}

/* ===== Feature cards ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--accent-green);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===== Body text section ===== */
.body-text {
  max-width: 780px;
  margin: 0 auto 48px;
  text-align: center;
}

.body-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

/* ===== Download page ===== */
.download-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin: 48px 0;
}

.download-badges a img {
  height: 64px;
  transition: transform var(--transition);
}
.download-badges a:hover img {
  transform: scale(1.05);
}

/* ===== Contact embed ===== */
.contact-frame {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  display: block;
}

.contact-frame iframe {
  width: 100%;
  min-height: 900px;
  border: none;
  border-radius: var(--radius);
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}
.faq-question:hover {
  background: rgba(255,255,255,0.03);
}

.faq-question .icon {
  font-size: 1.2rem;
  transition: transform var(--transition);
  color: var(--accent-green);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.open .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 600px;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ===== Demo page ===== */
.video-container {
  position: relative;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ===== Legal pages (Privacy Policy, EULA) ===== */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 40px 36px;
}

.legal-content h1 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.legal-content .last-updated {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.legal-content h2 {
  font-size: 1.2rem;
  margin: 28px 0 12px;
  color: var(--accent-green);
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.legal-content ul, .legal-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content a {
  color: var(--accent-green);
  text-decoration: underline;
}

/* ===== Placeholder pages ===== */
.placeholder {
  text-align: center;
  padding: 80px 24px;
}
.placeholder h1 {
  margin-bottom: 16px;
  color: var(--accent-green);
}
.placeholder p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-nav);
  border-top: 1px solid var(--border-color);
  text-align: center;
  padding: 32px 24px;
  margin-top: auto;
}

.site-footer .tagline {
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  color: var(--accent-green);
  margin-bottom: 8px;
}

.site-footer .copyright {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }

  .nav-links.open { display: flex; }

  .nav-links > li > a,
  .nav-links > li > button {
    padding: 12px 24px;
    width: 100%;
    justify-content: space-between;
  }

  .dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(255,255,255,0.03);
    border-radius: 0;
    padding-left: 24px;
  }

  li.open > .dropdown {
    animation: none;
  }

  .hero { padding: 40px 16px 32px; }
  .hero h1 { font-size: 1.75rem; }

  main { padding: 32px 16px; }

  .legal-content { padding: 28px 20px; }

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