/* ============================================
   KATKA.AI - AI LAB DESIGN SYSTEM
   Neon Noir / Edgy Luxury Theme
   ============================================ */

/* ============================================
   FONT FACE - Clash Display from Fontshare
   ============================================ */
@font-face {
    font-family: 'Clash Display';
    src: url('https://cdn.fontshare.com/wf/HXPJYM46G2ULXQCMMBZMQHQR52TWWB5G/BSWQPPGLHXOQVR5JGOHKFG2KNWM4XWCL/UDPBHQNWRVQGHHYQ3QZJ2JDBLPGBJ3T5.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Clash Display';
    src: url('https://cdn.fontshare.com/wf/HXPJYM46G2ULXQCMMBZMQHQR52TWWB5G/BSWQPPGLHXOQVR5JGOHKFG2KNWM4XWCL/6QZUQGRTK2IKF5FDJNHNQKL6GRP7CTJQ.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   CSS VARIABLES - NEON NOIR DESIGN SYSTEM
   ============================================ */
:root {
    /* Background */
    --void-black: #050A0E;
    --obsidian: #121212;
    --eerie-black: #1E1E1E;
    
    /* Accents */
    --acid-lime: #BAFF00;
    --electric-violet: #BF00FF;
    --cyber-cyan: #00F0FF;
    
    /* Text */
    --ghost-white: #F0F0F0;
    --text-muted: rgba(240, 240, 240, 0.6);
    --text-subtle: rgba(240, 240, 240, 0.4);
    
    /* Fonts */
    --font-display: 'Clash Display', 'Space Grotesk', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Effects */
    --glass-bg: rgba(18, 18, 18, 0.7);
    --glass-border: rgba(240, 240, 240, 0.1);
    --glow-lime: 0 0 40px rgba(186, 255, 0, 0.3);
    --glow-violet: 0 0 40px rgba(191, 0, 255, 0.3);
    --glow-cyan: 0 0 40px rgba(0, 240, 255, 0.3);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    color: var(--ghost-white);
    background-color: var(--void-black);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Film grain overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

a {
    color: var(--acid-lime);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-shadow: var(--glow-lime);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    background: linear-gradient(to bottom, var(--void-black), transparent);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Detail pages use narrower container */
.header-container.narrow {
    max-width: 1000px;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ghost-white);
    text-decoration: none;
}

.logo span {
    color: var(--acid-lime);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--ghost-white);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--acid-lime);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    text-shadow: none;
}

.nav-link.active {
    color: var(--acid-lime);
}

.back-link {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--acid-lime);
    text-shadow: none;
}

/* ============================================
   HERO SECTION - INDEX PAGE
   ============================================ */
.hero {
    padding: 10rem 2rem 6rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('B-03_hero_dust.webp') center/cover no-repeat;
    opacity: 0.15;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--acid-lime);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-label::before {
    content: '//';
    opacity: 0.6;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero h1 .accent {
    color: var(--acid-lime);
    position: relative;
    display: inline-block;
}

.hero h1 .accent::after {
    content: '';
    position: absolute;
    bottom: -0.1em;
    left: 0;
    width: 100%;
    height: 0.3em;
    background: url('Underline-lime_1.png') no-repeat center;
    background-size: contain;
    opacity: 0.8;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 2rem;
}

.hero-meta {
    display: flex;
    gap: 2rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-subtle);
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-meta .count {
    color: var(--cyber-cyan);
}

.hero-annotation {
    position: absolute;
    top: 12rem;
    right: 2rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--acid-lime);
    opacity: 0.6;
    writing-mode: vertical-rl;
}

/* ============================================
   HERO SECTION - DETAIL PAGES
   ============================================ */
.hero.detail {
    padding: 10rem 2rem 4rem;
    max-width: 1000px;
}

.hero.detail::before {
    left: -20%;
    right: -20%;
    opacity: 0.1;
}

.breadcrumb {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-subtle);
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: var(--text-subtle);
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--acid-lime);
    text-shadow: none;
}

.hero-header {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.hero-icon {
    width: 88px;
    height: 88px;
    background: rgba(186, 255, 0, 0.08);
    border: 1px solid rgba(186, 255, 0, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
    box-shadow: var(--glow-lime);
}

.hero-icon.backlog {
    background: rgba(191, 0, 255, 0.08);
    border-color: rgba(191, 0, 255, 0.2);
    box-shadow: var(--glow-violet);
}

.hero-text h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.hero-text .tagline {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.meta-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(240, 240, 240, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    color: var(--text-muted);
}

.meta-badge.active {
    background: rgba(186, 255, 0, 0.1);
    border-color: rgba(186, 255, 0, 0.3);
    color: var(--acid-lime);
}

.meta-badge.backlog {
    background: rgba(191, 0, 255, 0.1);
    border-color: rgba(191, 0, 255, 0.3);
    color: var(--electric-violet);
}

.meta-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--acid-lime);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--acid-lime);
    animation: pulse 2s infinite;
}

