/* ===== Design Tokens ===== */
:root {
    --bg-primary: #06080f;
    --bg-secondary: #0c1020;
    --bg-card: rgba(12, 16, 32, 0.75);
    --bg-card-hover: rgba(16, 22, 44, 0.85);
    --bg-card-border: rgba(56, 72, 127, 0.25);
    --bg-card-border-hover: rgba(96, 165, 250, 0.3);
    --bg-input: rgba(10, 14, 28, 0.9);
    --bg-input-border: rgba(51, 65, 95, 0.5);

    --text-primary: #e8ecf4;
    --text-secondary: #8b9dc3;
    --text-muted: #506080;
    --text-hint: #3a4a66;

    --accent-blue: #60a5fa;
    --accent-indigo: #818cf8;
    --accent-purple: #a78bfa;
    --accent-green: #34d399;
    --accent-amber: #fbbf24;
    --accent-red: #f87171;
    --accent-pink: #f472b6;

    --gradient-brand: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #a855f7 100%);
    --gradient-text: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
    --gradient-card: linear-gradient(145deg, rgba(96, 165, 250, 0.05) 0%, rgba(139, 92, 246, 0.03) 100%);
    --gradient-btn: linear-gradient(135deg, #3b82f6 0%, #7c3aed 100%);
    --gradient-btn-hover: linear-gradient(135deg, #4f93ff 0%, #8b5cf6 100%);

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

    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--bg-card-border);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--bg-card-border);
    --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(96, 165, 250, 0.15), 0 0 60px rgba(139, 92, 246, 0.08);

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 150ms var(--ease-out);
    --transition-normal: 300ms var(--ease-out);
    --transition-slow: 500ms var(--ease-out);
}

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

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

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Background Effects ===== */
.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(59, 130, 246, 0.07) 0%, transparent 70%),
        radial-gradient(ellipse 60% 80% at 80% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse 70% 50% at 50% 90%, rgba(52, 211, 153, 0.04) 0%, transparent 70%);
}

.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(96, 165, 250, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 165, 250, 0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 0%, transparent 70%);
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    animation: orbFloat 20s ease-in-out infinite;
}

.glow-orb-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    background: rgba(59, 130, 246, 0.12);
    animation-delay: 0s;
}

.glow-orb-2 {
    width: 350px;
    height: 350px;
    top: 50%;
    right: -150px;
    background: rgba(139, 92, 246, 0.1);
    animation-delay: -7s;
}

.glow-orb-3 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: 30%;
    background: rgba(52, 211, 153, 0.08);
    animation-delay: -14s;
}

@keyframes orbFloat {
    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); }
}

/* ===== Layout ===== */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

/* ===== Navbar ===== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    margin-bottom: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(6, 8, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(56, 72, 127, 0.15);
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.15);
}

.brand-text {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0.35rem 0.85rem;
    background: rgba(17, 24, 48, 0.6);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-full);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-amber);
    animation: pulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

.status-dot.ready {
    background: var(--accent-green);
    animation: none;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.4);
}

.status-dot.error {
    background: var(--accent-red);
    animation: none;
}

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

/* ===== Hero ===== */
.hero {
    text-align: center;
    padding: 3rem 0 2.5rem;
    animation: fadeInUp 0.8s var(--ease-out);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.9rem;
    background: rgba(96, 165, 250, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

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

.hero-description {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-description strong {
    color: var(--text-primary);
    font-weight: 600;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(99, 109, 143, 0.2);
}

/* ===== Cards ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(96, 165, 250, 0.3) 50%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

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

.card-title svg {
    color: var(--accent-blue);
    flex-shrink: 0;
}

.card-title h2 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.card-step {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--accent-indigo);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.6rem;
    background: rgba(129, 140, 248, 0.08);
    border: 1px solid rgba(129, 140, 248, 0.15);
    border-radius: var(--radius-full);
}

/* ===== Main Grid ===== */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1.5rem;
    align-items: start;
    animation: fadeInUp 0.8s var(--ease-out) 0.15s both;
}

@media (max-width: 850px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Form Elements ===== */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.label-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 400;
}

.textarea-wrapper {
    position: relative;
}

.textarea-line-numbers {
    display: none; /* hidden for simplicity, but could show line numbers */
}

textarea, input[type="number"] {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: var(--bg-input);
    border: 1px solid var(--bg-input-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.6;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
    outline: none;
    resize: vertical;
}

textarea::placeholder, input::placeholder {
    color: var(--text-hint);
}

textarea:focus, input[type="number"]:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1), 0 0 20px rgba(96, 165, 250, 0.05);
    background: rgba(12, 18, 36, 0.95);
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-hint);
    pointer-events: none;
    transition: color var(--transition-fast);
}

.input-with-icon input {
    padding-left: 2.25rem;
}

.input-with-icon:focus-within .input-icon {
    color: var(--accent-blue);
}

