:root {
    /* Colors */
    --c-primary: #1a2b4b; /* Deep Navy */
    --c-secondary: #b4975a; /* Gold */
    --c-accent: #E67700; /* Orange/Warning */
    --c-bg: #ffffff;
    --c-bg-sub: #f8f9fa;
    --c-text-main: #111111;
    --c-text-sub: #666666;
    --c-border: #e5e5e5;
    --c-border-hover: #cccccc;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 24px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
}

[data-theme="dark"] {
    --c-bg: #121212;
    --c-bg-sub: #1e1e1e;
    --c-text-main: #f1f1f1;
    --c-text-sub: #a0a0a0;
    --c-border: #333333;
    --c-border-hover: #555555;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.5);
    --shadow-md: 0 8px 16px rgba(0,0,0,0.6);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.8);
    
    /* Adjust specific colors for dark mode context */
    --c-primary: #aebbdb; /* Lighter navy for visibility */
    --c-secondary: #d4b77a; /* Lighter gold */
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    background-color: var(--c-bg);
    color: var(--c-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul { list-style: none; }
button { font-family: inherit; border: none; cursor: pointer; background: none; }

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.3;
    letter-spacing: -0.02em;
    font-weight: 700;
}

h1 { font-size: 3.5rem; margin-bottom: 1.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.8rem; }
p { font-size: 1.05rem; color: var(--c-text-sub); }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--c-bg); /* Changed from hardcoded rgba */
    opacity: 0.95;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--c-border);
    height: 70px;
    display: flex;
    align-items: center;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--c-primary);
    letter-spacing: -0.05em;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--c-text-main);
}

.nav-links a:hover {
    color: var(--c-secondary);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 30px;
}

.control-btn {
    background: transparent;
    border: 1px solid var(--c-border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--c-text-main);
    transition: all 0.2s;
    font-size: 0.9rem;
    font-weight: 600;
}

.control-btn:hover {
    background: var(--c-bg-sub);
    border-color: var(--c-primary);
}

.mobile-cta-btn {
    display: none;
    background: var(--c-primary);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 100px;
    background: linear-gradient(180deg, var(--c-bg-sub) 0%, var(--c-bg) 100%);
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--c-primary) 0%, #4a5d7e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Fallback for dark mode visibility if gradient is too dark */
    color: var(--c-primary); 
}

[data-theme="dark"] .hero h1 {
    background: linear-gradient(135deg, #fff 0%, #aebbdb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.scroll-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--c-text-sub);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    animation: bounce 2s infinite;
    opacity: 0.7;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.hero-badge {
    background: white;
    border: 1px solid var(--c-border);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--c-text-main);
    box-shadow: var(--shadow-sm);
}

/* Tab Navigation */
.tab-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 4rem;
}

.tab-btn {
    flex: 1;
    max-width: 300px;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    color: var(--c-text-main);
}

.tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tab-btn.active {
    border-color: var(--c-primary);
    background: var(--c-primary);
    color: white;
}

.tab-btn.active .tab-sub {
    color: rgba(255,255,255,0.7);
}

.tab-icon { font-size: 1.8rem; }
.tab-text { font-size: 1.1rem; font-weight: 700; line-height: 1.2; text-align: left; }
.tab-sub { font-size: 0.9rem; font-weight: 400; color: var(--c-text-sub); display: block; }

/* Product & Form Layout */
.tab-content {
    display: block; /* Managed by JS, usually */
}
.tab-content.hidden { display: none; }

/* Grid Layout for Product + Form */
.product-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 60px;
}

.product-visual {
    position: sticky;
    top: 100px;
}

.product-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.product-info h2 {
    margin-top: 0;
    font-size: 2rem;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--c-primary);
    margin-bottom: 2rem;
}

.product-desc {
    list-style: none;
    margin-bottom: 2rem;
}

.product-desc li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 12px;
    color: var(--c-text-sub);
}

.product-desc li::before {
    content: "•";
    color: var(--c-secondary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Notice Box */
.notice-box {
    background: #fff8f0;
    border-left: 4px solid var(--c-accent);
    padding: 20px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}
[data-theme="dark"] .notice-box {
    background: #2a2010; /* Darker orange/brown */
    color: #e0e0e0;
}

.notice-box h4 { color: var(--c-accent); font-size: 1rem; margin-bottom: 8px; }
.notice-box p { font-size: 0.9rem; color: #555; margin: 0; }
[data-theme="dark"] .notice-box p { color: #ccc; }

/* Forms */
.order-form {
    background: var(--c-bg); /* Use var */
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
}
/* ... */
.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
    background: var(--c-bg); /* Use var instead of #fff */
    color: var(--c-text-main);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(26, 43, 75, 0.1);
}

.helper-text {
    font-size: 0.85rem;
    color: var(--c-text-sub);
    margin-top: 6px;
    display: block;
}

/* Radio Tiles */
.radio-group { display: flex; gap: 12px; }
.radio-tile {
    flex: 1;
    position: relative;
    cursor: pointer;
}
.radio-tile input {
    position: absolute;
    opacity: 0;
}
.radio-tile span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--c-text-sub);
    transition: all 0.2s;
}
.radio-tile input:checked + span {
    border-color: var(--c-primary);
    background: rgba(26, 43, 75, 0.05);
    color: var(--c-primary);
}

.submit-btn {
    width: 100%;
    padding: 20px;
    background: var(--c-primary);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    margin-top: 20px;
    transition: all 0.2s;
}
.submit-btn:hover {
    background: #111;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Section Styling */
.section {
    padding: 100px 0;
}

/* Policy Grid */
.policy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.policy-box {
    background: var(--c-bg);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--c-border);
}

/* FAQ */
details {
    border-bottom: 1px solid var(--c-border);
    margin-bottom: 0;
}
details:first-child { border-top: 1px solid var(--c-border); }

summary {
    padding: 24px 0;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    background: transparent;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; color: var(--c-text-sub); }
details[open] summary::after { content: "-"; }

.faq-answer {
    padding: 0 0 24px 0;
    color: var(--c-text-sub);
    line-height: 1.7;
}

/* Footer */
footer {
    background: #111;
    color: #999;
    padding: 100px 0 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-grid h3 { color: white; }
.footer-grid p { color: #888; }

.policy-links a {
    color: #fff;
    margin-right: 20px;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Utils */
.hidden { display: none !important; }
.text-center { text-align: center; }

/* Responsive */
@media (max-width: 900px) {
    .product-display { grid-template-columns: 1fr; gap: 40px; }
    .product-visual { position: static; }
    .hero h1 { font-size: 2.8rem; }
    .tab-btn { padding: 16px; }
    .nav-links { display: none; } /* Simplified mobile nav for now */
    .mobile-cta-btn { display: block; }
}

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
    .policy-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* Kakao & Modals (Preserved functionality) */
.kakao-widget { position: fixed; bottom: 30px; right: 30px; z-index: 2000; }
.kakao-btn { width: 56px; height: 56px; border-radius: 50%; background: #FEE500; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); border: none; }
.kakao-icon { width: 28px; height: 28px; fill: #191919; }

.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 3000;
    display: none; align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-content {
    background: var(--c-bg);
    padding: 40px;
    width: 90%;
    max-width: 600px;
    border-radius: var(--radius-md);
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    color: var(--c-text-main);
}
.modal-close { position: absolute; top: 20px; right: 20px; font-size: 24px; cursor: pointer; }
