/* OpenGate — Shared styles */
:root {
  --bg: #0a0e14;
  --panel: #121821;
  --panel-2: #1a2230;
  --border: #2a3548;
  --text: #d8e2f0;
  --muted: #7a8aa3;
  --accent: #4ec9ff;
  --accent-dim: #2a7aa8;
  --gold: #c9a227;
  --ok: #6bdf8e;
  --warn: #ffb84d;
  --danger: #ff6b6b;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
code { background: var(--panel-2); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }

/* --- Nav --- */
nav {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
nav .logo {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  padding: 0.9rem 1.5rem 0.9rem 0;
  border-right: 1px solid var(--border);
  margin-right: 0.5rem;
  white-space: nowrap;
}
nav .links {
  display: flex;
  gap: 0;
  overflow-x: auto;
}
nav .links a {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.9rem 1.1rem;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}
nav .links a:hover { color: var(--text); background: var(--panel-2); }
nav .links a.active { color: var(--accent); border-bottom: 2px solid var(--accent); }

/* --- Hero --- */
.hero {
  background: linear-gradient(180deg, #14202f 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 4rem 2rem 3rem;
}
.hero h1 {
  font-size: 2.8rem;
  font-weight: 200;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.hero .subtitle {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 2rem;
}
.hero .cta {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 1rem;
  transition: background 0.15s;
  text-decoration: none;
}
.hero .cta:hover { background: #6dd8ff; text-decoration: none; }

/* --- Section --- */
.section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.section h2 {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 1.5rem;
  text-align: center;
}
.section p {
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

/* --- Cards grid --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  transition: border-color 0.15s, transform 0.15s;
  text-decoration: none;
  color: var(--text);
  display: block;
}
.card:hover { border-color: var(--accent-dim); transform: translateY(-2px); text-decoration: none; }
.card .card-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.card .card-title {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.card .card-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }

/* --- Stats bar --- */
.stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.stat {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  min-width: 140px;
  text-align: center;
}
.stat-value {
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
}
.stat-value.online { color: var(--ok); }
.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* --- Tutorial steps (Grid Layout - NEW) --- */
.step-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.step-grid-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.step-grid-content .step-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.step-grid-content .step-num {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  width: 28px; height: 28px;
  border-radius: 50%;
  text-align: center;
  line-height: 28px;
  font-size: 0.85rem;
  margin-right: 0.75rem;
}

.step-grid-content h3 {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
}

.step-grid-content .step-body {
  color: var(--muted);
  font-size: 0.95rem;
}

.step-grid-content ul {
  margin-top: 0.5rem;
  padding-left: 1.5rem;
}

.step-grid-content li {
  margin-bottom: 0.5rem;
}

.step-grid-image {
  background: var(--panel-2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--border);
}

.step-grid-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5rem;
}

/* --- FAQ accordion --- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  padding: 1rem 0;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::before {
  content: "+";
  display: inline-block;
  width: 24px;
  color: var(--accent);
  font-weight: 600;
  font-size: 1.1rem;
}
.faq-item[open] summary::before { content: "−"; }
.faq-item .faq-body {
  padding: 0 0 1rem 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: #6dd8ff; text-decoration: none; }
.btn-gold { background: var(--gold); color: #000; }
.btn-gold:hover { background: #ddb82e; text-decoration: none; }
.btn-outline { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent-dim); color: var(--text); text-decoration: none; }

/* --- Footer --- */
footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 2rem 1rem 3rem;
  border-top: 1px solid var(--border);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .step-grid {
    grid-template-columns: 1fr;
  }
  .step-grid-image {
    border-left: none;
    border-top: 1px solid var(--border);
    min-height: 200px;
  }
}

@media (max-width: 640px) {
  nav { padding: 0 1rem; }
  nav .logo { padding-right: 0.75rem; font-size: 0.95rem; }
  nav .links a { padding: 0.9rem 0.75rem; font-size: 0.82rem; }
  .hero { padding: 2.5rem 1rem 2rem; }
  .hero h1 { font-size: 1.8rem; }
  .section { padding: 2rem 1rem; }
}