/* ================================================
   METAMODE SYSTEMS — MAIN STYLESHEET v1.0.0
   ================================================ */

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---- CSS VARIABLES ---- */
:root {
  --bg-primary:      #07071a;
  --bg-secondary:    #0b0b20;
  --bg-card:         #10102a;
  --bg-card-hover:   #181840;
  --bg-input:        #0d0d24;
  --border:          rgba(99, 102, 241, 0.14);
  --border-solid:    #1c1c42;
  --primary:         #6366f1;
  --primary-dark:    #4f46e5;
  --primary-light:   #818cf8;
  --accent:          #a855f7;
  --accent-light:    #c084fc;
  --gradient:        linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --gradient-r:      linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(99,102,241,.08) 0%, rgba(168,85,247,.08) 100%);
  --text:            #e2e8f0;
  --text-muted:      #94a3b8;
  --text-dim:        #44446a;
  --success:         #10b981;
  --warning:         #f59e0b;
  --error:           #ef4444;
  --font:            'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:            'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  --radius-xs:       4px;
  --radius-sm:       8px;
  --radius:          14px;
  --radius-lg:       20px;
  --radius-xl:       28px;
  --shadow-card:     0 8px 40px rgba(0,0,0,.5);
  --shadow-glow:     0 0 60px rgba(99,102,241,.15);
  --transition:      .2s cubic-bezier(.4,0,.2,1);
  --nav-height:      70px;
  --container-max:   1180px;
  --container-pad:   clamp(1.25rem, 5vw, 3rem);
}

/* ---- BASE ---- */
body {
  background: var(--bg-primary);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.025em;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { color: var(--text-muted); line-height: 1.7; }

a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-light); }

code, pre { font-family: var(--mono); }

/* ---- LAYOUT ---- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); }
.section { padding: clamp(4rem, 9vw, 8rem) 0; }
.section-sm { padding: clamp(2rem, 5vw, 4rem) 0; }

.section-header { text-align: center; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-header .label {
  display: inline-block;
  font-size: .75rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--primary-light);
  padding: .3rem .9rem;
  background: rgba(99,102,241,.1);
  border: 1px solid rgba(99,102,241,.22);
  border-radius: 100px;
  margin-bottom: .85rem;
}
.section-header h2 { margin-bottom: .85rem; }
.section-header p { max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

.gradient-text { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

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

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }

/* ---- NAVIGATION ---- */
.nav {
  position: sticky; top: 0; z-index: 1000;
  height: var(--nav-height);
  background: rgba(7,7,26,.88);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--border);
}
.nav-container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-logo {
  display: flex; align-items: center; gap: .7rem;
  color: var(--text); font-weight: 700; font-size: 1rem;
  letter-spacing: -.02em; text-decoration: none; flex-shrink: 0;
}
.logo-mark {
  width: 30px; height: 30px;
  background: var(--gradient); border-radius: 7px;
  position: relative; flex-shrink: 0;
}
.logo-mark::after {
  content: ''; position: absolute; inset: 6px;
  border: 1.5px solid rgba(255,255,255,.45);
  border-radius: 3px;
}
.nav-links { display: flex; align-items: center; gap: .1rem; }
.nav-link {
  color: var(--text-muted); font-size: .87rem; font-weight: 500;
  padding: .38rem .7rem; border-radius: var(--radius-sm);
  transition: all var(--transition); white-space: nowrap; text-decoration: none;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-link.active { color: var(--primary-light); background: rgba(99,102,241,.1); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition); }

@media (max-width: 1060px) {
  .nav-links {
    position: fixed; top: var(--nav-height); left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    background: rgba(7,7,26,.97); backdrop-filter: blur(24px);
    padding: 1.5rem; gap: .4rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%); opacity: 0; pointer-events: none;
    transition: all var(--transition);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-toggle { display: flex; }
  .nav-link { width: 100%; }
  .btn-sm.nav-cta { margin-top: .5rem; }
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.6rem; font-size: .93rem; font-weight: 600;
  border-radius: var(--radius); border: none; cursor: pointer;
  transition: all var(--transition); text-decoration: none;
  white-space: nowrap; font-family: var(--font); line-height: 1;
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 4px 22px rgba(99,102,241,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(99,102,241,.5); color: #fff; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border-solid); }
.btn-outline:hover { background: rgba(255,255,255,.05); border-color: var(--primary); color: var(--text); }
.btn-ghost { background: rgba(255,255,255,.05); color: var(--text-muted); }
.btn-ghost:hover { background: rgba(255,255,255,.09); color: var(--text); }
.btn-sm { padding: .45rem 1rem; font-size: .82rem; }
.btn-lg { padding: .95rem 2.4rem; font-size: 1rem; border-radius: var(--radius-lg); }

/* ---- CARDS ---- */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.7rem;
  transition: all var(--transition);
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(99,102,241,.28);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), 0 0 30px rgba(99,102,241,.06);
}
.card-icon {
  width: 50px; height: 50px; border-radius: var(--radius-sm);
  background: var(--gradient-subtle); border: 1px solid rgba(99,102,241,.18);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem; font-size: 1.3rem;
}

