/* ═══════════════════════════════════════════════
   CAMPUS MATE  —  Clean Modern Light Theme
   Font: Plus Jakarta Sans
   ═══════════════════════════════════════════════ */

:root {
    --brand:       #4F6EF7;
    --brand-dark:  #3A56D4;
    --brand-soft:  #EEF1FF;

    --bg:          #FFFFFF;
    --bg-section:  #F8F9FC;
    --border:      #E8ECF4;

    --text-1:      #111827;
    --text-2:      #4B5563;
    --text-3:      #9CA3AF;

    --radius-s:    10px;
    --radius-m:    16px;
    --radius-l:    24px;
    --radius-xl:   32px;

    --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md:   0 4px 16px rgba(0,0,0,.08);
    --shadow-lg:   0 12px 40px rgba(0,0,0,.10);

    --font: 'Plus Jakarta Sans', sans-serif;
}

/* ─ Reset ─────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text-1);
    line-height: 1.6;
    overflow-x: hidden; /* Only hide X overflow */
    -webkit-font-smoothing: antialiased;
}

/* ─ Shared containers ─────────────────────────── */
.page-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 28px;
}
.center-text { text-align: center; margin: 0 auto; }

/* ─ Shared elements ───────────────────────────── */
.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 14px;
}

/* ─ Scroll reveal ─────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ══════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    transition: background .3s, box-shadow .3s, border-color .3s;
    border-bottom: 1px solid transparent;
    background: var(--bg);
}

.navbar.stuck {
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 28px;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 0;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: var(--text-1);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.2px;
    flex-shrink: 0;
}
.logo b { color: var(--brand); font-weight: 800; }
.logo-img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.logo-name { white-space: nowrap; }

/* Nav center links */
.nav-center {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 36px;
}
.nav-link {
    text-decoration: none;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 8px;
    transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--brand); background: var(--brand-soft); }

/* Nav right */
.nav-right { margin-left: auto; }

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand);
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: var(--radius-s);
    font-size: 14px;
    font-weight: 600;
    transition: background .2s, transform .2s, box-shadow .2s;
    white-space: nowrap;
}
.btn-download:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79,110,247,.3);
}

/* Burger */
.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-1);
    padding: 6px;
    margin-left: auto;
    transition: color 0.2s ease;
}
.burger:hover { color: var(--brand); }

/* Mobile nav (FIXED TO AVOID SCROLL ISSUES) */
.mobile-nav {
    display: none;
    position: absolute; /* Takes it out of document flow */
    top: 100%; /* Positions it directly below navbar */
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 8px 28px 24px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1), opacity .3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.mobile-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.mnav-link {
    text-decoration: none;
    color: var(--text-2);
    font-size: 15px;
    font-weight: 600;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    transition: color .2s, padding-left .2s;
}
.mnav-link:last-child { border-bottom: none; }
.mnav-link:hover { color: var(--brand); padding-left: 6px; }
.mnav-cta {
    color: #fff !important;
    background: var(--brand);
    border-radius: var(--radius-s);
    text-align: center;
    padding: 14px !important;
    font-weight: 700;
    border-bottom: none !important;
    margin-top: 16px;
    gap: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s ease;
}
.mnav-cta:hover { background: var(--brand-dark); }

/* ══════════════════════════════════════════════
   GOOGLE PLAY BUTTON  (shared component)
══════════════════════════════════════════════ */
.gplay-btn {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    background: #111;
    color: #fff;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-md);
    transition: transform .25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .25s ease;
}
.gplay-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0,0,0,.18);
}

.gp-icon { font-size: 26px; line-height: 1; }
.gp-label { display: flex; flex-direction: column; gap: 1px; }
.gp-label small {
    font-size: 9.5px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    opacity: .65;
    font-weight: 500;
}
.gp-label strong {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.2px;
    line-height: 1.15;
}

.gplay-outline {
    background: transparent;
    color: var(--brand);
    border: 2px solid var(--brand);
    box-shadow: none;
}
.gplay-outline .gp-icon { color: var(--brand); }
.gplay-outline .gp-label small { color: var(--brand); opacity: .7; }
.gplay-outline .gp-label strong { color: var(--brand); }
.gplay-outline:hover {
    background: var(--brand);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 12px 30px rgba(79,110,247,.25);
}
.gplay-outline:hover .gp-icon,
.gplay-outline:hover .gp-label small,
.gplay-outline:hover .gp-label strong { color: #fff; opacity: 1; }

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.hero {
    padding-top: 68px;
    background: var(--bg);
}

.hero-wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 80px 28px 60px;
    display: flex;
    align-items: center;
    gap: 60px;
}

