/* ================================================================
   TROVE FORTRESS — Website Stylesheet
   Design: Dark premium, gold accents, glassmorphism
   ================================================================ */

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

/* ── CSS Variables ─────────────────────────────────────────────── */
:root {
  --gold:         #C9A84C;
  --gold-light:   #E8C97A;
  --gold-dark:    #9A7835;
  --bg-base:      #0A0C10;
  --bg-card:      #111520;
  --bg-card2:     #161B28;
  --border:       rgba(201,168,76,0.18);
  --border-faint: rgba(255,255,255,0.07);
  --text-primary: #F0EDE8;
  --text-muted:   #8A8FA8;
  --text-faint:   #555870;
  --accent-blue:  #3B7BE8;
  --accent-green: #2ECC71;
  --shadow-gold:  0 0 40px rgba(201,168,76,0.15);
  --radius-lg:    16px;
  --radius-xl:    24px;
  --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  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; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Scrollbar ─────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

/* ── Typography ────────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: 'Outfit', sans-serif; line-height: 1.2; }
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.25);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.section-title span { color: var(--gold); }
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.7;
}
.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* ── Layout ────────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0A0C10;
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
}
.btn-primary:hover {
  color: #0A0C10;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,168,76,0.5);
}
.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.06);
}
.btn-ghost { color: var(--text-muted); padding: 10px 20px; font-size: 0.9rem; }
.btn-ghost:hover { color: var(--gold); }

/* ── Navigation ─────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 24px; transition: all var(--transition);
}
.navbar.scrolled {
  background: rgba(10,12,16,0.92); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-faint);
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Outfit', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--text-primary);
}
.nav-logo img { width: 36px; height: 36px; }
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 0.88rem; font-weight: 500; color: var(--text-muted);
  padding: 6px 12px; border-radius: 8px; transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.nav-cta { margin-left: 12px; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; border-radius: 8px; background: rgba(255,255,255,0.05); }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all var(--transition); }
.mobile-menu {
  display: none; position: fixed; top: 72px; left: 0; right: 0;
  background: rgba(10,12,16,0.97); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-faint); padding: 24px; z-index: 999; flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--text-muted); font-size: 1rem; padding: 12px 16px; border-radius: 10px; transition: all var(--transition); }
.mobile-menu a:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

/* ── Footer ─────────────────────────────────────────────────────── */
.footer { background: #070810; border-top: 1px solid var(--border-faint); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 12px; max-width: 280px; line-height: 1.7; }
.footer-col h4 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 0.88rem; padding: 4px 0; transition: color var(--transition); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border-faint); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { color: var(--text-faint); font-size: 0.82rem; }
.badge-pill { font-size: 0.72rem; font-weight: 600; padding: 3px 10px; border-radius: 100px; border: 1px solid var(--border-faint); color: var(--text-faint); }

/* ── Cards ──────────────────────────────────────────────────────── */
.card { background: var(--bg-card); border: 1px solid var(--border-faint); border-radius: var(--radius-xl); padding: 32px; transition: all var(--transition); }
.card:hover { border-color: rgba(201,168,76,0.25); box-shadow: var(--shadow-gold); transform: translateY(-4px); }
.card-icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.2); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 1.4rem; }
.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.65; }

/* ── Forms ──────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; letter-spacing: 0.02em; }
.form-control { width: 100%; background: rgba(255,255,255,0.04); border: 1.5px solid var(--border-faint); border-radius: 12px; padding: 13px 16px; color: var(--text-primary); font-size: 0.95rem; font-family: inherit; transition: all var(--transition); resize: vertical; }
.form-control::placeholder { color: var(--text-faint); }
.form-control:focus { outline: none; border-color: var(--gold); background: rgba(201,168,76,0.04); box-shadow: 0 0 0 3px rgba(201,168,76,0.1); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8FA8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
.form-control option { background: var(--bg-card); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.video-placeholder { min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; text-align: center; background: linear-gradient(145deg, rgba(201,168,76,0.08), rgba(59,123,232,0.06)); border: 1px solid rgba(201,168,76,0.2); border-radius: 16px; }
.video-placeholder h3 { margin-bottom: 8px; }
.video-placeholder p { max-width: 520px; color: var(--text-muted); font-size: 0.9rem; }
.screenshot-placeholder { min-width: 170px; min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; background: linear-gradient(160deg, rgba(201,168,76,0.09), rgba(17,21,32,0.9)); }
.screenshot-placeholder span { font-size: 2.4rem; }
.screenshot-placeholder strong { font-size: 0.88rem; }
.screenshot-placeholder small { color: var(--text-faint); font-size: 0.72rem; line-height: 1.45; max-width: 130px; }
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 960px; margin: 0 auto; }
.download-card { background: var(--bg-card); border: 1px solid var(--border-faint); border-radius: var(--radius-xl); padding: 36px; }
.download-card h2 { font-size: 1.45rem; margin: 8px 0 12px; }
.download-card p { color: var(--text-muted); font-size: 0.94rem; line-height: 1.7; }
.download-icon { font-size: 2.6rem; margin-bottom: 16px; }
.download-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 16px; }
.download-note { color: var(--text-faint) !important; font-size: 0.78rem !important; }
.checksum-box { max-width: 960px; margin: 24px auto 0; padding: 24px; background: rgba(201,168,76,0.06); border: 1px solid rgba(201,168,76,0.2); border-radius: var(--radius-lg); }
.checksum-box h2 { font-size: 1.1rem; margin-bottom: 8px; }
.checksum-box p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 12px; }
.checksum-box code { display: block; overflow-x: auto; padding: 10px; }
.alert { padding: 14px 18px; border-radius: 12px; font-size: 0.9rem; margin-bottom: 20px; display: none; }
.alert.show { display: block; }
.alert-success { background: rgba(46,204,113,0.12); border: 1px solid rgba(46,204,113,0.3); color: #2ECC71; }
.alert-error { background: rgba(231,76,60,0.12); border: 1px solid rgba(231,76,60,0.3); color: #E74C3C; }

/* ── Page header ─────────────────────────────────────────────────── */
.page-header { padding: 140px 0 80px; text-align: center; position: relative; overflow: hidden; }
.page-header::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 700px; height: 400px; background: radial-gradient(ellipse at center, rgba(201,168,76,0.08) 0%, transparent 70%); pointer-events: none; }
.page-header h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
.page-header p { color: var(--text-muted); max-width: 560px; margin: 16px auto 0; font-size: 1.05rem; }

