/* ============================================
   AJAIA - Marketing Landing Page Styles
   workwithjefrie.com design language.
   Tokens live in css/theme.css (loaded first).
   Rule: no hard-coded colors in this file,
   except the sanctioned dark Access band below.
   ============================================ */

/* === Reset and Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --nav-height: 64px;
}

body {
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--nav-height);
}

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

a {
    color: inherit;
}

.title-accent {
    color: var(--accent);
}

/* === Navigation Header === */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    z-index: 1000;
    transition: box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-header.scrolled {
    box-shadow: 0 8px 24px -20px rgba(13, 16, 23, 0.5);
}

.nav-container {
    max-width: 1180px;
    height: 100%;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

/* Real AJAIA logo in nav/footer brands (replaces the two-square mark) */
.nav-logo .brand-logo,
.footer-logo .brand-logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
}
.footer-logo-legal {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display, 'Archivo', sans-serif);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.download-hero-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.nav-logo-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
}

.nav-link {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

.nav-link:hover {
    color: var(--ink);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-nav-secondary {
    padding: 9px 16px;
    font-size: 13.5px;
}

.btn-nav-primary {
    padding: 10px 18px;
    font-size: 13.5px;
}

/* Mobile menu toggle: pure-CSS hamburger (the markup keeps an <i>
   element that page JS swaps; it is styled here without icon fonts). */
.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--line-str);
    border-radius: 8px;
    cursor: pointer;
}

.mobile-menu-toggle i {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--ink);
    border-radius: 1px;
    position: relative;
    transition: background 0.2s var(--ease);
}

.mobile-menu-toggle i::before,
.mobile-menu-toggle i::after {
    content: '';
    position: absolute;
    left: 0;
    width: 16px;
    height: 2px;
    background: var(--ink);
    border-radius: 1px;
    transition: transform 0.2s var(--ease), top 0.2s var(--ease);
}

.mobile-menu-toggle i::before {
    top: -5px;
}

.mobile-menu-toggle i::after {
    top: 5px;
}

body:has(.mobile-nav-menu.active) .mobile-menu-toggle i {
    background: transparent;
}

body:has(.mobile-nav-menu.active) .mobile-menu-toggle i::before {
    top: 0;
    transform: rotate(45deg);
}

body:has(.mobile-nav-menu.active) .mobile-menu-toggle i::after {
    top: 0;
    transform: rotate(-45deg);
}

/* === Mobile Navigation Menu === */
.mobile-nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 20px 32px 24px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}

.mobile-nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav-links {
    list-style: none;
    margin-bottom: 16px;
}

.mobile-nav-link {
    display: block;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-soft);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
}

.mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-mobile-secondary,
.btn-mobile-primary {
    width: 100%;
}

/* === Layout Primitives === */
.section-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
}

.section-header {
    max-width: 680px;
    margin-bottom: 44px;
}

.section-header .eyebrow {
    color: var(--accent-ink);
}

.section-title {
    font-weight: 800;
    font-size: clamp(28px, 4vw, 38px);
    margin: 14px 0 10px;
}

.section-subtitle {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

/* === Hero === */
.hero-section {
    padding: 72px 0 88px;
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-ink);
    background: var(--accent-sft);
    border: 1px solid var(--accent-brd);
    border-radius: 100px;
    padding: 7px 14px;
    margin-bottom: 22px;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.hero-title {
    font-weight: 900;
    font-size: clamp(36px, 4.6vw, 54px);
    line-height: 1.03;
    letter-spacing: -0.025em;
}

.hero-subheadline {
    margin-top: 22px;
    font-size: 18px;
    color: var(--ink-soft);
    line-height: 1.55;
    max-width: 480px;
}

.hero-subtitle {
    margin-top: 14px;
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
    max-width: 480px;
}

.hero-cta {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-lg {
    padding: 14px 26px;
    font-size: 15px;
}

.hero-note {
    margin-top: 20px;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

/* === Hero Activity Feed Card === */
.activity-card {
    border-radius: 16px;
    padding: 24px 24px 18px;
}

.activity-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 4px;
}

.activity-title {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
}

.activity-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.activity-row {
    display: grid;
    grid-template-columns: 20px 1fr auto auto;
    gap: 10px;
    align-items: center;
    padding: 12px 2px;
    border-bottom: 1px solid var(--line);
}

.activity-row:last-of-type {
    border-bottom: none;
}

.activity-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ok-sft);
    display: grid;
    place-items: center;
}

