/* ===== CSS RESET & VARIABLES ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light theme with Black & Gold accents */
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-elevated: #f5f5f7;
    --text-primary: #0a0a0a;
    --text-secondary: #3d3d3d;
    --text-muted: #6b6b6b;
    --accent-primary: #0a0a0a;
    --accent-secondary: #3d3d3d;
    --accent-gradient-start: #0a0a0a;
    --accent-gradient-end: #d4af37;
    --accent-gold: #d4af37;
    --accent-gold-light: #f4d47c;
    --accent-gold-dark: #b8960c;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    --accent-purple: #d4af37;
    --accent-green: #10b981;
    --border-color: #e5e5e5;
    --border-light: #d4d4d4;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-accent: 'Playfair Display', Georgia, serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'ss01' on, 'ss02' on, 'cv01' on;
}

/* ===== HEADER ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2.5rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(250, 250, 250, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
}

.back-link:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
    background: var(--bg-elevated);
}

.back-link svg {
    transition: transform 0.2s ease;
}

.back-link:hover svg {
    transform: translateX(-3px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    color: var(--text-primary);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo-icon {
    flex-shrink: 0;
}

.logo-icon rect {
    fill: var(--text-primary);
}

.logo-icon path,
.logo-icon circle {
    stroke: #ffffff;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-tag {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
    background: transparent;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    border: 1px solid var(--border-color);
    letter-spacing: -0.01em;
}

/* ===== MAIN ===== */
.main {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== HERO ===== */
.hero {
    padding: 5rem 0 3.5rem;
    text-align: center;
}

.hero-content {
    max-width: 640px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 3.25rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.hero-highlight {
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: 400;
    background: linear-gradient(135deg, var(--accent-gradient-start), var(--accent-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* ===== TOOL SECTION ===== */
.tool-section {
    padding-bottom: 4rem;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

/* ===== URL INPUT ===== */

.url-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0.625rem 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.url-input-wrapper:focus-within {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 4px rgba(10, 10, 10, 0.06);
}

.input-icon {
    color: var(--text-muted);
    flex-shrink: 0;
}

.url-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding: 0.5rem 0.25rem;
    outline: none;
    min-width: 0;
    letter-spacing: -0.01em;
}

.url-input-wrapper input::placeholder {
    color: var(--text-muted);
}

.expand-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.expand-btn:hover {
    color: var(--text-secondary);
    background: var(--border-color);
}

.expand-btn.active {
    color: var(--text-primary);
    background: var(--border-color);
}

.generate-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--text-primary);
    border: none;
    border-radius: var(--radius-md);
    color: #ffffff;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    position: relative;
    letter-spacing: -0.01em;
}

.generate-btn:hover {
    background: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.generate-btn:active {
    transform: scale(0.98) translateY(0);
}

.generate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.generate-btn.loading .btn-text,
.generate-btn.loading .btn-arrow {
    visibility: hidden;
}

.generate-btn.loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== OPTIONAL FIELDS ===== */
.optional-fields {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.optional-fields.hidden {
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.options-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

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

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.form-group input,
.form-group textarea,
.form-group select {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.06);
}

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

.form-group select {
    cursor: pointer;
}

/* ===== WEIRDNESS CONTROL ===== */
.weirdness-control {
    margin-top: 1.25rem;
}

.weirdness-control>label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.weirdness-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.weird-btn {
    flex: 1;
    min-width: 90px;
    padding: 0.625rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.weird-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.weird-btn.active {
    background: var(--text-primary);
    color: #ffffff;
    border-color: var(--text-primary);
}

/* ===== OUTPUT AREA ===== */
.output-area {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.output-area.hidden {
    display: none;
}

/* ===== PROGRESS DISPLAY ===== */
.progress-display {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.progress-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 0.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    opacity: 0.4;
    transition: all 0.3s ease;
}

.progress-item.active {
    opacity: 1;
    border-color: var(--text-primary);
    background: var(--bg-secondary);
}

.progress-item.completed {
    opacity: 1;
    border-color: var(--accent-green);
}

.prog-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    transition: all 0.3s ease;
}

.progress-item.active .prog-indicator {
    background: var(--text-primary);
    animation: pulse 1.2s ease infinite;
}

.progress-item.completed .prog-indicator {
    background: var(--accent-green);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.15);
    }
}

.prog-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.4;
    font-weight: 500;
}

.progress-item.active .prog-text,
.progress-item.completed .prog-text {
    color: var(--text-primary);
}

/* ===== ANALYSIS CARD ===== */
.analysis-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.75rem;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.analysis-card.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.analysis-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-purple);
    margin-bottom: 1rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--border-color);
}

.analysis-header svg {
    color: var(--accent-purple);
}

.analysis-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.875rem;
}

.analysis-item {
    background: var(--bg-secondary);
    padding: 0.875rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.analysis-item .label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.375rem;
    font-weight: 600;
}