/* ---- BADGES ---- */
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .7rem; font-size: .75rem; font-weight: 600; border-radius: 100px; }
.badge-primary { background: rgba(99,102,241,.14); color: var(--primary-light); border: 1px solid rgba(99,102,241,.28); }
.badge-success { background: rgba(16,185,129,.12); color: #34d399; border: 1px solid rgba(16,185,129,.25); }
.badge-accent { background: rgba(168,85,247,.14); color: var(--accent-light); border: 1px solid rgba(168,85,247,.28); }
.badge-warning { background: rgba(245,158,11,.12); color: #fbbf24; border: 1px solid rgba(245,158,11,.25); }

/* ---- HERO ---- */
.hero {
  padding: clamp(5rem, 13vw, 10rem) 0 clamp(4rem, 8vw, 7rem);
  position: relative; overflow: hidden; text-align: center;
}
.hero::before {
  content: ''; position: absolute;
  width: 900px; height: 900px;
  background: radial-gradient(ellipse, rgba(99,102,241,.11) 0%, transparent 68%);
  top: -250px; left: 50%; transform: translateX(-50%); pointer-events: none;
}
.hero::after {
  content: ''; position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(168,85,247,.07) 0%, transparent 70%);
  bottom: -100px; right: -150px; pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.hero-label {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .38rem 1rem; margin-bottom: 1.8rem;
  background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.22);
  border-radius: 100px; font-size: .78rem; font-weight: 600;
  color: var(--primary-light); letter-spacing: .06em; text-transform: uppercase;
}
.hero-label .dot { width: 6px; height: 6px; background: var(--success); border-radius: 50%; animation: blink 2.2s ease infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.35} }
.hero h1 { margin-bottom: 1.2rem; }
.hero .subtitle { font-size: clamp(.97rem, 1.8vw, 1.18rem); color: var(--text-muted); max-width: 600px; margin: 0 auto 2.5rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-trust {
  display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap;
  margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--border);
}
.hero-trust-item { text-align: center; }
.hero-trust-item .val {
  font-size: 1.9rem; font-weight: 800;
  background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1; margin-bottom: .2rem;
}
.hero-trust-item .lbl { font-size: .75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .09em; font-weight: 500; }

