/* ==========================================
   VibeHacking.me — Coming Soon Styles
   ========================================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Palette — Red / Crimson Hacker */
    --bg: #0b0a10;
    --bg-surface: #100f18;
    --bg-card: #14131e;
    --border: #2a2740;
    --text: #a8a0c0;
    --text-dim: #5c5478;
    --text-bright: #ede8ff;
    --accent: #ff2d55;
    --accent-dim: #ff2d5525;
    --accent-glow: #ff2d5544;
    --accent2: #ff8a00;
    --accent2-dim: #ff8a0025;
    --red: #ff5f5f;
    --yellow: #fbbf24;
    --green: #34d399;

    /* Typography */
    --ff-sans: 'Space Grotesk', system-ui, sans-serif;
    --ff-mono: 'Share Tech Mono', 'Courier New', monospace;

    /* Spacing */
    --space-xs: .25rem;
    --space-sm: .5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--ff-sans);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* --- Matrix Rain Canvas --- */
#matrix-rain {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* --- Noise overlay --- */
.noise {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    background-repeat: repeat;
    opacity: .5;
}

/* --- Vignette --- */
.vignette {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(11, 10, 16, .7) 100%);
}

/* --- Main --- */
main {
    position: relative;
    z-index: 2;
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* --- Top Bar --- */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 2px;
    font-family: var(--ff-mono);
    font-size: 1.3rem;
    color: var(--text-bright);
    user-select: none;
}

.logo-bracket {
    color: var(--accent);
    font-weight: 700;
}

.logo-text .accent {
    color: var(--accent);
}

.nav-tag {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    border: 1px solid var(--accent-dim);
    border-radius: 4px;
    font-family: var(--ff-mono);
    font-size: .7rem;
    color: var(--accent);
    letter-spacing: .15em;
    text-transform: uppercase;
}

.tag-blink {
    font-size: .5rem;
    animation: blink 1.2s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .2;
    }
}

/* --- Hero --- */
.hero {
    text-align: center;
    padding: var(--space-2xl) 0 var(--space-xl);
}

.hero-prefix {
    font-family: var(--ff-mono);
    font-size: .85rem;
    color: var(--accent);
    letter-spacing: .1em;
    margin-bottom: var(--space-lg);
    animation: fadeIn 1s ease-out;
}

.hero-title {
    position: relative;
    font-size: clamp(2.4rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.08;
    color: var(--text-bright);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.03em;
    animation: fadeUp .8s ease-out .2s both;
}

/* Glitch effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    color: var(--text-bright);
    pointer-events: none;
}

.glitch::before {
    animation: glitch1 4s infinite linear alternate-reverse;
    clip-path: inset(0 0 80% 0);
    text-shadow: -2px 0 var(--accent);
}

.glitch::after {
    animation: glitch2 4s infinite linear alternate-reverse;
    clip-path: inset(80% 0 0 0);
    text-shadow: 2px 0 var(--accent2);
}

@keyframes glitch1 {

    0%,
    95% {
        transform: translateX(0);
    }

    96% {
        transform: translateX(-4px) skewX(-1deg);
    }

    97% {
        transform: translateX(3px);
    }

    98% {
        transform: translateX(-2px) skewX(1deg);
    }

    99% {
        transform: translateX(1px);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes glitch2 {

    0%,
    94% {
        transform: translateX(0);
    }

    95% {
        transform: translateX(3px) skewX(1deg);
    }

    96% {
        transform: translateX(-2px);
    }

    97% {
        transform: translateX(4px) skewX(-1deg);
    }

    98% {
        transform: translateX(-1px);
    }

    100% {
        transform: translateX(0);
    }
}

.glitch-flicker {
    animation: flicker 3s infinite;
}

@keyframes flicker {

    0%,
    100% {
        opacity: 1;
    }

    92% {
        opacity: 1;
    }

    93% {
        opacity: .3;
    }

    94% {
        opacity: 1;
    }

    95.5% {
        opacity: .1;
    }

    96% {
        opacity: 1;
    }
}

.hero-title .accent {
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hero-sub {
    max-width: 580px;
    margin: 0 auto var(--space-xl);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dim);
    animation: fadeUp .8s ease-out .45s both;
}

/* --- Countdown --- */
.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    animation: fadeUp .8s ease-out .6s both;
}

