@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Sora:wght@500;600;700;800&display=swap');

:root {
    --bg: #f2f5f8;
    --panel: rgba(255, 255, 255, 0.84);
    --panel-solid: #ffffff;
    --line: rgba(15, 23, 42, 0.1);
    --text: #0f172a;
    --text-soft: #425466;
    --text-faint: #66768a;
    --accent: #0ea5e9;
    --accent-dark: #0369a1;
    --accent-soft: rgba(14, 165, 233, 0.08);
    --signal-soft: rgba(249, 115, 22, 0.12);
    --success-soft: rgba(22, 163, 74, 0.12);
    --shadow-sm: 0 12px 30px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 24px 70px rgba(15, 23, 42, 0.1);
    --radius-sm: 16px;
    --radius: 26px;
    --radius-lg: 38px;
    --container: 1220px;
    --transition: 180ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.14), transparent 28%),
        radial-gradient(circle at 88% 12%, rgba(249, 115, 22, 0.12), transparent 18%),
        linear-gradient(180deg, #f7fafc 0%, #eef3f8 52%, #f5f7fa 100%);
    min-height: 100vh;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-shell { position: relative; }
.site-shell::before, .site-shell::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -2; }
.site-shell::before {
    background-image: linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(180deg, transparent 0%, black 18%, black 82%, transparent 100%);
}
.site-shell::after {
    z-index: -1;
    background: radial-gradient(circle at 12% 18%, rgba(14, 165, 233, 0.16), transparent 20%), radial-gradient(circle at 76% 72%, rgba(249, 115, 22, 0.1), transparent 18%);
}

.container { width: min(var(--container), calc(100% - 2rem)); margin: 0 auto; }
.section { padding: 5.5rem 0; }
.section-compact { padding: 3.5rem 0 5rem; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 0.7rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-dark);
}
.eyebrow::before { content: ""; width: 2.4rem; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
.lead, .section-copy, .muted { margin: 0; color: var(--text-soft); line-height: 1.75; }
.section-head { max-width: 760px; margin-bottom: 2rem; }
.section-head h1, .section-head h2, .hero-copy h1, .page-hero h1, .panel h2, .panel h3, .post-card h3, .request-card h3, .empty-state h3 {
    margin: 0; font-family: 'Sora', sans-serif; letter-spacing: -0.05em; line-height: 1.02;
}
.section-head h2, .page-hero h1 { font-size: clamp(2.3rem, 4vw, 4.25rem); margin-top: 0.8rem; }
.hero-copy h1 { font-size: clamp(3rem, 7vw, 6.2rem); }

.site-header {
    position: sticky; top: 0; z-index: 20; padding: 1rem 0; backdrop-filter: blur(18px);
    background: linear-gradient(180deg, rgba(242, 245, 248, 0.9), rgba(242, 245, 248, 0.58)); border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.nav-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.9rem; font-weight: 700; }
.brand-mark {
    width: 3rem; height: 3rem; border-radius: 1rem; display: grid; place-items: center; font-family: 'Sora', sans-serif; color: var(--accent-dark);
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.16), rgba(255, 255, 255, 0.92)); border: 1px solid rgba(14, 165, 233, 0.16); box-shadow: var(--shadow-sm);
}
.brand-copy { display: grid; gap: 0.08rem; }
.brand-copy strong { font-family: 'Sora', sans-serif; font-size: 1rem; letter-spacing: -0.04em; }
.brand-copy span { color: var(--text-faint); font-size: 0.84rem; }
.site-nav { display: inline-flex; justify-content: center; flex-wrap: wrap; gap: 0.45rem; }
.site-nav a, .nav-actions a, .nav-actions button { border-radius: 999px; transition: var(--transition); }
.site-nav a { padding: 0.82rem 1rem; color: var(--text-soft); font-weight: 600; }
.site-nav a:hover, .site-nav a.is-active { color: var(--text); background: rgba(255, 255, 255, 0.72); box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06); }
.nav-actions { display: inline-flex; align-items: center; gap: 0.75rem; }
.menu-button { display: none !important; }
.mobile-panel { display: none; padding-top: 1rem; }
.mobile-panel.is-open { display: grid; gap: 0.75rem; }
.mobile-panel nav, .mobile-panel .stack, .stack, .side-stack, .dashboard-main, .dashboard-side, .request-list, .file-list, .timeline { display: grid; gap: 1rem; }