input[type="number"] {
    -moz-appearance: textfield;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

/* ===== Buttons ===== */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.8rem 1.5rem;
    background: var(--gradient-btn);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-btn-hover);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn-primary:hover:not(:disabled)::before {
    opacity: 1;
}

.btn-primary:hover:not(:disabled) {
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

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

.btn-primary:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.btn-primary > * {
    position: relative;
    z-index: 1;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(71, 85, 120, 0.4);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-ghost:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: rgba(96, 165, 250, 0.06);
}

.btn-example:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    background: rgba(167, 139, 250, 0.06);
}

.file-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* ===== ROV Section ===== */
.rov-section {
    margin-bottom: 1rem;
}

.rov-section summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem 0;
    list-style: none;
    transition: color var(--transition-fast);
}

.rov-section summary:hover {
    color: var(--accent-blue);
}

.rov-section summary::-webkit-details-marker {
    display: none;
}

.rov-summary-left {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.chevron {
    transition: transform var(--transition-fast);
    color: var(--text-muted);
}

.rov-section[open] .chevron {
    transform: rotate(90deg);
}

/* ===== Spinner ===== */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* ===== Results ===== */
.result-count {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-green);
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.15);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem 1rem 2rem;
    text-align: center;
    color: var(--text-muted);
}

.empty-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    background: rgba(80, 96, 128, 0.06);
    border: 1px solid rgba(80, 96, 128, 0.1);
    color: var(--text-hint);
}

.empty-state p {
    font-size: 0.85rem;
    max-width: 300px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.empty-state p strong {
    color: var(--text-primary);
}

.empty-steps {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.empty-step {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(96, 165, 250, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.2);
    color: var(--accent-blue);
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ===== Table ===== */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--bg-card-border);
    max-height: 420px;
    overflow-y: auto;
}

.table-wrapper::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(96, 165, 250, 0.2);
    border-radius: 3px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(96, 165, 250, 0.35);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

thead {
    background: rgba(15, 22, 44, 0.9);
    position: sticky;
    top: 0;
    z-index: 2;
}

th {
    padding: 0.65rem 0.8rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--bg-card-border);
    white-space: nowrap;
}

td {
    padding: 0.55rem 0.8rem;
    border-bottom: 1px solid rgba(51, 65, 95, 0.2);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    white-space: nowrap;
    color: var(--text-primary);
}

tbody tr {
    transition: background var(--transition-fast);
}

tbody tr:hover {
    background: rgba(96, 165, 250, 0.04);
}

tbody tr:last-child td {
    border-bottom: none;
}

td:first-child {
    color: var(--accent-blue);
    font-weight: 500;
}

td:nth-child(2) {
    color: var(--text-secondary);
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Row enter animation */
tbody tr {
    animation: rowFadeIn 0.3s var(--ease-out) both;
}

@keyframes rowFadeIn {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ===== Export Row ===== */
.export-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(51, 65, 95, 0.15);
}

/* ===== Messages ===== */
.message {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    line-height: 1.5;
    margin-top: 1rem;
    animation: fadeInUp 0.3s var(--ease-out);
}

.message.error {
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.2);
    color: var(--accent-red);
}

.message.info {
    background: rgba(96, 165, 250, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.2);
    color: var(--accent-blue);
}

/* ===== Timing Bar ===== */
.timing-bar {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    padding: 0.6rem 1rem;
    background: rgba(15, 22, 44, 0.5);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    animation: fadeInUp 0.3s var(--ease-out);
}

.timing-bar span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.timing-label {
    color: var(--text-hint);
}

.timing-value {
    color: var(--accent-green);
    font-weight: 500;
}

/* ===== How It Works ===== */
.how-it-works {
    margin-top: 4rem;
    text-align: center;
    animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

.how-it-works h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

@media (max-width: 850px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

.step-card {
    padding: 1.5rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
}

.step-card:hover {
    border-color: var(--bg-card-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.step-icon-1 {
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.2);
    color: var(--accent-blue);
}

.step-icon-2 {
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.2);
    color: var(--accent-purple);
}

.step-icon-3 {
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.2);
    color: var(--accent-green);
}

.step-icon-4 {
    background: rgba(244, 114, 182, 0.1);
    border: 1px solid rgba(244, 114, 182, 0.2);
    color: var(--accent-pink);
}

.step-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== Footer ===== */
.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(51, 65, 95, 0.2);
    color: var(--text-muted);
    font-size: 0.72rem;
}

.footer-left, .footer-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand {
    font-weight: 600;
    color: var(--text-secondary);
}

.footer-sep {
    color: var(--text-hint);
}

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

.input-card {
    animation: fadeInUp 0.6s var(--ease-out) 0.1s both;
}

.results-card {
    animation: fadeInUp 0.6s var(--ease-out) 0.2s both;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .container {
        padding: 0 1rem 2rem;
    }

    .navbar {
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero-stats {
        gap: 1.25rem;
    }

    .stat-divider {
        display: none;
    }

    .card {
        padding: 1.25rem;
    }

    .footer {
        flex-direction: column;
        text-align: center;
    }
}
