/* ============================================================
   Madium Executor — Main Stylesheet
   Colors: Dark #0D0D0D / Surface #161616 / Gold #F5A623
   ============================================================ */

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

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

:root {
  --gold:        #F5A623;
  --gold-dim:    #C4851A;
  --gold-glow:   rgba(245,166,35,0.18);
  --gold-glow2:  rgba(245,166,35,0.08);
  --bg:          #0D0D0D;
  --surface:     #161616;
  --surface2:    #1E1E1E;
  --surface3:    #262626;
  --border:      rgba(255,255,255,0.07);
  --border-gold: rgba(245,166,35,0.3);
  --text:        #F0F0F0;
  --text-muted:  #8A8A8A;
  --text-sub:    #5A5A5A;
  --green:       #4ADE80;
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  0.25s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

/* ── Selection ── */
::selection { background: var(--gold); color: var(--bg); }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--text-muted); }
a  { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ── Container ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section--sm { padding: 52px 0; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  padding: 0 24px;
  height: 64px;
  display: flex; align-items: center;
  background: rgba(13,13,13,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(13,13,13,0.97);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.nav__inner {
  max-width: 1100px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__brand {
  font-size: 1.4rem; font-weight: 800; letter-spacing: -0.03em;
  color: var(--gold);
  display: flex; align-items: center; gap: 10px;
}
.nav__brand-icon {
  width: 32px; height: 32px;
  background: var(--gold);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.85rem; color: var(--bg);
}
.nav__links {
  display: flex; align-items: center; gap: 6px;
  list-style: none;
}
.nav__links a {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}
.nav__links a:hover,
.nav__links a.active { color: var(--text); background: var(--surface2); }
.nav__links a.active { color: var(--gold); }
.nav__cta {
  background: var(--gold);
  color: var(--bg) !important;
  font-weight: 600 !important;
  padding: 8px 18px !important;
}
.nav__cta:hover { background: var(--gold-dim) !important; color: var(--bg) !important; }

/* Hamburger */
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav__toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); margin: 5px 0;
  transition: transform var(--transition), opacity var(--transition);
  border-radius: 2px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% -10%, rgba(245,166,35,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(245,166,35,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.hero__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  padding: 60px 0;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-glow2);
  border: 1px solid var(--border-gold);
  padding: 5px 14px; border-radius: 99px;
  font-size: 0.8rem; font-weight: 600;
  color: var(--gold); letter-spacing: 0.04em;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.hero__badge::before {
  content: ''; width: 6px; height: 6px;
  background: var(--gold); border-radius: 50%;
  animation: pulse-dot 1.8s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero__title { margin-bottom: 18px; }
.hero__title span { color: var(--gold); }
.hero__subtitle {
  font-size: 1.1rem; color: var(--text-muted);
  margin-bottom: 36px; max-width: 480px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__stats {
  display: flex; gap: 28px; margin-top: 40px;
  padding-top: 32px; border-top: 1px solid var(--border);
}
.hero__stat-val {
  font-size: 1.6rem; font-weight: 800;
  color: var(--gold); letter-spacing: -0.03em;
}
.hero__stat-label { font-size: 0.8rem; color: var(--text-sub); font-weight: 500; margin-top: 2px; }

/* Hero screenshot mockup */
.hero__mockup {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
}
.hero__mockup-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}
.hero__mockup-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.hero__mockup-img { width: 100%; display: block; }
.hero__mockup::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(245,166,35,0.08);
  pointer-events: none;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px;
  border-radius: 10px;
  font-size: 0.95rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn--primary {
  background: var(--gold);
  color: var(--bg);
  box-shadow: 0 0 0 0 var(--gold-glow);
}
.btn--primary:hover {
  background: #FFB83A;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--gold-glow), 0 0 0 3px rgba(245,166,35,0.15);
}
.btn--primary:active { transform: translateY(0); }
.btn--outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn--outline:hover {
  color: var(--text); border-color: rgba(255,255,255,0.2);
  background: var(--surface2);
}
.btn--lg { padding: 15px 34px; font-size: 1.05rem; border-radius: 12px; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Download meta info */
.dl-meta {
  font-size: 0.78rem; color: var(--text-sub);
  display: flex; align-items: center; gap: 8px;
}
.dl-meta svg { width: 14px; height: 14px; opacity: 0.5; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header { margin-bottom: 52px; }
.section-header--center { text-align: center; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 10px;
}
.section-title { margin-bottom: 14px; }
.section-title span { color: var(--gold); }
.section-desc { color: var(--text-muted); max-width: 560px; }
.section-header--center .section-desc { margin: 0 auto; }

/* ============================================================
   FEATURES / CARDS
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative; overflow: hidden;
}
.feature-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3), 0 0 0 1px rgba(245,166,35,0.12);
}
.feature-card__icon {
  width: 48px; height: 48px;
  background: var(--gold-glow2);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
}
.feature-card__title { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card__desc { font-size: 0.9rem; color: var(--text-muted); }
.feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-glow), transparent);
  opacity: 0; transition: opacity var(--transition);
}
.feature-card:hover::before { opacity: 1; }

/* ============================================================
   INSTALLATION STEPS
   ============================================================ */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: flex; gap: 20px;
  position: relative; padding-bottom: 32px;
}
.step:last-child { padding-bottom: 0; }
.step__line {
  display: flex; flex-direction: column; align-items: center; flex-shrink: 0;
}
.step__num {
  width: 36px; height: 36px;
  background: var(--gold);
  color: var(--bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem; flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--gold-glow2);
}
.step__connector {
  flex: 1; width: 1px;
  background: linear-gradient(180deg, var(--gold-dim) 0%, transparent 100%);
  margin-top: 6px;
  opacity: 0.3;
}
.step:last-child .step__connector { display: none; }
.step__body { padding-top: 4px; padding-bottom: 4px; }
.step__title { font-size: 1.05rem; margin-bottom: 6px; }
.step__desc { font-size: 0.9rem; color: var(--text-muted); }

/* ============================================================
   PC SPECS TABLE
   ============================================================ */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.specs-table th, .specs-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.specs-table th {
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-sub);
  background: var(--surface2);
}
.specs-table tr:last-child td { border-bottom: none; }
.specs-table td:first-child { color: var(--text-muted); font-weight: 500; }
.specs-table td:last-child { color: var(--text); }
.specs-table tr:hover td { background: var(--surface2); }
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* ============================================================
   BENCHMARK BARS
   ============================================================ */
.bench-items { display: flex; flex-direction: column; gap: 20px; }
.bench-item { }
.bench-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.bench-label { font-size: 0.9rem; font-weight: 600; }
.bench-val { font-size: 0.9rem; font-weight: 700; color: var(--gold); }
.bench-track {
  height: 8px; background: var(--surface3);
  border-radius: 99px; overflow: hidden;
}
.bench-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  width: 0;
  transition: width 1.4s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.bench-fill--green {
  background: linear-gradient(90deg, #22c55e, #4ade80);
}

/* ============================================================
   VIDEO EMBED
   ============================================================ */
.video-wrap {
  position: relative; padding-bottom: 56.25%;
  height: 0; overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.video-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border-radius: var(--radius-lg);
  border: none;
}

/* ============================================================
   SCREENSHOTS GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.gallery-item:hover {
  border-color: var(--border-gold);
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.gallery-item img { width: 100%; height: auto; display: block; }
.gallery-item:first-child { grid-column: 1 / -1; }

/* ============================================================
   FAQ (ACCORDION)
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: var(--border-gold); }
.faq-btn {
  width: 100%; text-align: left; background: none; border: none;
  padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; gap: 16px;
}
.faq-btn-text {
  font-size: 0.95rem; font-weight: 600; color: var(--text);
}
.faq-icon {
  width: 24px; height: 24px; flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  color: var(--text-muted);
}
.faq-item.open .faq-icon {
  background: var(--gold); border-color: var(--gold); color: var(--bg);
  transform: rotate(45deg);
}
.faq-body {
  display: none; padding: 0 24px 20px;
  font-size: 0.9rem; color: var(--text-muted);
}
.faq-item.open .faq-body { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 52px 0 28px;
}
.footer__inner {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}
.footer__brand { }
.footer__brand-name {
  font-size: 1.3rem; font-weight: 800; color: var(--gold);
  letter-spacing: -0.03em; margin-bottom: 12px;
}
.footer__brand-desc { font-size: 0.875rem; color: var(--text-sub); max-width: 280px; }
.footer__col-title {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-sub);
  margin-bottom: 16px;
}
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__links a {
  font-size: 0.875rem; color: var(--text-muted);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--gold); }
.footer__bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer__copy { font-size: 0.8rem; color: var(--text-sub); }
.footer__copy a { color: var(--text-muted); transition: color var(--transition); }
.footer__copy a:hover { color: var(--gold); }

/* ============================================================
   BADGE / CHIP
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 3px 10px;
  border-radius: 5px;
}
.badge--gold { background: var(--gold-glow); color: var(--gold); border: 1px solid rgba(245,166,35,0.25); }
.badge--green { background: rgba(74,222,128,0.1); color: var(--green); border: 1px solid rgba(74,222,128,0.2); }
.badge--red   { background: rgba(239,68,68,0.1); color: #F87171; border: 1px solid rgba(239,68,68,0.15); }

/* ============================================================
   NOTICE BOX
   ============================================================ */
.notice {
  display: flex; gap: 14px; padding: 18px 20px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.notice__icon { flex-shrink: 0; color: var(--gold); margin-top: 2px; }
.notice p { color: var(--text-muted); margin: 0; }

/* ============================================================
   CHANGELOG PAGE
   ============================================================ */
.changelog-timeline { display: flex; flex-direction: column; gap: 28px; }
.cl-entry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.cl-entry:hover { border-color: var(--border-gold); }
.cl-entry:first-child { border-color: rgba(245,166,35,0.4); }
.cl-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  gap: 12px; flex-wrap: wrap;
}
.cl-version { font-size: 1rem; font-weight: 700; color: var(--gold); }
.cl-date { font-size: 0.8rem; color: var(--text-sub); }
.cl-body { padding: 20px 24px; }
.cl-section { margin-bottom: 16px; }
.cl-section:last-child { margin-bottom: 0; }
.cl-section-title {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-sub);
  margin-bottom: 10px;
}
.cl-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.cl-list li {
  display: flex; gap: 10px;
  font-size: 0.875rem; color: var(--text-muted);
}
.cl-list li::before {
  content: '•'; color: var(--gold); flex-shrink: 0; font-weight: 700;
}
.cl-list li.indent { padding-left: 20px; }
.cl-list li.indent::before { content: '—'; opacity: 0.4; }

/* FAQ notice on changelog */
.cl-faq { display: flex; flex-direction: column; gap: 12px; }
.cl-qa {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.cl-qa-q { font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.cl-qa-a { font-size: 0.875rem; color: var(--text-muted); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 0%, rgba(245,166,35,0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-gold  { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-sub   { color: var(--text-sub); }
.text-green { color: var(--green); }
.text-center { text-align: center; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }
.flex  { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }

/* Divider */
.divider { height: 1px; background: var(--border); margin: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__mockup-col { order: -1; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: auto; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .nav__links { display: none; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: var(--bg); padding: 24px; gap: 4px; z-index: 998; }
  .nav__links.open { display: flex; }
  .nav__links a { font-size: 1.1rem; padding: 12px 16px; }
  .nav__toggle { display: block; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero__stats { flex-wrap: wrap; gap: 20px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.animate-fade-up  { animation: fadeInUp 0.6s ease both; }
.animate-fade     { animation: fadeIn 0.5s 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; }

/* Intersection Observer reveal */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
