:root {
    --bg-deep: #0A0C14;
    --bg-mid: #121725;
    --bg-ink: #070912;
    --text: #F4F7FB;
    --muted: #C7D0DE;
    --blue: #8FBDF8;
    --cyan: #8BD3FF;
    --purple: #B9A7FF;
    --green: #2FB46F;
    --amber: #F2C94C;
    --coral: #E94B5F;
    --teal: #6EE7B7;
    --mak-green: #1F7A3F;
    --mak-gold: #F2C94C;
    --mak-red: #EF3340;
    --border: rgba(255, 255, 255, 0.1);
    --panel: rgba(255, 255, 255, 0.04);
    --panel-strong: rgba(255, 255, 255, 0.07);
    --radius: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(1200px 600px at 15% -10%, rgba(143, 189, 248, 0.16), transparent),
        radial-gradient(1000px 520px at 100% 10%, rgba(185, 167, 255, 0.14), transparent),
        linear-gradient(160deg, var(--bg-deep), var(--bg-mid) 55%, var(--bg-ink));
    background-color: var(--bg-ink);
    color: var(--text);
    line-height: 1.55;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
svg { display: block; }

h1, h2, h3, h4 {
    font-family: "Space Grotesk", "Inter", sans-serif;
    line-height: 1.15;
    margin: 0;
}

p { margin: 0; }

a { color: inherit; }

.wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mak-gold);
}

.icon {
    width: 1em;
    height: 1em;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Scroll reveal ---------- */

[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.pain-grid [data-reveal]:nth-child(2) { transition-delay: 70ms; }
.pain-grid [data-reveal]:nth-child(3) { transition-delay: 140ms; }
.pain-grid [data-reveal]:nth-child(4) { transition-delay: 210ms; }

.steps [data-reveal]:nth-child(2) { transition-delay: 90ms; }
.steps [data-reveal]:nth-child(3) { transition-delay: 180ms; }
.steps [data-reveal]:nth-child(4) { transition-delay: 270ms; }

.feature-grid [data-reveal]:nth-child(2) { transition-delay: 60ms; }
.feature-grid [data-reveal]:nth-child(3) { transition-delay: 120ms; }
.feature-grid [data-reveal]:nth-child(4) { transition-delay: 60ms; }
.feature-grid [data-reveal]:nth-child(5) { transition-delay: 120ms; }
.feature-grid [data-reveal]:nth-child(6) { transition-delay: 180ms; }
.feature-grid [data-reveal]:nth-child(7) { transition-delay: 60ms; }
.feature-grid [data-reveal]:nth-child(8) { transition-delay: 120ms; }

@media (prefers-reduced-motion: reduce) {
    body { animation: none; }
    [data-reveal] { opacity: 1; transform: none; transition: none; }
    * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(8, 10, 19, 0.94);
    border-bottom: 1px solid var(--border);
    animation: fadeDown 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-14px); }
    to { opacity: 1; transform: translateY(0); }
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.brand img { width: 38px; height: 38px; border-radius: 10px; }

.brand-name {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
}

.brand-tagline {
    display: block;
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    position: relative;
    text-decoration: none;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 160ms ease;
    padding-bottom: 4px;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--blue), var(--purple));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { transform: scaleX(1); }

.main-nav a[aria-current="page"] { color: var(--text); }
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 14px; }

@media (max-width: 860px) {
    .main-nav { display: none; }
}

@media (max-width: 560px) {
    .site-header .wrap { height: auto; padding-top: 14px; padding-bottom: 14px; }
    .brand-tagline { display: none; }
    .brand img { width: 32px; height: 32px; }
    .brand-name { font-size: 1.05rem; }
    .header-actions .btn-ghost { display: none; }
    .header-actions .btn { padding: 10px 16px; font-size: 0.86rem; }
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.94rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), filter 200ms ease, background 200ms ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    background-size: 200% 200%;
    color: #07111F;
    box-shadow: 0 12px 30px -8px rgba(143, 189, 248, 0.45);
    animation: sheen 6s ease-in-out infinite;
}

@keyframes sheen {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.btn-primary:hover { filter: brightness(1.08); transform: translateY(-2px); }

.btn-ghost {
    background: var(--panel);
    border-color: var(--border);
    color: var(--text);
}

.btn-ghost:hover { background: var(--panel-strong); transform: translateY(-2px); }

.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

.btn .icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Hero ---------- */

.hero {
    padding: 72px 0 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.2rem, 4.4vw, 3.4rem);
    margin: 18px 0 20px;
    letter-spacing: -0.01em;
}

