/* ==========================================================================
   Aligned Horizon — shared stylesheet
   Palette: grey · white · red accents  (logo supplies orange/blue)
   ========================================================================== */

:root {
  --bg:           #131316;
  --bg-2:         #17171b;
  --panel:        #1e1e23;
  --panel-2:      #26262c;
  --line:         rgba(255, 255, 255, 0.09);
  --line-strong:  rgba(255, 255, 255, 0.18);

  --red:          #c1121f;
  --red-2:        #e02c2c;
  --red-3:        #ff4d4d;
  --red-glow:     rgba(224, 44, 44, 0.32);

  --white:        #f5f5f7;
  --grey-100:     #d9d9de;
  --grey-300:     #a8a8b0;
  --grey-500:     #77777f;
  --grey-700:     #46464d;

  --maxw: 1180px;
  --radius: 14px;
  --radius-lg: 22px;

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Poppins', var(--font-body);

  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

p { color: var(--grey-300); }

::selection { background: var(--red-2); color: #fff; }

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

.section { padding: 104px 0; position: relative; }
.section--tight { padding: 72px 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red-3);
  margin-bottom: 18px;
}

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px; }
.section-head p { font-size: 17px; }

.lead { font-size: 19px; color: var(--grey-100); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-2) 100%);
  box-shadow: 0 12px 30px var(--red-glow);
}
.btn-primary:hover { box-shadow: 0 16px 40px var(--red-glow); }
.btn-ghost {
  color: var(--white);
  border-color: var(--line-strong);
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover { border-color: var(--red-3); color: #fff; }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- top nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(19, 19, 22, 0.74);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__logo { height: 40px; width: auto; }
.brand__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 18px; letter-spacing: 0.02em; color: #fff;
}
.brand__name span { color: var(--red-3); }

.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a {
  font-size: 15px; color: var(--grey-300); font-weight: 500;
  position: relative; transition: color .18s ease;
}
.nav__links a:hover, .nav__links a.is-active { color: #fff; }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px;
  background: linear-gradient(90deg, var(--red-2), var(--red-3));
  border-radius: 2px;
}
.nav__cta { display: flex; align-items: center; gap: 16px; }

.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; color: #fff;
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 130px 0 90px; overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 55% at 50% 22%, rgba(224,44,44,0.22) 0%, rgba(224,44,44,0) 60%),
    radial-gradient(80% 60% at 50% 120%, rgba(193,18,31,0.20) 0%, rgba(0,0,0,0) 55%),
    linear-gradient(180deg, #131316 0%, #17171c 55%, #131316 100%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: 0; opacity: 0.4;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 80%);
}
.hero__inner { position: relative; z-index: 1; max-width: 900px; }
.hero__logo {
  width: min(360px, 74vw); margin: 0 auto 34px;
  filter: drop-shadow(0 24px 60px rgba(0,0,0,0.6));
}
.hero h1 {
  font-size: clamp(28px, 4.6vw, 50px); color: #fff; margin: 0 auto 20px;
  max-width: 26ch;
}
.hero h1 .accent { color: var(--red-3); }
.hero__slogan {
  font-family: var(--font-display); font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  font-size: clamp(12px, 1.6vw, 15px); color: var(--grey-300);
  margin-bottom: 26px;
}
.hero__sub { font-size: 18px; max-width: 60ch; margin: 0 auto 38px; }
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 1; color: var(--grey-500); font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero__scroll span { width: 1px; height: 34px; background: linear-gradient(var(--red-3), transparent); }

