:root {
    --bg: #f3ede2;
    --bg-deep: #efe4d4;
    --surface: rgba(255, 251, 245, 0.8);
    --surface-strong: #fffaf3;
    --surface-dark: #102720;
    --ink: #1f231d;
    --muted: #5d645e;
    --line: rgba(31, 35, 29, 0.12);
    --accent: #c75d2c;
    --accent-deep: #8c3d1d;
    --forest: #184d47;
    --forest-soft: #27655e;
    --gold: #c79a52;
    --shadow: 0 28px 72px rgba(24, 77, 71, 0.12);
    --radius-xl: 34px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --shell: min(1180px, calc(100vw - 32px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    line-height: 1.7;
    background:
        radial-gradient(circle at top left, rgba(199, 154, 82, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(24, 77, 71, 0.14), transparent 26%),
        linear-gradient(180deg, var(--bg) 0%, #f8f3ec 48%, var(--bg-deep) 100%);
}

.marketing-body::before,
.app-body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 78%);
    opacity: 0.35;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

button,
input,
select,
textarea {
    font: inherit;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -48px;
    z-index: 2000;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--forest);
    color: #fff;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

.shell {
    width: var(--shell);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(243, 237, 226, 0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(31, 35, 29, 0.08);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--forest) 100%);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-copy strong,
h1,
h2,
h3 {
    font-family: "Cormorant Garamond", Georgia, serif;
    letter-spacing: -0.02em;
}

.brand-copy span {
    color: var(--muted);
    font-size: 0.9rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-nav a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--ink);
}

.nav-app-link {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(31, 35, 29, 0.12);
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
}

.hero-section,
.section,
.app-hero {
    padding: 72px 0;
}

.hero-grid,
.flow-grid,
.beta-grid,
.app-hero-grid,
.dashboard-grid,
.closet-grid {
    display: grid;
    gap: 28px;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    align-items: center;
}

.app-hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    align-items: start;
}

.flow-grid,
.beta-grid,
.closet-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
}

.dashboard-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
}

.hero-copy h1,
.app-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(3rem, 5vw, 5.3rem);
    line-height: 0.96;
    max-width: 11ch;
}

.hero-text,
.hero-copy p,
.flow-copy p,
.problem-card p,
.feature-card p,
.signal-card p,
.faq-item p,
.beta-copy p,
.beta-form .form-response,
.panel p,
.status-text,
.microcopy,
.summary-card p,
.item-card p,
.outfit-card p,
.saved-card p {
    color: var(--muted);
}

.eyebrow,
.card-kicker {
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent-deep);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    text-decoration: none;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 16px 32px rgba(199, 93, 44, 0.18);
}

.button:hover,
.button:focus-visible {
    filter: saturate(1.06) brightness(0.98);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.68);
    color: var(--ink);
    box-shadow: none;
    border: 1px solid rgba(31, 35, 29, 0.12);
}

.button-wide {
    width: 100%;
}

.hero-actions,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.metric-row,
.feature-grid,
.problem-grid,
.signal-grid,
.app-summary,
.inventory-grid,
.saved-grid,
.outfit-grid {
    display: grid;
    gap: 18px;
}

.metric-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
}