.activity-dot .status-dot {
    width: 6px;
    height: 6px;
}

.activity-text {
    font-size: 13.5px;
    color: var(--ink-soft);
}

.activity-time {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted);
    white-space: nowrap;
}

.activity-note {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    text-align: center;
}

/* === What It Handles: Pillar Cards === */
.features-section {
    padding: 88px 0;
    border-bottom: 1px solid var(--line);
}

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

.pillar-card {
    border-radius: 14px;
    padding: 26px;
    transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.pillar-card:hover {
    transform: translateY(-2px);
    border-color: var(--line-str);
}

.pillar-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 28px;
    letter-spacing: -0.02em;
    color: var(--accent);
    margin-bottom: 14px;
}

.pillar-label {
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink);
    margin-bottom: 10px;
}

.pillar-desc {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.55;
}

/* === How It Works: Step Cards === */
.step-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.step-card {
    border-radius: 14px;
    padding: 24px;
    transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.step-card:hover {
    transform: translateY(-2px);
    border-color: var(--line-str);
}

.step-marker {
    width: 9px;
    height: 9px;
    border-radius: 2px;
    background: var(--accent);
    margin-bottom: 16px;
}

.step-title {
    font-weight: 700;
    font-size: 16.5px;
    margin-bottom: 8px;
}

.step-desc {
    color: var(--ink-soft);
    font-size: 13.5px;
    line-height: 1.55;
}

/* === See It: Screenshot Cards === */
.demo-section {
    padding: 88px 0;
    border-bottom: 1px solid var(--line);
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: start;
}

.shot-card {
    border-radius: 16px;
    padding: 14px;
    position: relative;
}

.shot-img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--line);
}

/* Click-to-expand product screenshots */
.zoomable {
    cursor: zoom-in;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(13, 16, 23, 0.9);
    cursor: zoom-out;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.lightbox-overlay.open {
    display: flex;
    animation: lightboxIn 0.18s var(--ease);
}

.lightbox-img {
    max-width: 96vw;
    max-height: 92vh;
    border-radius: 10px;
    border: 1px solid var(--line);
    box-shadow: 0 24px 70px -20px rgba(0, 0, 0, 0.7);
}

@keyframes lightboxIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.shot-caption {
    position: absolute;
    bottom: 26px;
    left: 26px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-ink);
    background: var(--accent-sft);
    border: 1px solid var(--accent-brd);
    border-radius: 5px;
    padding: 5px 10px;
}

/* === Built by Jefrie === */
.founder-section {
    padding: 88px 0;
    border-bottom: 1px solid var(--line);
}

.founder-card {
    border-radius: 16px;
    padding: 44px;
    max-width: 860px;
}

.founder-title {
    font-weight: 800;
    font-size: clamp(26px, 3.4vw, 34px);
    margin: 14px 0 18px;
}

.founder-intro,
.founder-solution,
.founder-mission {
    color: var(--ink-soft);
    font-size: 15.5px;
    line-height: 1.65;
    max-width: 640px;
}

.founder-pain-points {
    display: grid;
    gap: 12px;
    margin: 24px 0;
}

.founder-pain {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 16px;
}

.founder-pain::before {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 2px;
    background: var(--danger);
    flex-shrink: 0;
    margin-top: 6px;
}

.founder-pain p {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.55;
}

.founder-solution {
    margin-bottom: 16px;
}

.founder-cta {
    margin-top: 32px;
}