.meta-badge.backlog .dot {
    background: var(--electric-violet);
    box-shadow: 0 0 8px var(--electric-violet);
}

/* ============================================
   USE CASES GRID - INDEX PAGE
   ============================================ */
.use-cases {
    padding: 4rem 2rem 8rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.use-cases::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10%;
    right: -10%;
    bottom: 0;
    background: url('B-02_section_concrete.webp') center/cover no-repeat;
    opacity: 0.08;
    pointer-events: none;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

/* Detail page section titles */
.section-title.detail {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 1.5rem;
}

.section-title.detail::before {
    content: '';
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, var(--acid-lime), var(--cyber-cyan));
    border-radius: 2px;
}

/* Section line accent variants */
.section-line {
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, var(--acid-lime), var(--cyber-cyan));
    border-radius: 2px;
    flex-shrink: 0;
}

.section-line.backlog {
    background: linear-gradient(180deg, var(--electric-violet), var(--cyber-cyan));
}

.badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(186, 255, 0, 0.1);
    color: var(--acid-lime);
    border-radius: 100px;
    border: 1px solid rgba(186, 255, 0, 0.3);
}

.badge.backlog {
    background: rgba(191, 0, 255, 0.1);
    color: var(--electric-violet);
    border-color: rgba(191, 0, 255, 0.3);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

/* ============================================
   CARDS - GLASSMORPHISM (Index Grid)
   ============================================ */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--acid-lime), var(--cyber-cyan));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(186, 255, 0, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover {
    border-color: rgba(186, 255, 0, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), var(--glow-lime);
}

.card:hover::before {
    opacity: 1;
}

.card:hover::after {
    opacity: 1;
}

.card-number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-subtle);
    margin-bottom: 1rem;
}

.card-icon {
    width: 56px;
    height: 56px;
    background: rgba(186, 255, 0, 0.08);
    border: 1px solid rgba(186, 255, 0, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    transition: all 0.4s ease;
}

.card:hover .card-icon {
    background: rgba(186, 255, 0, 0.15);
    border-color: rgba(186, 255, 0, 0.4);
    box-shadow: var(--glow-lime);
}

.card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.card-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    padding: 0.375rem 0.75rem;
    background: rgba(240, 240, 240, 0.05);
    border-radius: 100px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.tag.active {
    background: rgba(186, 255, 0, 0.12);
    color: var(--acid-lime);
    border: 1px solid rgba(186, 255, 0, 0.2);
}

.tag.backlog {
    background: rgba(191, 0, 255, 0.12);
    color: var(--electric-violet);
    border: 1px solid rgba(191, 0, 255, 0.2);
}

.card-status {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.card-status.active {
    background: var(--acid-lime);
    box-shadow: var(--glow-lime);
    animation: pulse 2s infinite;
}

.card-status.backlog {
    background: var(--electric-violet);
    box-shadow: var(--glow-violet);
}

/* ============================================
   CONTENT CARDS - DETAIL PAGES
   ============================================ */
.content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
    position: relative;
}

.content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20%;
    right: -20%;
    bottom: 0;
    background: url('B-02_section_concrete.webp') center/cover no-repeat;
    opacity: 0.05;
    pointer-events: none;
}

.section {
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.content-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(186, 255, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.content-card h4 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--acid-lime);
}

.content-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.content-card p:last-child {
    margin-bottom: 0;
}

/* ============================================
   STYLED LIST
   ============================================ */
.styled-list {
    list-style: none;
    padding: 0;
}

.styled-list li {
    padding: 0.75rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(240, 240, 240, 0.05);
}

.styled-list li:last-child {
    border-bottom: none;
}

.styled-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--acid-lime);
    font-family: var(--font-mono);
}

.styled-list li strong {
    color: var(--ghost-white);
}

/* ============================================
   STEPS
   ============================================ */
.steps {
    counter-reset: step;
}

.step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 23px;
    top: 56px;
    width: 2px;
    height: calc(100% - 20px);
    background: linear-gradient(180deg, rgba(186, 255, 0, 0.3), transparent);
}

.step-number {
    counter-increment: step;
    width: 48px;
    height: 48px;
    background: rgba(186, 255, 0, 0.1);
    border: 1px solid rgba(186, 255, 0, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--acid-lime);
    flex-shrink: 0;
}

.step-number::before {
    content: counter(step);
}

.step-content h4 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.step-content code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    padding: 0.2em 0.5em;
    background: rgba(186, 255, 0, 0.1);
    border-radius: 4px;
    color: var(--acid-lime);
}