.panel, .post-card, .request-card, .service-card, .material-card, .hero-stage, .auth-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.72));
    border: 1px solid rgba(15, 23, 42, 0.08); box-shadow: var(--shadow-sm); backdrop-filter: blur(18px);
}
.panel, .hero-stage, .auth-card, .form-panel { border-radius: var(--radius); }
.panel, .form-panel { padding: 1.6rem; }
.service-card, .material-card, .post-card, .request-card { padding: 1.4rem; border-radius: 1.5rem; transition: transform var(--transition), box-shadow var(--transition); }
.service-card:hover, .material-card:hover, .post-card:hover, .request-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3.2rem; padding: 0.8rem 1.25rem; border-radius: 999px;
    border: 1px solid transparent; background: linear-gradient(135deg, var(--accent-dark), var(--accent)); color: #ffffff; font-weight: 700;
    box-shadow: 0 16px 30px rgba(14, 165, 233, 0.18); transition: transform var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 20px 38px rgba(14, 165, 233, 0.22); }
.btn-secondary, .btn-ghost { box-shadow: none; }
.btn-secondary { background: rgba(255, 255, 255, 0.86); color: var(--text); border-color: rgba(15, 23, 42, 0.08); }
.btn-ghost { background: var(--accent-soft); color: var(--accent-dark); border-color: rgba(14, 165, 233, 0.12); }
.button-row, .chip-row, .post-meta, .request-meta, .detail-list { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.button-row { margin-top: 1.75rem; }
.chip, .stage-chip {
    display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.56rem 0.82rem; border-radius: 999px; background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 23, 42, 0.08); color: var(--text-soft); font-size: 0.86rem; font-weight: 600;
}

.hero { padding: 3.5rem 0 4.5rem; }
.hero-grid, .form-layout, .dashboard-layout, .content-split, .two-column, .post-feature { display: grid; gap: 1.5rem; }
.hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); align-items: center; }
.hero-copy { max-width: 700px; }
.hero-copy .lead { margin-top: 1.2rem; font-size: 1.08rem; }
.kpi-strip, .stage-card-grid, .cards-3, .blog-grid, .stats-grid, .mini-grid, .contact-cards, .detail-grid { display: grid; gap: 1rem; }
.kpi-strip, .stage-card-grid, .cards-3, .blog-grid, .contact-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mini-grid, .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kpi { padding: 1rem 1.1rem; border-radius: 1.35rem; background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(15, 23, 42, 0.06); }
.kpi strong { display: block; font-family: 'Sora', sans-serif; font-size: 1.75rem; letter-spacing: -0.05em; }
.kpi span { display: block; margin-top: 0.35rem; color: var(--text-faint); font-size: 0.92rem; line-height: 1.5; }

.hero-stage { position: relative; overflow: hidden; padding: 1.5rem; min-height: 35rem; }
.hero-stage::before {
    content: ""; position: absolute; inset: 1rem; border-radius: calc(var(--radius) - 8px);
    background: radial-gradient(circle at 70% 25%, rgba(14, 165, 233, 0.18), transparent 22%), radial-gradient(circle at 24% 82%, rgba(249, 115, 22, 0.14), transparent 18%), linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(229, 236, 244, 0.74));
    border: 1px solid rgba(15, 23, 42, 0.05);
}
.stage-stack, .stage-top { position: relative; z-index: 1; }
.stage-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.printer-scene { position: relative; width: min(26rem, 100%); margin: 0 auto; aspect-ratio: 1 / 1; }
.printer-frame, .printer-bed, .print-core, .print-ring, .print-cap { position: absolute; border-radius: 1.5rem; }
.printer-frame { inset: 12% 14%; border: 2px solid rgba(15, 23, 42, 0.14); background: linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(212, 222, 232, 0.34)); }
.printer-frame::before, .printer-frame::after { content: ""; position: absolute; background: rgba(15, 23, 42, 0.12); width: 0.32rem; border-radius: 999px; top: 10%; bottom: 10%; }
.printer-frame::before { left: 18%; }
.printer-frame::after { right: 18%; }
.printer-bed { inset: auto 18% 18% 18%; height: 18%; background: linear-gradient(180deg, rgba(15, 23, 42, 0.22), rgba(15, 23, 42, 0.08)); }
.print-core { inset: 34% 34% 25% 34%; background: linear-gradient(180deg, rgba(14, 165, 233, 0.98), rgba(3, 105, 161, 0.96)); box-shadow: 0 20px 40px rgba(14, 165, 233, 0.22); }
.print-ring { inset: 28% 28% 50% 28%; background: linear-gradient(180deg, rgba(249, 115, 22, 0.96), rgba(251, 146, 60, 0.88)); }
.print-cap { inset: 22% 38% auto 38%; height: 10%; background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(51, 65, 85, 0.9)); border-radius: 1rem; }