/* ==========================================================
   === ACCESS BAND (dark in BOTH themes) ====================
   SANCTIONED HARD-CODED COLORS: this band is intentionally
   dark regardless of the light/dark theme toggle, so these
   hex values are the one allowed exception to the
   tokens-only rule in this file. Values per the handoff:
   band #0D1017, cards #161B24, borders #262D3A,
   featured card #141A2E + #1F42E5 accent border,
   text #FFFFFF / #AEB6C4 / #8892A4, accent text #8FA1FF.
   ========================================================== */
.access-section {
    background: #0D1017;
    padding: 88px 0;
}

.access-section .section-header .eyebrow {
    color: #8FA1FF;
}

.access-section .section-header .eyebrow::before {
    background: #8FA1FF;
}

.access-section .section-title {
    color: #FFFFFF;
}

.access-section .section-subtitle {
    color: #AEB6C4;
}

.tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 18px;
}

.tier-card {
    background: #161B24;
    border: 1px solid #262D3A;
    border-radius: 14px;
    padding: 24px;
    transition: transform 0.2s var(--ease);
}

.tier-card:hover {
    transform: translateY(-2px);
}

.tier-card.featured {
    background: #141A2E;
    border-color: #1F42E5;
}

.tier-name {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8892A4;
    margin-bottom: 14px;
    line-height: 1.4;
}

.tier-card.featured .tier-name {
    color: #8FA1FF;
}

.tier-desc {
    color: #AEB6C4;
    font-size: 13.5px;
    line-height: 1.55;
}

.access-note {
    background: #161B24;
    border: 1px solid #262D3A;
    border-radius: 14px;
    padding: 22px 24px;
    margin-top: 16px;
}

.access-note-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8FA1FF;
    margin-bottom: 10px;
}

.access-note p {
    color: #AEB6C4;
    font-size: 13.5px;
    line-height: 1.65;
    max-width: 720px;
}

.access-terms {
    margin: 8px 0 0;
    padding-left: 20px;
    line-height: 1.7;
    color: #AEB6C4;
    font-size: 13.5px;
}

.access-terms li::marker {
    color: #8892A4;
}
/* ================ END SANCTIONED DARK BAND ================ */

/* === Final CTA === */
.cta-section {
    padding: 96px 0;
    border-bottom: 1px solid var(--line);
}

.cta-content {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-weight: 800;
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -0.02em;
}

.cta-subtitle {
    margin: 14px 0 28px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* === Footer === */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 56px 0 28px;
}

.footer-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--line);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.footer-logo-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.footer-tagline {
    font-size: 13.5px;
    color: var(--ink-soft);
    line-height: 1.55;
    max-width: 260px;
    margin-bottom: 8px;
}

.footer-description {
    font-family: var(--font-mono);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.footer-heading {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 14px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 9px;
}

.footer-links a {
    font-size: 13.5px;
    color: var(--ink-soft);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 22px;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-legal a {
    font-size: 12.5px;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

.footer-legal a:hover {
    color: var(--accent-ink);
}

.footer-copyright {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--muted);
}

/* === Scroll Reveal ===
   html.rv is set by the inline reveal script; without JS the
   content stays fully visible. .active kept for compatibility
   with the reveal observer in js/landing-page.js. */
html.rv .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

html.rv .reveal.visible,
html.rv .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html.rv .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* === Responsive === */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        max-width: 560px;
    }

    .pillar-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .step-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .demo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 767.98px) {
    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .hero-section,
    .features-section,
    .demo-section,
    .founder-section,
    .access-section,
    .cta-section {
        padding-top: 56px;
        padding-bottom: 56px;
    }

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

    .founder-card {
        padding: 28px 22px;
    }
}

@media (max-width: 480px) {
    .section-container,
    .footer-container,
    .nav-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .pillar-grid,
    .step-grid {
        grid-template-columns: 1fr;
    }

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

    .activity-row {
        grid-template-columns: 20px 1fr auto;
    }

    .activity-row .badge {
        display: none;
    }

    .hero-cta .btn-accent,
    .hero-cta .btn-outline {
        width: 100%;
    }
}