/* ============================================
   CODE BLOCK
   ============================================ */
.code-block {
    background: var(--eerie-black);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    margin: 1.5rem 0;
    position: relative;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(240, 240, 240, 0.03);
    border-bottom: 1px solid var(--glass-border);
}

.code-header span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-subtle);
}

.copy-btn {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(186, 255, 0, 0.1);
    border: 1px solid rgba(186, 255, 0, 0.3);
    border-radius: 8px;
    color: var(--acid-lime);
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: rgba(186, 255, 0, 0.2);
    box-shadow: var(--glow-lime);
}

.code-content {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.9;
    color: var(--ghost-white);
    overflow-x: auto;
    white-space: pre-wrap;
}

/* ============================================
   EXAMPLE BOX
   ============================================ */
.example-box {
    background: linear-gradient(135deg, rgba(186, 255, 0, 0.05), rgba(0, 240, 255, 0.03));
    border: 1px solid rgba(186, 255, 0, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
}

.example-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--acid-lime), var(--cyber-cyan));
}

.example-box .label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--acid-lime);
    margin-bottom: 1rem;
}

.example-box .conversation {
    font-size: 0.95rem;
}

.example-box .user {
    color: var(--cyber-cyan);
    margin-bottom: 0.75rem;
}

.example-box .assistant {
    color: var(--text-muted);
    padding-left: 1rem;
    border-left: 2px solid rgba(186, 255, 0, 0.2);
}

.example-label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--acid-lime);
    margin-bottom: 1rem;
}

.example-content {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   BACKLOG NOTICE
   ============================================ */
.backlog-notice {
    background: linear-gradient(135deg, rgba(191, 0, 255, 0.1), rgba(0, 240, 255, 0.05));
    border: 1px solid rgba(191, 0, 255, 0.3);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin: 1.5rem 0;
    text-align: center;
}

.backlog-notice h4 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--electric-violet);
    margin-bottom: 0.5rem;
}

.backlog-notice p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ============================================
   MAIN CONTENT WRAPPER - DETAIL PAGES
   ============================================ */
.main-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
    position: relative;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20%;
    right: -20%;
    bottom: 0;
    background: url('B-02_section_concrete.webp') center/cover no-repeat;
    opacity: 0.05;
    pointer-events: none;
}

/* ============================================
   FOOTER - INDEX PAGE
   ============================================ */
.footer {
    padding: 3rem 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    background: var(--obsidian);
}

.footer p {
    font-size: 0.875rem;
    color: var(--text-subtle);
}

.footer a {
    color: var(--acid-lime);
    text-decoration: none;
}

.footer a:hover {
    text-shadow: var(--glow-lime);
}

/* ============================================
   FOOTER NAVIGATION - DETAIL PAGES
   ============================================ */
.footer-nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 1rem;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--ghost-white);
    transition: all 0.3s ease;
    flex: 1;
    max-width: 280px;
}

.footer-link:hover {
    border-color: rgba(186, 255, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-shadow: none;
}

.footer-link .arrow {
    font-size: 1.25rem;
    color: var(--acid-lime);
}

.footer-link .label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-subtle);
    margin-bottom: 0.25rem;
}

.footer-link .title {
    font-family: var(--font-display);
    font-weight: 600;
}

.footer-link.next {
    justify-content: flex-end;
    text-align: right;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes gentle-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ============================================
   HAND-DRAWN ELEMENTS (Chicken Scratch)
   ============================================ */
.hand-underline {
    position: relative;
    display: inline-block;
}

.hand-underline::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 12px;
    background: url('Underline-lime_1.png') no-repeat center;
    background-size: contain;
    opacity: 0.9;
}

.hand-arrow {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.hand-arrow img {
    width: 32px;
    height: auto;
    opacity: 0.7;
    animation: gentle-bounce 3s ease-in-out infinite;
}

.section-highlight {
    position: relative;
}

.section-highlight::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--acid-lime), transparent);
    border-radius: 2px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 8rem 1.5rem 4rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-annotation {
        display: none;
    }

    .hero-header {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-icon {
        width: 72px;
        height: 72px;
        font-size: 2rem;
    }

    .use-cases {
        padding: 2rem 1.5rem 4rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .content {
        padding: 0 1.5rem 4rem;
    }

    .step {
        flex-direction: column;
        gap: 1rem;
    }

    .step:not(:last-child)::after {
        display: none;
    }

    .footer {
        padding: 2rem 1.5rem;
    }

    .footer-nav-container {
        padding: 2rem 1.5rem;
    }

    .footer-nav {
        flex-direction: column;
    }

    .footer-link {
        max-width: none;
    }

    .footer-link.next {
        justify-content: flex-start;
        text-align: left;
    }
}
