@import url('https://fonts.googleapis.com/css2?family=Gmarket+Sans:wght@400;700&family=DM+Sans:wght@400;600;700&display=swap');

:root {
    --bg: #f7f2eb;
    --panel: #ffffff;
    --accent: #ff7b4a;
    --accent-soft: rgba(255, 123, 74, 0.18);
    --text: #231a14;
    --muted: #4f443a;
    --border: rgba(35, 26, 20, 0.18);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    background: radial-gradient(circle at top, #fff6eb 0%, #f4efe8 45%, #efe5db 100%);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.page {
    width: 100%;
    max-width: 980px;
    display: grid;
    gap: 28px;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.site-nav a {
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-nav a:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.eyebrow {
    font-family: 'Gmarket Sans', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 12px;
    color: var(--muted);
}

h1 {
    font-family: 'Gmarket Sans', sans-serif;
    font-size: 2.4rem;
    margin: 0 0 12px;
}

.sub {
    margin: 0;
    color: var(--muted);
}

.back-link {
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--border);
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.7);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.back-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.panel {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    background: var(--panel);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid var(--border);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.capture {
    display: grid;
    gap: 20px;
    justify-items: center;
}

.orb {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: var(--accent-soft);
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 123, 74, 0.35);
    box-shadow: 0 10px 30px rgba(255, 123, 74, 0.2);
}

.webcam-slot {
    width: 230px;
    height: 230px;
    border-radius: 50%;
    overflow: hidden;
    background: #1e1b18;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.webcam-slot canvas,
.webcam-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder {
    opacity: 0.75;
}

.controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

button,
.upload {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    padding: 12px 18px;
    background: var(--accent);
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

button:hover:not(:disabled),
.upload:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(255, 123, 74, 0.25);
}

.upload {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.upload input {
    display: none;
}

.result {
    display: grid;
    gap: 16px;
    align-content: start;
}

.result h2 {
    margin: 0;
    font-family: 'Gmarket Sans', sans-serif;
    font-size: 1.3rem;
}

.labels {
    display: grid;
    gap: 10px;
}

.label-row {
    display: grid;
    gap: 6px;
}

.label-name {
    font-weight: 600;
}

.bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(43, 38, 33, 0.1);
    overflow: hidden;
}

.bar span {
    display: block;
    height: 100%;
    background: var(--accent);
    width: 0;
    transition: width 0.3s ease;
}

.status {
    font-size: 0.95rem;
    color: var(--muted);
    background: rgba(255, 123, 74, 0.12);
    padding: 12px 14px;
    border-radius: 12px;
}

.info {
    background: var(--panel);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.info h2 {
    margin: 0 0 12px;
    font-family: 'Gmarket Sans', sans-serif;
    font-size: 1.3rem;
}

.info p {
    margin: 0 0 12px;
    color: var(--muted);
}

.simple-list {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
    color: var(--muted);
    display: grid;
    gap: 6px;
}

.faq-item {
    background: rgba(255, 123, 74, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.faq-item h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.faq-item p {
    margin: 0;
    color: var(--muted);
}

@media (max-width: 900px) {
    .panel {
        grid-template-columns: 1fr;
    }
    .hero {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .orb {
        width: 230px;
        height: 230px;
    }
    .webcam-slot {
        width: 190px;
        height: 190px;
    }
}
