/* ============================================
   Ben Kohler - Minimalist Design
   ============================================ */

/* CSS Variables - Tokyo Night Light Theme */
:root {
    --bg-primary: #d5d6db;
    --bg-secondary: #cbccd1;
    --bg-tertiary: #c0c1c6;
    --text-primary: #343b58;
    --text-secondary: #4c505e;
    --text-muted: #6e7282;
    --border: rgba(52, 59, 88, 0.15);
    --border-light: rgba(52, 59, 88, 0.08);
    --accent: #166775;
    --accent-hover: #0f5561;
    --accent-light: rgba(22, 103, 117, 0.15);
    --accent-glow: rgba(22, 103, 117, 0.2);
    --glass: rgba(213, 214, 219, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: rgba(52, 59, 88, 0.1);
    /* Status Colors */
    --status-live: #10b981;
    --status-live-glow: rgba(16, 185, 129, 0.15);
    --status-beta: #8b5cf6;
    --status-beta-glow: rgba(139, 92, 246, 0.15);
    --status-dev: #f59e0b;
    --status-dev-glow: rgba(245, 158, 11, 0.12);
    --status-planned: #6b7280;
    --status-planned-glow: rgba(107, 114, 128, 0.1);
    /* Retro Terminal Colors */
    --terminal-bg: #0d1117;
    --terminal-border: #30363d;
    --neon-cyan: #00fff5;
    --neon-magenta: #ff00ff;
    --neon-green: #39ff14;
    --scanline-opacity: 0.03;
}

[data-theme="dark"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --text-primary: #f5f5f5;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --border: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.05);
    --accent: #14b8a6;
    --accent-hover: #2dd4bf;
    --accent-light: rgba(20, 184, 166, 0.15);
    --accent-glow: rgba(20, 184, 166, 0.2);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.4);
    /* Status Colors */
    --status-live: #34d399;
    --status-live-glow: rgba(52, 211, 153, 0.25);
    --status-beta: #a78bfa;
    --status-beta-glow: rgba(167, 139, 250, 0.2);
    --status-dev: #fbbf24;
    --status-dev-glow: rgba(251, 191, 36, 0.2);
    --status-planned: #9ca3af;
    --status-planned-glow: rgba(156, 163, 175, 0.15);
    /* Retro Terminal Colors */
    --terminal-bg: #0d1117;
    --terminal-border: #30363d;
    --neon-cyan: #00fff5;
    --neon-magenta: #ff00ff;
    --neon-green: #39ff14;
    --scanline-opacity: 0.05;
}

/* Dark mode glass adjustments */
[data-theme="dark"] .app-card {
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .app-card::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
}

