@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Outfit:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0a0b;
    --bg-subtle: #0f0f11;
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.5);
    --accent: #E07A3D;
    --accent-glow: rgba(224, 122, 61, 0.15);
    --accent-glow-strong: rgba(224, 122, 61, 0.4);
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    overflow-x: hidden;
}

/* Atmospheric background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 600px 400px at 50% 40%, var(--accent-glow) 0%, transparent 70%),
        radial-gradient(ellipse 800px 600px at 50% 45%, rgba(224, 122, 61, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Subtle noise texture */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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");
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

/* ========================================
   macOS Desktop Environment Elements
   ======================================== */

/* Menu Bar */
.macos-menubar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    z-index: 100;
    opacity: 0;
    animation: fade-in 1s ease-out 0.2s forwards;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@keyframes fade-in {
    to { opacity: 0.7; }
}

.menubar-left,
.menubar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.apple-logo {
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='white' d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.9;
}

.menubar-app {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.menubar-item {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
}

.menubar-right {
    gap: 10px;
}

.menubar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
}

.menubar-time {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    min-width: 75px;
    text-align: right;
}

/* Background terminal hero */
.terminal-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%);
    width: 1100px;
    max-width: 98vw;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    animation: terminal-fade-in 1.5s ease-out 0.3s forwards;
    transition: transform 0.15s ease-out;
    will-change: transform;
}

@keyframes terminal-fade-in {
    to { opacity: 1; }
}

.terminal-window {
    background: #1e1e1e;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 50px 100px -20px rgba(0, 0, 0, 0.7),
        0 30px 60px -15px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(0, 0, 0, 0.3),
        0 0 1px 0 rgba(255, 255, 255, 0.1) inset;
    overflow: hidden;
    position: relative;
}

/* CRT Effects */
.terminal-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 0, 0, 0.15) 50%
    );
    background-size: 100% 2px;
    pointer-events: none;
    z-index: 10;
    opacity: 0.5;
}

.terminal-window::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        transparent 40%,
        rgba(0, 0, 0, 0.5) 100%
    );
    pointer-events: none;
    z-index: 11;
}

/* CRT screen glow */
.terminal-content::before {
    content: '';
    position: absolute;
    top: 38px;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at 50% 30%,
        rgba(100, 200, 255, 0.03) 0%,
        transparent 50%
    );
    pointer-events: none;
    z-index: 1;
}

.terminal-header {
    background: linear-gradient(180deg, #3c3c3c 0%, #323232 100%);
    padding: 0;
    height: 38px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #1a1a1a;
    position: relative;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
    padding-left: 14px;
    position: absolute;
    left: 0;
}

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

.terminal-btn.close {
    background: linear-gradient(180deg, #ff6058 0%, #e04942 100%);
    box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.2) inset;
}

.terminal-btn.minimize {
    background: linear-gradient(180deg, #ffbe2f 0%, #dea123 100%);
    box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.2) inset;
}

.terminal-btn.maximize {
    background: linear-gradient(180deg, #2cc840 0%, #1fa82e 100%);
    box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.2) inset;
}

.terminal-title {
    flex: 1;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.terminal-icon {
    opacity: 0.85;
    flex-shrink: 0;
}

.terminal-content {
    padding: 14px 24px 30px;
    min-height: 380px;
    background: #1e1e1e;
    text-align: left;
    position: relative;
    animation: flicker 0.15s infinite;
}

@keyframes flicker {
    0% { opacity: 0.94; }
    5% { opacity: 0.98; }
    10% { opacity: 0.96; }
    15% { opacity: 1; }
    20% { opacity: 0.97; }
    50% { opacity: 1; }
    80% { opacity: 0.96; }
    90% { opacity: 0.98; }
    100% { opacity: 0.95; }
}

.terminal-code {
    font-family: 'SF Mono', 'Monaco', 'Menlo', ui-monospace, monospace;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    white-space: pre;
    tab-size: 2;
    text-align: left;
    text-shadow:
        0 0 5px rgba(255, 255, 255, 0.15),
        0 0 10px rgba(255, 255, 255, 0.1),
        0 0 20px rgba(255, 255, 255, 0.05);
    -webkit-mask-image: linear-gradient(to bottom, white 0%, white 25%, transparent 85%);
    mask-image: linear-gradient(to bottom, white 0%, white 25%, transparent 85%);
}

/* Syntax highlighting - subtle, VS Code dark-inspired */
.code-keyword { color: rgba(198, 120, 221, 0.7); }
.code-string { color: rgba(152, 195, 121, 0.7); }
.code-comment { color: rgba(92, 99, 112, 0.9); font-style: italic; }
.code-function { color: rgba(97, 175, 239, 0.7); }
.code-class { color: rgba(229, 192, 123, 0.7); }
.code-number { color: rgba(209, 154, 102, 0.7); }

/* Blinking cursor */
.cursor {
    color: rgba(255, 255, 255, 0.7);
    animation: blink 1s step-end infinite;
}

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

/* Gradient fade at bottom */
.terminal-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(10, 10, 11, 0.4) 35%,
        rgba(10, 10, 11, 0.85) 65%,
        var(--bg) 100%
    );
    pointer-events: none;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 600px;
    position: relative;
    z-index: 1;
}