.card-kicker, .post-card time, .post-feature time, .status-pill, .detail-box strong {
    font-size: 0.76rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}
.card-kicker, .post-card time, .post-feature time { color: var(--accent-dark); }
.service-card h3, .material-card h3, .post-card h3, .request-card h3 { margin-top: 0.75rem; font-size: 1.35rem; }
.service-card p, .material-card p, .post-card p, .request-card p { margin: 0.75rem 0 0; color: var(--text-soft); line-height: 1.7; }

.split-panel, .form-layout, .dashboard-layout, .content-split, .two-column { grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr); }
.form-panel { background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.76)); border: 1px solid rgba(15, 23, 42, 0.08); box-shadow: var(--shadow-sm); }
.field-grid { display: grid; gap: 1rem; }
.field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: grid; gap: 0.5rem; }
.field label, .checkbox-row span { font-size: 0.92rem; font-weight: 600; color: var(--text); }
.field input, .field select, .field textarea {
    width: 100%; border: 1px solid rgba(15, 23, 42, 0.12); border-radius: 1rem; background: rgba(255, 255, 255, 0.88);
    color: var(--text); padding: 0.92rem 1rem; outline: none; transition: border-color var(--transition), box-shadow var(--transition);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(14, 165, 233, 0.4); box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1); }