[data-theme="dark"] .app-card:hover {
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .app-card:has(.app-card__status--live) {
    background: linear-gradient(135deg,
        rgba(52, 211, 153, 0.12) 0%,
        var(--glass) 50%,
        rgba(52, 211, 153, 0.08) 100%);
    border-color: rgba(52, 211, 153, 0.25);
}

[data-theme="dark"] .app-card:has(.app-card__status--live):hover {
    border-color: rgba(52, 211, 153, 0.5);
    box-shadow:
        0 20px 50px rgba(52, 211, 153, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .app-card:has(.app-card__status--beta) {
    background: linear-gradient(135deg,
        rgba(167, 139, 250, 0.12) 0%,
        var(--glass) 50%,
        rgba(167, 139, 250, 0.08) 100%);
    border-color: rgba(167, 139, 250, 0.25);
}

[data-theme="dark"] .app-card:has(.app-card__status--beta):hover {
    border-color: rgba(167, 139, 250, 0.5);
    box-shadow:
        0 20px 50px rgba(167, 139, 250, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .app-card:has(.app-card__status--dev) {
    background: linear-gradient(135deg,
        rgba(251, 191, 36, 0.1) 0%,
        var(--glass) 50%,
        rgba(251, 191, 36, 0.06) 100%);
    border-color: rgba(251, 191, 36, 0.25);
}

[data-theme="dark"] .app-card:has(.app-card__status--dev):hover {
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow:
        0 20px 50px rgba(251, 191, 36, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .app-card--featured {
    background: linear-gradient(135deg,
        rgba(52, 211, 153, 0.15) 0%,
        var(--glass) 40%,
        rgba(20, 184, 166, 0.1) 100%);
    border-color: rgba(52, 211, 153, 0.3);
}

[data-theme="dark"] .app-card--featured:hover {
    border-color: rgba(52, 211, 153, 0.6);
    box-shadow:
        0 25px 60px rgba(52, 211, 153, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding-top: 130px;
    font-family: "Geist Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: -0.06em;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    body {
        padding-top: 110px;
    }
}

::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--text-secondary);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-family: "Departure Mono", "IBM Plex Mono", "SF Mono", monospace;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

p {
    margin: 0 0 1rem;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   ASCII Navigation
   ============================================ */
.ascii-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 1rem 0 0.75rem;
    border-bottom: 1px solid var(--border-light);
    background: rgba(213, 214, 219, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

@media (min-width: 768px) {
    .ascii-nav {
        padding: 1.5rem 0 1rem;
    }
}

.ascii-nav .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .ascii-nav .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1.5rem;
    }
}

.ascii-nav__header {
    text-align: center;
}

.header-text {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.9rem;
    color: var(--neon-magenta);
    text-shadow: 0 0 5px var(--neon-magenta);
    margin: 0;
}

@media (min-width: 768px) {
    .header-text {
        font-size: 1rem;
    }
}

.ascii-nav__menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 0.75rem;
}

@media (min-width: 768px) {
    .ascii-nav__menu {
        gap: 1.5rem;
    }
}

.ascii-nav__link {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.35rem 0;
}

@media (min-width: 768px) {
    .ascii-nav__link {
        font-size: 0.875rem;
        padding: 0.5rem 0;
    }
}

.ascii-nav__link:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan);
}

[data-theme="dark"] .ascii-nav {
    background: rgba(10, 10, 10, 0.6);
}

[data-theme="dark"] .header-text {
    color: var(--neon-magenta);
    text-shadow: 0 0 10px var(--neon-magenta), 0 0 20px var(--neon-magenta);
}

[data-theme="dark"] .ascii-nav__link:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

/* ============================================
   Theme Toggle
   ============================================ */
.theme-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 100;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    transform: scale(1.05);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-toggle .moon-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: block;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero__layout {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 4rem;
    }
}

.hero__content {
    position: relative;
    z-index: 2;
}

.hero__label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-light);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.75rem;
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    margin-bottom: 1.5rem;
    max-width: 600px;
    line-height: 1.1;
}

.hero__description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Visual / Profile Image */
.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero__image-wrapper {
    position: relative;
}

.hero__image {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 24px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px var(--border-light);
    transform: rotate(3deg);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.hero__image:hover {
    transform: rotate(-1deg) scale(1.02);
    box-shadow: 
        0 30px 60px -15px rgba(0, 0, 0, 0.2),
        0 0 0 1px var(--border-light),
        0 0 40px var(--accent-glow);
}

/* Gradient Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
}

.orb--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    top: -150px;
    right: -100px;
}

.orb--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, transparent 70%);
    bottom: -100px;
    left: -150px;
}

[data-theme="dark"] .orb--1 {
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.4;
}

[data-theme="dark"] .orb--2 {
    background: radial-gradient(circle, rgba(20, 184, 166, 0.1) 0%, transparent 70%);
    opacity: 0.3;
}

/* ============================================
   Retro Terminal Header
   ============================================ */
.terminal-window {
    background: var(--terminal-bg);
    border: 1px solid var(--terminal-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    max-width: 700px;
}

/* CRT Scanlines Effect */
.terminal-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, var(--scanline-opacity)) 0px,
        rgba(0, 0, 0, var(--scanline-opacity)) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 10;
}

/* CRT Glow Effect */
.terminal-window::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 255, 245, 0.03) 0%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 1;
}

