/* ═══════════════════════════════════════════════════════
   THE PITCH LAB — Premium Design System
   ═══════════════════════════════════════════════════════ */

/* ── CSS Variables ─────────────────────────────────── */
:root {
    /* Colors */
    --bg-primary: #06060e;
    --bg-secondary: #0c0c1a;
    --bg-card: rgba(14, 14, 30, 0.65);
    --bg-card-hover: rgba(20, 20, 45, 0.75);

    --accent-purple: #8b5cf6;
    --accent-cyan: #06d6d6;
    --accent-pink: #ec4899;
    --accent-amber: #f59e0b;

    --gradient-primary: linear-gradient(135deg, #8b5cf6, #06d6d6);
    --gradient-warm: linear-gradient(135deg, #ec4899, #f59e0b);
    --gradient-cool: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --gradient-fire: linear-gradient(135deg, #f43f5e, #8b5cf6);

    --text-primary: #f0f0f8;
    --text-secondary: rgba(240, 240, 248, 0.6);
    --text-tertiary: rgba(240, 240, 248, 0.35);

    --border-subtle: rgba(139, 92, 246, 0.12);
    --border-active: rgba(139, 92, 246, 0.4);

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.06);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255,255,255,0.03);
    --shadow-glow: 0 0 60px rgba(139, 92, 246, 0.15);
    --shadow-glow-strong: 0 0 80px rgba(139, 92, 246, 0.3);

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* ── Background Effects ───────────────────────────── */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    animation: floatGlow 15s ease-in-out infinite;
}

.bg-glow--1 {
    width: 600px;
    height: 600px;
    background: rgba(139, 92, 246, 0.08);
    top: -200px;
    left: -100px;
    animation-delay: 0s;
}

.bg-glow--2 {
    width: 500px;
    height: 500px;
    background: rgba(6, 214, 214, 0.06);
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

.bg-glow--3 {
    width: 400px;
    height: 400px;
    background: rgba(236, 72, 153, 0.05);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes floatGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(20px, 20px) scale(1.02); }
}

#particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ── Navigation ───────────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-2xl);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(6, 6, 14, 0.7);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.4s var(--ease-out-expo);
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav__icon {
    font-size: 1.25rem;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.5) drop-shadow(0 0 8px rgba(139, 92, 246, 0.5)); }
}

.nav__brand {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav__tagline {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── App Container ────────────────────────────────── */
.app {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    padding-top: 100px;
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
    text-align: center;
    margin-bottom: var(--space-4xl);
    animation: fadeInUp 0.9s var(--ease-out-expo) both;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 6px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-purple);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.9s var(--ease-out-expo) both;
    animation-delay: 0.1s;
}

.hero__badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-cyan);
    animation: blink 2s ease-in-out infinite;
}

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

.hero__title {
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
}

.hero__title-line {
    display: block;
    animation: fadeInUp 0.9s var(--ease-out-expo) both;
}

.hero__title-line:nth-child(1) { animation-delay: 0.15s; }
.hero__title-line:nth-child(2) { animation-delay: 0.25s; }
.hero__title-line:nth-child(3) { animation-delay: 0.35s; }

.hero__title-line--gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    max-width: 560px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    animation: fadeInUp 0.9s var(--ease-out-expo) both;
    animation-delay: 0.45s;
}

/* ── Steps Indicator ──────────────────────────────── */
.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: var(--space-2xl);
    animation: fadeInUp 0.7s var(--ease-out-expo) both;
    animation-delay: 0.5s;
}

.step {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: all 0.5s var(--ease-out-expo);
    cursor: pointer;
}

.step__number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--text-tertiary);
    transition: all 0.5s var(--ease-out-expo);
}

.step__label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-tertiary);
    transition: all 0.5s var(--ease-out-expo);
}

.step--active .step__number {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.step--active .step__label {
    color: var(--text-primary);
}

.step--completed .step__number {
    background: var(--accent-cyan);
    border-color: transparent;
    color: var(--bg-primary);
}

.step--completed .step__label {
    color: var(--accent-cyan);
}

.step__connector {
    width: 40px;
    height: 2px;
    background: rgba(139, 92, 246, 0.15);
    position: relative;
    overflow: hidden;
}

.step__connector::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-out-expo);
}

.step__connector.step__connector--filled::after {
    transform: scaleX(1);
}