.analysis-item .value {
    font-size: 0.875rem;
    color: var(--text-primary);
    line-height: 1.5;
    font-weight: 500;
}

.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.keyword-tag {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ===== CHANNEL CARDS ===== */
.channel-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.channel-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    animation: fadeIn 0.4s ease backwards;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.channel-card:nth-child(1) {
    animation-delay: 0.05s;
}

.channel-card:nth-child(2) {
    animation-delay: 0.1s;
}

.channel-card:nth-child(3) {
    animation-delay: 0.15s;
}

.channel-card:nth-child(4) {
    animation-delay: 0.2s;
}

.channel-card:nth-child(5) {
    animation-delay: 0.25s;
}

.channel-card:hover {
    border-color: var(--text-muted);
    box-shadow: var(--shadow-sm);
}

/* Compact Card Header */
.card-header-compact {
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.card-header-compact:hover {
    background: var(--bg-elevated);
}

.card-title-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.channel-icon-small {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-gradient-start), var(--accent-gradient-end));
    color: #ffffff;
    flex-shrink: 0;
}

.channel-icon-small svg {
    width: 18px;
    height: 18px;
}

.channel-name {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.125rem;
    letter-spacing: -0.02em;
}

.channel-type {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

.card-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-badges-compact {
    display: flex;
    gap: 0.375rem;
}

.card-badges-compact .badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.625rem;
}

.expand-arrow {
    color: var(--text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.channel-card.expanded .expand-arrow {
    transform: rotate(180deg);
}

/* Expandable Body */
.card-body-expandable {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.25rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.channel-card.expanded .card-body-expandable {
    max-height: 1000px;
    padding: 0 1.25rem 1.25rem;
    opacity: 1;
    border-top: 1px solid var(--border-color);
}

.channel-card.expanded {
    box-shadow: var(--shadow-md);
}

/* Legacy card-header for compatibility */
.card-header {
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-color);
}

.channel-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--text-primary);
    color: #ffffff;
    border: none;
}

.channel-icon svg {
    width: 22px;
    height: 22px;
}

.card-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 100px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge svg {
    width: 10px;
    height: 10px;
}

.badge-weird {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.badge-free {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-paid {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-risky {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.card-body {
    padding: 1.25rem;
}

/* Features Enhanced Hidden State */
.features-enhanced.hidden {
    display: none;
}

.section-block {
    margin-bottom: 1.25rem;
}

.section-block:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-purple);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.section-text {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9rem;
}

.steps-list {
    list-style: none;
    counter-reset: steps;
}

.steps-list li {
    counter-increment: steps;
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.625rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.875rem;
}

.steps-list li::before {
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    background: var(--text-primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #ffffff;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.metric-item {
    background: var(--bg-elevated);
    padding: 0.875rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-color);
}

.metric-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.metric-label {
    font-size: 0.625rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

/* ===== ENHANCED FEATURES ===== */
.features-enhanced {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    padding: 2.5rem 0 1.5rem;
    margin-top: 1rem;
}

.feature-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    text-align: center;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--text-muted);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.feature-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.12) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature-card:hover .feature-card-glow {
    opacity: 1;
}

.feature-icon-enhanced {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-gradient-start), var(--accent-gradient-end));
    border-radius: var(--radius-lg);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-enhanced {
    transform: scale(1.08);
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.4);
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.625rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.feature-accent {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gradient-start), var(--accent-gradient-end));
    border-radius: 2px;
    margin: 0 auto;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-accent {
    width: 60px;
    opacity: 1;
}

.feature-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--text-primary);
    border: none;
    border-radius: var(--radius-md);
    color: #ffffff;
}

.feature-icon svg {
    width: 18px;
    height: 18px;
}

.feature h3 {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.feature p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 400;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header {
        padding: 1rem 1.5rem;
    }

    .main {
        padding: 0 1.25rem;
    }

    .hero {
        padding: 3.5rem 0 2.5rem;
    }

    .tool-card {
        padding: 1.5rem;
        border-radius: var(--radius-lg);
    }

    .url-input-wrapper {
        flex-wrap: wrap;
    }

    .url-input-wrapper input {
        width: 100%;
        order: -1;
        flex-basis: 100%;
    }

    .generate-btn {
        flex: 1;
    }

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

    .features-enhanced {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .feature-card {
        padding: 1.5rem 1.25rem;
    }

    .back-link span {
        display: none;
    }

    .back-link {
        padding: 0.5rem;
        border-radius: 50%;
    }

    .logo {
        position: static;
        transform: none;
    }

    .weirdness-buttons {
        flex-wrap: wrap;
    }

    .weird-btn {
        flex: 1 1 calc(33% - 0.5rem);
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .card-header {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .progress-display {
        grid-template-columns: 1fr;
    }

    .feature-icon-enhanced {
        width: 48px;
        height: 48px;
    }
}