.terminal-header {
    background: linear-gradient(180deg, #2d333b 0%, #22272e 100%);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--terminal-border);
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
}

.terminal-btn--close { background: #ff5f57; }
.terminal-btn--minimize { background: #febc2e; }
.terminal-btn--maximize { background: #28c840; }

.terminal-title {
    flex: 1;
    text-align: center;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.75rem;
    color: #8b949e;
    letter-spacing: 0.02em;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    position: relative;
    z-index: 5;
}

.terminal-line {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.terminal-prompt {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan);
    flex-shrink: 0;
}

.terminal-command {
    color: #c9d1d9;
}

.terminal-output {
    color: #8b949e;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.terminal-ascii {
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green);
    white-space: pre;
    font-size: 0.65rem;
    line-height: 1.2;
    margin: 1rem 0;
    letter-spacing: 0.05em;
}

.terminal-highlight {
    color: var(--neon-magenta);
    text-shadow: 0 0 10px var(--neon-magenta);
}

.terminal-accent {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan);
}

.terminal-cursor {
    display: inline-block;
    width: 0.6em;
    height: 1.1em;
    background: var(--neon-cyan);
    animation: cursor-blink 1s step-end infinite;
    vertical-align: text-bottom;
    box-shadow: 0 0 8px var(--neon-cyan);
}

@keyframes cursor-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Typewriter Effect for Hero Title */
.typewriter {
    display: inline;
}

.typewriter-cursor {
    display: inline-block;
    color: var(--accent);
    font-weight: 400;
    animation: typewriter-blink 0.8s step-end infinite;
    margin-left: 2px;
}

@keyframes typewriter-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero__title {
    min-height: 2.4em;
}

.typewriter-bold {
    font-weight: 700;
    display: block;
}

/* Typing animation */
.typing-text {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 2s steps(30) forwards;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

/* Neon glow for specific elements */
.neon-text {
    text-shadow:
        0 0 5px currentColor,
        0 0 10px currentColor,
        0 0 20px currentColor;
}

/* Hero with terminal - adjust layout */
.hero--terminal .hero__layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 900px) {
    .hero--terminal .hero__layout {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
    }
}

.hero--terminal .hero__content {
    order: 2;
}

.hero--terminal .hero__terminal {
    order: 1;
}

@media (min-width: 900px) {
    .hero--terminal .hero__content {
        order: 1;
    }
    .hero--terminal .hero__terminal {
        order: 2;
    }
}

/* Mobile terminal adjustments */
@media (max-width: 640px) {
    .terminal-window {
        border-radius: 8px;
    }

    .terminal-body {
        padding: 1rem;
        font-size: 0.75rem;
    }

    .terminal-ascii {
        display: none;
    }

    .terminal-header {
        padding: 0.5rem 0.75rem;
    }

    .terminal-btn {
        width: 10px;
        height: 10px;
    }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.85rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 100px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
}

.btn--primary {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 4px 14px var(--accent-glow);
}

.btn--primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn--secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border);
}

.btn--secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--border);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: 5rem 0;
    overflow-x: hidden;
}

.section__title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 0.75rem;
}

