/* JEC — Junior Empowerment Circle. Own identity: deep navy + gold. */
:root {
  --bg: #0a1428;
  --bg2: #0d1b33;
  --card: rgba(255, 255, 255, 0.045);
  --line: rgba(245, 185, 66, 0.18);
  --fg: #f2f5fb;
  --muted: #a9b6cc;
  --gold: #f5b942;
  --gold-deep: #c98a1b;
  --blue: #4f8ef7;
  --radius: 1.1rem;
  --font-body: "Inter", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Inter", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: radial-gradient(1200px 600px at 80% -10%, rgba(79, 142, 247, 0.14), transparent 60%),
    radial-gradient(900px 500px at 10% 0%, rgba(245, 185, 66, 0.1), transparent 55%), var(--bg);
  color: var(--fg); font-family: var(--font-body); line-height: 1.65;
}
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #111; padding: .6rem 1rem; z-index: 200; border-radius: 0 0 .6rem 0; }
.skip:focus { left: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .6rem; }
a { color: var(--gold); }
img { max-width: 100%; height: auto; }

/* nav */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(10, 20, 40, 0.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: 72rem; margin: 0 auto; padding: .7rem 1.2rem; display: flex; align-items: center; gap: 1.4rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--fg); font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.brand img { width: 34px; height: 34px; border-radius: .6rem; object-fit: cover; }
.brand small { display: block; font-size: .62rem; font-weight: 500; color: var(--muted); letter-spacing: .08em; }
.nav-links { display: flex; gap: 1.1rem; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.btn { display: inline-block; text-decoration: none; font-weight: 600; border-radius: 999px; padding: .55rem 1.3rem; border: 1px solid transparent; cursor: pointer; font-size: .92rem; }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #1a1206; }
.btn-gold:hover { transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--fg); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-sm { padding: .4rem 1rem; font-size: .85rem; }
.nav-burger { display: none; background: none; border: 1px solid var(--line); border-radius: .6rem; width: 2.4rem; height: 2.4rem; cursor: pointer; }
.nav-burger span { display: block; width: 1.1rem; height: 2px; background: var(--fg); margin: 3px auto; }

/* layout */
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.2rem; }
.hero { padding: 4.5rem 0 3rem; display: grid; gap: 2.5rem; grid-template-columns: 1.25fr 1fr; align-items: center; }
.kicker { display: inline-block; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .9rem; margin: 0 0 1rem; }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
.hero h1 .gold { color: var(--gold); }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 34rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-art img { border-radius: 1.4rem; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 1rem 0 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--gold); }
.stat span { font-size: .85rem; color: var(--muted); }
section.block { padding: 3.2rem 0; }
.eyebrow { color: var(--gold); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 .5rem; }
h2.title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.sub { color: var(--muted); max-width: 44rem; }
.grid { display: grid; gap: 1.1rem; margin-top: 1.8rem; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.card h3 { font-size: 1.1rem; color: var(--gold); }
.card p, .card li { font-size: .94rem; color: var(--muted); }
.card strong { color: var(--fg); }
.card ul { padding-left: 1.1rem; margin: .5rem 0 0; }
.timeline { margin-top: 1.8rem; border-left: 2px solid var(--line); padding-left: 1.4rem; display: grid; gap: 1.2rem; }
.timeline .t { position: relative; }
.timeline .t::before { content: ""; position: absolute; left: calc(-1.4rem - 5px); top: .4rem; width: 8px; height: 8px; border-radius: 999px; background: var(--gold); }
.timeline time { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.timeline h3 { font-size: 1.05rem; margin: .2rem 0; }
.timeline p { font-size: .92rem; color: var(--muted); margin: 0; }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 1.8rem; }
.member { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.member .role { display: inline-block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #1a1206; background: var(--gold); border-radius: 999px; padding: .2rem .7rem; font-weight: 700; }
.member h3 { margin: .7rem 0 .3rem; }
.member p { font-size: .88rem; color: var(--muted); margin: 0 0 .7rem; }
details.faq { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin-top: .8rem; }
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq p { color: var(--muted); font-size: .94rem; }
.mailrow { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 1.4rem; }
.mailrow code { background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: .6rem; padding: .4rem .8rem; font-size: .85rem; }
footer { border-top: 1px solid var(--line); margin-top: 2rem; padding: 2.2rem 0; color: var(--muted); font-size: .88rem; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.5rem; }
footer a { color: var(--muted); text-decoration: none; display: block; margin: .25rem 0; }
footer a:hover { color: var(--gold); }
footer h3 { color: var(--fg); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; padding-top: 3rem; }
  .grid.c3, .team { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links { position: fixed; inset: 57px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: rgba(8, 15, 30, .98); border-bottom: 1px solid var(--line); padding: .6rem 1.2rem 1rem; display: none; margin: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .7rem 0; border-top: 1px solid rgba(255,255,255,.06); }
  .nav-burger { display: block; margin-left: auto; }
  .nav .btn { display: none; }
  .grid.c3, .grid.c2, .team { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn-gold:hover { transform: none; }
}

/* ===== 3D glassmorphism + skeuomorphism layer (visual only) ===== */
body::before, body::after {
  content: ""; position: fixed; z-index: -1; border-radius: 999px;
  filter: blur(90px); opacity: 0.5; pointer-events: none;
}
body::before { width: 480px; height: 480px; top: -160px; right: -120px;
  background: radial-gradient(circle, rgba(245, 185, 66, 0.35), transparent 70%);
  animation: jec-drift 16s ease-in-out infinite alternate; }
body::after { width: 560px; height: 560px; bottom: -200px; left: -160px;
  background: radial-gradient(circle, rgba(79, 142, 247, 0.3), transparent 70%);
  animation: jec-drift 20s ease-in-out infinite alternate-reverse; }
@keyframes jec-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-40px, 50px) scale(1.08); }
}
.card, .stat, .member, details.faq {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02));
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 18px 44px rgba(0, 0, 0, 0.42),
    0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover, .stat:hover, .member:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 26px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(245, 185, 66, 0.12),
    0 6px 18px rgba(0, 0, 0, 0.35);
}
.btn-gold {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -3px 0 rgba(0, 0, 0, 0.22),
    0 10px 26px rgba(245, 185, 66, 0.28),
    0 3px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-gold:hover { transform: translateY(-2px); }
.btn-gold:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 2px 6px rgba(0, 0, 0, 0.3),
    0 2px 6px rgba(0, 0, 0, 0.4);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.2s ease;
}
.btn-ghost:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.3);
}
.nav {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 32px rgba(0, 0, 0, 0.4);
}
.hero-art img {
  box-shadow:
    0 0 0 1px rgba(245, 185, 66, 0.22),
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 8px 24px rgba(0, 0, 0, 0.4);
}
h1 { text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45); }
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; }
  .card:hover, .stat:hover, .member:hover { transform: none; }
}

