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

:root {
  --bg-primary: #0b0c0f;
  --bg-secondary: #111318;
  --bg-tertiary: #181b22;
  --bg-card: #13151a;
  --bg-card-hover: #1a1d25;
  --gold: #c9a84c;
  --gold-light: #dfc06a;
  --gold-dark: #a8882e;
  --gold-glow: rgba(201, 168, 76, 0.15);
  --gold-glow-strong: rgba(201, 168, 76, 0.25);
  --text-primary: #f0ece4;
  --text-secondary: #a8a29e;
  --text-muted: #6b6560;
  --border: #2a2520;
  --border-gold: rgba(201, 168, 76, 0.3);
  --success: #4ade80;
  --font-display: 'Cinzel', serif;
  --font-body: 'EB Garamond', serif;
  --font-mono: ui-monospace, 'SF Mono', monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --max-width: 1200px;
  --transition: 200ms ease-out;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--gold); color: var(--bg-primary); }

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

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
  text-align: center;
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 16px 36px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  min-height: 52px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0b0c0f;
  box-shadow: 0 4px 24px rgba(201, 168, 76, 0.25), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 8px 40px rgba(201, 168, 76, 0.35);
  transform: translateY(-2px);
  color: #0b0c0f;
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--border-gold);
}
.btn-outline:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
}
.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-sm { padding: 10px 24px; font-size: 0.85rem; min-height: 42px; }
.btn-lg { padding: 20px 48px; font-size: 1.05rem; }

/* Navigation */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(11, 12, 15, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
}
.nav-logo img { width: 36px; height: 36px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-family: var(--font-body); font-size: 0.95rem; color: var(--text-secondary); transition: color var(--transition); }
.nav-links a:hover { color: var(--text-primary); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-toggle { display: none; background: none; border: none; color: var(--text-primary); cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: block; }
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--bg-primary);
  z-index: 999;
  padding: 32px 24px;
}
.mobile-menu.open { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu a {
  display: block;
  padding: 16px 0;
  font-size: 1.2rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}
.mobile-menu .btn { margin-top: 24px; width: 100%; }

/* Page header (subpages) */
.page-header {
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.page-header::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-header h1 { margin-bottom: 16px; position: relative; }
.page-header p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  line-height: 1.7;
}

/* Page content */
.page-content {
  padding: 80px 0;
}
.page-content .narrow { max-width: 780px; margin: 0 auto; }

/* Prose */
.prose h2 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); margin: 48px 0 16px; }
.prose h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); margin: 36px 0 12px; }
.prose p { color: var(--text-secondary); margin-bottom: 20px; line-height: 1.75; }
.prose ul, .prose ol { color: var(--text-secondary); margin: 0 0 20px 24px; line-height: 1.75; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text-primary); }
.prose a { color: var(--gold); border-bottom: 1px solid var(--border-gold); }
.prose a:hover { border-color: var(--gold); }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 48px 0; }

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 300ms ease;
}
.card:hover {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--gold);
}
.card h3 { margin-bottom: 10px; color: var(--text-primary); font-size: 1.15rem; }
.card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.65; }

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Feature tag */
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 100px;
  margin-top: 14px;
  background: var(--gold-glow);
  color: var(--gold);
  border: 1px solid var(--border-gold);
}

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item:hover { border-color: var(--border-gold); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-question:hover { color: var(--gold); }
.faq-question .icon { font-size: 1.2rem; color: var(--gold); transition: transform 300ms ease; flex-shrink: 0; }
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 400ms ease; }
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner { padding: 0 24px 20px; font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; }

/* Table */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
.styled-table th, .styled-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.styled-table th {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--bg-tertiary);
}
.styled-table td { color: var(--text-secondary); }
.styled-table tr:hover td { background: var(--bg-card-hover); }

/* Contact form */
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
  background: var(--bg-secondary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .nav-logo { margin-bottom: 16px; display: inline-flex; }
.footer-brand p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; max-width: 280px; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col li a { font-size: 0.9rem; color: var(--text-muted); transition: color var(--transition); }
.footer-col li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* Utilities */
.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.check { color: var(--gold); }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Changelog */
.changelog-entry {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.changelog-entry:last-child { border-bottom: none; }
.changelog-version {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 4px;
}
.changelog-date { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }
.changelog-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.changelog-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.changelog-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 3px;
}
.changelog-tag.feat { background: rgba(74, 222, 128, 0.15); color: #4ade80; }
.changelog-tag.fix { background: rgba(251, 146, 60, 0.15); color: #fb923c; }
.changelog-tag.improve { background: rgba(96, 165, 250, 0.15); color: #60a5fa; }
