/* ═══════════════════════════════════════════════════════════════════
   AI Text Humanizer — Stylesheet
   ═══════════════════════════════════════════════════════════════════ */

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
    /* Colors */
    --bg-primary:        #fafafa;
    --bg-secondary:      #ffffff;
    --bg-card:           #ffffff;
    --bg-input:          #f8f9fa;
    --bg-output:         #fafcfd;

    --text-primary:      #1a1a2e;
    --text-secondary:    #5f6b7a;
    --text-muted:        #8e99a8;
    --text-placeholder:  #aab4c0;

    --border:            #e5e9f0;
    --border-focus:      #8b9cf7;

    --accent:            #5b6cf0;
    --accent-hover:      #4a5ad4;
    --accent-light:      #eef0ff;
    --accent-gradient:   linear-gradient(135deg, #5b6cf0 0%, #8b5cf6 50%, #ec4899 100%);

    --success:           #10b981;
    --success-bg:        #ecfdf5;
    --error:             #ef4444;
    --error-bg:          #fef2f2;
    --warning:           #f59e0b;

    /* Typography */
    --font-sans:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono:         'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

    /* Spacing */
    --radius-sm:         8px;
    --radius-md:         12px;
    --radius-lg:         20px;
    --radius-xl:         28px;

    /* Shadows */
    --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 40px rgba(0, 0, 0, 0.08);
    --shadow-glow:       0 0 0 4px rgba(91, 108, 240, 0.12);

    /* Transitions */
    --transition:        0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow:   0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

/* ─── Navbar ─────────────────────────────────────────────────── */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.logo svg {
    color: var(--accent);
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-links a:hover {
    background: var(--accent-light);
    color: var(--accent);
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
    text-align: center;
    padding: 64px 0 40px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
    letter-spacing: 0.01em;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
    color: var(--text-primary);
}

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

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ─── Tool Card ──────────────────────────────────────────────── */
.tool-section {
    padding: 8px 0 64px;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: box-shadow var(--transition-slow);
}

.tool-card:focus-within {
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* ─── Input Area ─────────────────────────────────────────────── */
.input-area {
    padding: 28px 32px 20px;
}

.input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 12px;
}

.input-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.input-actions {
    display: flex;
    gap: 8px;
}

textarea.tool-textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-input);
    resize: vertical;
    transition: all var(--transition);
    min-height: 200px;
}

textarea.tool-textarea::placeholder {
    color: var(--text-placeholder);
}

textarea.tool-textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(139, 156, 247, 0.1);
    background: var(--bg-card);
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.file-name {
    color: var(--accent);
    font-weight: 500;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 500;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 14px 32px;
    font-size: 16px;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(91, 108, 240, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-hover);
    box-shadow: 0 4px 16px rgba(91, 108, 240, 0.4);
    transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(91, 108, 240, 0.3);
}

.btn-primary.btn-lg {
    padding: 16px 40px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 14px;
    font-size: 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.btn-ghost:hover {
    background: var(--bg-input);
    border-color: #cdd4de;
    color: var(--text-primary);
}

.btn-ghost.btn-sm {
    padding: 7px 12px;
    font-size: 13px;
}

.btn-icon {
    display: flex;
    align-items: center;
}

/* ─── Controls ───────────────────────────────────────────────── */
.controls {
    padding: 0 32px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.controls-hint {
    font-size: 14px;
    color: var(--text-muted);
}

/* ─── Processing Animation ───────────────────────────────────── */
.processing {
    padding: 24px 32px 28px;
    text-align: center;
    border-top: 1px solid var(--border);
}

.processing-animation {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.processing-animation .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    animation: bounce 1.2s ease-in-out infinite;
}

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

@keyframes bounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40%           { transform: translateY(-10px); opacity: 1; }
}

.processing p {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
}

.processing-sub {
    font-size: 13px !important;
    color: var(--text-muted) !important;
    font-weight: 400 !important;
    margin-top: 4px;
}

/* Ellipsis animation */
.ellipsis::after {
    content: '';
    animation: ellipsis 1.5s steps(4, end) infinite;
}

@keyframes ellipsis {
    0%   { content: ''; }
    25%  { content: '.'; }
    50%  { content: '..'; }
    75%  { content: '...'; }
    100% { content: ''; }
}

/* ─── Error Box ──────────────────────────────────────────────── */
.error-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 32px 24px;
    padding: 14px 18px;
    background: var(--error-bg);
    border: 1px solid #fecaca;
    border-radius: var(--radius-md);
    color: var(--error);
    font-size: 14px;
    line-height: 1.5;
}

.error-box svg {
    flex-shrink: 0;
    margin-top: 1px;
}

/* ─── Output Area ────────────────────────────────────────────── */
.output-area {
    border-top: 1px solid var(--border);
    padding: 28px 32px 32px;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.output-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.output-header h2::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
}

.output-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.output-stats {
    font-size: 13px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-right: 8px;
}

.output-content {
    background: var(--bg-output);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-primary);
    max-height: 500px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* ─── Comparison Section ─────────────────────────────────────── */
.comparison-section {
    padding: 0 0 64px;
}