/* Clawdachi sprite with glow */
.clawdachi-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(0) translateY(20px);
    animation: sprite-emerge 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s forwards;
}

@keyframes sprite-emerge {
    0% {
        opacity: 0;
        visibility: hidden;
        transform: scale(0) translateY(30px);
        filter: brightness(3) drop-shadow(0 0 40px rgba(224, 122, 61, 1));
    }
    1% {
        visibility: visible;
    }
    50% {
        opacity: 1;
        transform: scale(1.15) translateY(-15px);
        filter: brightness(1.8) drop-shadow(0 0 30px rgba(224, 122, 61, 0.8));
    }
    100% {
        opacity: 1;
        visibility: visible;
        transform: scale(1) translateY(0);
        filter: brightness(1) drop-shadow(0 0 0 transparent);
    }
}

.clawdachi-glow {
    position: absolute;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, var(--accent-glow-strong) 0%, transparent 70%);
    filter: blur(40px);
    opacity: 0;
    pointer-events: none;
    animation: glow-appear 0.4s ease-out 2s forwards, glow-pulse 2.5s ease-in-out 2.4s infinite;
}

@keyframes glow-appear {
    to { opacity: 0.6; }
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}


.clawdachi {
    width: 240px;
    height: 240px;
    background-image: url('Clawdachi-animation1.gif');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    position: relative;
    z-index: 1;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Floating effect - shadow beneath */
    filter: drop-shadow(0 25px 20px rgba(0, 0, 0, 0.5))
            drop-shadow(0 15px 10px rgba(0, 0, 0, 0.3));
    animation: float-sprite 2.5s ease-in-out infinite;
}

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

/* Shadow beneath sprite for floating effect */
.clawdachi-shadow {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background: radial-gradient(ellipse at center,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 40%,
        transparent 70%
    );
    border-radius: 50%;
    filter: blur(8px);
    animation: shadow-pulse 2.5s ease-in-out infinite;
    z-index: 0;
}

@keyframes shadow-pulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateX(-50%) scale(0.85);
        opacity: 0.4;
    }
}

.clawdachi:hover {
    transform: scale(1.05) translateY(-5px);
}

.clawdachi:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 8px;
    border-radius: 8px;
}

.clawdachi.clicked {
    animation: wiggle 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg) scale(1.05); }
    20% { transform: rotate(-8deg) scale(1.1); }
    40% { transform: rotate(6deg) scale(1.08); }
    60% { transform: rotate(-4deg) scale(1.06); }
    80% { transform: rotate(2deg) scale(1.05); }
}

.clawdachi.noticed {
    filter: drop-shadow(0 0 20px var(--accent-glow-strong));
}

/* Speech bubble */
.speech-bubble {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.9);
    background: var(--text);
    color: var(--bg);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    white-space: nowrap;
    z-index: 10;
}

.speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    margin-left: -6px;
    width: 12px;
    height: 12px;
    background: var(--text);
    transform: rotate(45deg);
    border-radius: 2px;
}

.speech-bubble.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* ASCII Title */
.ascii-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    line-height: 1.1;
    margin: 0;
    margin-top: 1rem;
    color: var(--text);
    text-shadow:
        0 0 10px rgba(224, 122, 61, 0.5),
        0 0 20px rgba(224, 122, 61, 0.3),
        0 0 40px rgba(224, 122, 61, 0.2);
    background: linear-gradient(180deg, var(--text) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(224, 122, 61, 0.4));
    white-space: pre;
    text-align: center;
}

.tagline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-muted);
    max-width: 400px;
    line-height: 1.6;
}

/* Signup Form */
.signup-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    position: relative;
    min-height: 60px;
}

.signup-form {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.signup-form input[type="email"] {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 0 1.25rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: var(--text);
    width: 220px;
    transition: all 0.3s ease;
}

.signup-form input[type="email"]::placeholder {
    color: var(--text-muted);
}

/* Honeypot - invisible to users */
#website-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    pointer-events: none;
}

.signup-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(224, 122, 61, 0.15);
}

.signup-success {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: #2cc840;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
    position: absolute;
    margin-top: 0;
}

.signup-success.visible {
    opacity: 1;
    transform: translateY(0);
}

.signup-form.submitted {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

/* Button */
.button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 2px 8px rgba(224, 122, 61, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.button::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%);
    pointer-events: none;
}

