/* Base + Reset */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: 'Rajdhani', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.7;
  color: #e8edf7;
  background: radial-gradient(1000px 700px at 80% -20%, #1a2a6c 0%, transparent 50%),
              radial-gradient(900px 700px at -10% 10%, #0f3460 0%, transparent 40%),
              #0b1020;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessibility helpers */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* Skip link */
.skip-link {
  position: fixed;
  left: 1rem; top: 0.5rem;
  background: #22d3ee; color: #082032;
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  transform: translateY(-150%);
  transition: transform .2s ease-in-out;
  font-weight: 700;
  z-index: 1000;
}
.skip-link:focus { transform: translateY(0); outline: 3px solid #fff; }

/* Containers */
.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(8, 15, 38, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none;
}
.logo-glyph { font-size: 1.35rem; }
.brand-text {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700; letter-spacing: 0.5px; color: #e8edf7;
}

/* Nav */
.nav-toggle {
  justify-self: end;
  display: none; /* shown on small screens */
  width: 42px; height: 42px;
  background: transparent; color: #e8edf7; border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px; cursor: pointer;
}
.nav-toggle:focus-visible { outline: 3px solid #22d3ee; outline-offset: 3px; }
.nav-toggle-bar {
  display: block; width: 22px; height: 2px; margin: 5px auto;
  background: currentColor; border-radius: 1px;
}

.site-nav { justify-self: end; }
.nav-list {
  list-style: none; display: flex; align-items: center; gap: 1.25rem;
  margin: 0; padding: 0;
}
.nav-link, .btn-donate {
  color: #cfe7ff; text-decoration: none; font-weight: 700; font-size: 1.05rem;
}
.nav-link:hover, .nav-link:focus { color: #22d3ee; }

.btn-donate {
  padding: 0.55rem 0.85rem; border: 1px solid #22d3ee; border-radius: 8px;
  transition: background .2s ease, color .2s ease, transform .06s ease;
}
.btn-donate:hover, .btn-donate:focus {
  background: #22d3ee; color: #082032;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 6vw, 6rem) 0;
}
.hero-inner {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center;
}
.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.15; margin: 0 0 1rem;
  color: #f4f8ff;
  text-shadow: 0 2px 24px rgba(18, 185, 240, 0.25);
}
.hero-sub { font-size: 1.15rem; color: #cfe7ff; }
.hero-note { margin-top: 0.75rem; color: #9fc1ff; }

.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.7rem 1rem;
  border-radius: 10px; border: 1px solid transparent;
  text-decoration: none; font-weight: 800; letter-spacing: 0.3px;
}
.btn-primary { background: #22d3ee; color: #082032; }
.btn-primary:hover, .btn-primary:focus { filter: brightness(1.05); }
.btn-ghost {
  border-color: rgba(255,255,255,0.25); color: #e8edf7; background: transparent;
}
.btn-ghost:hover, .btn-ghost:focus { background: rgba(255,255,255,0.08); }
.btn-inline { color: #22d3ee; text-underline-offset: 2px; }
.btn-lg { padding: 0.85rem 1.15rem; }

.link-underline { color: #22d3ee; text-decoration: underline; text-underline-offset: 2px; }
.link-underline:focus-visible { outline: 3px solid #22d3ee; outline-offset: 3px; }

.hero-visual {
  margin: 0; border-radius: 16px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.hero-visual img { width: 100%; height: auto; display: block; }

/* Sections */
.section { padding: clamp(2rem, 6vw, 4rem) 0; }
.section-alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0)) ;
}
.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 1rem; color: #f3f8ff;
}
.lead { font-size: 1.125rem; color: #d6e6ff; }
.accent { color: #22d3ee; }

/* Content blocks */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.feature-list { margin: 0; padding-left: 1.2rem; }
.feature-list li { margin: 0.4rem 0; }

.content-block + .content-block { margin-top: 1.25rem; }
.note {
  border-left: 4px solid #22d3ee;
  background: rgba(34, 211, 238, 0.08);
  padding: 0.9rem 1rem; border-radius: 10px; color: #cfe7ff;
}

/* Roadmap */
.roadmap {
  margin: 0; padding-left: 1.1rem; color: #cfe7ff;
}
.roadmap li { margin: 0.5rem 0; }

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(8, 15, 38, 0.8);
}
.footer-inner { padding: 1.25rem 0; text-align: center; color: #bcd6ff; }

/* Buttons focus */
.btn:focus-visible, .btn-donate:focus-visible, .nav-link:focus-visible {
  outline: 3px solid #22d3ee; outline-offset: 3px;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    position: absolute; inset: 60px 0 auto 0; padding: 0.5rem 0;
    background: rgba(8, 15, 38, 0.98); border-bottom: 1px solid rgba(255,255,255,0.08);
    transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .site-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-list { flex-direction: column; gap: 0.5rem; }
}

/* High-contrast focus if user prefers */
@media (prefers-contrast: more) {
  .btn, .btn-donate, .nav-link { text-decoration: underline; }
}
