/* valuator.dev — neomorphism soft ui */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --surface: #E4E8EE;
    --shadow-dark: #D1D5DB;
    --shadow-light: #FFFFFF;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --accent-indigo: #4F46E5;
    --accent-green: #10B981;
    --accent-red: #EF4444;
}

body {
    background: var(--surface);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.6;
}

/* ========== Headings ========== */
.section-heading {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    text-align: center;
}

/* ========== HERO ========== */
.hero {
    padding: 3.5rem 2rem 2rem;
}

.hero-inner {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.hero-sub {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
}

/* Input Panel */
.input-panel {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
    box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
    padding: 0.75rem;
    border-radius: 12px;
    background: var(--surface);
}

.input-field {
    flex: 1;
    background: var(--surface);
    border: none;
    padding: 0.65rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-primary);
    border-radius: 8px;
    box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
    outline: none;
    transition: box-shadow 0.2s ease;
}

.input-field::placeholder {
    color: var(--text-secondary);
}

.input-field:focus {
    box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light), inset 0 0 6px rgba(79,70,229,0.1);
}

.valuate-btn {
    background: var(--accent-indigo);
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.65rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
    transition: box-shadow 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
}

.valuate-btn:active {
    box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
    transform: scale(0.97);
}

.valuate-btn.calculating {
    box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
}

/* Metric Pods */
.metric-pods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.pod {
    background: var(--surface);
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
    text-align: center;
}

.pod-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.25rem;
}

.pod-value {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 22px;
}

.pod-value.indigo { color: var(--accent-indigo); }
.pod-value.green { color: var(--accent-green); }
.pod-value.red { color: var(--accent-red); }

/* Pulse animation for pods */
@keyframes podPulse {
    0%, 100% { box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light); }
    50% { box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light), 0 0 8px rgba(79,70,229,0.08); }
}

.pulse-pod {
    animation: podPulse 3s ease-in-out infinite;
}

.pulse-pod:nth-child(2) { animation-delay: 1s; }
.pulse-pod:nth-child(3) { animation-delay: 2s; }

/* ========== DASHBOARD ========== */
.dashboard {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem;
}

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

.gauge-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
    text-align: center;
}

.gauge-frame {
    margin-bottom: 0.5rem;
}

.gauge-frame svg {
    display: block;
    margin: 0 auto;
}

.gauge-arc {
    transition: stroke-dashoffset 1.2s ease-out;
}

.gauge-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ========== BREAKDOWN ========== */
.breakdown {
    max-width: 620px;
    margin: 0 auto;
    padding: 2rem;
}

.breakdown-list {
    margin-bottom: 1.5rem;
}

.breakdown-item {
    background: var(--surface);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.breakdown-item:active {
    box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
}

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

.breakdown-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.breakdown-val {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-indigo);
}

.expand-icon {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-secondary);
    width: 20px;
    text-align: center;
    transition: transform 0.25s ease;
}

.breakdown-item.expanded .expand-icon {
    transform: rotate(45deg);
}

.expand-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.breakdown-item.expanded .expand-content {
    max-height: 120px;
    padding-top: 0.75rem;
}

.expand-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.bar-track {
    height: 6px;
    background: var(--surface);
    border-radius: 3px;
    box-shadow: inset 2px 2px 4px var(--shadow-dark), inset -2px -2px 4px var(--shadow-light);
}

.bar-fill {
    height: 100%;
    background: var(--accent-indigo);
    border-radius: 3px;
    transition: width 0.8s ease-out;
}

.bar-fill.green { background: var(--accent-green); }

/* Benchmark Comparison */
.benchmark-panel {
    background: var(--surface);
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
    margin-bottom: 1rem;
}

.benchmark-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.benchmark-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.benchmark-row:last-child {
    margin-bottom: 0;
}

.benchmark-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    width: 90px;
    flex-shrink: 0;
}

.benchmark-bar-track {
    flex: 1;
    height: 8px;
    background: var(--surface);
    border-radius: 4px;
    box-shadow: inset 2px 2px 4px var(--shadow-dark), inset -2px -2px 4px var(--shadow-light);
}

.benchmark-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease-out;
}

.indigo-bar { background: var(--accent-indigo); }
.gray-bar { background: var(--text-secondary); }
.green-bar { background: var(--accent-green); }

.benchmark-score {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    width: 50px;
    text-align: right;
    flex-shrink: 0;
}

/* Trend Chart */
.trend-panel {
    background: var(--surface);
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
}

.trend-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.trend-chart {
    width: 100%;
    height: auto;
}

.trend-line {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    transition: stroke-dashoffset 1.5s ease-out;
}

.trend-line.animated {
    stroke-dashoffset: 0;
}

.diamond-marker {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.diamond-marker.visible {
    opacity: 1;
}

/* ========== METHODOLOGY ========== */
.methodology {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem;
}

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

.method-block {
    background: var(--surface);
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
}

.method-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.method-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ========== ACCESS / PRICING ========== */
.access {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem;
}

.api-panel {
    background: var(--surface);
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
    margin-bottom: 1.25rem;
}

.api-code {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-indigo);
    display: block;
    margin-bottom: 0.5rem;
}

.api-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.export-row {
    text-align: center;
    margin-bottom: 1.5rem;
}

.export-btn {
    background: var(--surface);
    color: var(--accent-indigo);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
    transition: box-shadow 0.2s ease, transform 0.1s ease;
}

.export-btn:active {
    box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
    transform: scale(0.97);
}

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

.price-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
    text-align: center;
    transition: box-shadow 0.2s ease;
}

.price-card.featured {
    box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light), inset 0 0 6px rgba(79,70,229,0.1);
}

.price-name {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 0.25rem;
}

.price-val {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.price-val.indigo { color: var(--accent-indigo); }

.price-period {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.price-feat {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ========== FOOTER ========== */
.footer {
    max-width: 620px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.footer-inner {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.flink {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    transition: box-shadow 0.2s ease, color 0.2s ease;
}

.flink:hover {
    box-shadow: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light);
    color: var(--accent-indigo);
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ========== ANIMATIONS ========== */
.fade-in {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
    .metric-pods,
    .gauge-grid,
    .pricing-grid,
    .methodology-grid {
        grid-template-columns: 1fr;
    }

    .input-panel {
        flex-direction: column;
    }

    .hero-title {
        font-size: 26px;
    }

    .benchmark-row {
        flex-wrap: wrap;
    }

    .benchmark-label {
        width: 100%;
    }
}
