/* ═══════════════════════════════════════════════════════════════════════════
   Arka – About / Landing Page Styles
   Theme: Monochrome, Brutalist, High-Contrast, Glassmorphism
   ═══════════════════════════════════════════════════════════════════════════ */

body {
    overflow-x: hidden;
    overflow-y: auto;
    background-color: var(--bg);
    color: var(--fg);
    scroll-behavior: smooth;
    margin: 0;
}

/* ── Noise Overlay ── */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ── Navigation ── */
.lander-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
    backdrop-filter: blur(10px);
}

.logo-text h1 {
    font-family: var(--font-logo);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--fg-muted);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color var(--transition-fast);
}

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

.auth-btn-sm {
    padding: 10px 24px;
    font-size: 0.85rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    background: var(--fg);
    color: var(--bg);
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.auth-btn-sm:hover {
    background: var(--accent);
    color: var(--fg);
    box-shadow: 0 0 20px rgba(229, 46, 46, 0.4);
}

/* ── Main Layout ── */
.lander-main {
    position: relative;
    z-index: 10;
    padding-top: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── Hero Section ── */
.hero-section {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 1000px;
    padding: 0 24px 60px;
}

.hero-title {
    font-family: var(--font-logo);
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 32px;
}

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

/* Typing Effect in Header */
.typing-effect {
    position: relative;
    display: inline-block;
}

.typing-effect::after {
    content: "|";
    position: absolute;
    right: -10px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Glitch Effect */
.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 #00ffff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(78px, 9999px, 86px, 0);
    }

    5% {
        clip: rect(13px, 9999px, 91px, 0);
    }

    10% {
        clip: rect(7px, 9999px, 88px, 0);
    }

    15% {
        clip: rect(18px, 9999px, 87px, 0);
    }

    20% {
        clip: rect(98px, 9999px, 12px, 0);
    }

    100% {
        clip: rect(98px, 9999px, 12px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
    }

    5% {
        clip: rect(52px, 9999px, 74px, 0);
    }

    10% {
        clip: rect(79px, 9999px, 85px, 0);
    }

    15% {
        clip: rect(75px, 9999px, 5px, 0);
    }

    20% {
        clip: rect(7px, 9999px, 82px, 0);
    }

    100% {
        clip: rect(7px, 9999px, 82px, 0);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--fg-muted);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
}

.large-btn {
    text-decoration: none;
    padding: 18px 36px;
    font-size: 1rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.large-btn.primary {
    background: var(--fg);
    color: var(--bg);
    border: 1px solid var(--fg);
}

.large-btn.primary:hover {
    background: var(--accent);
    color: var(--fg);
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(229, 46, 46, 0.4);
    transform: translateY(-2px);
}

.large-btn.primary svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.large-btn.primary:hover svg {
    transform: translateX(4px);
}

.large-btn.secondary {
    background: transparent;
    color: var(--fg);
    border: 1px solid var(--border-light);
}

.large-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--fg);
}

/* ── Marquee ── */
.marquee-container {
    width: 100vw;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    margin: 40px 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: scroll 40s linear infinite;
    font-family: var(--font-logo);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.marquee-content span {
    margin: 0 16px;
    color: var(--fg);
}

.marquee-content .separator {
    color: var(--accent);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ── Interactive Showcase Section ── */
.showcase-section {
    width: 100%;
    max-width: 1200px;
    padding: 100px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.showcase-header {
    text-align: center;
    margin-bottom: 48px;
}

.showcase-header h2 {
    font-family: var(--font-logo);
    font-size: 3rem;
    letter-spacing: 2px;
}

.showcase-container {
    display: flex;
    width: 100%;
    gap: 32px;
    align-items: stretch;
}

.showcase-left,
.showcase-right {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Base Window Styles */
.prompt-window,
.diagram-window {
    background: #050505;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 500px;
    /* Fixed height to prevent layout shifting */
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* Window Headers */
.prompt-header,
.diagram-header {
    background: #111;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    gap: 8px;
}

.prompt-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
}

.prompt-header .dot:nth-child(1) {
    background: #ff5f56;
}

.prompt-header .dot:nth-child(2) {
    background: #ffbd2e;
}

.prompt-header .dot:nth-child(3) {
    background: #27c93f;
}

.term-title {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #888;
}

/* Left Body: Prompt */
.prompt-body {
    padding: 32px;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    line-height: 1.6;
    flex: 1;
    position: relative;
    color: var(--fg);
}

.prompt-prefix {
    color: var(--accent);
    margin-right: 8px;
    font-weight: bold;
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background-color: var(--fg);
    vertical-align: middle;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

/* Right Body: Diagram Render */
.diagram-body {
    padding: 32px;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ── Scroll Text Animation ── */
.scroll-shift-text {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3em;
}

.scroll-shift-text .word {
    display: inline-flex;
}

.scroll-shift-text .char {
    display: inline-block;
    color: var(--fg);
    /* Default text color (white) */
    transition: color 0.1s ease-out;
    /* Fast, snappy color change */
}

.scroll-shift-text .char.active {
    color: var(--accent);
    /* Target text color (red) */
}

/* ── Staggered Features Section ── */
.features-alt-section {
    width: 100%;
    max-width: 1000px;
    padding: 40px 24px 100px;
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: transform 0.4s ease, border-color 0.4s ease;
    backdrop-filter: blur(10px);
}

.feature-row:hover {
    transform: translateY(-5px);
    border-color: var(--border-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-num {
    font-family: var(--font-logo);
    font-size: 6rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px var(--border-light);
    line-height: 1;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.feature-row:hover .feature-num {
    -webkit-text-stroke: 1px var(--accent);
    color: rgba(229, 46, 46, 0.1);
}

.feature-text {
    flex: 1;
}

.feature-text h3 {
    font-family: var(--font-logo);
    font-size: 1.8rem;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.feature-text p {
    color: var(--fg-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ── Footer ── */
.lander-footer {
    width: 100%;
    border-top: 1px solid var(--border);
    padding: 64px 48px 32px;
    background: rgba(0, 0, 0, 0.9);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 64px;
}

.footer-brand h2 {
    font-family: var(--font-logo);
    font-size: 2rem;
    margin-bottom: 8px;
}

.footer-brand p {
    color: var(--fg-muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

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

.footer-links a {
    color: var(--fg);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.2s;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 24px;
    color: var(--fg-muted);
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

/* ── About Me Section ── */
.about-me-section {
    width: 100%;
    max-width: 1000px;
    padding: 60px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.about-me-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 60px;
    backdrop-filter: blur(15px);
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.about-me-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 15px 40px rgba(229, 46, 46, 0.2);
}

.about-me-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    box-shadow: 0 0 20px var(--accent);
}

.about-me-title {
    font-family: var(--font-logo);
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.about-me-body {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--fg-muted);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-me-body strong {
    color: var(--fg);
    font-family: var(--font-logo);
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    display: block;
    margin-top: 16px;
}

/* ── Support Section ── */
.support-section {
    width: 100%;
    max-width: 1000px;
    padding: 40px 24px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.support-title {
    font-family: var(--font-logo);
    font-size: 2.5rem;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.support-subtitle {
    font-family: var(--font-mono);
    color: var(--fg-muted);
    margin-bottom: 48px;
    font-size: 0.95rem;
}

.support-grid {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.support-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: #080808;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: all 0.4s ease;
}

.support-card:hover {
    border-color: var(--fg);
    background: #111;
    transform: translateY(-5px);
}

.support-card h4 {
    font-family: var(--font-logo);
    font-size: 1.25rem;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.qr-box {
    width: 200px;
    height: 200px;
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.qr-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.support-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    background: #FFDD00;
    color: #000;
    font-family: var(--font-body);
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.support-btn:hover {
    box-shadow: 0 0 20px rgba(255, 221, 0, 0.4);
    transform: scale(1.05);
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .showcase-container {
        flex-direction: column;
    }

    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .feature-num {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .lander-nav {
        padding: 16px 20px;
        background: rgba(0, 0, 0, 0.95);
        border-bottom: 1px solid var(--border);
    }

    .logo-text h1 {
        font-size: 1.6rem;
        letter-spacing: 1px;
    }

    .nav-links {
        gap: 8px;
    }

    .nav-link {
        display: none;
        /* Hide login link on mobile to save space, focus on CTA */
    }

    .auth-btn-sm {
        padding: 8px 14px;
        font-size: 0.75rem;
        border-radius: var(--radius-sm);
        /* Change pill to sharp box on mobile */
    }

    .lander-main {
        padding-top: 100px;
    }

    .hero-section {
        padding: 0 20px 40px;
        text-align: left;
        align-items: flex-start;
        min-height: auto;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
        line-height: 1.1;
        margin-bottom: 24px;
        text-align: left;
        white-space: nowrap;
    }

    .hero-title .line {
        display: block;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        text-align: left;
        margin-bottom: 40px;
        color: var(--fg);
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }

    .large-btn {
        width: 100%;
        justify-content: space-between;
        /* Push arrow to edge */
        padding: 20px 24px;
        font-size: 0.95rem;
        border-radius: var(--radius-sm);
        /* Brutalist square corners on mobile */
    }

    .marquee-container {
        padding: 10px 0;
        margin: 40px 0;
    }

    .marquee-content {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .showcase-section,
    .features-alt-section,
    .about-me-section,
    .support-section {
        padding: 60px 20px;
    }

    .showcase-header h2 {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
        text-align: left;
        line-height: 1.1;
        white-space: nowrap;
    }

    .about-me-title,
    .support-title {
        font-size: clamp(1.4rem, 6vw, 2.2rem);
        text-align: left;
        line-height: 1.2;
        white-space: normal;
        word-break: break-word;
    }

    .showcase-header {
        text-align: left;
        margin-bottom: 32px;
    }

    .prompt-window,
    .diagram-window {
        height: 320px;
        /* Fixed height prevents layout jumping */
        border-radius: 0;
        /* Brutalist flat window on mobile */
        border-left: 0;
        border-right: 0;
    }

    /* Showcases stretch full width */
    .showcase-section {
        padding: 40px 0;
    }

    .showcase-header {
        padding: 0 20px;
    }

    /* Transform features into a horizontal snap-scroll list */
    .features-alt-section {
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding-bottom: 40px;
        -webkit-overflow-scrolling: touch;
        scroll-padding: 0 20px;
    }

    .features-alt-section::-webkit-scrollbar {
        display: none;
    }

    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
        flex: 0 0 calc(90vw - 40px);
        /* Take up most of screen width */
        scroll-snap-align: start;
        padding: 32px 24px;
        text-align: left;
        gap: 24px;
        border-radius: var(--radius-md);
        background: #0a0a0a;
    }

    .feature-num {
        font-size: 3rem;
        color: var(--accent);
        -webkit-text-stroke: 0;
    }

    .feature-text h3 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }

    .feature-text p,
    .about-me-body {
        font-size: 1.05rem;
        color: #aaa;
    }

    .about-me-card {
        padding: 32px 20px;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        background: transparent;
    }

    .support-card {
        padding: 32px 20px;
        min-width: 100%;
        border-radius: 0;
        border-left: 4px solid var(--fg);
        text-align: left;
        align-items: flex-start;
    }

    .support-card .qr-box {
        align-self: center;
        margin-top: 16px;
    }

    .support-card .support-btn {
        width: 100%;
        text-align: center;
        border-radius: var(--radius-sm);
    }

    .lander-footer {
        padding: 40px 20px 24px;
    }

    .footer-grid {
        flex-direction: column;
        gap: 32px;
        margin-bottom: 32px;
        padding: 0;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
        display: flex;
    }

    .footer-links a:first-child {
        order: 99;
    }

    .footer-brand {
        text-align: left;
    }

    .footer-bottom {
        justify-content: flex-start;
        text-align: left;
        padding-top: 24px;
        padding-left: 0;
    }
}

/* ── Mobile Tap Highlight & Active States ────────────────────────────── */
/* Remove blue tap highlight from all interactive elements */
.large-btn,
.auth-btn-sm,
.support-btn,
.nav-link,
.footer-links a,
.feature-row,
.support-card,
.about-me-card {
    -webkit-tap-highlight-color: transparent !important;
    outline: none;
    -webkit-touch-callout: none;
}

/* Better press/active feedback for buttons */
.large-btn:active {
    transform: scale(0.97) !important;
    transition: transform 0.1s ease;
}

.large-btn.primary:active {
    background: #cc2424;
    box-shadow: 0 0 15px rgba(229, 46, 46, 0.3);
}

.large-btn.secondary:active {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--fg);
}

.auth-btn-sm:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

.support-btn:active {
    transform: scale(0.97) !important;
    box-shadow: 0 0 10px rgba(255, 221, 0, 0.3);
}

/* Feature row touchable feedback */
.feature-row:active {
    transform: translateY(-2px) !important;
    border-color: var(--accent);
    transition: all 0.15s ease;
}

/* Support card touchable feedback */
.support-card:active {
    transform: translateY(-2px) !important;
    border-color: var(--accent);
}

/* Footer links active state */
.footer-links a:active {
    color: var(--accent);
    transform: scale(0.97);
    display: inline-block;
}

/* Nav link active state */
.nav-link:active {
    color: var(--fg);
}