.button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 30px rgba(224, 122, 61, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.button:active {
    transform: translateY(-1px) scale(0.98);
}

.button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.button-icon {
    width: 18px;
    height: 18px;
    opacity: 0.9;
}

.requirements {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Footer */
footer {
    position: fixed;
    bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links span {
    color: var(--text-muted);
}

.footer-links span:nth-child(2) {
    opacity: 0.4;
}

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

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

footer a:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

.disclaimer {
    font-size: 0.75rem;
    opacity: 0.6;
}

/* Entrance animations */
.animate-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 2.2s; }
.delay-3 { animation-delay: 2.4s; }
.delay-4 { animation-delay: 2.6s; }
.delay-5 { animation-delay: 2.8s; }

/* Short height screens - scale terminal down */
@media (max-height: 850px) {
    .terminal-bg {
        transform: translate(-50%, -48%) scale(0.9);
    }
}

@media (max-height: 750px) {
    .terminal-bg {
        transform: translate(-50%, -48%) scale(0.8);
    }

    .clawdachi {
        width: 200px;
        height: 200px;
    }

    .clawdachi-glow {
        width: 240px;
        height: 240px;
    }

    .ascii-title {
        font-size: 0.45rem;
    }
}

@media (max-height: 650px) {
    .terminal-bg {
        transform: translate(-50%, -48%) scale(0.7);
    }

    .clawdachi {
        width: 160px;
        height: 160px;
    }

    .clawdachi-glow {
        width: 200px;
        height: 200px;
    }

    .ascii-title {
        font-size: 0.38rem;
    }

    .tagline {
        font-size: 1rem;
    }

    main {
        gap: 1rem;
    }
}

@media (max-height: 550px) {
    .terminal-bg {
        transform: translate(-50%, -48%) scale(0.6);
    }

    .clawdachi {
        width: 140px;
        height: 140px;
    }

    .clawdachi-glow {
        width: 180px;
        height: 180px;
    }

    .ascii-title {
        font-size: 0.32rem;
    }

    .tagline {
        font-size: 0.9rem;
    }

    main {
        gap: 0.75rem;
    }

    .signup-form input[type="email"] {
        padding: 0.75rem 1rem;
    }

    .button {
        padding: 0.75rem 1.5rem;
    }
}

/* Tablet / iPad */
@media (max-width: 1024px) {
    .terminal-bg {
        width: 85vw;
        max-width: 750px;
    }

    .terminal-content {
        padding: 12px 18px 24px;
        min-height: 320px;
    }

    .terminal-code {
        font-size: 11px;
    }

    .clawdachi {
        width: 200px;
        height: 200px;
    }

    .clawdachi-glow {
        width: 240px;
        height: 240px;
    }

    .clawdachi-shadow {
        width: 100px;
    }

    .ascii-title {
        font-size: 0.45rem;
    }

    .breach {
        width: 250px;
        height: 250px;
    }

    .breach-hole {
        width: 130px;
        height: 130px;
    }

    .breach .depth-layer {
        width: 85px;
        height: 85px;
    }

    .debris-field {
        width: 340px;
        height: 340px;
    }

    .escape-energy {
        width: 220px;
        height: 220px;
    }

    .escape-energy::before {
        width: 190px;
        height: 190px;
    }
}

/* Mobile - Full Terminal Experience */
@media (max-width: 640px) {
    body {
        padding: 0;
        min-height: 100vh;
        min-height: 100dvh; /* Dynamic viewport height for mobile */
        display: block;
        overflow: hidden;
        background: #0a0a0b;
    }

    /* Remove background glow on mobile - terminal is the hero */
    body::before,
    body::after {
        display: none;
    }

    /* Terminal becomes the full page */
    .terminal-bg {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        transform: none;
        opacity: 1;
        z-index: 1;
        animation: none;
    }

    .terminal-window {
        width: 100%;
        height: 100%;
        border-radius: 0;
        border: none;
        display: flex;
        flex-direction: column;
        box-shadow: none;
    }

    .terminal-header {
        height: 44px; /* iOS-style header height */
        border-radius: 0;
        flex-shrink: 0;
        padding-top: env(safe-area-inset-top, 0);
    }

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

    .terminal-buttons {
        gap: 7px;
        padding-left: 14px;
    }

    .terminal-title {
        font-size: 12px;
        font-weight: 600;
    }

    .terminal-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 0;
        min-height: auto;
        position: relative;
        overflow: hidden;
        -webkit-mask-image: none;
        mask-image: none;
    }

    /* Terminal code - subtle background on mobile */
    .terminal-code {
        display: block;
        position: absolute;
        top: 10px;
        left: 12px;
        right: 12px;
        font-size: 8px;
        line-height: 1.4;
        opacity: 0.15;
        -webkit-mask-image: linear-gradient(to bottom, white 0%, white 20%, transparent 70%);
        mask-image: linear-gradient(to bottom, white 0%, white 20%, transparent 70%);
        pointer-events: none;
        z-index: 1;
    }

    /* Hide the fade gradient */
    .terminal-fade {
        display: none;
    }

    /* Main content inside terminal */
    main {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 1rem;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom, 20px));
        gap: 1rem;
        z-index: 30;
        max-width: none;
    }

    /* Clawdachi wrapper */
    .clawdachi-wrapper {
        margin-bottom: 0.5rem;
        margin-top: -2rem;
    }

    .clawdachi {
        width: 280px;
        height: 280px;
    }

    .clawdachi-glow {
        width: 380px;
        height: 380px;
    }

    .clawdachi-shadow {
        width: 180px;
        bottom: -40px;
    }

    .speech-bubble {
        font-size: 0.7rem;
        top: -8px;
    }

    /* ASCII title - smaller for mobile */
    .ascii-title {
        font-size: 0.26rem;
        margin-top: 0.25rem;
        line-height: 1.0;
        letter-spacing: -0.02em;
    }

    .tagline {
        font-size: 0.95rem;
        padding: 0 1.5rem;
        line-height: 1.5;
    }

    /* Signup form mobile */
    .signup-container {
        width: 100%;
        padding: 0 1.5rem;
        margin-top: 0;
    }

    .signup-form {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .signup-form input[type="email"] {
        width: 100%;
        padding: 1rem 1.25rem;
        text-align: center;
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.12);
    }

    /* Bigger touch target for button */
    .button {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
        border-radius: 14px;
        width: 100%;
        justify-content: center;
    }

    .requirements {
        margin-top: 0.25rem;
        font-size: 0.7rem;
    }

    /* Hide menu bar on mobile */
    .macos-menubar {
        display: none;
    }

    /* Footer inside terminal */
    footer {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 0.75rem;
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 8px));
        background: linear-gradient(to top, rgba(30, 30, 30, 0.9) 0%, transparent 100%);
        gap: 0.4rem;
        font-size: 0.7rem;
        z-index: 35;
    }

    .disclaimer {
        font-size: 0.65rem;
    }

    /* Breach effect - centered in terminal content area */
    .breach {
        position: absolute;
        top: 28%;
        left: 50%;
        width: 220px;
        height: 220px;
        z-index: 20;
    }

    .breach-hole {
        width: 140px;
        height: 140px;
    }

    .breach::before {
        width: 160px;
        height: 160px;
    }

    .breach-glow {
        width: 200px;
        height: 200px;
    }

    .breach-energy {
        width: 180px;
        height: 180px;
    }

    .breach .depth-layer {
        width: 100px;
        height: 100px;
    }

    .smoke-container {
        width: 180px;
        height: 180px;
    }

    .smoke {
        width: 60px;
        height: 60px;
    }

    .smoke-1 { width: 70px; height: 70px; }
    .smoke-3 { width: 80px; height: 80px; }

    /* Debris field */
    .debris-field {
        top: 28%;
        width: 300px;
        height: 300px;
    }

    .shard {
        transform: scale(0.8);
    }

    .escape-energy {
        width: 200px;
        height: 200px;
    }

    .escape-energy::before {
        width: 180px;
        height: 180px;
    }

    /* CRT effect - lighter on mobile for performance */
    .terminal-window::before {
        opacity: 0.3;
    }

    .terminal-window::after {
        background: radial-gradient(
            ellipse at center,
            transparent 0%,
            transparent 50%,
            rgba(0, 0, 0, 0.4) 100%
        );
    }

    /* Subtle inner glow for terminal on mobile */
    .terminal-content::before {
        top: 0;
        background: radial-gradient(
            ellipse at 50% 35%,
            rgba(224, 122, 61, 0.04) 0%,
            transparent 60%
        );
    }

    /* Animation timing same as desktop */
    .delay-2 { animation-delay: 2.2s; }
    .delay-3 { animation-delay: 2.4s; }
    .delay-4 { animation-delay: 2.6s; }
    .delay-5 { animation-delay: 2.8s; }
}