/* ---- BROWSER MOCKUP ---- */
.browser-mock {
  background: var(--bg-card); border: 1px solid var(--border-solid);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  max-width: 720px; margin: 3.5rem auto 0;
}
.browser-bar {
  background: #0d0d26; padding: .75rem 1rem;
  border-bottom: 1px solid var(--border-solid);
  display: flex; align-items: center; gap: 1rem;
}
.browser-dots { display: flex; gap: .4rem; }
.browser-dots span { width: 10px; height: 10px; border-radius: 50%; }
.browser-dots span:nth-child(1) { background: #ef4444; }
.browser-dots span:nth-child(2) { background: #f59e0b; }
.browser-dots span:nth-child(3) { background: #10b981; }
.browser-url {
  flex: 1; background: rgba(255,255,255,.04); border: 1px solid var(--border-solid);
  border-radius: var(--radius-sm); padding: .3rem .75rem;
  font-size: .78rem; font-family: var(--mono); color: var(--text-dim);
  text-align: center;
}
.browser-body { padding: 1.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.browser-stat {
  background: rgba(99,102,241,.06); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1rem; text-align: center;
}
.browser-stat .bs-val { font-size: 1.5rem; font-weight: 700; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.browser-stat .bs-lbl { font-size: .72rem; color: var(--text-dim); margin-top: .2rem; text-transform: uppercase; letter-spacing: .07em; }
.browser-stat .bs-delta { font-size: .72rem; color: var(--success); margin-top: .15rem; }

/* ---- CODE BLOCK ---- */
.code-block { background: #090918; border: 1px solid var(--border-solid); border-radius: var(--radius); overflow: hidden; }
.code-header { display: flex; align-items: center; justify-content: space-between; padding: .65rem 1rem; border-bottom: 1px solid var(--border-solid); background: rgba(255,255,255,.015); }
.code-dots { display: flex; gap: .35rem; }
.code-dots span { width: 10px; height: 10px; border-radius: 50%; }
.code-dots span:nth-child(1){background:#ef4444} .code-dots span:nth-child(2){background:#f59e0b} .code-dots span:nth-child(3){background:#10b981}
.code-filename { font-size: .75rem; color: var(--text-dim); font-family: var(--mono); }
.code-body { padding: 1.2rem 1.25rem; overflow-x: auto; }
.code-body pre { margin: 0; font-size: .82rem; line-height: 1.75; color: var(--text-muted); white-space: pre; }
.ck { color: #818cf8; } .cs { color: #86efac; } .cc { color: var(--text-dim); font-style: italic; }
.cp { color: #f9a8d4; } .cn { color: #fb923c; } .ct { color: #67e8f9; }

/* ---- FEATURE DETAIL ---- */
.feature-section { padding: clamp(3rem, 7vw, 6rem) 0; border-top: 1px solid var(--border); }
.feature-section:first-of-type { border-top: none; }
.feature-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.feature-detail.reverse { direction: rtl; }
.feature-detail.reverse > * { direction: ltr; }
.feature-num { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--primary-light); margin-bottom: .85rem; }
.feature-detail-content h2 { margin-bottom: .9rem; }
.feature-detail-content p { margin-bottom: 1.5rem; }
.feature-list { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.5rem; }
.feature-list li {
  display: flex; align-items: flex-start; gap: .8rem;
  font-size: .93rem; color: var(--text-muted);
}
.feature-list li::before {
  content: ''; width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; margin-top: .05rem;
  background: rgba(99,102,241,.13) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2.5'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
  border: 1px solid rgba(99,102,241,.28);
}
.feature-visual {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 2rem;
  box-shadow: var(--shadow-card);
}
@media (max-width: 768px) {
  .feature-detail { grid-template-columns: 1fr; gap: 2.5rem; }
  .feature-detail.reverse { direction: ltr; }
}

/* ---- STATS ---- */
.stats-bar { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 2.5rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-item .value { font-size: 2.4rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1.1; margin-bottom: .3rem; }
.stat-item .label { font-size: .75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .1em; font-weight: 500; }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }

/* ---- BLOG CARDS ---- */
.blog-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition); display: flex; flex-direction: column; }
.blog-card:hover { border-color: rgba(99,102,241,.3); transform: translateY(-4px); box-shadow: var(--shadow-card); }
.blog-card-thumb {
  height: 190px; background: var(--gradient-subtle);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 2.8rem;
  position: relative;
}
.blog-card-thumb::after { content: ''; position: absolute; inset: 0; background: var(--gradient); opacity: .07; }
.blog-card-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.blog-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: .65rem; font-size: .77rem; color: var(--text-dim); }
.blog-card h3 { font-size: 1rem; margin-bottom: .45rem; color: var(--text); line-height: 1.35; }
.blog-card p { font-size: .86rem; flex: 1; }
.blog-card-footer { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.read-more { font-size: .82rem; color: var(--primary-light); font-weight: 500; }
.read-more:hover { color: var(--accent-light); }

/* ---- FAQ ---- */
.faq-list { display: flex; flex-direction: column; gap: .65rem; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color var(--transition); }
.faq-item.open { border-color: rgba(99,102,241,.28); }
.faq-question { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem; cursor: pointer; user-select: none; }
.faq-question h4 { font-size: .97rem; font-weight: 600; color: var(--text); }
.faq-icon { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border-solid); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all var(--transition); color: var(--text-muted); font-size: 1.15rem; line-height: 1; }
.faq-item.open .faq-icon { background: rgba(99,102,241,.14); border-color: rgba(99,102,241,.28); color: var(--primary-light); transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 1.4rem 1.2rem; font-size: .93rem; color: var(--text-muted); line-height: 1.7; }
.faq-item.open .faq-answer { display: block; }
.faq-answer code { font-family: var(--mono); font-size: .82em; padding: .1rem .35rem; background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.18); border-radius: 3px; color: var(--primary-light); }

/* ---- FORM ---- */
.form-group { margin-bottom: 1.2rem; }
.form-label { display: block; font-size: .85rem; font-weight: 500; color: var(--text-muted); margin-bottom: .45rem; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: .72rem .95rem;
  background: var(--bg-input); border: 1px solid var(--border-solid);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: var(--font); font-size: .93rem; outline: none;
  transition: all var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.14); }
.form-textarea { resize: vertical; min-height: 130px; }
.form-select { appearance: none; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 580px) { .form-grid { grid-template-columns: 1fr; } }

/* ---- MODAL ---- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.78);
  backdrop-filter: blur(10px); z-index: 9999;
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: #101028; border: 1px solid rgba(99,102,241,.22);
  border-radius: var(--radius-xl); padding: 2.4rem;
  max-width: 500px; width: 100%; position: relative;
  box-shadow: 0 30px 90px rgba(0,0,0,.65), 0 0 60px rgba(99,102,241,.14);
  transform: scale(.95); transition: transform .25s;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-close { position: absolute; top: 1.2rem; right: 1.2rem; background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 1.4rem; line-height: 1; padding: .25rem; transition: color var(--transition); }
.modal-close:hover { color: var(--text); }
.modal-header { text-align: center; margin-bottom: 1.75rem; }
.modal-icon { width: 60px; height: 60px; border-radius: var(--radius); background: var(--gradient-subtle); border: 1px solid rgba(99,102,241,.22); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.1rem; font-size: 1.7rem; }
.modal-header h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.modal-header p { font-size: .88rem; }

/* Spinner / Progress */
#modalLoading { display: flex; flex-direction: column; align-items: center; gap: 1.15rem; }
.spinner { width: 44px; height: 44px; border: 3px solid rgba(99,102,241,.18); border-top-color: var(--primary); border-radius: 50%; animation: spin .85s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress-track { width: 100%; height: 4px; background: rgba(255,255,255,.05); border-radius: 100px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--gradient); border-radius: 100px; width: 0%; transition: width .12s ease; }
.progress-label { font-size: .83rem; color: var(--text-dim); }
.spinner-label { font-size: .95rem; font-weight: 500; color: var(--text); }

/* Install Guide */
#modalGuide { display: none; }
.install-steps { display: flex; flex-direction: column; gap: .65rem; margin: 1.2rem 0; }
.install-step { display: flex; align-items: flex-start; gap: .9rem; padding: .8rem 1rem; background: rgba(255,255,255,.02); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.step-num { width: 24px; height: 24px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; font-size: .74rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.install-step p { font-size: .88rem; color: var(--text-muted); margin: 0; line-height: 1.5; }
.install-step strong { color: var(--text); }
.modal-footer-note { font-size: .78rem; color: var(--text-dim); text-align: center; margin-top: .85rem; }

/* ---- HIGHLIGHT BOX ---- */
.highlight-box { background: var(--gradient-subtle); border: 1px solid rgba(99,102,241,.18); border-radius: var(--radius-lg); padding: 2rem; }
.highlight-box-dark { background: rgba(0,0,0,.3); border: 1px solid var(--border-solid); border-radius: var(--radius); padding: 1.5rem; }

/* ---- TABLE ---- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border-solid); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
th { padding: .7rem 1rem; text-align: left; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); border-bottom: 1px solid var(--border-solid); background: rgba(255,255,255,.02); }
td { padding: .9rem 1rem; font-size: .9rem; color: var(--text-muted); border-bottom: 1px solid rgba(28,28,66,.7); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,.01); }
td.good { color: var(--success); font-weight: 600; }
td.bad { color: var(--error); }

/* ---- TIMELINE / ROADMAP ---- */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item { display: flex; gap: 1.5rem; position: relative; }
.timeline-item:not(:last-child)::before { content: ''; position: absolute; left: 11px; top: 26px; width: 2px; height: calc(100% + 1px); background: var(--border-solid); }
.timeline-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--gradient); flex-shrink: 0; margin-top: .2rem; position: relative; z-index: 1; box-shadow: 0 0 12px rgba(99,102,241,.4); }
.timeline-dot.pending { background: var(--bg-card); border: 2px solid var(--border-solid); box-shadow: none; }
.timeline-body { padding-bottom: 2rem; flex: 1; }
.timeline-body h4 { margin-bottom: .3rem; font-size: .97rem; }
.timeline-body p { font-size: .88rem; }

/* ---- SCROLL ANIMATION ---- */
.animate { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.animate.in-view { opacity: 1; transform: translateY(0); }
.animate-delay-1 { transition-delay: .1s; }
.animate-delay-2 { transition-delay: .2s; }
.animate-delay-3 { transition-delay: .3s; }
.animate-delay-4 { transition-delay: .4s; }

/* ---- NOTICE ---- */
.notice { padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-size: .88rem; display: flex; align-items: flex-start; gap: .7rem; }
.notice-info { background: rgba(59,130,246,.08); border: 1px solid rgba(59,130,246,.18); color: #93c5fd; }
.notice-success { background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.18); color: #6ee7b7; }
.notice-warn { background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.18); color: #fcd34d; }

/* ---- TAGS ---- */
.tag-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { padding: .18rem .55rem; background: rgba(255,255,255,.04); border: 1px solid var(--border-solid); border-radius: var(--radius-xs); font-size: .75rem; color: var(--text-dim); font-family: var(--mono); }

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

/* ---- FOOTER ---- */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-brand p { font-size: .86rem; color: var(--text-muted); line-height: 1.65; max-width: 240px; margin-top: .8rem; }
.footer-col h4 { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--text-dim); margin-bottom: .9rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .55rem; }
.footer-col a { color: var(--text-muted); font-size: .86rem; text-decoration: none; transition: color var(--transition); }
.footer-col a:hover { color: var(--text); }
.footer-bottom { padding-top: 1.7rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { font-size: .8rem; color: var(--text-dim); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } .footer-brand { grid-column: 1/-1; } }
@media (max-width: 580px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- TAB NAV ---- */
.tab-nav { display: flex; gap: .15rem; border-bottom: 1px solid var(--border-solid); margin-bottom: 1.5rem; overflow-x: auto; }
.tab-btn { padding: .55rem 1rem; border: none; background: none; color: var(--text-dim); font-size: .86rem; font-weight: 500; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: all var(--transition); font-family: var(--font); }
.tab-btn.active { color: var(--primary-light); border-bottom-color: var(--primary); }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-solid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }
::selection { background: rgba(99,102,241,.28); color: var(--text); }

/* ---- MISC ---- */
.text-center { text-align: center; }
.text-gradient { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.opacity-60 { opacity: .6; }

/* ---- PWA LAUNCH BUTTON ---- */
.pwa-launch-btn {
  display: none; /* shown by JS when prompt is available */
  align-items: center; gap: .5rem;
  padding: .95rem 2.4rem; font-size: 1rem; font-weight: 600;
  border-radius: var(--radius-lg); border: 1px solid rgba(99,102,241,.4);
  background: rgba(99,102,241,.1); color: var(--primary-light);
  cursor: pointer; transition: all var(--transition);
  text-decoration: none; font-family: var(--font); line-height: 1;
  white-space: nowrap;
}
.pwa-launch-btn:hover {
  background: rgba(99,102,241,.2);
  border-color: var(--primary);
  color: var(--text);
  transform: translateY(-2px);
}
.pwa-launch-btn.pwa-installed {
  border-color: rgba(16,185,129,.4);
  background: rgba(16,185,129,.08);
  color: #34d399;
}
.pwa-launch-btn.pwa-installed:hover {
  background: rgba(16,185,129,.16);
  border-color: var(--success);
  color: #6ee7b7;
}

/* ---- TERMINAL OVERLAY ---- */
#terminalOverlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(7,7,26,.97);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
#terminalOverlay.active {
  opacity: 1; pointer-events: all;
}
#terminalOverlay.fade-out {
  opacity: 0; pointer-events: none;
}
.terminal-window {
  width: min(680px, 92vw);
  background: #0a0a1e;
  border: 1px solid rgba(99,102,241,.3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 80px rgba(99,102,241,.15), 0 30px 80px rgba(0,0,0,.6);
}
.terminal-titlebar {
  display: flex; align-items: center; gap: .6rem;
  padding: .7rem 1rem;
  background: rgba(99,102,241,.06);
  border-bottom: 1px solid rgba(99,102,241,.14);
}
.terminal-titlebar .t-dot {
  width: 12px; height: 12px; border-radius: 50%;
}
.terminal-titlebar .t-dot:nth-child(1) { background: #ef4444; }
.terminal-titlebar .t-dot:nth-child(2) { background: #f59e0b; }
.terminal-titlebar .t-dot:nth-child(3) { background: #10b981; }
.terminal-titlebar .t-title {
  margin-left: .5rem;
  font-family: var(--mono); font-size: .78rem;
  color: var(--text-dim); letter-spacing: .06em;
}
.terminal-body {
  padding: 1.4rem 1.6rem;
  min-height: 280px; max-height: 60vh;
  overflow-y: auto;
  font-family: var(--mono); font-size: .88rem; line-height: 1.9;
}
.t-line {
  color: #a5f3c4;
  animation: tLineIn .25s ease forwards;
  opacity: 0;
}
.t-line:first-child { color: var(--primary-light); }
.t-line:last-child  { color: #34d399; font-weight: 600; }
@keyframes tLineIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}