.comparison-section h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 16px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.comparison-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.comparison-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.label-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.label-dot.original  { background: #94a3b8; }
.label-dot.humanized { background: var(--accent); }

.comparison-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-primary);
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* ─── How It Works ───────────────────────────────────────────── */
.how-it-works {
    padding: 64px 0 64px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.how-it-works h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.step-card {
    text-align: center;
    padding: 28px 20px;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.step-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ─── Features ───────────────────────────────────────────────── */
.features {
    padding: 48px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.feature-item svg {
    flex-shrink: 0;
    color: var(--accent);
}

/* ─── Toast ──────────────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: #1a1a2e;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 100px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 200;
    animation: toast-in 0.3s ease-out;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateX(-50%) translateY(16px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.toast.hiding {
    animation: toast-out 0.25s ease-in forwards;
}

@keyframes toast-out {
    from { opacity: 1; transform: translateX(-50%) translateY(0); }
    to   { opacity: 0; transform: translateX(-50%) translateY(16px); }
}

.toast svg { color: var(--success); flex-shrink: 0; }

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
    padding: 32px 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero {
        padding: 40px 0 28px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .input-area,
    .controls,
    .output-area {
        padding-left: 20px;
        padding-right: 20px;
    }

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

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

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

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

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

    .controls {
        flex-direction: column;
        align-items: stretch;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .input-actions {
        width: 100%;
    }

    .input-actions .btn {
        flex: 1;
        justify-content: center;
    }

    .output-actions {
        width: 100%;
        flex-wrap: wrap;
    }
}

/* ─── Smooth reveal animation ────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.output-area,
.comparison-section,
.detector-results {
    animation: fadeInUp 0.4s ease-out;
}

/* ═══════════════════════════════════════════════════════════════
   Tab Switcher
   ═══════════════════════════════════════════════════════════════ */
.tab-switcher {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg-input);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(91, 108, 240, 0.04);
}

.tab-btn.active {
    color: var(--accent);
    font-weight: 600;
    border-bottom-color: var(--accent);
    background: var(--bg-card);
}

.tab-btn:first-child { border-radius: var(--radius-lg) 0 0 0; }
.tab-btn:last-child  { border-radius: 0 var(--radius-lg) 0 0; }

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* ═══════════════════════════════════════════════════════════════
   Detector Results — Score & Gauge
   ═══════════════════════════════════════════════════════════════ */
.detector-results {
    border-top: 1px solid var(--border);
    padding: 32px;
}

/* Score Row */
.det-score-row {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Circular Gauge */
.det-gauge-container {
    position: relative;
    width: 200px;
    height: 200px;
    flex-shrink: 0;
}

.det-gauge {
    width: 100%;
    height: 100%;
}

.det-gauge circle {
    transition: stroke-dasharray 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                stroke 0.6s ease;
}

.det-gauge-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.det-score-value {
    display: block;
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--text-primary);
}

.det-score-unit {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Verdict Box */
.det-verdict-box {
    flex: 1;
    min-width: 220px;
}

.det-verdict-label {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.det-verdict-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.det-text-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.det-text-stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   Detector Breakdown Bars
   ═══════════════════════════════════════════════════════════════ */
.det-breakdown {
    margin-bottom: 28px;
}

.det-breakdown h3,
.det-explanations h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.det-breakdown-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.det-bars {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.det-bar-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.det-bar-label {
    width: 160px;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.det-bar-track {
    flex: 1;
    height: 10px;
    background: #eef0f3;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.det-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.6s ease;
    width: 0%;
}

.det-bar-fill.high    { background: #dc2626; }
.det-bar-fill.medium  { background: #f59e0b; }
.det-bar-fill.low     { background: #10b981; }

.det-bar-value {
    width: 60px;
    text-align: right;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.det-bar-weight {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
}

/* ═══════════════════════════════════════════════════════════════
   Detector Explanations
   ═══════════════════════════════════════════════════════════════ */
.det-explanations {
    margin-bottom: 24px;
    padding: 20px 24px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.det-explanations h3 {
    margin-bottom: 12px;
}

.det-explanations ul {
    list-style: none;
    padding: 0;
}

.det-explanations li {
    position: relative;
    padding-left: 22px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.det-explanations li:last-child {
    margin-bottom: 0;
}

.det-explanations li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.6;
}

/* ═══════════════════════════════════════════════════════════════
   Detector Disclaimer
   ═══════════════════════════════════════════════════════════════ */
.det-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius-md);
    font-size: 13px;
    color: #92400e;
    line-height: 1.5;
}

.det-disclaimer svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: #f59e0b;
}

/* ═══════════════════════════════════════════════════════════════
   Scan Button Variant
   ═══════════════════════════════════════════════════════════════ */
.btn-scan {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.btn-scan:hover:not(:disabled) {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.4);
}

.btn-scan:active:not(:disabled) {
    box-shadow: 0 1px 4px rgba(5, 150, 105, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   How It Works — Dual Cards
   ═══════════════════════════════════════════════════════════════ */
.steps-dual {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.step-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step-humanizer .step-icon {
    background: var(--accent-light);
    color: var(--accent);
}

.step-detector .step-icon {
    background: #ecfdf5;
    color: #059669;
}

/* ═══════════════════════════════════════════════════════════════
   Responsive — Detector
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .tab-btn {
        font-size: 14px;
        padding: 14px 16px;
    }

    .det-score-row {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .det-gauge-container {
        width: 160px;
        height: 160px;
    }

    .det-gauge {
        width: 160px;
        height: 160px;
    }

    .det-score-value {
        font-size: 38px;
    }

    .det-bar-label {
        width: 110px;
        font-size: 12px;
    }

    .det-bar-value {
        width: 50px;
        font-size: 12px;
    }

    .detector-results {
        padding: 24px 20px;
    }

    .det-verdict-label {
        font-size: 18px;
    }

    .steps-dual {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .tab-switcher {
        flex-direction: column;
    }

    .tab-btn:first-child {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    .tab-btn:last-child {
        border-radius: 0;
    }

    .det-bar-item {
        flex-wrap: wrap;
        gap: 6px;
    }

    .det-bar-label {
        width: 100%;
    }

    .det-bar-value {
        width: auto;
        margin-left: auto;
    }
}