/* ---------- pillars (01 / 02 / 03) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar {
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 38px 32px; transition: transform .2s ease, border-color .2s ease;
}
.pillar:hover { transform: translateY(-6px); border-color: var(--red); }
.pillar__num {
  font-family: var(--font-display); font-weight: 800; font-size: 15px;
  color: #fff; width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 12px; margin-bottom: 22px;
  background: linear-gradient(135deg, var(--red), var(--red-2));
  box-shadow: 0 10px 24px var(--red-glow);
}
.pillar h3 { font-size: 22px; margin-bottom: 12px; color: #fff; }
.pillar p { font-size: 15.5px; }

/* ---------- features grid ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 44px; }
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature__icon {
  flex: none; width: 50px; height: 50px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(224,44,44,0.10); border: 1px solid rgba(224,44,44,0.35);
  color: var(--red-3);
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 18px; margin-bottom: 6px; color: #fff; }
.feature p { font-size: 15px; }

/* ---------- alt / dark band ---------- */
.band { background: var(--bg-2); border-block: 1px solid var(--line); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 28px 16px; }
.stat__num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(34px, 5vw, 52px); line-height: 1;
  background: linear-gradient(120deg, #fff, var(--red-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { margin-top: 10px; font-size: 14px; color: var(--grey-300); letter-spacing: 0.02em; }

/* ---------- CTA band ---------- */
.cta {
  text-align: center;
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(224,44,44,0.18), transparent 60%),
    var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 64px 32px;
}
.cta h2 { font-size: clamp(26px, 4vw, 40px); color: #fff; margin-bottom: 16px; }
.cta p { max-width: 52ch; margin: 0 auto 30px; font-size: 17px; }
.cta .hero__actions { justify-content: center; }

/* ---------- page hero (interior pages) ---------- */
.page-hero {
  position: relative; padding: 150px 0 70px; text-align: center; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(50% 80% at 50% 0%, rgba(224,44,44,0.16), transparent 60%),
    linear-gradient(180deg, #17171c, var(--bg));
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); color: #fff; margin-bottom: 14px; }
.page-hero p { max-width: 56ch; margin: 0 auto; font-size: 18px; }

/* ---------- resource cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; display: flex; flex-direction: column; gap: 14px;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--red); }
.card__icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(224,44,44,0.10); border: 1px solid rgba(224,44,44,0.35); color: var(--red-3);
}
.card__icon svg { width: 26px; height: 26px; }
.card__tag {
  align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--red-3);
  background: rgba(224,44,44,0.10); border: 1px solid rgba(224,44,44,0.3);
  padding: 4px 10px; border-radius: 999px;
}
.card h3 { font-size: 20px; color: #fff; }
.card p { font-size: 15px; flex: 1; }
.card__link {
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  color: var(--red-3); display: inline-flex; align-items: center; gap: 8px;
}
.card__link .arrow { transition: transform .18s ease; }
.card__link:hover .arrow { transform: translateX(4px); }

/* ---------- timeline (campaign progress) ---------- */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--red-2), var(--line));
}
.tl-item { position: relative; padding: 0 0 40px 30px; }
.tl-item::before {
  content: ""; position: absolute; left: -33px; top: 4px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--bg);
  border: 3px solid var(--red-2); box-shadow: 0 0 0 5px rgba(224,44,44,0.12);
}
.tl-item.is-done::before { background: var(--red-2); }
.tl-item.is-active::before { border-color: var(--red-3); box-shadow: 0 0 0 6px rgba(255,77,77,0.20); }
.tl-status {
  font-family: var(--font-display); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--red-3);
}
.tl-item h3 { font-size: 20px; color: #fff; margin: 6px 0 8px; }
.tl-item p { font-size: 15.5px; }

/* progress bars */
.progress-list { display: grid; gap: 26px; max-width: 760px; margin: 0 auto; }
.progress-row__top { display: flex; justify-content: space-between; margin-bottom: 10px; }
.progress-row__label { font-family: var(--font-display); font-weight: 600; color: #fff; font-size: 15px; }
.progress-row__val { color: var(--red-3); font-weight: 600; font-size: 14px; }
.bar { height: 10px; border-radius: 999px; background: var(--panel-2); overflow: hidden; border: 1px solid var(--line); }
.bar__fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--red), var(--red-3)); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: start; }
.contact-info h2 { font-size: 30px; color: #fff; margin-bottom: 16px; }
.contact-info p { font-size: 16px; margin-bottom: 28px; }
.contact-list { display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: center; list-style: none; }
.contact-list .ci {
  width: 44px; height: 44px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: rgba(224,44,44,0.10); border: 1px solid rgba(224,44,44,0.3); color: var(--red-3);
}
.contact-list .ci svg { width: 20px; height: 20px; }
.contact-list b { color: #fff; font-family: var(--font-display); font-weight: 600; display: block; font-size: 15px; }
.contact-list span { color: var(--grey-300); font-size: 14px; }

.form {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px;
}
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--grey-100); margin-bottom: 8px; font-family: var(--font-display); letter-spacing: 0.02em; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg); color: #fff;
  border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 13px 15px; font-family: var(--font-body); font-size: 15px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--red-2); box-shadow: 0 0 0 3px rgba(224,44,44,0.16);
}
.field textarea { resize: vertical; min-height: 130px; }
.form .btn { width: 100%; justify-content: center; }
.form__note { font-size: 12.5px; color: var(--grey-500); margin-top: 14px; text-align: center; }