/* Extra small screens */
@media (max-width: 380px) {
    .ascii-title {
        font-size: 0.22rem;
    }

    .clawdachi {
        width: 220px;
        height: 220px;
    }

    .clawdachi-glow {
        width: 300px;
        height: 300px;
    }

    .clawdachi-shadow {
        width: 140px;
    }

    .tagline {
        font-size: 0.875rem;
    }

    .breach {
        width: 180px;
        height: 180px;
    }

    .breach-hole {
        width: 110px;
        height: 110px;
    }

    .breach .depth-layer {
        width: 80px;
        height: 80px;
    }

    .debris-field {
        width: 250px;
        height: 250px;
    }
}

/* Short screens (landscape or small height) */
@media (max-height: 600px) and (max-width: 640px) {
    main {
        gap: 0.5rem;
        padding-top: 0.5rem;
    }

    .clawdachi-wrapper {
        margin-bottom: 0;
        margin-top: -1rem;
    }

    .clawdachi {
        width: 160px;
        height: 160px;
    }

    .clawdachi-glow {
        width: 220px;
        height: 220px;
    }

    .clawdachi-shadow {
        width: 100px;
        bottom: -25px;
    }

    .ascii-title {
        font-size: 0.22rem;
        margin-top: 0;
    }

    .tagline {
        font-size: 0.85rem;
        padding: 0 1rem;
    }

    .signup-container {
        margin-top: 0;
    }

    .signup-form input[type="email"] {
        padding: 0.75rem 1rem;
    }

    .button {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }

    .breach {
        top: 22%;
        width: 160px;
        height: 160px;
    }

    .breach-hole {
        width: 100px;
        height: 100px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .animate-in {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .clawdachi-wrapper {
        animation: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .clawdachi-glow {
        animation: none;
        opacity: 0.6;
    }

    .breach,
    .debris-field,
    .escape-energy {
        animation: none;
        opacity: 1;
    }

    .clawdachi:hover {
        transform: none;
    }

    .terminal-bg {
        animation: none;
        opacity: 1;
    }

    .macos-menubar {
        animation: none;
        opacity: 0.7;
    }

    .breach,
    .debris-field {
        display: none;
    }
}


/* ========================================
   THE BREACH - Clawdachi Escapes
   ======================================== */

.breach {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(0);
    width: 300px;
    height: 300px;
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    will-change: transform, opacity;
    animation: breach-appear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.1s forwards;
}

@keyframes breach-appear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) translateZ(0) scale(0.3);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) translateZ(0) scale(1.08);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) translateZ(0) scale(1);
    }
}