.hero h1 .accent {
    background: linear-gradient(100deg, var(--cyan), var(--purple), var(--cyan));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: sheen 7s ease-in-out infinite;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 46ch;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--muted);
}

.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }

.pulse-dot {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
}

.pulse-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--green);
    opacity: 0.55;
    animation: pulseRing 2.2s ease-out infinite;
}

@keyframes pulseRing {
    0% { transform: scale(0.5); opacity: 0.55; }
    100% { transform: scale(2.2); opacity: 0; }
}

@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; }
}

.hero-figure { perspective: 1200px; }

.laptop-tilt {
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
    transform-style: preserve-3d;
}

/* ---------- Laptop mockup ---------- */

.laptop {
    width: 100%;
    max-width: 660px;
    margin: 0 auto;
    filter: drop-shadow(0 40px 70px rgba(0, 0, 0, 0.6));
    animation: floatLaptop 7s ease-in-out infinite;
}

.hero-grid .laptop { max-width: 700px; }

@keyframes floatLaptop {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.laptop-lid {
    background: linear-gradient(180deg, #2a2d36, #14161c);
    border-radius: 16px 16px 4px 4px;
    padding: 10px 10px 14px;
    position: relative;
    box-shadow: 0 0 0 1px rgba(143, 189, 248, 0.12), 0 0 60px rgba(143, 189, 248, 0.14);
}

.laptop-camera {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #05060a;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.04);
}

.laptop-screen {
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-ink);
    position: relative;
}

.laptop-screen img {
    width: 100%;
    height: auto;
    display: block;
    filter: saturate(1.08) contrast(1.03);
}


.laptop-base {
    height: 13px;
    background: linear-gradient(180deg, #3d4049, #202329);
    border-radius: 0 0 10px 10px;
    position: relative;
}

.laptop-base::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 15%;
    height: 5px;
    background: var(--bg-ink);
    border-radius: 0 0 6px 6px;
}

.laptop-shadow {
    height: 18px;
    margin: 0 3%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.45), transparent 72%);
}

.laptop-caption {
    text-align: center;
    color: var(--muted);
    font-size: 0.86rem;
    margin-top: 18px;
}

/* ---------- Homepage hub links ---------- */

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.hub-card {
    display: block;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-decoration: none;
    color: var(--text);
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms ease;
}

.hub-card:hover { transform: translateY(-4px); border-color: rgba(143, 189, 248, 0.35); }

.hub-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.hub-card h3 .icon {
    width: 16px;
    height: 16px;
    color: var(--cyan);
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
    flex-shrink: 0;
}

.hub-card:hover h3 .icon { transform: translateX(4px); }

.hub-card p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Author card ---------- */

.author-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 26px;
    align-items: center;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 720px;
    margin: 0 auto;
}

.author-card-no-photo {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
}

.author-name {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
}

.author-role {
    color: var(--cyan);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 4px;
}

.author-location {
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 6px;
}

.author-social {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.author-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--panel-strong);
    border: 1px solid var(--border);
    color: var(--text);
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), color 220ms ease;
}

.author-social a:hover { transform: translateY(-3px); color: var(--cyan); }
.author-social .icon { width: 19px; height: 19px; }

.author-bio {
    max-width: 640px;
    margin: 32px auto 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.7;
}

@media (max-width: 560px) {
    .author-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .author-social { justify-content: center; }
}

/* ---------- Sub-page hero ---------- */

.page-hero {
    padding: 64px 0 12px;
    text-align: center;
}

.page-hero .eyebrow { justify-content: center; }

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin: 16px 0 16px;
    letter-spacing: -0.01em;
}

.page-hero p {
    color: var(--muted);
    max-width: 620px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* ---------- Sections ---------- */

section { padding: 84px 0; }

.section-head {
    max-width: 640px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-head h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    margin: 14px 0 16px;
}

.section-head p {
    color: var(--muted);
    font-size: 1.02rem;
}

/* ---------- Trust bar ---------- */

.trust-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
    margin-top: 26px;
}

.trust-bar span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: var(--muted);
    transition: color 200ms ease;
}

.trust-bar span:hover { color: var(--text); }