/* ── Cards ────────────────────────────────────────── */
.cards-container {
    position: relative;
    min-height: 480px;
}

.card {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    box-shadow: var(--shadow-card);
    opacity: 0;
    transform: translateX(60px) scale(0.96);
    pointer-events: none;
    transition: all 0.6s var(--ease-out-expo);
}

.card--active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: all;
}

.card--exit-left {
    opacity: 0;
    transform: translateX(-60px) scale(0.96);
    pointer-events: none;
}

.card__header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.card__title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.card__desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.card__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ── Form Fields ──────────────────────────────────── */
.field {
    position: relative;
}

.field__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.field__optional {
    font-weight: 400;
    color: var(--text-tertiary);
    text-transform: none;
    font-size: 0.75rem;
}

.field__input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s var(--ease-out-expo);
    outline: none;
    resize: none;
}

.field__input::placeholder {
    color: var(--text-tertiary);
}

.field__input:hover {
    border-color: rgba(139, 92, 246, 0.25);
    background: rgba(255, 255, 255, 0.04);
}

.field__input:focus {
    border-color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.05);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1), 0 0 30px rgba(139, 92, 246, 0.08);
}

.field__glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.4s var(--ease-out-expo);
}

.field__input:focus ~ .field__glow {
    width: 100%;
}

.field__input--textarea {
    min-height: 90px;
    line-height: 1.6;
}

/* ── Platform Grid ────────────────────────────────── */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
}

.platform-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.35s var(--ease-out-expo);
    color: var(--text-tertiary);
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
}

.platform-btn__icon {
    width: 24px;
    height: 24px;
    transition: all 0.35s var(--ease-out-expo);
}

.platform-btn:hover {
    background: rgba(139, 92, 246, 0.06);
    border-color: rgba(139, 92, 246, 0.2);
    color: var(--text-secondary);
    transform: translateY(-2px);
}

.platform-btn--active {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.4);
    color: var(--text-primary);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.1);
}

.platform-btn--active .platform-btn__icon {
    filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.5));
}

/* ── Tone Grid ────────────────────────────────────── */
.tone-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
}

.tone-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.35s var(--ease-out-expo);
    color: var(--text-tertiary);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
}

.tone-btn__emoji {
    font-size: 1.1rem;
    transition: transform 0.35s var(--ease-out-back);
}

.tone-btn:hover {
    background: rgba(139, 92, 246, 0.06);
    border-color: rgba(139, 92, 246, 0.2);
    color: var(--text-secondary);
    transform: translateY(-1px);
}

.tone-btn:hover .tone-btn__emoji {
    transform: scale(1.15);
}

.tone-btn--active {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.4);
    color: var(--text-primary);
}

.tone-btn--active .tone-btn__emoji {
    transform: scale(1.1);
}

/* ── Buttons ──────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-full);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover::before {
    opacity: 1;
}

.btn__arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s var(--ease-out-back);
}

.btn:hover .btn__arrow {
    transform: translateX(3px);
}

.btn:hover .btn__arrow--back {
    transform: translateX(-3px);
}

.btn--primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn--primary:hover {
    box-shadow: 0 6px 30px rgba(139, 92, 246, 0.45);
    transform: translateY(-2px);
}

.btn--primary:active {
    transform: translateY(0);
}

.btn--ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn--generate {
    background: var(--gradient-fire);
    color: white;
    padding: 14px 32px;
    font-size: 0.95rem;
    box-shadow: 0 4px 25px rgba(244, 63, 94, 0.3);
}

.btn--generate:hover {
    box-shadow: 0 8px 40px rgba(244, 63, 94, 0.45);
    transform: translateY(-2px) scale(1.02);
}

.btn--generate.btn--loading .btn__text,
.btn--generate.btn--loading .btn__spark {
    opacity: 0;
    transform: scale(0.8);
}

.btn--generate.btn--loading .btn__loader {
    opacity: 1;
}

.btn__text {
    transition: all 0.3s;
}

.btn__spark {
    width: 18px;
    height: 18px;
    transition: all 0.3s;
}

.btn__loader {
    position: absolute;
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.3s;
}

.btn__loader span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
    animation: loaderBounce 1.2s ease-in-out infinite;
}

.btn__loader span:nth-child(2) { animation-delay: 0.15s; }
.btn__loader span:nth-child(3) { animation-delay: 0.3s; }

@keyframes loaderBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* ── Output Section ───────────────────────────────── */
.output {
    margin-top: var(--space-3xl);
    opacity: 0;
    transform: translateY(40px);
    pointer-events: none;
    transition: all 0.7s var(--ease-out-expo);
}