/* Shockwave rings - expanding explosion waves */
.shockwave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(0);
    border-radius: 50%;
    border: 2px solid rgba(224, 122, 61, 0.6);
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
}

.shockwave-1 {
    width: 50px;
    height: 50px;
    animation: shockwave-expand 2.5s ease-out 1.3s infinite;
}

.shockwave-2 {
    width: 50px;
    height: 50px;
    animation: shockwave-expand 2.5s ease-out 2s infinite;
}

.shockwave-3 {
    width: 50px;
    height: 50px;
    animation: shockwave-expand 2.5s ease-out 2.7s infinite;
}

@keyframes shockwave-expand {
    0% {
        transform: translate(-50%, -50%) translateZ(0) scale(1);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) translateZ(0) scale(8);
        opacity: 0;
    }
}

/* Explosion burst - radial light blast */
.explosion-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(0);
    width: 300px;
    height: 300px;
    background: radial-gradient(ellipse at center,
        rgba(255, 200, 150, 0.25) 0%,
        rgba(224, 122, 61, 0.15) 20%,
        rgba(224, 122, 61, 0.08) 40%,
        transparent 60%
    );
    border-radius: 50%;
    will-change: transform, opacity;
    animation: burst-pulse 2s ease-in-out 1.2s infinite;
    opacity: 0;
    pointer-events: none;
}

@keyframes burst-pulse {
    0% {
        transform: translate(-50%, -50%) translateZ(0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) translateZ(0) scale(1.15);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) translateZ(0) scale(1);
        opacity: 0.6;
    }
}

/* Explosion flash - initial bright flash */
.explosion-flash {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(0);
    width: 150px;
    height: 150px;
    background: radial-gradient(ellipse at center,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 200, 150, 0.5) 30%,
        rgba(224, 122, 61, 0.25) 60%,
        transparent 80%
    );
    border-radius: 50%;
    opacity: 0;
    will-change: transform, opacity;
    animation: flash-burst 0.4s ease-out 1.1s forwards, flash-flicker 2s ease-in-out 1.6s infinite;
    pointer-events: none;
}

@keyframes flash-burst {
    0% {
        transform: translate(-50%, -50%) translateZ(0) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) translateZ(0) scale(1.8);
        opacity: 0.25;
    }
}

@keyframes flash-flicker {
    0%, 100% {
        opacity: 0.2;
        transform: translate(-50%, -50%) translateZ(0) scale(1);
    }
    50% {
        opacity: 0.35;
        transform: translate(-50%, -50%) translateZ(0) scale(1.08);
    }
}

/* Smoke effect from the breach - Orange tinted */
.smoke-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    z-index: -1;
    pointer-events: none;
}

.smoke {
    position: absolute;
    bottom: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(ellipse at center,
        rgba(255, 180, 120, 0.3) 0%,
        rgba(224, 122, 61, 0.2) 30%,
        rgba(255, 150, 80, 0.1) 50%,
        transparent 70%
    );
    border-radius: 50%;
    filter: blur(12px);
    opacity: 0;
    will-change: transform, opacity;
    animation: smoke-rise 2.5s ease-out infinite;
}

.smoke-1 {
    animation-delay: 1.3s;
    left: 38%;
    width: 120px;
    height: 120px;
}

.smoke-2 {
    animation-delay: 1.6s;
    left: 62%;
    width: 90px;
    height: 90px;
}

.smoke-3 {
    animation-delay: 1.9s;
    left: 44%;
    width: 130px;
    height: 130px;
}