.metric-pill,
.summary-card,
.problem-card,
.feature-card,
.signal-card,
.panel,
.hero-panel,
.step-card,
.phone-card,
.mini-item,
.beta-form,
.faq-item,
.item-card,
.outfit-card,
.saved-card,
.empty-state {
    background: var(--surface);
    border: 1px solid rgba(31, 35, 29, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.metric-pill,
.summary-card,
.problem-card,
.feature-card,
.signal-card,
.panel,
.hero-panel,
.beta-form,
.saved-card,
.empty-state {
    padding: 24px;
}

.metric-pill strong,
.summary-card strong,
.signal-card strong {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.hero-stage {
    position: relative;
}

.hero-phone {
    position: relative;
    overflow: hidden;
    padding: 26px;
    border-radius: 38px;
    background: linear-gradient(180deg, rgba(16, 39, 32, 0.96) 0%, rgba(30, 62, 53, 0.96) 100%);
    color: #f7f2eb;
    box-shadow: 0 38px 90px rgba(16, 39, 32, 0.28);
}

.hero-phone::after {
    content: "";
    position: absolute;
    inset: auto -20% -22% auto;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(199, 154, 82, 0.38) 0%, transparent 70%);
}

.phone-header,
.phone-footer,
.result-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.phone-header {
    font-size: 0.9rem;
    color: rgba(247, 242, 235, 0.7);
    margin-bottom: 18px;
}

.phone-card {
    position: relative;
    z-index: 1;
    padding: 22px;
    background: rgba(255, 250, 244, 0.12);
    border-color: rgba(255, 255, 255, 0.12);
}

.phone-card-accent {
    background: linear-gradient(135deg, rgba(199, 93, 44, 0.22) 0%, rgba(255, 250, 244, 0.14) 100%);
}

.phone-card h2 {
    margin: 0 0 10px;
    font-size: 2rem;
    line-height: 1.02;
}

.card-label,
.panel-title {
    margin: 0 0 10px;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(247, 242, 235, 0.68);
    font-weight: 700;
}

.phone-items {
    display: grid;
    gap: 12px;
    margin: 18px 0 20px;
    position: relative;
    z-index: 1;
}

.mini-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 250, 244, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.mini-item strong {
    min-width: 54px;
}

.mini-tone {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.34);
}

.tone-cream {
    background: #efe5d0;
}

.tone-navy {
    background: #2f436b;
}

.tone-sand {
    background: #c7b091;
}

.footer-stat {
    position: relative;
    z-index: 1;
}

.footer-stat strong {
    display: block;
    margin-bottom: 4px;
}

.floating-note {
    position: absolute;
    right: 18px;
    bottom: -18px;
    max-width: 220px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 250, 244, 0.88);
    border: 1px solid rgba(31, 35, 29, 0.08);
    box-shadow: var(--shadow);
    font-size: 0.92rem;
}

.section-soft {
    background: linear-gradient(180deg, rgba(24, 77, 71, 0.04) 0%, rgba(255, 255, 255, 0) 100%);
}

.section-dark {
    background:
        radial-gradient(circle at top right, rgba(199, 154, 82, 0.18), transparent 22%),
        linear-gradient(180deg, #102720 0%, #17342d 100%);
    color: #f6efe6;
}

.invert .eyebrow,
.section-dark .eyebrow {
    color: rgba(247, 242, 235, 0.72);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.section-heading h2,
.flow-copy h2,
.beta-copy h2,
.panel-head h2,
.hero-panel h2,
.problem-card h3,
.feature-card h3,
.step-card h3,
.outfit-card h3,
.saved-card h3 {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.04;
}

.problem-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.problem-card h3,
.feature-card h3,
.step-card h3,
.item-card h3,
.outfit-card h3,
.saved-card h3 {
    font-size: 1.7rem;
}

.steps-stack {
    display: grid;
    gap: 16px;
}

.step-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    padding: 20px 22px;
}

.step-card span {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--forest) 100%);
    color: #fff;
    font-weight: 800;
}

.feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
    background: rgba(255, 250, 244, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.feature-card p {
    color: rgba(247, 242, 235, 0.76);
}

.signal-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.app-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.faq-list {
    display: grid;
    gap: 14px;
}

.faq-item {
    padding: 0 22px;
}

.faq-item summary {
    padding: 18px 0;
    cursor: pointer;
    font-weight: 800;
}

.faq-item p {
    margin: 0 0 18px;
}

.beta-section {
    padding-bottom: 84px;
}

.beta-form,
.stack-form {
    display: grid;
    gap: 16px;
}

.form-grid {
    display: grid;
    gap: 16px;
}

.two-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-up {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field label,
.chip-fieldset legend {
    font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(31, 35, 29, 0.12);
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
}

.form-field textarea {
    min-height: 140px;
    resize: vertical;
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible,
.choice-chip:focus-within,
.filter-chip:focus-visible,
.button:focus-visible,
.nav-toggle:focus-visible,
.site-nav a:focus-visible,
.item-action:focus-visible,
.action-link:focus-visible {
    outline: 3px solid rgba(199, 93, 44, 0.3);
    outline-offset: 3px;
}

.chip-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.chip-grid,
.filter-row,
.action-row,
.product-list,
.meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.choice-chip {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.choice-chip input {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.choice-chip span,
.filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(31, 35, 29, 0.12);
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
    font-weight: 700;
}

.choice-chip input:checked + span,
.filter-chip.is-active {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    color: #fff;
    border-color: transparent;
}

.filter-chip {
    cursor: pointer;
}

.panel-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.microcopy,
.range-hint {
    font-size: 0.92rem;
}

.status-text,
.form-response {
    min-height: 1.4em;
    margin: 0;
}

.app-main .section {
    padding-top: 36px;
}

.app-hero {
    padding-bottom: 36px;
}

.inventory-grid,
.saved-grid,
.outfit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.item-card,
.saved-card,
.outfit-card,
.empty-state {
    padding: 20px;
}

.item-card {
    display: grid;
    gap: 12px;
}

.item-head,
.saved-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.item-category,
.result-pill,
.saved-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(24, 77, 71, 0.1);
    color: var(--forest);
    font-weight: 800;
    font-size: 0.86rem;
}

.meta-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(199, 93, 44, 0.08);
    color: var(--accent-deep);
    font-size: 0.84rem;
    font-weight: 700;
}

.item-action,
.action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(31, 35, 29, 0.12);
    background: rgba(255, 255, 255, 0.8);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.outfit-card {
    display: grid;
    gap: 16px;
}

.outfit-card h3 {
    margin-bottom: 0;
}

.outfit-item-list,
.saved-item-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

.outfit-item-list li + li,
.saved-item-list li + li,
.plain-list li + li {
    margin-top: 8px;
}

.product-list {
    margin-top: 4px;
}

.product-card {
    flex: 1 1 180px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(31, 35, 29, 0.1);
    background: rgba(255, 255, 255, 0.72);
}

.product-card strong,
.saved-card h3 {
    display: block;
    margin-bottom: 6px;
}

.saved-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.empty-state {
    display: grid;
    place-items: center;
    text-align: center;
    min-height: 210px;
    background: rgba(255, 255, 255, 0.54);
    border-style: dashed;
}

.plain-list {
    margin: 0;
    padding-left: 18px;
}

.site-footer {
    padding: 28px 0 46px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.8fr auto;
    gap: 22px;
    align-items: end;
    padding-top: 24px;
    border-top: 1px solid rgba(31, 35, 29, 0.08);
}

.footer-title {
    margin: 0 0 8px;
    font-weight: 800;
}

.footer-links {
    justify-content: flex-start;
}

.footer-links a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 700;
}

.footer-meta {
    white-space: nowrap;
}

[data-animate] {
    opacity: 0;
    transform: translateY(18px);
    animation: rise-in 0.7s ease forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes rise-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation: none !important;
        transition: none !important;
    }

    [data-animate] {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1080px) {
    .hero-grid,
    .flow-grid,
    .beta-grid,
    .app-hero-grid,
    .dashboard-grid,
    .closet-grid,
    .problem-grid,
    .feature-grid,
    .signal-grid,
    .app-summary,
    .saved-grid {
        grid-template-columns: 1fr;
    }

    .inventory-grid,
    .outfit-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .footer-meta {
        white-space: normal;
    }
}

@media (max-width: 760px) {
    .hero-section,
    .section,
    .app-hero {
        padding: 48px 0;
    }

    .header-inner {
        min-height: auto;
        padding: 14px 0;
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 8px 0 4px;
    }

    .site-nav.is-open {
        display: flex;
    }

    .hero-copy h1,
    .app-hero h1 {
        max-width: none;
        font-size: clamp(2.4rem, 11vw, 4rem);
    }

    .metric-row,
    .two-up,
    .three-up {
        grid-template-columns: 1fr;
    }

    .panel,
    .problem-card,
    .feature-card,
    .signal-card,
    .beta-form,
    .summary-card,
    .empty-state,
    .item-card,
    .saved-card,
    .outfit-card {
        padding: 20px;
        border-radius: 22px;
    }

    .hero-phone {
        padding: 20px;
        border-radius: 28px;
    }

    .floating-note {
        position: static;
        margin-top: 14px;
        max-width: none;
    }
}
