/* Base reset and theme tokens */
:root {
  --bg: #040816;
  --bg-soft: #0b1430;
  --card: rgba(11, 20, 48, 0.55);
  --line: rgba(146, 177, 255, 0.25);
  --text: #eaf2ff;
  --muted: #b8c8ee;
  --primary: #7aa2ff;
  --primary-strong: #4d7dff;
  --shadow: 0 18px 50px rgba(8, 19, 44, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: radial-gradient(circle at 20% 20%, #12203f 0%, var(--bg) 45%, #03050d 100%);
  color: var(--text);
  line-height: 1.7;
  position: relative;
  overflow-x: hidden;
}

.bg-layer {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -2;
  opacity: 0.45;
}

.bg-layer--one {
  width: 320px;
  height: 320px;
  background: #2f66ff;
  top: -60px;
  left: -40px;
}

.bg-layer--two {
  width: 420px;
  height: 420px;
  background: #2c3f7d;
  bottom: -120px;
  right: -120px;
}

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

.section {
  padding: 4.5rem 0;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 0.7rem 0 1.1rem;
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  margin-bottom: 0.9rem;
}

a {
  color: inherit;
  text-decoration: none;
}

p + p {
  margin-top: 0.85rem;
}

.eyebrow {
  color: #8eb3ff;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.lead {
  max-width: 65ch;
  color: var(--muted);
}

.center {
  text-align: center;
}

/* Reusable glassmorphism card */
.glass-card {
  background: linear-gradient(155deg, rgba(21, 36, 80, 0.62), var(--card));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(9px);
}

/* Header and navigation */
.site-header {
  position: sticky;
  top: 1rem;
  z-index: 20;
  padding: 1rem 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.1rem;
}

.brand {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

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

.menu-toggle {
  display: none;
  font-size: 1.25rem;
  color: var(--text);
  background: transparent;
  border: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.78rem 1.3rem;
  font-weight: 600;
  font-size: 0.93rem;
  color: #eff4ff;
  background: linear-gradient(130deg, var(--primary), var(--primary-strong));
  box-shadow: 0 0 0 0 rgba(77, 125, 255, 0.4);
  transition: transform 0.24s ease, box-shadow 0.24s ease, opacity 0.24s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 26px 4px rgba(77, 125, 255, 0.35);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(154, 183, 255, 0.5);
}

.btn-small {
  padding: 0.6rem 1rem;
  font-size: 0.86rem;
}

.button-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* Hero */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: center;
}

.illustration {
  padding: 1rem;
}

.illustration img,
.founder-photo img {
  width: 100%;
  border-radius: 14px;
  display: block;
}

.founder-photo img {
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center top;
}

/* Founder */
.founder-wrap {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 1.25rem;
  padding: 1.2rem;
}

.founder-wrap h3,
.notice,
.feature-list,
.service-card p,
.course-card p,
.community-pillars p,
#community p,
#vision p {
  color: var(--muted);
}

/* Shared split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  padding: 1.35rem;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.feature-list li::before {
  content: '◆';
  color: #81a5ff;
  margin-right: 0.5rem;
}

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

.service-card,
.course-card,
.auth-panel,
#vision .glass-card {
  padding: 1.1rem;
}

.service-card {
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.service-card:hover,
.course-card:hover {
  transform: translateY(-5px);
  border-color: rgba(157, 190, 255, 0.55);
}

.icon {
  font-size: 1.25rem;
}

.notice {
  margin-top: 0.9rem;
  text-align: center;
}

.price {
  margin: 0.8rem 0;
  font-size: 1rem;
  font-weight: 700;
  color: #dce9ff !important;
}

.auth-panel {
  margin-top: 1rem;
}

.community-pillars {
  display: grid;
  gap: 0.6rem;
}

.community-pillars p {
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 14, 32, 0.45);
}

.vision-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.vision-grid article {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem;
  background: rgba(8, 14, 32, 0.42);
}

.cta {
  padding: 2.1rem;
  text-align: center;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  margin-top: 1rem;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.socials {
  display: flex;
  gap: 0.9rem;
}

.socials a,
.site-footer p {
  color: var(--muted);
}

/* Responsive behavior */
@media (max-width: 900px) {
  .hero-grid,
  .founder-wrap,
  .split,
  .vision-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    top: 0;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    right: 4%;
    top: 84px;
    width: min(320px, 92%);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(8, 14, 32, 0.97);
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .footer-wrap {
    flex-direction: column;
    text-align: center;
  }
}