.smoke-4 {
    animation-delay: 2.2s;
    left: 56%;
    width: 85px;
    height: 85px;
}

.smoke-5 {
    animation-delay: 2.5s;
    left: 50%;
    width: 110px;
    height: 110px;
}

.smoke-6 {
    animation-delay: 2.8s;
    left: 35%;
    width: 95px;
    height: 95px;
}

.smoke-7 {
    animation-delay: 3.1s;
    left: 65%;
    width: 105px;
    height: 105px;
}

@keyframes smoke-rise {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0) scale(0.5);
    }
    10% {
        opacity: 1;
    }
    30% {
        opacity: 0.8;
    }
    60% {
        opacity: 0.4;
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-200px) scale(2.5);
    }
}

/* The void/hole where Clawdachi broke through - SHATTERED GLASS */
.breach-hole {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(0);
    width: 160px;
    height: 160px;
    background:
        /* Deep void center */
        radial-gradient(ellipse at center,
            #000000 0%,
            #000000 50%,
            #050505 65%,
            transparent 80%
        );
    /* Asymmetric shattered glass - irregular shape, not circular */
    clip-path: polygon(
        /* Top - uneven, shifted right */
        42% 5%, 48% 12%, 55% 3%, 62% 15%, 70% 0%,
        78% 10%, 85% 2%,
        /* Right side - bulges out more at top */
        95% 12%, 88% 22%, 100% 32%, 92% 40%,
        98% 48%, 85% 55%, 92% 65%,
        /* Right-bottom - pulls inward */
        82% 72%, 88% 82%, 78% 88%,
        /* Bottom - very irregular, shifted left */
        70% 95%, 62% 85%, 52% 100%, 45% 88%,
        38% 98%, 28% 88%, 20% 95%,
        /* Left-bottom - extends further */
        10% 85%, 18% 75%, 5% 68%,
        /* Left side - flatter, more inward */
        12% 58%, 2% 50%, 15% 42%, 5% 35%,
        12% 28%, 0% 20%,
        /* Top-left - dramatic spike */
        8% 12%, 20% 18%, 15% 8%, 28% 15%,
        35% 2%
    );
    /* Simplified filter for better performance */
    filter: drop-shadow(0 0 20px rgba(255, 150, 80, 0.9))
            drop-shadow(0 0 50px rgba(224, 122, 61, 0.5));
    will-change: transform, opacity;
    animation: hole-pulse 3s ease-in-out infinite;
}

/* Intense orange glowing border - broken glass edge */
.breach-hole::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(160deg,
        rgba(255, 160, 80, 1) 0%,
        rgba(224, 122, 61, 0.8) 20%,
        rgba(255, 180, 100, 0.9) 40%,
        rgba(224, 122, 61, 0.7) 60%,
        rgba(255, 140, 60, 0.95) 80%,
        rgba(224, 122, 61, 0.85) 100%
    );
    clip-path: polygon(
        42% 5%, 48% 12%, 55% 3%, 62% 15%, 70% 0%,
        78% 10%, 85% 2%,
        95% 12%, 88% 22%, 100% 32%, 92% 40%,
        98% 48%, 85% 55%, 92% 65%,
        82% 72%, 88% 82%, 78% 88%,
        70% 95%, 62% 85%, 52% 100%, 45% 88%,
        38% 98%, 28% 88%, 20% 95%,
        10% 85%, 18% 75%, 5% 68%,
        12% 58%, 2% 50%, 15% 42%, 5% 35%,
        12% 28%, 0% 20%,
        8% 12%, 20% 18%, 15% 8%, 28% 15%,
        35% 2%
    );
    z-index: -1;
    animation: edge-glow 1.3s ease-in-out infinite;
}

/* Inner shattered layer - offset for depth */
.breach-hole::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 18%;
    right: 15%;
    bottom: 18%;
    background: radial-gradient(ellipse at 42% 52%,
        #000000 0%,
        #000000 60%,
        transparent 100%
    );
    clip-path: polygon(
        38% 8%, 52% 15%, 68% 5%, 82% 18%,
        95% 28%, 88% 45%, 98% 60%, 85% 75%,
        72% 92%, 55% 85%, 42% 98%, 28% 82%,
        12% 92%, 5% 72%, 15% 55%, 2% 40%,
        18% 25%, 8% 12%, 25% 5%
    );
    border: 1px solid rgba(224, 122, 61, 0.35);
    box-shadow: inset 0 0 40px 15px rgba(0, 0, 0, 0.9);
}

/* Deep void depth - third layer */
.breach .depth-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(ellipse at 45% 50%,
        #000000 0%,
        #020202 80%,
        transparent 100%
    );
    border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
    box-shadow:
        inset 0 0 30px 10px rgba(0, 0, 0, 1),
        0 0 20px 5px rgba(0, 0, 0, 0.8);
    z-index: 5;
}

