/* ============ TOKENS ============ */
:root {
  --bg: #060c18;
  --bg-alt: #0a1322;
  --surface: #101b30;
  --surface-2: #16243f;
  --border: #1f3559;
  --text: #e8eefc;
  --muted: #8ba0c4;
  --accent: #3b82f6;
  --accent-2: #38bdf8;
  --accent-grad: linear-gradient(120deg, #2563eb 0%, #3b82f6 55%, #38bdf8 100%);
  --radius: 16px;
  --maxw: 1080px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: "Sora", sans-serif; line-height: 1.15; letter-spacing: -0.02em; }

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

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(10, 14, 26, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(10, 14, 26, 0.9); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav__logo { font-family: "Sora"; font-weight: 700; font-size: 1.4rem; letter-spacing: -0.03em; }
.nav__logo span { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-size: .92rem; color: var(--muted); font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  padding: 8px 18px; border-radius: 999px; background: var(--accent-grad);
  color: #fff !important; font-weight: 600;
}
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden; padding: 120px 0 80px;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 50% at 20% 20%, rgba(37,99,235,.28), transparent 60%),
    radial-gradient(50% 50% at 85% 30%, rgba(56,189,248,.20), transparent 60%),
    radial-gradient(60% 60% at 60% 100%, rgba(59,130,246,.16), transparent 60%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 54px 54px; opacity: .12;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
}
.hero__inner { position: relative; z-index: 1; max-width: 820px; }
.hero__eyebrow {
  display: inline-block; font-size: .85rem; color: var(--accent);
  background: rgba(59,130,246,.12); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 26px; font-weight: 500;
}
.hero__title {
  font-size: clamp(3rem, 9vw, 6rem); font-weight: 700; margin-bottom: 10px;
  background: linear-gradient(180deg, #fff 30%, #b9c4e0); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__sub {
  font-family: "Sora"; font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  font-weight: 500; color: var(--text); margin-bottom: 22px;
}
.hero__lead { font-size: clamp(1rem, 1.8vw, 1.18rem); color: var(--muted); max-width: 640px; margin-bottom: 18px; }
.hero__tagline {
  font-style: italic; color: var(--text); border-left: 3px solid var(--accent);
  padding-left: 16px; margin-bottom: 36px; max-width: 600px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 1; }
.hero__scroll span {
  display: block; width: 22px; height: 36px; border: 2px solid var(--muted); border-radius: 12px; position: relative;
}
.hero__scroll span::after {
  content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 7px; background: var(--muted); border-radius: 2px;
  animation: scroll 1.6s ease infinite;
}
@keyframes scroll { 0%{opacity:1;top:7px} 70%{opacity:0;top:18px} 100%{opacity:0} }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; padding: 12px 24px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; transition: transform .2s, box-shadow .2s, background .2s; cursor: pointer;
}
.btn--primary { background: var(--accent-grad); color: #fff; box-shadow: 0 10px 30px -8px rgba(37,99,235,.55); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(37,99,235,.7); }
.btn--ghost { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); transform: translateY(-2px); }

/* ============ SECTIONS ============ */
.section { padding: 100px 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section__kicker { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 12px; }
.section__title { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 700; margin-bottom: 44px; }

/* ============ ABOUT ============ */
.about__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.about__text p { color: var(--muted); margin-bottom: 18px; font-size: 1.05rem; }
.about__text strong { color: var(--text); font-weight: 600; }
.about__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fact {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 18px; text-align: center;
}
.fact__num {
  display: block; font-family: "Sora"; font-size: 2rem; font-weight: 700;
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.fact__label { font-size: .82rem; color: var(--muted); }

/* ============ CARDS ============ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .25s, border-color .25s; position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  background: var(--accent-grad); opacity: 0; transition: opacity .25s; z-index: -1;
}
.card:hover { transform: translateY(-6px); border-color: var(--accent); }
.card__icon { font-size: 2rem; margin-bottom: 14px; }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .96rem; }

/* ============ PROJECTS ============ */
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.project {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; transition: transform .25s, border-color .25s;
}
.project:hover { transform: translateY(-4px); border-color: var(--accent); }
.project__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.project__head h3 { font-size: 1.3rem; }
.project__tag {
  font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent); background: rgba(59,130,246,.14); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.project p { color: var(--muted); margin-bottom: 18px; font-size: .98rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: .8rem; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border); padding: 5px 12px; border-radius: 999px;
}

/* ============ TIMELINE ============ */
.timeline { list-style: none; display: grid; gap: 14px; max-width: 760px; }
.timeline li {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 20px; color: var(--muted); border-left: 3px solid var(--accent);
}
.timeline__role { color: var(--text); font-weight: 600; font-family: "Sora"; }

/* ============ AWARDS ============ */
.awards { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.awards li {
  display: flex; align-items: center; gap: 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; color: var(--muted);
}
.awards li strong {
  flex-shrink: 0; min-width: 42px; text-align: center; font-family: "Sora";
  font-size: 1.05rem; color: var(--accent);
}
.awards__note { margin-top: 26px; color: var(--muted); font-style: italic; max-width: 760px; }

/* ============ COMMUNITY CTA ============ */
.section--cta { background: var(--bg-alt); }
.community { max-width: 820px; }
.community__lead { font-size: 1.15rem; color: var(--muted); margin-bottom: 18px; }
.community__goal {
  font-size: 1.3rem; font-family: "Sora"; font-weight: 500; color: var(--text);
  border-left: 3px solid var(--accent); padding-left: 18px;
}

/* ============ CONTACT ============ */
.contact { max-width: 720px; }
.contact__lead { font-size: 1.1rem; color: var(--muted); margin-bottom: 28px; }
.contact__links { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }

/* ============ REVEAL ANIMATION ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .projects { grid-template-columns: 1fr; }
  .awards { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .nav__links {
    position: fixed; top: 68px; right: 0; flex-direction: column; align-items: flex-start;
    background: var(--bg-alt); border-left: 1px solid var(--border); border-bottom: 1px solid var(--border);
    padding: 22px; gap: 18px; width: 220px; transform: translateX(110%); transition: transform .3s; height: auto;
  }
  .nav__links.open { transform: none; }
  .nav__toggle { display: flex; }
  .cards { grid-template-columns: 1fr; }
  .about__facts { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
}