/* Hero Left */
.hero-left { flex: 1; max-width: 560px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-soft);
    color: var(--brand);
    border: 1px solid #C7D3FC;
    padding: 7px 15px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 28px;
}

.badge-dot {
    width: 7px; height: 7px;
    background: #22C55E;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #BBF7D0;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%,100% { box-shadow: 0 0 0 2px #BBF7D0; }
    50%      { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.4); }
}

.hero-left h1 {
    font-size: clamp(36px, 4.5vw, 56px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.025em;
    color: var(--text-1);
    margin-bottom: 22px;
}

.accent-text { color: var(--brand); }

.hero-body {
    font-size: 17px;
    color: var(--text-2);
    line-height: 1.72;
    max-width: 460px;
    margin-bottom: 36px;
}

/* Hero Right — Phone Mockup */
.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup { position: relative; width: 280px; }

.phone-glow {
    position: absolute;
    top: 20%; left: 50%;
    transform: translateX(-50%);
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(79,110,247,.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(20px);
}

.phone-body {
    position: relative;
    background: var(--text-1);
    border-radius: 36px;
    padding: 16px;
    box-shadow: 0 30px 80px rgba(0,0,0,.18), 0 0 0 1px rgba(255,255,255,.05) inset;
    animation: float-phone 6s ease-in-out infinite;
    z-index: 1;
}

@keyframes float-phone {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

.phone-screen {
    background: #F1F5FF;
    border-radius: 24px;
    padding: 18px;
    overflow: hidden;
}

.mock-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    background: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: var(--shadow-sm);
}

.mock-app-icon { width: 36px; height: 36px; border-radius: 8px; }

.mock-app-info { display: flex; flex-direction: column; gap: 2px; }
.mock-app-name { font-size: 13px; font-weight: 700; color: var(--text-1); line-height: 1; }
.mock-app-sub { font-size: 11px; color: var(--text-3); }

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

.mock-tile {
    background: #fff;
    border-radius: 12px;
    padding: 10px 4px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    font-weight: 600;
    color: var(--text-2);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.mock-tile i { font-size: 16px; color: var(--tc); }

/* Hero stats bar */
.hero-stats-bar {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 28px 0;
    display: flex;
    align-items: center;
    gap: 0;
    border-top: 1px solid var(--border);
}

.stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
    gap: 4px;
}

.stat strong {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-1);
    letter-spacing: -.03em;
}

.stat span {
    font-size: 12px;
    color: var(--text-3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.stat-line { width: 1px; height: 44px; background: var(--border); }

/* ══════════════════════════════════════════════
   FEATURES
══════════════════════════════════════════════ */
.features {
    padding: 100px 0;
    background: var(--bg-section);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-intro {
    max-width: 520px;
    margin-bottom: 52px;
}
.section-intro.center-text { margin: 0 auto 52px auto; }

.section-intro h2 {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    letter-spacing: -.025em;
    color: var(--text-1);
    line-height: 1.15;
    margin-bottom: 12px;
}

.section-sub { font-size: 16px; color: var(--text-2); line-height: 1.65; }

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

.fcard {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-l);
    padding: 32px;
    transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .3s ease, border-color .3s ease;
}

.fcard:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: color-mix(in srgb, var(--cc, #4F6EF7) 40%, transparent);
}

.fcard-wide {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 36px;
}

.fcard-main { flex: 1; }

.fcard-ico {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
    background: color-mix(in srgb, var(--cc, #4F6EF7) 12%, transparent);
    color: var(--cc, #4F6EF7);
    flex-shrink: 0;
}

.fcard h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 10px;
    letter-spacing: -.01em;
}

.fcard p {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.65;
}

/* Wide card demo area */
.fcard-demo {
    flex-shrink: 0;
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: var(--radius-m);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 240px;
}

.demo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg);
    border-radius: var(--radius-s);
    padding: 10px 14px;
    box-shadow: var(--shadow-sm);
}

.day-tag {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .5px;
    padding: 4px 8px;
    border-radius: 6px;
    flex-shrink: 0;
}

.class-name { font-size: 13px; font-weight: 600; color: var(--text-1); }

.fcard-demo-col { flex-direction: column; gap: 10px; }

.dir-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg);
    border-radius: var(--radius-s);
    padding: 12px;
    box-shadow: var(--shadow-sm);
}

.dir-av {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.dir-entry div { display: flex; flex-direction: column; gap: 2px; }
.dir-entry b { font-size: 13px; font-weight: 700; color: var(--text-1); }
.dir-entry span { font-size: 12px; color: var(--text-3); }

/* ══════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════ */
.about {
    padding: 100px 0;
    background: var(--bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 800;
    letter-spacing: -.025em;
    color: var(--text-1);
    line-height: 1.18;
    margin-bottom: 18px;
}

.about-text p {
    font-size: 16px;
    color: var(--text-2);
    line-height: 1.72;
    margin-bottom: 16px;
}

.about-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.link-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-2);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: color .2s;
}
.link-ghost:hover { color: var(--brand); }
.link-ghost i { font-size: 13px; transition: transform 0.2s; }
.link-ghost:hover i { transform: translateX(4px); }

/* About cards */
.about-cards { display: flex; flex-direction: column; gap: 16px; }

.acard {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: var(--radius-m);
    padding: 24px;
    transition: transform .25s ease, box-shadow .25s ease;
}
.acard:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
    background: var(--bg);
}

.acard-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.acard-body { display: flex; flex-direction: column; gap: 4px; }
.acard-body strong { font-size: 16px; font-weight: 700; color: var(--text-1); }
.acard-body p { font-size: 14px; color: var(--text-2); line-height: 1.5; }

/* ══════════════════════════════════════════════
   FAQ SECTION (New)
══════════════════════════════════════════════ */
.faq-section {
    padding: 100px 0;
    background: var(--bg-section);
    border-top: 1px solid var(--border);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-m);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover { box-shadow: var(--shadow-md); }

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 24px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-1);
    font-family: inherit;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i {
    color: var(--text-3);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
    background: var(--bg);
}

