:root {
  --bg: #0b0f1a;
  --surface: #121829;
  --surface-2: #1a2238;
  --text: #e8ecf4;
  --muted: #9aa5bd;
  --accent: #3b82f6;
  --accent-2: #22d3ee;
  --border: #243050;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1120px, 92%); margin: 0 auto; }
.container.narrow { width: min(760px, 92%); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #ffffff;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 0; }
.logo { font-size: 1.4rem; font-weight: 800; letter-spacing: 0.5px; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 1.6rem; list-style: none; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 600; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 700;
  padding: 0.8rem 1.6rem; border: none; border-radius: 999px;
  cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35); }
.btn-outline { background: transparent; border: 2px solid var(--accent); color: var(--text); }
.btn-small { padding: 0.45rem 1.1rem; color: #fff !important; }

/* Hero */
.hero { padding: 6rem 0 4rem; background: radial-gradient(ellipse at top, #16204a 0%, var(--bg) 60%); }
.hero-inner { text-align: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; margin-bottom: 1rem; }
.hero p { color: var(--muted); max-width: 640px; margin: 0 auto 2rem; font-size: 1.1rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.ticker {
  margin: 3rem auto 0; display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap;
  color: var(--muted); font-size: 0.95rem;
}
.ticker b { color: var(--text); }
.ticker .up { color: #34d399; }
.ticker .down { color: #f87171; }

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--surface); }
.section-title { font-size: 2rem; font-weight: 800; text-align: center; margin-bottom: 0.5rem; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 2.5rem; }

/* Cards */
.grid.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card .tag {
  display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  color: var(--accent-2); background: rgba(34, 211, 238, 0.1);
  padding: 0.2rem 0.7rem; border-radius: 999px; margin-bottom: 0.8rem;
}
.card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1rem; }
.card .card-link { color: var(--accent); font-weight: 700; cursor: pointer; background: none; border: none; font-size: 0.95rem; padding: 0; }
.card .card-link:hover { text-decoration: underline; }

/* Search */
.search-bar { max-width: 420px; margin: 0 auto 2rem; }
.search-bar input {
  width: 100%; padding: 0.8rem 1.2rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  font-size: 1rem; outline: none;
}
.search-bar input:focus { border-color: var(--accent); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0.8rem; }
.faq-item { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; color: var(--text);
  font-size: 1rem; font-weight: 700; padding: 1.1rem 1.4rem; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-q::after { content: "+"; color: var(--accent); font-size: 1.3rem; }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--muted); }
.faq-a p { padding: 0 1.4rem 1.2rem; }

/* Support form */
.support-form { display: flex; flex-direction: column; gap: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.35rem; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.75rem 1rem; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  font: inherit; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.form-status { color: var(--accent-2); font-weight: 600; min-height: 1.4em; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); }
.modal-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); max-width: 680px; width: 100%; max-height: 85vh;
  overflow-y: auto; padding: 2.2rem; box-shadow: var(--shadow);
}
.modal-close {
  position: absolute; top: 0.8rem; right: 1rem; background: none; border: none;
  color: var(--muted); font-size: 1.8rem; cursor: pointer;
}
.modal-close:hover { color: var(--text); }
.modal-meta { color: var(--accent-2); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; margin-bottom: 0.4rem; }
.modal-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.modal-body p { color: var(--muted); margin-bottom: 1rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0; }
.footer-inner { text-align: center; color: var(--muted); display: flex; flex-direction: column; gap: 0.5rem; }

/* Responsive */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--surface);
    padding: 1.2rem; gap: 1rem; border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .hero { padding: 4rem 0 3rem; }
}
