/* Solscan Guide — dark navy Web3 theme */
:root {
  --bg: #0d1226;
  --bg-alt: #121834;
  --card: #161d3d;
  --border: #27305c;
  --text: #f2f5fc;
  --muted: #aab3cf;
  --primary: #4f7dff;
  --violet: #a06bff;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.text-gradient {
  background: linear-gradient(120deg, var(--primary), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 18, 38, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.logo {
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-desktop { display: flex; gap: 1.5rem; }

.nav-desktop a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-desktop a:hover { color: var(--text); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.4rem;
}

.nav-mobile {
  border-top: 1px solid var(--border);
  padding: 0.5rem 1.25rem 0.9rem;
}

.nav-mobile a {
  display: block;
  padding: 0.55rem 0.5rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 8px;
}

.nav-mobile a:hover { background: var(--bg-alt); color: var(--text); }

/* Hero */
.hero {
  position: relative;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(90, 80, 220, 0.28), transparent);
  overflow: hidden;
}

.hero-inner {
  text-align: center;
  padding-top: 4.5rem;
  padding-bottom: 3.5rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 46rem;
  margin: 0 auto;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 40rem;
  margin: 1.25rem auto 0;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-img {
  margin-top: 3rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.2s, background 0.2s, border-color 0.2s;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { opacity: 0.88; }

.btn-secondary {
  background: var(--bg-alt);
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover { background: var(--card); border-color: var(--primary); }

.btn-sm { padding: 0.55rem 1rem; font-size: 0.85rem; }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: rgba(22, 29, 61, 0.45); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.section-sub { color: var(--muted); max-width: 40rem; margin: 0; }

.about p { color: var(--muted); max-width: 52rem; }

/* Cards */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 2.5rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 0 40px -8px rgba(79, 125, 255, 0.4);
}

.card h3 { margin: 0.75rem 0 0.5rem; font-size: 1.05rem; line-height: 1.4; }
.card p { color: var(--muted); font-size: 0.9rem; flex: 1; margin: 0 0 1.25rem; }
.card .btn { align-self: flex-start; }

.card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(79, 125, 255, 0.15);
  border-radius: 10px;
  font-size: 1.25rem;
}

/* Full guides & articles */
.guides { margin-top: 3rem; display: grid; gap: 1.5rem; }

.guide {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  scroll-margin-top: 6rem;
}

.guide h3 { margin: 0 0 0.75rem; font-size: 1.2rem; }
.guide p, .guide li { color: var(--muted); }
.guide ol { padding-left: 1.25rem; }
.guide li { margin-bottom: 0.4rem; }

/* FAQ */
.faq-container { max-width: 48rem; }

.faq-list { margin-top: 2rem; display: grid; gap: 0.75rem; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-align: left;
  padding: 1rem 1.25rem;
  cursor: pointer;
}

.faq-chevron { color: var(--muted); transition: transform 0.2s; }
.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  padding: 0 1.25rem 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.safety-note {
  margin-top: 2rem;
  background: rgba(160, 107, 255, 0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.safety-note strong { color: var(--text); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); }

.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.footer-heading { font-weight: 600; font-size: 0.9rem; margin: 0 0 0.75rem; }
.footer-text { color: var(--muted); font-size: 0.88rem; margin: 0.75rem 0 0; }

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.88rem; }
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 1.25rem;
  color: var(--muted);
  font-size: 0.78rem;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: opacity 0.2s;
}

.back-to-top:hover { opacity: 0.88; }

/* Responsive */
@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: block; }
  .hero-inner { padding-top: 3rem; }
  .section { padding: 3rem 0; }
}