.trust-bar .icon {
    color: var(--teal);
    width: 17px;
    height: 17px;
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.trust-bar span:hover .icon { transform: scale(1.15) rotate(-6deg); }

/* ---------- Icon cards (shared by pain points and features) ---------- */

.icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: var(--panel-strong);
    border: 1px solid var(--border);
    color: var(--cyan);
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), color 220ms ease;
}

.icon-badge .icon { width: 22px; height: 22px; }

.pain-card:hover .icon-badge,
.feature-card:hover .icon-badge {
    transform: scale(1.08) rotate(-4deg);
    color: var(--teal);
}

/* ---------- Pain points ---------- */

.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-bottom: 44px;
}

.pain-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms ease;
}

.pain-card:hover { transform: translateY(-4px); border-color: rgba(143, 189, 248, 0.35); }

.pain-card h3 { font-size: 1.02rem; margin-bottom: 8px; }

.pain-card p { color: var(--muted); font-size: 0.92rem; }

.pivot-line {
    text-align: center;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    max-width: 720px;
    margin: 0 auto;
}

.pivot-line .accent { color: var(--teal); }

/* ---------- How it works ---------- */

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.step {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 22px;
    position: relative;
    overflow: hidden;
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.step:hover { transform: translateY(-4px); }

.step::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--blue), var(--purple));
    transition: width 800ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: inherit;
}

.step.is-visible::before { width: 100%; }

.step .num {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: #07111F;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-family: "Space Grotesk", sans-serif;
}

.step h3 { font-size: 1rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.88rem; }

@media (max-width: 900px) {
    .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .steps { grid-template-columns: 1fr; }
}

/* ---------- Features ---------- */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms ease;
}

.feature-card:hover { transform: translateY(-4px); border-color: rgba(143, 189, 248, 0.35); }

.feature-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 0.9rem; }

@media (max-width: 900px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .feature-grid { grid-template-columns: 1fr; }
}

/* ---------- Showcase ---------- */

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 56px 40px;
}

@media (max-width: 860px) {
    .showcase-grid { grid-template-columns: 1fr; }
}

/* ---------- College marquee ---------- */

.marquee {
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--panel);
    padding: 16px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: marqueeScroll 34s linear infinite;
}

.marquee-track span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.88rem;
    white-space: nowrap;
}

.marquee-track .icon { width: 15px; height: 15px; color: var(--mak-gold); flex-shrink: 0; }

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Makerere section ---------- */

.makerere-section {
    background: linear-gradient(135deg, rgba(31, 122, 63, 0.14), rgba(242, 201, 76, 0.08));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.makerere-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.mak-badges { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

.mak-badge {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mak-badge:hover { transform: translateY(-3px); }

.mak-badge.green { color: var(--mak-green); background: rgba(31, 122, 63, 0.16); border-color: rgba(31, 122, 63, 0.4); }
.mak-badge.gold { color: var(--mak-gold); background: rgba(242, 201, 76, 0.14); border-color: rgba(242, 201, 76, 0.4); }
.mak-badge.red { color: var(--mak-red); background: rgba(239, 51, 64, 0.14); border-color: rgba(239, 51, 64, 0.4); }

.mak-list { margin-top: 26px; display: grid; gap: 14px; padding: 0; }

.mak-list li { display: flex; gap: 12px; color: var(--muted); font-size: 0.95rem; list-style: none; }

.mak-list .icon {
    color: var(--mak-green);
    flex-shrink: 0;
    width: 19px;
    height: 19px;
    margin-top: 2px;
}

@media (max-width: 900px) {
    .makerere-grid { grid-template-columns: 1fr; }
}

/* ---------- Download CTA ---------- */

.cta-download {
    text-align: center;
}

.cta-panel {
    background: var(--panel-strong);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 56px 32px;
    max-width: 780px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.cta-panel::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle, rgba(143, 189, 248, 0.16), transparent 60%);
    pointer-events: none;
}

.cta-panel > * { position: relative; }

.cta-panel h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 16px; }
.cta-panel p { color: var(--muted); margin-bottom: 30px; font-size: 1.02rem; }

.cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }

.cta-requirements {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-grid .brand { font-size: 0.95rem; }

.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }

.footer-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.88rem;
    transition: color 160ms ease;
}

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

.footer-social.author-social { margin-top: 0; }
.footer-social.author-social a { width: 34px; height: 34px; }
.footer-social .icon { width: 17px; height: 17px; }

.footer-copy { color: var(--muted); font-size: 0.8rem; margin-top: 20px; text-align: center; }
