/* ============================================================
   영지씨 — Common Styles (shared across all pages)
   Orange Gold (#D97706) + Warm Cream (#FFFBF0) · Light mode
   ============================================================ */

:root {
    /* Brand — Orange Gold */
    --gold:        #D97706;
    --gold-light:  #FBBF24;
    --gold-deep:   #B45309;
    --gold-glow:   rgba(217, 119, 6, 0.12);
    --amber:       #F59E0B;

    /* Warm base */
    --cream:       #FFFBF0;
    --cream-deep:  #FEF3C7;
    --warm-50:     #FFFDF5;
    --warm-100:    #FEF9E7;
    --warm-200:    #FDE68A;

    /* Neutrals — warm-tinted */
    --charcoal:    #1C1208;
    --brown-900:   #2C1E0A;
    --brown-800:   #3D2E14;
    --brown-700:   #5C4520;
    --brown-600:   #7A6234;
    --brown-500:   #9B8254;
    --brown-400:   #B8A07A;
    --brown-300:   #D4C4A2;
    --brown-200:   #E8DCC8;
    --brown-100:   #F3EDE0;
    --brown-50:    #FAF7F0;

    --white:       #FFFFFF;

    /* Typography */
    --font-display: 'Noto Serif KR', Georgia, serif;
    --font-body:    'Noto Sans KR', sans-serif;

    /* Layout */
    --container: 1100px;
}

/* ====== RESET ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font-body);
    color: var(--brown-700);
    background: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ====== ANIMATIONS ====== */
[data-animate] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ====== NAV ====== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 18px 0;
    transition: background 0.4s, box-shadow 0.4s, padding 0.3s;
}
.nav.is-scrolled {
    background: rgba(255, 251, 240, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.04);
    padding: 12px 0;
}
.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gold), var(--amber));
    color: white;
}
.logo-text {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 18px;
    color: var(--charcoal);
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    gap: 32px;
}
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--brown-500);
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a.is-active { color: var(--gold); font-weight: 600; }

.nav-cta {
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    background: var(--gold);
    padding: 10px 22px;
    border-radius: 10px;
    transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover {
    background: var(--gold-deep);
    transform: translateY(-1px);
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--brown-700);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 99;
    background: rgba(255, 251, 240, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.mobile-menu.is-open {
    opacity: 1;
    pointer-events: auto;
}
.mobile-menu a {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--charcoal);
    transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu-cta {
    margin-top: 12px;
    padding: 14px 36px;
    background: var(--gold) !important;
    color: var(--white) !important;
    border-radius: 12px;
    font-family: var(--font-body) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

/* ====== SECTION COMMON ====== */
.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--gold);
    margin-bottom: 14px;
    text-transform: uppercase;
}
.section-tag--light { color: rgba(255,255,255,0.6); }
.section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 900;
    color: var(--charcoal);
    line-height: 1.3;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}
.section-desc {
    font-size: 16px;
    color: var(--brown-500);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 300;
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* ====== BUTTONS ====== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--gold);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(217, 119, 6, 0.25);
}
.btn-primary:hover {
    background: var(--gold-deep);
    box-shadow: 0 8px 30px rgba(217, 119, 6, 0.3);
    transform: translateY(-2px);
}
.btn-ghost {
    background: transparent;
    color: var(--brown-600);
    border: 1.5px solid var(--brown-200);
}
.btn-ghost:hover {
    border-color: var(--gold-light);
    color: var(--gold);
    background: rgba(217, 119, 6, 0.04);
}
.btn-lg {
    padding: 16px 32px;
    font-size: 15px;
}