.section__description {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* ============================================
   Apps Grid Layout
   ============================================ */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

/* Featured Card - Full width top */
.app-card--featured {
    grid-column: 1 / -1;
}

/* Large Cards - 2 columns */
.app-card--large {
    grid-column: span 2;
}

/* Medium Cards - 1 column */
.app-card--medium {
    grid-column: span 1;
}

/* Small Cards - 1 column, subtle */
.app-card--small {
    grid-column: span 1;
    opacity: 0.6;
}

.app-card--small:hover {
    opacity: 1;
}

/* Mobile adjustments */
@media (max-width: 1024px) {
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .app-card--featured {
        grid-column: 1 / -1;
    }

    .app-card--large {
        grid-column: span 1;
    }
}

@media (max-width: 640px) {
    .apps-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }

    .app-card--featured,
    .app-card--large,
    .app-card--medium,
    .app-card--small {
        grid-column: span 1;
    }

    .app-card--featured .app-card__title {
        font-size: 1.35rem;
    }

    .app-card--featured .app-card__description {
        font-size: 0.9375rem;
    }

    .app-card {
        padding: 1.25rem;
        border-radius: 16px;
        backdrop-filter: blur(20px) saturate(150%);
        -webkit-backdrop-filter: blur(20px) saturate(150%);
    }

    .app-card::before {
        height: 40%;
    }

    .app-card:hover {
        transform: translateY(-3px) scale(1.01);
    }

    .app-card__title {
        font-size: 1.125rem;
    }

    .app-card__description {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }

    .app-card__header {
        margin-bottom: 0.75rem;
    }

    .app-card__status {
        font-size: 0.625rem;
        padding: 0.25rem 0.5rem;
    }

    .app-card__status::before {
        width: 5px;
        height: 5px;
    }

    .app-card__platform {
        font-size: 0.6875rem;
    }

    .app-card__link {
        font-size: 0.8125rem;
    }
}

.app-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.06),
        inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

/* Glass shine effect */
.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
    border-radius: 24px 24px 0 0;
    pointer-events: none;
}

.app-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.12),
        inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

/* Status-based glass tinting */
.app-card:has(.app-card__status--live) {
    background: linear-gradient(135deg,
        rgba(16, 185, 129, 0.08) 0%,
        var(--glass) 50%,
        rgba(16, 185, 129, 0.05) 100%);
    border-color: rgba(16, 185, 129, 0.2);
}

.app-card:has(.app-card__status--live):hover {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow:
        0 20px 50px rgba(16, 185, 129, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.app-card:has(.app-card__status--beta) {
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.08) 0%,
        var(--glass) 50%,
        rgba(139, 92, 246, 0.05) 100%);
    border-color: rgba(139, 92, 246, 0.2);
}