/* ---------- footer ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 64px 0 30px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 44px; }
.footer__brand p { font-size: 14.5px; margin-top: 16px; max-width: 34ch; }
.footer h4 { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-300); margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { font-size: 14.5px; color: var(--grey-300); transition: color .16s ease; }
.footer ul a:hover { color: #fff; }
.footer__socials { display: flex; gap: 12px; margin-top: 18px; }
.footer__socials a {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--grey-300); transition: all .18s ease;
}
.footer__socials a:hover { border-color: var(--red-3); color: #fff; background: rgba(224,44,44,0.10); }
.footer__socials svg { width: 18px; height: 18px; }
.footer__bottom {
  border-top: 1px solid var(--line); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--grey-500);
}
.footer__bottom a { color: var(--grey-300); }

/* ---------- blog ---------- */
.post-meta { font-size: 13px; color: var(--grey-500); letter-spacing: 0.04em; }
.article { max-width: 760px; margin: 0 auto; }
.article h1 { font-size: clamp(28px, 4.5vw, 42px); color: #fff; margin-bottom: 10px; }
.article .post-meta { display: block; margin-bottom: 34px; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--red-3);
}
.post-body h2 { font-size: 26px; color: #fff; margin: 36px 0 14px; }
.post-body h3 { font-size: 20px; color: #fff; margin: 28px 0 12px; }
.post-body p { margin-bottom: 16px; font-size: 16.5px; }
.post-body ul, .post-body ol { margin: 0 0 18px 22px; color: var(--grey-300); }
.post-body li { margin-bottom: 8px; font-size: 16px; }
.post-body a { color: var(--red-3); text-decoration: underline; }
.post-body blockquote {
  border-left: 3px solid var(--red-2); padding: 6px 0 6px 18px; margin: 20px 0;
  color: var(--grey-100); font-style: italic;
}
.post-body code {
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 6px; padding: 2px 7px; font-size: 14px;
}
.post-body strong { color: #fff; }

/* ---------- donation ---------- */
.donate-points {
  list-style: none; display: flex; justify-content: center; gap: 14px 28px;
  flex-wrap: wrap; margin: 0 0 32px;
}
.donate-points li {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--grey-100); font-size: 15px;
}
.donate-points .dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--red-2); box-shadow: 0 0 10px var(--red-glow);
}
.donate-note { font-size: 13px; color: var(--grey-500); margin-top: 18px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: grid; place-items: center; }
  .nav__links.open {
    display: flex; flex-direction: column; gap: 22px;
    position: absolute; top: 74px; left: 0; right: 0; padding: 28px 24px;
    background: rgba(19,19,22,0.97); border-bottom: 1px solid var(--line);
  }
  .nav__cta .btn { display: none; }
  .pillars, .features, .cards, .stats { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .section { padding: 72px 0; }
  .stats { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr }
}
