/* valuator.dev - Developer Workspace */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --deep-brown: #2A2418;
    --warm-tan: #8A7A60;
    --white: #FFFFFF;
    --text-body: #4A4238;
    --canvas: #F5F0E8;
    --value-green: #6A8A4A;
    --cream: #E8E0D0;
    --fresh-green: #4A8A4A;
    --error-red: #A84A4A;
    --connect: #C8B8A0;
}

body {
    background: var(--canvas);
    color: var(--deep-brown);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    font-weight: 400;
    overflow-x: hidden;
}

/* Connection Lines */
.connection-lines {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Workspace */
.workspace {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
}

/* Card Base */
.card {
    background: var(--white);
    border-radius: 8px;
    position: relative;
}

/* Background Cards */
.layer-back {
    display: flex;
    gap: 2rem;
    margin-bottom: -2rem;
    padding: 0 3rem;
    position: relative;
    z-index: 1;
}
.bg-card {
    flex: 1;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(42, 36, 24, 0.06);
    background: var(--cream);
}
.card-tag {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--value-green);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}
.card-note {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: var(--warm-tan);
    line-height: 1.6;
}

/* Mid Layer */
.layer-mid {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 0;
}
.main-card {
    max-width: 680px;
    margin: 0 auto;
    padding: 2.5rem;
    box-shadow: 0 6px 24px rgba(42, 36, 24, 0.08);
    width: 100%;
}
.card-title {
    font-family: 'Jost', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 600;
    color: var(--deep-brown);
    margin-bottom: 0.5rem;
}
.card-sub {
    font-family: 'Jost', sans-serif;
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--warm-tan);
    margin-bottom: 1rem;
}
.card-divider {
    height: 1px;
    background: var(--cream);
    margin: 1.5rem 0;
}
.card-body {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

/* Code Block */
.code-block {
    background: var(--canvas);
    border-radius: 6px;
    padding: 1.25rem;
    border: 1px solid var(--cream);
}
.code-block code {
    font-family: 'Fira Code', monospace;
    font-size: 0.875rem;
    color: var(--text-body);
    display: block;
    line-height: 1.8;
}
.code-kw { color: var(--value-green); }
.code-str { color: var(--warm-tan); }
.code-num { color: var(--fresh-green); }

/* Tool List */
.tool-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}
.tool-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--cream);
}
.tool-item:last-child { border-bottom: none; }
.tool-name {
    font-family: 'Fira Code', monospace;
    font-size: 0.875rem;
    color: var(--value-green);
}
.tool-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--warm-tan);
}

/* Front Layer */
.layer-front {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
    padding: 0 2rem;
    margin-top: -1rem;
    position: relative;
    z-index: 3;
}
.accent-card {
    max-width: 180px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 12px 36px rgba(42, 36, 24, 0.12);
}
.accent-value {
    font-family: 'Jost', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--fresh-green);
    display: block;
    margin-bottom: 0.25rem;
}
.accent-red { color: var(--error-red); }
.accent-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.65rem;
    color: var(--warm-tan);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Animations */
.card {
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.card.visible { opacity: 1; }

/* Footer */
.site-footer {
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
}
.footer-text {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--warm-tan);
    letter-spacing: 0.04em;
}

/* Responsive */
@media (max-width: 768px) {
    .layer-back { flex-direction: column; padding: 0; }
    .layer-front { flex-direction: column; align-items: flex-end; }
    .main-card { padding: 1.5rem; }
}
