:root{
  --bg0:#040915;
  --bg1:#0b1a30;
  --card: rgba(10, 18, 34, .85);
  --stroke: rgba(255,255,255,.12);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --muted2: rgba(255,255,255,.52);
  --accent:#33ddff;
  --accent2:#7b6dff;
  --accent3:#f7a93d;
  --r: 18px;
}

.about-page{
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 18px 90px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--text);
}

.about-page .card{
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.about-page .card:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 22px 70px rgba(0,0,0,.5);
}

.card{
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, rgba(10,18,34,.92), rgba(6,12,24,.92));
  border: 1px solid var(--stroke);
  border-radius: var(--r);
  box-shadow: 0 18px 55px rgba(0,0,0,.42);
}

.eyebrow{
  color: var(--muted2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.lead{
  color: var(--muted);
  max-width: 80ch;
  line-height: 1.55;
}

.muted{ color: var(--muted); }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration:none;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--text);
  gap: 8px;
}
.btn:hover{ filter: brightness(1.06); }
.btn--primary{
  color: #fff;
  border-color: rgba(0,10,255,1);
  background: rgba(0,10,255,.45);
  box-shadow: 0 8px 20px rgba(0,10,255,.55);
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 7px 12px;
}
.btn--soft{
  border-color: rgba(123,109,255,.35);
  background: linear-gradient(90deg, rgba(123,109,255,.20), rgba(123,109,255,.10));
}
.btn--ghost{
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.14);
}

.pill{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  font-size: 12px;
  font-weight: 900;
  color: var(--text);
}
.pill--accent{ border-color: rgba(51,221,255,.45); background: rgba(51,221,255,.14); }
.pill--accent2{ border-color: rgba(123,109,255,.45); background: rgba(123,109,255,.16); }
.pill--ghost{ border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: var(--muted); }