.output--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.output__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.output__title {
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.output__title-icon {
    animation: celebrate 0.6s var(--ease-out-back) both;
    animation-delay: 0.6s;
}

@keyframes celebrate {
    0% { transform: scale(0) rotate(-20deg); }
    50% { transform: scale(1.3) rotate(10deg); }
    100% { transform: scale(1) rotate(0); }
}

.output__actions {
    display: flex;
    gap: var(--space-sm);
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}

.action-btn svg {
    width: 14px;
    height: 14px;
}

.action-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--text-primary);
    transform: translateY(-1px);
}

/* ── Variations ───────────────────────────────────── */
.variations {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.variation {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
    animation: slideInUp 0.6s var(--ease-out-expo) both;
    transition: all 0.35s var(--ease-out-expo);
}

.variation:nth-child(1) { animation-delay: 0.1s; }
.variation:nth-child(2) { animation-delay: 0.2s; }
.variation:nth-child(3) { animation-delay: 0.3s; }

.variation:hover {
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.variation__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.variation__label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.variation__badge {
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.variation__badge--v1 {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-purple);
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.variation__badge--v2 {
    background: rgba(6, 214, 214, 0.12);
    color: var(--accent-cyan);
    border: 1px solid rgba(6, 214, 214, 0.25);
}

.variation__badge--v3 {
    background: rgba(236, 72, 153, 0.12);
    color: var(--accent-pink);
    border: 1px solid rgba(236, 72, 153, 0.25);
}

.variation__name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.variation__copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}

.variation__copy-btn svg {
    width: 13px;
    height: 13px;
}

.variation__copy-btn:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--text-primary);
}

.variation__copy-btn--copied {
    background: rgba(6, 214, 214, 0.15) !important;
    border-color: rgba(6, 214, 214, 0.4) !important;
    color: var(--accent-cyan) !important;
}

.variation__body {
    padding: var(--space-xl);
}

.variation__subject {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.variation__subject-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-purple);
    white-space: nowrap;
}

.variation__subject-text {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.variation__text {
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--text-secondary);
    white-space: pre-wrap;
    font-family: 'Inter', sans-serif;
}

.variation__meta {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.variation__stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.variation__stat svg {
    width: 14px;
    height: 14px;
}

/* ── Toast ────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px 24px;
    background: rgba(6, 214, 214, 0.15);
    border: 1px solid rgba(6, 214, 214, 0.3);
    border-radius: var(--radius-full);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 200;
    opacity: 0;
    transition: all 0.5s var(--ease-out-expo);
    pointer-events: none;
}

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

.toast__icon {
    width: 16px;
    height: 16px;
}

/* ── Footer ───────────────────────────────────────── */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
    color: var(--text-tertiary);
    font-size: 0.8rem;
}

.footer__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.footer__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-full);
    transition: all 0.3s var(--ease-out-expo);
    font-weight: 500;
}

.footer__link:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.15);
}

.footer__icon {
    width: 14px;
    height: 14px;
    transition: transform 0.3s var(--ease-out-back);
}

.footer__link:hover .footer__icon {
    transform: scale(1.1);
}

.footer__heart {
    color: var(--accent-pink);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.25); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
}

/* ── Animations ───────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
    .app {
        padding: 0 var(--space-md);
        padding-top: 80px;
    }

    .nav {
        padding: var(--space-md) var(--space-md);
    }

    .nav__tagline {
        display: none;
    }

    .card {
        padding: var(--space-xl);
    }

    .platform-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tone-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        gap: 0;
        transform: scale(0.9);
    }

    .step__label {
        display: none;
    }

    .hero__title {
        font-size: 2rem;
    }

    .variation__header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    .variation__meta {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }
}

@media (max-width: 480px) {
    .card__header {
        flex-direction: column;
        gap: var(--space-md);
    }

    .card__footer {
        flex-direction: column;
        gap: var(--space-md);
    }

    .card__footer .btn {
        width: 100%;
        justify-content: center;
    }

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

/* ── Scrollbar ────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.4);
}

/* ── Selection ────────────────────────────────────── */
::selection {
    background: rgba(139, 92, 246, 0.3);
    color: white;
}