/* ===== Light theme (data-theme="light"; dark is default) ===== */
[data-theme="light"] {
  --bg: #f4f1e8;
  --bg2: #ffffff;
  --card: rgba(255, 255, 255, 0.72);
  --line: rgba(150, 110, 20, 0.32);
  --fg: #1b2436;
  --muted: #57627a;
  --gold: #a86e0e;
  --gold-deep: #8a5a0a;
  --blue: #2f62c4;
}
[data-theme="light"] body {
  background: radial-gradient(1200px 600px at 80% -10%, rgba(47, 98, 196, 0.1), transparent 60%),
    radial-gradient(900px 500px at 10% 0%, rgba(168, 110, 14, 0.12), transparent 55%), var(--bg);
}
[data-theme="light"] .nav { background: rgba(255, 255, 255, 0.85); }
[data-theme="light"] body::before,
[data-theme="light"] body::after { opacity: 0.28; }
[data-theme="light"] .card,
[data-theme="light"] .stat,
[data-theme="light"] .member,
[data-theme="light"] details.faq {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(120, 90, 20, 0.12),
    0 14px 34px rgba(60, 50, 20, 0.12),
    0 3px 8px rgba(60, 50, 20, 0.08);
}
[data-theme="light"] .card:hover,
[data-theme="light"] .stat:hover,
[data-theme="light"] .member:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 20px 44px rgba(60, 50, 20, 0.16),
    0 0 0 1px rgba(168, 110, 14, 0.2);
}
[data-theme="light"] h1 { text-shadow: none; }
[data-theme="light"] .nav-links.open { background: rgba(255, 255, 255, 0.98); }

/* theme toggle button */
.theme-toggle {
  width: 2.4rem; height: 2.4rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--fg);
  font-size: 1.05rem; line-height: 1; flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.12s ease;
}
.theme-toggle:active { transform: scale(0.92); }

/* staged hero entrance */
@media (prefers-reduced-motion: no-preference) {
  .js-on .hero > div:first-child > * { opacity: 0; transform: translateY(18px); }
  body.loaded .hero > div:first-child > * { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }
  body.loaded .hero > div:first-child > *:nth-child(2) { transition-delay: 0.08s; }
  body.loaded .hero > div:first-child > *:nth-child(3) { transition-delay: 0.16s; }
  body.loaded .hero > div:first-child > *:nth-child(4) { transition-delay: 0.24s; }
  body.loaded .hero > div:first-child > *:nth-child(5) { transition-delay: 0.32s; }
}