/* HERO */
.about-hero{
  padding: 26px;
  display:flex;
  flex-direction:column;
  gap: 18px;
}
.about-hero::after{
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='900' height='420' viewBox='0 0 900 420' fill='none'><path d='M60 260c30-40 80-60 140-60 70 0 120 30 160 80' stroke='%23bcd3ff' stroke-width='2' stroke-linecap='round' opacity='0.35'/><path d='M420 120c30-30 70-45 120-45 70 0 120 25 160 70' stroke='%23bcd3ff' stroke-width='2' stroke-linecap='round' opacity='0.25'/><path d='M520 300c35-35 75-52 130-52 70 0 120 28 170 78' stroke='%23bcd3ff' stroke-width='2' stroke-linecap='round' opacity='0.25'/><path d='M140 340c20-24 50-36 90-36 50 0 85 18 110 48' stroke='%23bcd3ff' stroke-width='2' stroke-linecap='round' opacity='0.22'/></svg>");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right center;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.about-hero__orb{
  position:absolute;
  width: 540px; height: 540px;
  border-radius: 999px;
  filter: blur(32px);
  opacity: .16;
  pointer-events:none;
  animation: orbFloat 12s ease-in-out infinite;
}
.orb-a{ top:-260px; left:-260px; background: var(--accent); }
.orb-b{ top:-300px; right:-260px; background: var(--accent2); animation-delay: -4s; }
.about-hero__head{
  position: relative;
  z-index: 1;
  display:flex;
  flex-direction:column;
  gap: 10px;
  max-width: 720px;
}
.about-hero h1{
  margin: 0;
  font-size: 36px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hero-tags{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  margin-top: 2px;
}
.hero-cta{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.about-hero__stats{
  position: relative;
  z-index: 1;
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.stat{
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.stat:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
}
.stat__k{
  font-weight: 900;
  color: var(--text);
  font-size: 16px;
  letter-spacing: .02em;
}
.stat__v{
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

/* PANELS */
.about-panels{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.panel{
  padding: 18px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.panel__meta{
  display:flex;
  gap: 8px;
  flex-wrap:wrap;
}
.panel h2{
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.panel p{
  line-height: 1.55;
}
.list-dash{
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}
.list-dash li{ margin: 6px 0; }

.timeline{
  position: relative;
  display: grid;
  gap: 16px;
  margin-top: 8px;
  padding-left: 24px;
}
.timeline::before{
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 8px;
  width: 2px;
  background: linear-gradient(180deg, rgba(51,221,255,.5), rgba(123,109,255,.25));
  box-shadow: 0 0 0 4px rgba(51,221,255,.08);
}
.timeline__entry{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: start;
}
.timeline__marker{
  display: grid;
  gap: 6px;
  position: relative;
}
.timeline__marker::before{
  content: "";
  position: absolute;
  top: 12px;
  left: -20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 0 6px rgba(51,221,255,.15);
}
.timeline__year{
  font-weight: 900;
  font-size: 16px;
  color: var(--text);
}
.timeline__badge{
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted2);
}
.timeline__card{
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
}
.timeline__title{
  margin: 0;
  font-weight: 900;
  color: var(--text);
  font-size: 16px;
}
.timeline__text{
  font-size: 13px;
  line-height: 1.5;
  margin: 6px 0 10px;
}
.timeline__meta{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.timeline__tag{
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,.14);
  color: var(--muted);
}

@media (max-width: 900px){
  .timeline{
    padding-left: 16px;
  }
  .timeline__entry{
    grid-template-columns: 1fr;
  }
  .timeline__marker{
    grid-auto-flow: column;
    align-items: center;
  }
  .timeline__marker::before{
    left: -16px;
  }
}

/* FEATURES */
.feature-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.feature{
  padding: 16px;
  display:flex;
  flex-direction:column;
  gap: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent 50%), var(--card);
}
.feature h3{
  margin: 0;
  font-size: 18px;
}
.feature p{
  line-height: 1.55;
}
.feature .badge{
  align-self:flex-start;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
}
.feature .badge--alt{
  border-color: rgba(123,109,255,.42);
  background: rgba(123,109,255,.16);
}

/* COMMUNITY / CONTACT */
.about-community,
.about-contact{
  padding: 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}
.about-community__actions,
.about-contact__actions{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}
.about-contact h2,
.about-community h2{
  margin: 2px 0 6px;
}

@keyframes orbFloat{
  0%{ transform: translateY(0); }
  50%{ transform: translateY(14px); }
  100%{ transform: translateY(0); }
}

/* Responsive */
@media (max-width: 980px){
  .about-hero h1{ font-size: 30px; }
  .about-panels{ grid-template-columns: 1fr; }
  .about-community,
  .about-contact{ flex-direction: column; align-items:flex-start; }
}

@media (max-width: 640px){
  .about-hero{ padding: 20px; }
  .about-hero h1{ font-size: 26px; }
}

@media (prefers-reduced-motion: reduce){
  .about-page .card,
  .stat{ transition: none; }
  .about-hero__orb{ animation: none; }
}

/* Light theme fixes */
body[data-theme="clair"] .about-page{
  color: #0f172a;
}
body[data-theme="clair"] .card,
body[data-theme="clair"] .stat,
body[data-theme="clair"] .timeline__card,
body[data-theme="clair"] .feature{
  background: rgba(255,255,255,.96);
  border-color: rgba(15,23,42,.12);
  box-shadow: 0 14px 30px rgba(15,23,42,.12);
}
body[data-theme="clair"] .eyebrow,
body[data-theme="clair"] .lead,
body[data-theme="clair"] .muted,
body[data-theme="clair"] .list-dash,
body[data-theme="clair"] .timeline__badge,
body[data-theme="clair"] .timeline__tag,
body[data-theme="clair"] .stat__v{
  color: #475569;
}
body[data-theme="clair"] .about-hero h1,
body[data-theme="clair"] .panel h2,
body[data-theme="clair"] .timeline__title,
body[data-theme="clair"] .timeline__year,
body[data-theme="clair"] .feature h3,
body[data-theme="clair"] .about-contact h2,
body[data-theme="clair"] .about-community h2,
body[data-theme="clair"] .stat__k{
  color: #0f172a !important;
}
body[data-theme="clair"] .about-hero,
body[data-theme="clair"] .panel,
body[data-theme="clair"] .about-community,
body[data-theme="clair"] .about-contact,
body[data-theme="clair"] .timeline__card,
body[data-theme="clair"] .feature{
  color: #0f172a !important;
}
body[data-theme="clair"] .pill,
body[data-theme="clair"] .timeline__badge,
body[data-theme="clair"] .timeline__tag{
  color: #0f172a !important;
  border-color: rgba(15,23,42,.2);
  background: rgba(15,23,42,.06);
}
body[data-theme="clair"] .timeline__year{
  color: #0f172a !important;
}