.faq-answer p {
    color: var(--text-2);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Active state for FAQ */
.faq-item.active .faq-question i { transform: rotate(180deg); color: var(--brand); }
.faq-item.active .faq-answer { max-height: 200px; padding-top: 8px; }

/* ══════════════════════════════════════════════
   CTA STRIP
══════════════════════════════════════════════ */
.cta-strip {
    padding: 80px 0;
    background: var(--brand-soft);
    border-top: 1px solid #C7D3FC;
    border-bottom: 1px solid #C7D3FC;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.cta-text h2 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    letter-spacing: -.025em;
    color: var(--text-1);
    margin-bottom: 8px;
}

.cta-text p { font-size: 16px; color: var(--text-2); }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.footer { padding: 60px 0 40px; background: var(--bg); }

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-links a {
    text-decoration: none;
    font-size: 14px;
    color: var(--text-2);
    font-weight: 600;
    transition: color .2s;
}
.footer-links a:hover { color: var(--brand); }

.footer-line { height: 1px; background: var(--border); margin-bottom: 28px; }
.footer-copy { font-size: 14px; color: var(--text-3); }

/* ══════════════════════════════════════════════
   BACK TO TOP BUTTON
══════════════════════════════════════════════ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--text-1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
    z-index: 99;
}
.back-to-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.back-to-top:hover { background: var(--brand); transform: translateY(-4px); }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 960px) {
    .nav-center, .nav-right { display: none; }
    .burger     { display: block; }
    .mobile-nav { display: flex; }

    .hero-wrap {
        flex-direction: column;
        text-align: center;
        gap: 56px;
        padding: 40px 28px;
    }

    .hero-left { max-width: 100%; }
    .hero-body { margin: 0 auto 36px; }
    .hero-badge { justify-content: center; }

    .cards-grid { grid-template-columns: 1fr 1fr; }

    .fcard-wide {
        grid-column: span 2;
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .fcard-demo { min-width: auto; width: 100%; }
    .about-grid { grid-template-columns: 1fr; gap: 56px; }
    .cta-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 650px) {
    .cards-grid { grid-template-columns: 1fr; }
    .fcard-wide { grid-column: span 1; }

    .hero-stats-bar { flex-wrap: wrap; }
    .stat-line { display: none; }
    .stat { flex: 0 0 50%; border-bottom: 1px solid var(--border); padding: 20px; }
    .stat:nth-child(odd) { border-right: 1px solid var(--border); }

    .hero-right { display: none; }
    
    .about-actions { flex-direction: column; align-items: stretch; }
    .about-actions a { justify-content: center; }

    .footer-row { flex-direction: column; align-items: flex-start; gap: 24px; }
    .footer-links { flex-direction: column; gap: 16px; align-items: flex-start; }
    
    .back-to-top { bottom: 20px; right: 20px; }
}