@keyframes hole-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) translateZ(0) scale(1);
        opacity: 0.95;
    }
    50% {
        transform: translate(-50%, -50%) translateZ(0) scale(1.02);
        opacity: 1;
    }
}

@keyframes edge-glow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Outer distortion ring */
.breach::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 1px dashed rgba(224, 122, 61, 0.15);
    animation: distort-ring 8s linear infinite;
}

@keyframes distort-ring {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Crack lines - shattered screen effect */
.breach-cracks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.crack-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.crack {
    fill: none;
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 1;
    stroke-linecap: round;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: crack-draw 2s ease-out forwards;
}

.crack-small {
    stroke-width: 0.5;
    stroke: rgba(255, 255, 255, 0.08);
    animation-delay: 0.5s;
}

/* Staggered crack animation delays */
.crack-1 { animation-delay: 0s; }
.crack-2 { animation-delay: 0.05s; }
.crack-3 { animation-delay: 0.1s; }
.crack-4 { animation-delay: 0.15s; }
.crack-5 { animation-delay: 0.2s; }
.crack-6 { animation-delay: 0.25s; }
.crack-7 { animation-delay: 0.3s; }
.crack-8 { animation-delay: 0.35s; }

@keyframes crack-draw {
    to {
        stroke-dashoffset: 0;
    }
}

/* Subtle glow around the breach */
.breach-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(0);
    width: 320px;
    height: 320px;
    background:
        radial-gradient(ellipse at center,
            rgba(255, 180, 120, 0.2) 0%,
            rgba(224, 122, 61, 0.12) 30%,
            rgba(224, 122, 61, 0.05) 50%,
            transparent 70%
        );
    border-radius: 50%;
    will-change: transform, opacity;
    animation: breach-glow-pulse 2s ease-in-out infinite;
}

@keyframes breach-glow-pulse {
    0%, 100% {
        opacity: 0.7;
        transform: translate(-50%, -50%) translateZ(0) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) translateZ(0) scale(1.15);
    }
}

/* Subtle rotating ring */
.breach-energy {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 210px;
    height: 210px;
    border: 1px solid transparent;
    border-radius: 50%;
    background:
        linear-gradient(var(--bg), var(--bg)) padding-box,
        conic-gradient(
            from 0deg,
            transparent 0deg,
            rgba(224, 122, 61, 0.2) 20deg,
            transparent 40deg,
            transparent 180deg,
            rgba(224, 122, 61, 0.15) 200deg,
            transparent 220deg
        ) border-box;
    animation: energy-spin 5s linear infinite;
}

@keyframes energy-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ========================================
   DEBRIS FIELD - Floating shards
   ======================================== */

.debris-field {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    z-index: 15;
    pointer-events: none;
    opacity: 0;
    animation: debris-scatter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s forwards;
}

@keyframes debris-scatter {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    60% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Minimal floating particles */
.shard {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    animation: float-shard 6s ease-in-out infinite;
}

/* Different particle sizes and positions */
.shard-1 {
    width: 3px;
    height: 3px;
    top: 18%;
    left: 22%;
    animation-delay: 0s;
}

.shard-2 {
    width: 2px;
    height: 2px;
    top: 12%;
    right: 28%;
    animation-delay: 1.2s;
}

.shard-3 {
    width: 4px;
    height: 4px;
    top: 28%;
    right: 18%;
    animation-delay: 2.4s;
}

.shard-4 {
    width: 2px;
    height: 2px;
    bottom: 22%;
    right: 24%;
    animation-delay: 0.8s;
}

.shard-5 {
    width: 3px;
    height: 3px;
    bottom: 18%;
    left: 28%;
    animation-delay: 1.6s;
}

.shard-6 {
    width: 2px;
    height: 2px;
    top: 38%;
    left: 12%;
    animation-delay: 2s;
}

.shard-7 {
    width: 3px;
    height: 3px;
    bottom: 32%;
    right: 12%;
    animation-delay: 0.4s;
}

.shard-8 {
    width: 2px;
    height: 2px;
    top: 22%;
    left: 38%;
    animation-delay: 2.8s;
}

@keyframes float-shard {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-8px);
        opacity: 0.7;
    }
}

/* Subtle pixel accents */
.pixel-dust {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(224, 122, 61, 0.3);
    border-radius: 50%;
    animation: dust-float 5s ease-in-out infinite;
}

.pixel-1 { top: 32%; left: 32%; animation-delay: 0s; }
.pixel-2 { top: 28%; right: 32%; animation-delay: 1.5s; }
.pixel-3 { bottom: 38%; left: 28%; animation-delay: 3s; }
.pixel-4 { bottom: 28%; right: 38%; animation-delay: 4.5s; }
.pixel-5 { top: 42%; left: 18%; animation-delay: 2s; }
.pixel-6 { top: 38%; right: 20%; animation-delay: 5s; }

@keyframes dust-float {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-6px);
        opacity: 0.6;
    }
}