/* ====== DOWNLOAD CTA (shared) ====== */
.download {
    position: relative;
    padding: 120px 0;
    background: var(--charcoal);
    overflow: hidden;
}
.download-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.download-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}
.download-shape--1 {
    width: 500px; height: 500px;
    background: var(--gold);
    top: -30%; right: 10%;
    opacity: 0.12;
}
.download-shape--2 {
    width: 400px; height: 400px;
    background: var(--amber);
    bottom: -30%; left: 20%;
    opacity: 0.08;
}
.download-grain {
    position: absolute;
    inset: 0;
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 200px;
}
.download-inner {
    position: relative;
    text-align: center;
    z-index: 1;
}
.download-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}
.download-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.5);
    line-height: 1.8;
    margin-bottom: 40px;
    font-weight: 300;
}
.download-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}
.store-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 14px 28px;
    color: var(--white);
    transition: background 0.3s, border-color 0.3s, transform 0.2s;
}
.store-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}
.store-btn-text { text-align: left; }
.store-btn-sub {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: rgba(255,255,255,0.5);
    line-height: 1;
    margin-bottom: 3px;
}
.store-btn-main {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.01em;
}
.download-note {
    font-size: 13px;
    color: rgba(255,255,255,0.3);
    font-weight: 300;
}

/* ====== FOOTER ====== */
.footer {
    padding: 40px 0;
    background: var(--charcoal);
    border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo-mark--footer {
    width: 28px; height: 28px;
    border-radius: 8px;
}
.logo-text--footer {
    font-size: 15px;
    color: #FFF4E3;
}
.footer-links {
    display: flex;
    gap: 24px;
}
.footer-links a {
    font-size: 13px;
    color: #D8C9B7;
    transition: color 0.2s;
}
.footer-links a:hover { color: #FFFFFF; }
.footer-links a:focus-visible { outline: 2px solid #FBBF24; outline-offset: 5px; }
.footer-links a strong { font-weight: 700; }
.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-copy {
    font-size: 12px;
    color: #BDAE9B;
}

/* ====== RESPONSIVE (common) ====== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .nav-hamburger { display: flex; }

    .download { padding: 80px 0; }
    .download-buttons { flex-direction: column; align-items: center; }
    .store-btn { width: 100%; max-width: 280px; justify-content: center; }

    .footer-top { flex-direction: column; gap: 16px; }
    .footer-links { gap: 16px; }
}

/* Shared signup layer; its form remains in signup.html. */
.signup-layer{margin:auto;padding:0;width:800px;max-width:calc(100vw - 32px);height:760px;max-height:calc(100dvh - 32px);border:1px solid #d8c9b7;border-radius:18px;background:#fffdfb;color:var(--charcoal);overflow:hidden;box-shadow:0 24px 80px #21180e40}
.signup-layer[open]{display:flex;flex-direction:column}
.signup-layer::backdrop{background:#21180e80;backdrop-filter:blur(3px)}
.signup-layer-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 24px;border-bottom:1px solid #eadcc7;flex-shrink:0}
.signup-layer-heading h2{font-size:22px}.signup-layer-heading button{border:0;background:none;color:#725129;font-size:28px;cursor:pointer;padding:0 8px}
.signup-layer-heading button:focus-visible{outline:2px solid var(--gold-deep);outline-offset:3px}
.signup-layer iframe{display:block;flex:1;width:100%;min-height:0;border:0;background:#fffdfb}
@media(max-width:480px){.signup-layer{max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:12px}.signup-layer-heading{padding:12px 18px}}

/* Three service categories need room in the desktop navigation. */
.nav-links{gap:20px}.nav-links a{white-space:nowrap}
@media(max-width:1100px){.nav-links,.nav-cta{display:none}.nav-hamburger{display:flex}}

/* Place the footer at the viewport edge even on short pages. */
body{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
body>main{flex:1;min-width:0}
body>.footer{flex-shrink:0}
.footer{padding:28px 0}.footer-top{gap:24px;margin-bottom:18px}
.footer-links{flex-wrap:wrap;gap:12px 24px;align-items:center}
.footer-bottom{padding-top:16px;border-top-color:rgba(255,255,255,.12)}
@media(max-width:768px){.footer-top{align-items:flex-start}.footer-links{gap:10px 20px}.footer{padding:24px 0}}