.cd-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    padding: var(--space-md);
    background: rgba(255, 45, 85, .04);
    border: 1px solid var(--border);
    border-radius: 6px;
    position: relative;
}

.cd-block::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: .4;
}

.cd-num {
    font-family: var(--ff-mono);
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--text-bright);
    line-height: 1;
}

.cd-label {
    font-family: var(--ff-mono);
    font-size: .55rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: var(--text-dim);
    margin-top: var(--space-xs);
}

.cd-sep {
    font-family: var(--ff-mono);
    font-size: 1rem;
    color: var(--accent);
    opacity: .35;
}

/* --- Terminal --- */
.terminal-section {
    padding: var(--space-xl) 0;
}

.terminal {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow:
        0 0 60px rgba(255, 45, 85, .04),
        0 30px 80px rgba(0, 0, 0, .5);
    animation: fadeUp .8s ease-out .8s both;
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, .02);
    border-bottom: 1px solid var(--border);
    font-family: var(--ff-mono);
    font-size: .7rem;
    color: var(--text-dim);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.r {
    background: var(--red);
}

.dot.y {
    background: var(--yellow);
}

.dot.g {
    background: var(--green);
}

.terminal-path {
    margin-left: auto;
}

.terminal-user {
    padding-left: var(--space-md);
    border-left: 1px solid var(--border);
}

.terminal-body {
    padding: var(--space-lg);
    font-family: var(--ff-mono);
    font-size: .82rem;
    line-height: 1.85;
    min-height: 260px;
    overflow: hidden;
}

.terminal-line {
    white-space: nowrap;
    overflow: hidden;
}

.prompt {
    color: var(--accent);
    margin-right: var(--space-sm);
    user-select: none;
}

.cmd {
    color: var(--text-bright);
}

.output {
    color: var(--text-dim);
}

.output.success {
    color: var(--green);
}

.output.warn {
    color: var(--yellow);
}

.output.info {
    color: #a78bfa;
}

.output.hot {
    color: var(--accent);
}

.output.fire {
    color: var(--accent2);
}

.cursor-blink {
    display: inline-block;
    width: 9px;
    height: 16px;
    background: var(--accent);
    vertical-align: text-bottom;
    animation: cursorBlink .65s step-end infinite;
}

@keyframes cursorBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* --- Capability Cards --- */
.capabilities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: var(--space-lg);
    padding: var(--space-lg) 0 var(--space-2xl);
}

.cap-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: var(--space-xl) var(--space-lg);
    transition: border-color .3s, transform .3s, box-shadow .3s;
    animation: fadeUp .8s ease-out 1s both;
    overflow: hidden;
}

.cap-card:nth-child(2) {
    animation-delay: 1.1s;
}

.cap-card:nth-child(3) {
    animation-delay: 1.2s;
}

.cap-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--accent), var(--accent2));
    transition: height .4s ease;
}

.cap-card:hover::before {
    height: 100%;
}

.cap-card:hover {
    border-color: var(--accent-dim);
    transform: translateY(-4px);
    box-shadow: 0 8px 40px var(--accent-dim);
}

.cap-number {
    font-family: var(--ff-mono);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--accent);
    opacity: .2;
    margin-bottom: var(--space-sm);
    line-height: 1;
}

.cap-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: var(--space-sm);
}

.cap-card p {
    font-size: .88rem;
    line-height: 1.65;
    color: var(--text-dim);
}

/* --- Footer --- */
.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--border);
    font-size: .78rem;
    color: var(--text-dim);
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-family: var(--ff-mono);
    font-size: .75rem;
    letter-spacing: .05em;
    transition: color .2s;
}

.footer-links a:hover {
    color: var(--accent);
}

/* --- Responsive --- */
@media (max-width: 640px) {
    main {
        padding: 0 var(--space-md);
    }

    .hero {
        padding: var(--space-xl) 0 var(--space-lg);
    }

    .hero-title {
        font-size: clamp(1.8rem, 9vw, 3rem);
    }

    .countdown {
        gap: var(--space-sm);
    }

    .cd-block {
        min-width: 54px;
        padding: var(--space-sm);
    }

    .cd-num {
        font-size: 1.4rem;
    }

    .cd-sep {
        font-size: .8rem;
    }

    .terminal-body {
        padding: var(--space-md);
        font-size: .72rem;
    }

    .terminal-user {
        display: none;
    }

    .footer {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}