/* ============================================
   Symbiont Website - Shared Styles
   Light theme, accent #eb0928, responsive
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&display=swap');

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

:root {
  --accent: #eb0928;
  --accent-dark: #b5071f;
  --bg: #ffffff;
  --bg-card: #f5f5f7;
  --bg-card-hover: #ededf0;
  --bg-header: rgba(255, 255, 255, 0.92);
  --text: #1d1d1f;
  --text-muted: #555;
  --text-dim: #888;
  --border: #d2d2d7;
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1100px;
  --header-height: 64px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #ff3050;
}

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

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}
.nav-brand:hover {
  color: var(--text);
}
.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-lang {
  font-size: 0.85rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 6px;
  transition: border-color 0.2s, color 0.2s;
}
.nav-lang:hover {
  border-color: var(--text-muted);
  color: var(--text-muted);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* ---------- Main Content ---------- */
main {
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height) - 120px);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 64px 0;
}
.section + .section {
  border-top: 1px solid var(--border);
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 80px 0 64px;
}
.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  margin: 0 auto 24px;
}
.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 12px;
}
.hero .tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}
.hero-screenshot {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  margin: 0 auto;
  max-width: 900px;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.feature-card .icon {
  font-size: 1.4rem;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- Section Headings ---------- */
.section-title {
  font-size: 2rem;
  margin-bottom: 12px;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

/* ---------- Screenshot Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.gallery-item img {
  width: 100%;
  transition: transform 0.3s;
}
.gallery-item:hover img {
  transform: scale(1.02);
}
.gallery-caption {
  padding: 12px 16px;
  background: var(--bg-card);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Feature Detail (features.html) ---------- */
.feature-section {
  padding: 56px 0;
}
.feature-section + .feature-section {
  border-top: 1px solid var(--border);
}
.feature-section h2 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}
.feature-section .feature-lead {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 1.05rem;
}
.feature-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.feature-content.reverse {
  direction: rtl;
}
.feature-content.reverse > * {
  direction: ltr;
}
.feature-text ul {
  list-style: none;
  padding: 0;
}
.feature-text ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.feature-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.feature-image img {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* ---------- Help / Docs ---------- */
.help-nav {
  position: sticky;
  top: calc(var(--header-height) + 16px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 40px;
}
.help-nav h3 {
  font-size: 0.9rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.help-nav ul {
  list-style: none;
}
.help-nav ul li {
  margin-bottom: 6px;
}
.help-nav ul li a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.help-nav ul li a:hover {
  color: var(--text);
}

.help-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

.help-content h2 {
  font-size: 1.6rem;
  margin-top: 48px;
  margin-bottom: 12px;
  padding-top: 16px;
}
.help-content h2:first-child {
  margin-top: 0;
}
.help-content h3 {
  font-size: 1.15rem;
  margin-top: 32px;
  margin-bottom: 8px;
  color: var(--text);
}
.help-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.help-content ul, .help-content ol {
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-left: 24px;
  font-size: 0.95rem;
}
.help-content li {
  margin-bottom: 6px;
}
.help-content code {
  background: #e8e8ed;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Keyboard shortcut table */
.shortcut-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.9rem;
}
.shortcut-table th {
  text-align: left;
  padding: 10px 16px;
  border-bottom: 2px solid var(--border);
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.shortcut-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.shortcut-table tr:hover td {
  background: var(--bg-card);
}
kbd {
  background: #e8e8ed;
  border: 1px solid #c8c8cc;
  border-radius: 4px;
  padding: 2px 8px;
  font-family: inherit;
  font-size: 0.85em;
  color: var(--text);
  box-shadow: 0 1px 0 #c8c8cc;
}

/* ---------- Requirements / Info Box ---------- */
.info-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 24px 0;
}
.info-box h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.info-box p, .info-box ul {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Language Selector (root) ---------- */
.lang-select {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  gap: 48px;
}
.lang-select .logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.lang-select .logo img {
  width: 128px;
  height: 128px;
  border-radius: 28px;
}
.lang-select .logo h1 {
  font-size: 3rem;
}
.lang-buttons {
  display: flex;
  gap: 20px;
}
.lang-btn {
  display: block;
  padding: 16px 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Quicksand', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.lang-btn:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  color: var(--text);
  transform: translateY(-2px);
}

/* ---------- CTA Button ---------- */
.cta-btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--accent);
  color: #fff !important;
  font-family: 'Quicksand', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 10px;
  transition: background 0.2s, transform 0.15s;
  margin-bottom: 40px;
}
.cta-btn:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Nav CTA ---------- */
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s;
}
.nav-cta:hover {
  background: var(--accent-dark);
  color: #fff !important;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
}
.pricing-card.pro {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(235, 9, 40, 0.1);
}
.pricing-card h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}
.pricing-card .price {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: 'Quicksand', sans-serif;
  margin-bottom: 4px;
}
.pricing-card .price-note {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.pricing-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-bottom: 24px;
}
.pricing-card ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.pricing-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.pricing-card .cta-btn {
  margin-bottom: 0;
  padding: 10px 28px;
  font-size: 0.95rem;
}
.pricing-card .cta-btn.outline {
  background: transparent;
  color: var(--text) !important;
  border: 1px solid var(--border);
}
.pricing-card .cta-btn.outline:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.site-footer a {
  color: var(--text-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero .tagline {
    font-size: 1rem;
  }
  .hero-icon {
    width: 88px;
    height: 88px;
    border-radius: 20px;
  }

  .feature-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .feature-content.reverse {
    direction: ltr;
  }

  .help-layout {
    grid-template-columns: 1fr;
  }
  .help-nav {
    position: static;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-header);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 16px;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }

  .section {
    padding: 40px 0;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
  .lang-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .hero {
    padding: 48px 0 40px;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
}