.app-card:has(.app-card__status--beta):hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow:
        0 20px 50px rgba(139, 92, 246, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.app-card:has(.app-card__status--dev) {
    background: linear-gradient(135deg,
        rgba(245, 158, 11, 0.08) 0%,
        var(--glass) 50%,
        rgba(245, 158, 11, 0.05) 100%);
    border-color: rgba(245, 158, 11, 0.2);
}

.app-card:has(.app-card__status--dev):hover {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow:
        0 20px 50px rgba(245, 158, 11, 0.12),
        inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.app-card:has(.app-card__status--planned) {
    background: linear-gradient(135deg,
        rgba(107, 114, 128, 0.06) 0%,
        var(--glass) 50%,
        rgba(107, 114, 128, 0.04) 100%);
    border-color: rgba(107, 114, 128, 0.15);
}

.app-card:has(.app-card__status--planned):hover {
    border-color: rgba(107, 114, 128, 0.3);
}

/* Featured Card Styles */
.app-card--featured {
    padding: 2.5rem;
    background: linear-gradient(135deg,
        rgba(16, 185, 129, 0.12) 0%,
        var(--glass) 40%,
        rgba(20, 184, 166, 0.08) 100%);
    border-color: rgba(16, 185, 129, 0.25);
}

.app-card--featured::before {
    height: 60%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
}

.app-card--featured:hover {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow:
        0 25px 60px rgba(16, 185, 129, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.app-card--featured .app-card__title {
    font-size: 1.75rem;
    font-weight: 700;
}

.app-card--featured .app-card__description {
    font-size: 1.05rem;
    max-width: 500px;
    line-height: 1.7;
}

.app-card__preview {
    margin-top: auto;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-tertiary);
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-card__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-card__preview-placeholder {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-align: center;
    padding: 1rem;
}

.app-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.app-card__platform {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.app-card__status {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.app-card__status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.app-card__status--live {
    background: var(--status-live-glow);
    color: var(--status-live);
}

.app-card__status--live::before {
    background: var(--status-live);
    box-shadow: 0 0 8px var(--status-live);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.app-card__status--beta {
    background: var(--status-beta-glow);
    color: var(--status-beta);
}

.app-card__status--beta::before {
    background: var(--status-beta);
    box-shadow: 0 0 8px var(--status-beta);
}

.app-card__status--dev {
    background: var(--status-dev-glow);
    color: var(--status-dev);
}

.app-card__status--planned {
    background: var(--status-planned-glow);
    color: var(--status-planned);
}

.app-card__title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.app-card__description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

.app-card__link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    margin-top: auto;
    padding-top: 0.5rem;
}

.app-card__link::after {
    content: "\2192";
    transition: transform 0.2s ease;
}

.app-card__link:hover {
    gap: 0.75rem;
}

.app-card__link:hover::after {
    transform: translateX(2px);
}

/* Link colors based on parent card status */
.app-card:has(.app-card__status--live) .app-card__link {
    color: var(--status-live);
}

.app-card:has(.app-card__status--beta) .app-card__link {
    color: var(--status-beta);
}

.app-card:has(.app-card__status--dev) .app-card__link {
    color: var(--status-dev);
}

.app-card__link--disabled {
    color: var(--text-muted);
    cursor: default;
}

.app-card__link--disabled::after {
    display: none;
}

.app-card__link--disabled:hover {
    color: var(--text-muted);
    gap: 0.5rem;
}

/* ============================================
   Pricing Section
   ============================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

.pricing-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.75rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.06),
        inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, transparent 100%);
    border-radius: 20px 20px 0 0;
    pointer-events: none;
}

.pricing-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(20, 184, 166, 0.3);
    box-shadow:
        0 20px 50px rgba(20, 184, 166, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.pricing-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-light) 0%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--accent);
}

.pricing-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.pricing-card__description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Dark mode pricing adjustments */
[data-theme="dark"] .pricing-card {
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .pricing-card::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 100%);
}

[data-theme="dark"] .pricing-card:hover {
    box-shadow:
        0 20px 50px rgba(20, 184, 166, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

/* Pricing responsive */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }

    .pricing-card {
        padding: 1.25rem;
        border-radius: 16px;
        backdrop-filter: blur(20px) saturate(150%);
        -webkit-backdrop-filter: blur(20px) saturate(150%);
    }

    .pricing-card__icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        margin-bottom: 1rem;
    }

    .pricing-card__icon svg {
        width: 20px;
        height: 20px;
    }

    .pricing-card__title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .pricing-card__description {
        font-size: 0.875rem;
        line-height: 1.5;
    }
}

/* ============================================
   Process Timeline
   ============================================ */
.process-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 900px;
    position: relative;
}

@media (min-width: 768px) {
    .process-list {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    .process-list::before {
        content: '';
        position: absolute;
        top: 24px;
        left: 40px;
        right: 40px;
        height: 2px;
        background: linear-gradient(90deg, var(--accent) 0%, var(--border) 100%);
        z-index: 0;
    }
}

.process-item {
    display: flex;
    flex-direction: row;
    gap: 1.25rem;
    padding: 1.5rem 0;
    position: relative;
    border-left: 2px solid var(--border-light);
    padding-left: 1.5rem;
    margin-left: 1rem;
}

@media (min-width: 768px) {
    .process-item {
        flex-direction: column;
        text-align: left;
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        padding: 0;
    }
}

.process-item__number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.process-item:first-child .process-item__number {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.process-item:hover .process-item__number {
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.1);
}

.process-item:first-child:hover .process-item__number {
    color: #ffffff;
}

/* Mobile: Dot on timeline */
.process-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 1.75rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

@media (min-width: 768px) {
    .process-item::before {
        display: none;
    }
}

.process-item__content {
    flex: 1;
}

@media (min-width: 768px) {
    .process-item__content {
        margin-top: 1.25rem;
    }
}

.process-item__content h3 {
    font-size: 1.0625rem;
    margin-bottom: 0.5rem;
}

.process-item__content p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1.5fr;
        gap: 4rem;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item h3 {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.375rem;
}

.contact-item a {
    font-size: 1rem;
    color: var(--text-primary);
}

.contact-item a:hover {
    color: var(--text-secondary);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

/* Honeypot - versteckt für Menschen, sichtbar für Bots */
.form-group--hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: border-color 0.2s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--text-secondary);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    align-self: flex-start;
    margin-top: 0.5rem;
}

.form-status {
    font-size: 0.875rem;
    min-height: 1.25rem;
}

.form-status--success {
    color: #22c55e;
}

.form-status--error {
    color: #ef4444;
}

.form-status--error a {
    color: inherit;
    text-decoration: underline;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-light);
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer__brand {
    font-family: "Departure Mono", "IBM Plex Mono", "SF Mono", monospace;
    font-size: 1.125rem;
    font-weight: 400;
    margin: 0;
}

.footer__tagline {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0.25rem 0 0;
}

.footer__links {
    display: flex;
    gap: 1.5rem;
}

.footer__links a {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.footer__links a:hover {
    color: var(--text-primary);
}

.footer__copyright {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
}

/* ============================================
   Scroll Progress
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--text-primary);
    z-index: 101;
    transition: width 0.1s linear;
}

/* ============================================
   Back to Top
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 99;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* ============================================
   Legal Pages
   ============================================ */
.legal-section {
    padding: 6rem 1.5rem;
}

.legal-section .container {
    max-width: 720px;
}

.legal-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.legal-section h4 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-section p,
.legal-section li {
    color: var(--text-secondary);
}

.legal-section ul {
    padding-left: 1.25rem;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 3rem;
}

.legal-footer {
    text-align: center;
    padding: 4rem 1.5rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 767px) {
    .hero {
        min-height: auto;
        padding: 5rem 0 4rem;
    }
    
    .hero__layout {
        text-align: center;
    }
    
    .hero__description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.625rem;
    }

    .hero__actions .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .hero__actions .btn--primary {
        width: 100%;
        max-width: 280px;
    }

    .hero__actions .btn--secondary {
        flex: 1;
        min-width: 0;
    }
    
    .hero__visual {
        order: -1;
        margin-bottom: 1rem;
    }
    
    .hero__image {
        max-width: 200px;
    }
    
    .orb--1 {
        width: 300px;
        height: 300px;
        top: -80px;
        right: -80px;
    }
    
    .orb--2 {
        display: none;
    }

    .footer__content {
        flex-direction: column;
        align-items: flex-start;
    }

    .theme-toggle {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }

    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 40px;
        height: 40px;
    }

    .section {
        padding: 3rem 0;
    }

    .section__description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    /* Reduce motion for better mobile performance */
    .app-card,
    .pricing-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
}

/* ============================================
   Scroll Animations
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-stagger {
    opacity: 0;
    transform: translateY(20px);
}

.fade-in-stagger.visible {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger delays for grid items */
.apps-grid .app-card:nth-child(1) { --delay: 0ms; }
.apps-grid .app-card:nth-child(2) { --delay: 80ms; }
.apps-grid .app-card:nth-child(3) { --delay: 160ms; }
.apps-grid .app-card:nth-child(4) { --delay: 240ms; }
.apps-grid .app-card:nth-child(5) { --delay: 320ms; }
.apps-grid .app-card:nth-child(6) { --delay: 400ms; }
.apps-grid .app-card:nth-child(7) { --delay: 480ms; }
.apps-grid .app-card:nth-child(8) { --delay: 560ms; }

.apps-grid .app-card.fade-in-stagger.visible {
    animation-delay: var(--delay);
}

.process-item:nth-child(1) { --delay: 0ms; }
.process-item:nth-child(2) { --delay: 100ms; }
.process-item:nth-child(3) { --delay: 200ms; }
.process-item:nth-child(4) { --delay: 300ms; }

.process-item.fade-in-stagger.visible {
    animation-delay: var(--delay);
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
    
    .fade-in,
    .fade-in-stagger {
        opacity: 1;
        transform: none;
    }
}