.helper { font-size: 0.84rem; color: var(--text-faint); }
.upload-box {
    display: grid; gap: 0.9rem; justify-items: start; padding: 1.4rem; border-radius: 1.35rem;
    border: 1px dashed rgba(14, 165, 233, 0.34); background: linear-gradient(180deg, rgba(14, 165, 233, 0.08), rgba(255, 255, 255, 0.72));
}
.upload-box.is-dragging { border-color: rgba(14, 165, 233, 0.6); box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.18); }
.checkbox-row { display: flex; align-items: flex-start; gap: 0.75rem; padding: 1rem 1.05rem; border-radius: 1rem; background: rgba(15, 23, 42, 0.03); }
.checkbox-row input { margin-top: 0.2rem; }
.flash { display: grid; gap: 0.35rem; padding: 1rem 1.1rem; border-radius: 1.1rem; margin-bottom: 1rem; border: 1px solid transparent; }
.flash-success { background: var(--success-soft); border-color: rgba(22, 163, 74, 0.18); color: #15803d; }
.flash-error { background: rgba(194, 65, 12, 0.08); border-color: rgba(194, 65, 12, 0.16); color: #c2410c; }
.error-list { margin: 0; padding-left: 1rem; color: inherit; }

.page-hero { padding: 3.4rem 0 2rem; }
.page-hero .lead { max-width: 760px; margin-top: 1rem; }
.post-feature { grid-template-columns: minmax(0, 1fr) minmax(240px, 0.8fr); padding: 1.6rem; border-radius: var(--radius); margin-bottom: 1.2rem; }
.post-meta, .request-meta { color: var(--text-faint); font-size: 0.9rem; }
.feature-media, .article-image {
    border-radius: 1.35rem; min-height: 16rem; overflow: hidden; background: linear-gradient(145deg, rgba(14, 165, 233, 0.12), rgba(249, 115, 22, 0.12)), linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(226, 232, 240, 0.7)); border: 1px solid rgba(15, 23, 42, 0.08);
}
.feature-media img, .article-image img { width: 100%; height: 100%; object-fit: cover; }
.article-shell { max-width: 900px; margin: 0 auto; }
.article-body { line-height: 1.85; color: var(--text-soft); }
.article-body h2, .article-body h3, .article-body h4 { color: var(--text); margin: 2rem 0 0.8rem; font-family: 'Sora', sans-serif; letter-spacing: -0.04em; }
.article-body p, .article-body ul, .article-body ol, .article-body blockquote { margin: 0 0 1rem; }
.article-body ul, .article-body ol { padding-left: 1.3rem; }
.article-body a { color: var(--accent-dark); text-decoration: underline; }
.article-body blockquote { padding: 1rem 1.1rem; border-left: 3px solid var(--accent); border-radius: 0 1rem 1rem 0; background: rgba(14, 165, 233, 0.06); }

.status-pill { display: inline-flex; align-items: center; padding: 0.5rem 0.85rem; border-radius: 999px; border: 1px solid transparent; }
.status-pending, .status-reviewing { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.2); color: #b45309; }
.status-quoted { background: rgba(14, 165, 233, 0.12); border-color: rgba(14, 165, 233, 0.18); color: var(--accent-dark); }
.status-accepted, .status-completed { background: var(--success-soft); border-color: rgba(22, 163, 74, 0.18); color: #15803d; }
.status-in_production { background: var(--signal-soft); border-color: rgba(249, 115, 22, 0.18); color: #c2410c; }
.status-cancelled { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.18); color: #b91c1c; }
.detail-box, .file-row, .timeline-row {
    padding: 1rem 1.1rem; border-radius: 1.1rem; background: rgba(255, 255, 255, 0.76); border: 1px solid rgba(15, 23, 42, 0.08);
}
.detail-box strong { display: block; color: var(--text-faint); margin-bottom: 0.45rem; }
.detail-box span, .detail-box div, .detail-box p { margin: 0; color: var(--text); }
.file-row, .timeline-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.timeline-row strong { color: var(--text); }
.timeline-row span { color: var(--text-faint); font-size: 0.92rem; }
.empty-state { text-align: center; padding: 2rem; }
.pager {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.6rem;
}
.pager span { color: var(--text-faint); font-size: 0.95rem; }

.site-footer { padding: 2rem 0 3rem; }
.footer-shell {
    display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: 1rem; padding: 1.6rem; border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.78); border: 1px solid rgba(15, 23, 42, 0.08); box-shadow: var(--shadow-sm);
}
.footer-shell h4 { margin: 0 0 0.7rem; font-family: 'Sora', sans-serif; font-size: 1rem; }
.footer-shell ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; color: var(--text-soft); }
.footer-bottom { margin-top: 1rem; text-align: center; color: var(--text-faint); font-size: 0.9rem; }

.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; }
.auth-stack { width: min(32rem, 100%); display: grid; gap: 1rem; }
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text-soft); font-weight: 600; }
.auth-card { padding: 1.5rem; }
.auth-header { display: grid; gap: 0.8rem; margin-bottom: 1.5rem; }
.auth-title { font-size: clamp(2rem, 4vw, 2.8rem); }
.auth-subtitle { color: var(--text-soft); margin: 0; line-height: 1.7; }
.auth-brand { display: inline-flex; align-items: center; gap: 0.9rem; }
.auth-grid { display: grid; gap: 1rem; }
.auth-link {
    color: var(--accent-dark);
    font-weight: 700;
}
.auth-actions {
    display: grid;
    gap: 0.9rem;
    margin-top: 1rem;
}
.auth-switch {
    margin-top: 1.1rem;
    color: var(--text-soft);
    text-align: center;
}
.auth-split {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.auth-choice {
    position: relative;
    display: grid;
    gap: 0.45rem;
    padding: 1rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.72);
}
.auth-choice strong {
    font-family: 'Sora', sans-serif;
}
.auth-choice input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.auth-choice.is-active {
    border-color: rgba(14, 165, 233, 0.32);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.08);
    background: rgba(14, 165, 233, 0.08);
}
.auth-note {
    padding: 1rem 1.05rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.03);
    color: var(--text-soft);
    line-height: 1.7;
}
.auth-divider {
    height: 1px;
    background: rgba(15, 23, 42, 0.08);
    margin: 0.25rem 0;
}

@media (max-width: 1100px) {
    .hero-grid, .form-layout, .dashboard-layout, .content-split, .two-column, .post-feature { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .stage-card-grid, .cards-3, .blog-grid, .contact-cards, .footer-shell { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-shell > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    .nav-row { grid-template-columns: auto auto; }
    .site-nav, .nav-actions .desktop-only { display: none; }
    .menu-button { display: inline-flex !important; }
    .kpi-strip, .stats-grid, .stage-card-grid, .cards-3, .blog-grid, .contact-cards, .mini-grid, .detail-grid, .field-grid.two, .field-grid.three { grid-template-columns: 1fr; }
    .hero-stage { min-height: 30rem; }
}

@media (max-width: 560px) {
    .hero, .section { padding: 4.2rem 0; }
    .page-hero { padding-top: 2.4rem; }
    .panel, .form-panel, .service-card, .material-card, .post-card, .request-card, .hero-stage, .footer-shell { padding: 1.2rem; }
    .button-row, .pager { flex-direction: column; align-items: stretch; }
    .btn, .btn-secondary, .btn-ghost { width: 100%; }
    .auth-split { grid-template-columns: 1fr; }
}