/* Additional shards */
.shard-9 {
    width: 4px;
    height: 4px;
    top: 18%;
    left: 55%;
    animation-delay: 3.2s;
}

.shard-10 {
    width: 3px;
    height: 3px;
    top: 72%;
    left: 42%;
    animation-delay: 1.4s;
}

.shard-11 {
    width: 2px;
    height: 2px;
    top: 35%;
    right: 22%;
    animation-delay: 2.2s;
}

.shard-12 {
    width: 5px;
    height: 5px;
    bottom: 32%;
    left: 25%;
    animation-delay: 0.6s;
}

/* Sparks/embers - orange glowing particles */
.spark {
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, rgba(255, 180, 100, 1) 0%, rgba(224, 122, 61, 0.8) 50%, transparent 100%);
    border-radius: 50%;
    animation: spark-float 2.5s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(255, 160, 80, 0.8), 0 0 12px rgba(224, 122, 61, 0.4);
}

.spark-1 { top: 30%; left: 35%; animation-delay: 0s; animation-duration: 2.2s; }
.spark-2 { top: 25%; right: 30%; animation-delay: 0.3s; animation-duration: 2.5s; }
.spark-3 { bottom: 35%; left: 30%; animation-delay: 0.6s; animation-duration: 2.4s; }
.spark-4 { bottom: 30%; right: 35%; animation-delay: 0.9s; animation-duration: 2.6s; }
.spark-5 { top: 40%; left: 25%; animation-delay: 1.2s; animation-duration: 2.3s; }
.spark-6 { top: 35%; right: 25%; animation-delay: 1.5s; animation-duration: 2.8s; }
.spark-7 { bottom: 40%; left: 40%; animation-delay: 0.5s; animation-duration: 2s; }
.spark-8 { top: 50%; right: 32%; animation-delay: 1.1s; animation-duration: 3s; }

@keyframes spark-float {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-12px) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: translateY(-6px) scale(0.8);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-15px) scale(1.1);
        opacity: 0.9;
    }
}

/* Energy particles - orbit around breach */
.energy-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.8), 0 0 8px rgba(224, 122, 61, 0.6);
}

.ep-1 {
    top: 45%;
    left: 20%;
    animation: orbit-1 5s linear infinite;
}

.ep-2 {
    top: 55%;
    right: 20%;
    animation: orbit-2 6s linear infinite;
    animation-delay: 0.6s;
}

.ep-3 {
    top: 30%;
    left: 45%;
    animation: orbit-3 4.5s linear infinite;
    animation-delay: 1.2s;
}

.ep-4 {
    bottom: 30%;
    right: 45%;
    animation: orbit-1 5.5s linear infinite reverse;
    animation-delay: 0.3s;
}

.ep-5 {
    top: 60%;
    left: 35%;
    animation: orbit-2 4s linear infinite;
    animation-delay: 1.8s;
}

.ep-6 {
    top: 40%;
    right: 35%;
    animation: orbit-3 7s linear infinite reverse;
    animation-delay: 0.9s;
}

@keyframes orbit-1 {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 0.3;
    }
    25% {
        transform: translateX(20px) translateY(-15px);
        opacity: 1;
    }
    50% {
        transform: translateX(0) translateY(-25px);
        opacity: 0.5;
    }
    75% {
        transform: translateX(-20px) translateY(-10px);
        opacity: 0.8;
    }
    100% {
        transform: translateX(0) translateY(0);
        opacity: 0.3;
    }
}

@keyframes orbit-2 {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 0.4;
    }
    33% {
        transform: translateX(-25px) translateY(10px);
        opacity: 1;
    }
    66% {
        transform: translateX(15px) translateY(-20px);
        opacity: 0.6;
    }
    100% {
        transform: translateX(0) translateY(0);
        opacity: 0.4;
    }
}

@keyframes orbit-3 {
    0% {
        transform: translateX(0) translateY(0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translateX(-15px) translateY(20px) scale(1.5);
        opacity: 1;
    }
    100% {
        transform: translateX(0) translateY(0) scale(1);
        opacity: 0.5;
    }
}

/* ========================================
   ESCAPE ENERGY - Around Clawdachi
   ======================================== */

.escape-energy {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.04);
    opacity: 0;
    animation: escape-appear 0.2s ease-out 2s forwards, escape-pulse 4s ease-in-out 2.2s infinite;
    pointer-events: none;
    z-index: 0;
}

.escape-energy::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 230px;
    height: 230px;
    border: 1px solid rgba(224, 122, 61, 0.1);
    border-radius: 50%;
    animation: ring-expand 3s ease-out 2.2s infinite;
}

@keyframes escape-appear {
    to { opacity: 1; }
}

@keyframes escape-pulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.02);
    }
}

@keyframes ring-expand {
    0% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

/* Removed glitch - keeping it clean */

/* Mobile adjustments for breach effect - now handled in main mobile media query above */
