/* paragram.dev - Kinetic Typography Hero */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #111111;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    background: #111111;
}

.hero-container {
    text-align: center;
    width: 100%;
    max-width: 1000px;
}

.brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 12vw, 6rem);
    letter-spacing: 0;
    animation: split 6s ease-in-out infinite;
    margin: 0;
    line-height: 1;
    word-spacing: 9999px;
}

@keyframes split {
    0%, 100% {
        letter-spacing: 0;
    }
    50% {
        letter-spacing: 0.3em;
    }
}

.trace-svg {
    margin: 1.5rem auto;
    display: block;
    max-width: 100%;
    height: auto;
}

.trace-line {
    stroke-linecap: round;
}

.tagline {
    font-size: 0.9rem;
    color: #525252;
    margin: 1rem 0;
    letter-spacing: 0.05em;
}

.parsing-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.65rem;
    color: #f97316;
    display: inline-block;
    margin-top: 1.5rem;
    animation: blink 1.5s step-end infinite;
    letter-spacing: 0.1em;
}

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

/* Dividers */
.orange-rule {
    height: 1px;
    background: #f97316;
    max-width: 500px;
    margin: 3rem auto;
    opacity: 0.6;
}

/* Process Section */
.process {
    min-height: auto;
    padding: 4rem 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.feature-block {
    margin-bottom: 3rem;
    opacity: 0;
    animation: slideIn 0.8s ease forwards;
}

.feature-block:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-block:nth-child(3) {
    animation-delay: 0.4s;
}

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

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f97316;
    margin-right: 0.75rem;
    margin-bottom: 0.5rem;
    vertical-align: middle;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.feature-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    margin: 0.5rem 0 1rem;
    line-height: 1.1;
}

.feature-desc {
    font-size: 0.95rem;
    color: #a78bfa;
    line-height: 1.7;
    max-width: 500px;
}

/* Word Flow */
.word-flow {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 3rem 0;
    white-space: nowrap;
    scroll-behavior: smooth;
}

.word-flow::-webkit-scrollbar {
    height: 2px;
}

.word-flow::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.word-flow::-webkit-scrollbar-thumb {
    background: #f97316;
    border-radius: 1px;
}

.word {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    color: #f97316;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.word:hover {
    color: #a78bfa;
    transform: scale(1.1);
}

.w-sm {
    font-size: 0.9rem;
    opacity: 0.4;
}

.w-md {
    font-size: 1.4rem;
    opacity: 0.7;
}

.w-lg {
    font-size: 2rem;
    opacity: 1;
}

/* Parse Section */
.parse {
    min-height: auto;
    padding: 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 2rem;
    text-align: center;
}

.split-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .split-view {
        grid-template-columns: 1fr;
    }
}

.input-side, .output-side {
    background: #1a1a1a;
    border: 1px solid #333333;
    padding: 1.75rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.input-side:hover, .output-side:hover {
    border-color: #f97316;
    background: rgba(249, 115, 22, 0.05);
}

.side-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.65rem;
    color: #525252;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.input-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #ffffff;
}

.output-text {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #a78bfa;
    line-height: 1.8;
}

/* Complete Section */
.complete {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.end-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 8vw, 4rem);
    color: #f97316;
    margin: 0;
    line-height: 1;
    animation: fadeInScale 1s ease forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.end-tagline {
    font-size: 0.9rem;
    color: #525252;
    margin-top: 1rem;
    letter-spacing: 0.05em;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 1.5rem;
        min-height: 80vh;
    }

    .brand {
        font-size: clamp(2rem, 10vw, 4rem);
    }

    .process, .parse {
        padding: 2rem 1.5rem;
    }

    .feature-block {
        margin-bottom: 2rem;
    }

    .feature-text {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .word-flow {
        gap: 1.5rem;
        padding: 2rem 0;
    }

    .w-lg {
        font-size: 1.5rem;
    }

    .w-md {
        font-size: 1.1rem;
    }

    .w-sm {
        font-size: 0.75rem;
    }

    .split-view {
        padding: 0 1rem;
    }

    .input-side, .output-side {
        padding: 1.5rem;
    }
}

/* Typography Fine-tuning */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
}

p {
    margin: 0;
}

/* Color Palette Reference */
/* Background: #111111 (near-black) */
/* Text: #ffffff (white) */
/* Accent: #f97316 (orange for active/processing) */
/* Secondary: #a78bfa (purple for parsed output) */
/* Muted: #525252 (dark gray for inactive) */
/* Surface: #1a1a1a (dark panel) */
/* Border: #333333 (subtle) */