/* ── Divider ─────────────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border-faint); margin: 0; }

/* ── Check list ──────────────────────────────────────────────────── */
.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; color: var(--text-muted); }
.check-list li::before { content: '✓'; color: var(--gold); font-weight: 700; font-size: 0.85rem; background: rgba(201,168,76,0.1); border-radius: 50%; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }

/* ── Accordion ───────────────────────────────────────────────────── */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.accordion-item { background: var(--bg-card); border: 1px solid var(--border-faint); border-radius: var(--radius-lg); overflow: hidden; transition: border-color var(--transition); }
.accordion-item.open { border-color: rgba(201,168,76,0.3); }
.accordion-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; text-align: left; font-size: 1rem; font-weight: 600; color: var(--text-primary); background: none; gap: 16px; }
.accordion-btn .icon { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--border-faint); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1rem; color: var(--gold); transition: all var(--transition); }
.accordion-item.open .accordion-btn .icon { background: rgba(201,168,76,0.1); border-color: var(--gold); transform: rotate(45deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.accordion-item.open .accordion-body { max-height: 600px; }
.accordion-body-inner { padding: 16px 24px 20px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.75; border-top: 1px solid var(--border-faint); }

/* ── Prose ───────────────────────────────────────────────────────── */
.prose { max-width: 800px; margin: 0 auto; color: var(--text-muted); font-size: 0.98rem; line-height: 1.85; }
.prose h2 { font-size: 1.4rem; font-weight: 700; color: var(--text-primary); margin: 48px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border-faint); }
.prose h3 { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); margin: 28px 0 10px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 16px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--gold); }
.prose strong { color: var(--text-primary); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 0.92rem; }
.prose th { background: var(--bg-card2); color: var(--text-primary); font-weight: 600; text-align: left; padding: 12px 16px; border: 1px solid var(--border-faint); }
.prose td { padding: 10px 16px; border: 1px solid var(--border-faint); color: var(--text-muted); vertical-align: top; }
.prose tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.prose .callout { background: rgba(201,168,76,0.07); border: 1px solid rgba(201,168,76,0.2); border-left: 3px solid var(--gold); padding: 16px 20px; border-radius: 0 12px 12px 0; margin-bottom: 20px; }
.prose .callout p { margin: 0; color: var(--text-primary); font-size: 0.95rem; }
.last-updated { font-size: 0.82rem; color: var(--text-faint); background: var(--bg-card); border: 1px solid var(--border-faint); border-radius: 8px; display: inline-block; padding: 4px 12px; margin-bottom: 32px; }

/* ── Screenshot gallery ──────────────────────────────────────────── */
.screenshot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.screenshots-outer { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.screenshots-row { display: flex; gap: 16px; min-width: max-content; }
.screenshot-item { border-radius: 12px; overflow: hidden; border: 1px solid var(--border-faint); transition: all var(--transition); cursor: pointer; }
.screenshot-item:hover { border-color: rgba(201,168,76,0.3); transform: scale(1.02); box-shadow: var(--shadow-gold); }
.screenshot-item img { width: 100%; display: block; }

/* ── Lightbox ────────────────────────────────────────────────────── */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 9999; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 12px; box-shadow: 0 0 80px rgba(0,0,0,0.8); }
.lightbox-close { position: absolute; top: 24px; right: 24px; color: var(--text-muted); font-size: 2rem; line-height: 1; cursor: pointer; }

/* ── Stats ───────────────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.stat-item { text-align: center; }
.stat-number { font-family: 'Outfit', sans-serif; font-size: 2.5rem; font-weight: 800; color: var(--gold); line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 0.88rem; color: var(--text-muted); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .form-row { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .section { padding: 72px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-grid { grid-template-columns: 1fr !important; gap: 48px; }
  .download-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 112px; }
  .hero-visual { padding: 0 12px; }
  .float-badge-1 { right: -8px; }
  .float-badge-2 { left: -8px; }
  .section > .container > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; gap: 48px !important; }
}
@media (max-width: 480px) { .container { padding: 0 16px; } .btn { padding: 12px 22px; } }

/* ── Animations ──────────────────────────────────────────────────── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse-glow { 0%,100% { box-shadow: 0 0 20px rgba(201,168,76,0.2); } 50% { box-shadow: 0 0 40px rgba(201,168,76,0.5); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.animate-in { animation: fadeInUp 0.6s ease both; }
.delay-1 { animation-delay: 0.1s; } .delay-2 { animation-delay: 0.2s; } .delay-3 { animation-delay: 0.3s; } .delay-4 { animation-delay: 0.4s; }

/* ── Utility ─────────────────────────────────────────────────────── */
.gold { color: var(--gold); }
.mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mb-6 { margin-bottom: 24px; }
