/* CSS Variables */
:root {
    --color-bg: #050505;
    --color-bg-alt: #0a0a0a;
    --color-primary: #C5A059;
    --color-primary-light: #e0b463;
    --color-text: #F5F5F0;
    --color-text-muted: #888888;
    --color-border: #333333;

    --font-heading: 'Noto Serif KR', serif;
    --font-body: 'Pretendard', sans-serif;

    --spacing-container: 120px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Hide default cursor for custom cursor */
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    opacity: 1;
    word-break: keep-all;
    /* Fix awkward Korean line breaks */
}

/* ... (omitted) ... */

/* Responsive */
@media (max-width: 768px) {
    :root {
        --spacing-container: 60px;
        /* Reduced spacing */
    }

    .main-title {
        font-size: 1.8rem;
        /* Drastically reduced for mobile */
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

    .philosophy-content .quote {
        font-size: 1.4rem;
    }

    .sub-copy {
        font-size: 0.95rem;
    }

    /* Fix Grid Layouts - Stack vertically */
    .text-left-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Fix Flex Layout - Stack vertically */
    .product-showcase {
        flex-direction: column;
        gap: 40px;
    }

    /* Fix Nav spacing and alignment */
    nav {
        padding: 15px 20px;
        background: rgba(5, 5, 5, 0.95);
        align-items: center;
        /* Keep centered vertically */
    }

    .logo {
        font-size: 0.9rem;
        max-width: 65%;
        /* Prevent overlapping with contact button */
        line-height: 1.3;
        margin-right: 10px;
    }

    .nav-cta {
        font-size: 0.8rem;
        white-space: nowrap;
        /* Prevent LINE BREAK on contact button */
    }

    /* Adjust Report Mockup size */
    .report-mockup {
        width: 70%;
        /* Smaller width to show context */
        aspect-ratio: 3/4.5;
        /* Slightly taller to fit text? Or just fix text size */
        margin: 0 auto;
    }

    /* FIX 2: Reduce font size inside the book */
    .report-title {
        font-size: 1.2rem;
        letter-spacing: 2px;
        margin-top: 10px;
    }

    /* FIX 1: Overlap issue */
    #hero {
        padding-top: 140px;
        /* More top padding */
        padding-bottom: 80px;
        height: auto;
        min-height: auto;
        /* Allow content to define height */
        align-items: center;
    }

    .logo-container {
        margin-top: 0;
    }

    /* Hide scroll indicator on mobile to prevent overlap with button */
    .scroll-indicator {
        display: none;
    }

    /* Keyword Items Compact */
    .keyword-item .number {
        font-size: 2rem;
    }

    .keyword-item .icon {
        font-size: 1.5rem;
    }

    /* Disable custom cursor on mobile */
    .cursor,
    .cursor-follower {
        display: none;
    }
}

a {
    text-decoration: none;
    color: inherit;
    cursor: none;
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 600;
}

.gold-text {
    color: var(--color-primary);
    background: linear-gradient(120deg, var(--color-primary) 0%, #F0D78C 50%, var(--color-primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Custom Cursor */
.cursor,
.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid var(--color-primary);
    transition: transform 0.1s;
    mix-blend-mode: screen;
}

/* Container & Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.nav-hidden {
    transform: translateY(-100%);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.nav-cta {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-bottom: 5px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.nav-cta:hover {
    border-color: var(--color-primary);
}

/* Section: Hero */
#hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-top: 60px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1a1a1a 0%, #050505 80%);
    z-index: -1;
}

.logo-container {
    margin-bottom: 40px;
    position: relative;
}

.main-logo-img {
    width: 120px;
    height: auto;
    filter: invert(1) sepia(1) saturate(5) hue-rotate(5deg) brightness(1.2) contrast(1.2);
    mix-blend-mode: screen;
}

.main-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 30px;
}

.sub-copy {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin-bottom: 50px;
    font-weight: 300;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: var(--color-primary);
    color: var(--color-bg);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-text-muted), transparent);
    margin-top: 10px;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* Section: Authority */
#authority {
    padding: var(--spacing-container) 0;
    position: relative;
}

.text-left-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.section-title {
    font-size: 2.8rem;
    line-height: 1.3;
    margin-bottom: 40px;
}

.content-wrapper {
    padding-top: 20px;
}

.text-block p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cccccc;
    margin-bottom: 50px;
}

.keywords-block {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.keyword-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #222;
}

.keyword-item .number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-primary);
}

.keyword-item .icon {
    font-size: 2rem;
}

.keyword-item .label {
    font-size: 1rem;
    font-weight: 500;
}

/* Section: Product */
#product {
    padding: var(--spacing-container) 0;
    background: var(--color-bg-alt);
}

.product-showcase {
    display: flex;
    align-items: center;
    gap: 80px;
}

.product-image-container {
    flex: 1;
    perspective: 1000px;
}

.report-mockup {
    width: 100%;
    aspect-ratio: 3/4;
    background: #111;
    border: 1px solid #333;
    position: relative;
    transform: rotateY(-15deg) rotateX(5deg);
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease;
}

.report-cover {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--color-primary);
}

.report-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-primary);
    margin-top: 20px;
    letter-spacing: 5px;
}

/* Feature List Interactivity */
.feature-list {
    margin-top: 50px;
}

.feature-list li {
    margin-bottom: 40px;
    padding-left: 20px;
    border-left: 1px solid var(--color-border);
    transition: all 0.3s;
    cursor: pointer;
    /* Default visibility: slightly dimmed but visible */
    opacity: 0.6;
}

/* Animation Reveal Class (Separate from Selected) */
.feature-list li.revealed {
    opacity: 0.6;
    /* Ensure revealed items are visible */
    transform: translateY(0);
}

.feature-list li:hover {
    opacity: 0.8;
    border-left-color: rgba(197, 160, 89, 0.5);
}

/* Selected State (When clicked) */
.feature-list li.selected {
    opacity: 1 !important;
    /* Force full visibility */
    border-left-color: var(--color-primary);
    background: rgba(197, 160, 89, 0.1);
}

.feature-list li.selected h3 {
    color: var(--color-primary);
}

.feature-list h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #fff;
    transition: color 0.3s;
}

.feature-list p {
    color: #ccc;
    /* Bright enough to be visible */
}

/* Mockup Elements */
.logo-stamp {
    width: 60px;
    height: 60px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    margin-bottom: 20px;
    /* Default Icon */
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C5A059' stroke-width='1.5'%3E%3Cpath d='M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5'/%3E%3C/svg%3E") no-repeat center/60%;
    transition: background 0.3s;
}

.logo-stamp.algorithm {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C5A059' stroke-width='1.5'%3E%3Cpath d='M18 20V10M12 20V4M6 20v-6'/%3E%3C/svg%3E");
}

.logo-stamp.depth {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C5A059' stroke-width='1.5'%3E%3Cpath d='M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5'/%3E%3C/svg%3E");
}

.logo-stamp.heritage {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C5A059' stroke-width='1.5'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
}


/* Section: Philosophy (Dark Theme Revert) */
#philosophy {
    padding: 180px 0;
    position: relative;
    overflow: hidden;
}

.gold-theme-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    /* Revert to transparent/dark */
    z-index: -1;
}

.philosophy-content {
    color: var(--color-text);
    /* Revert to light text */
}

/* Match Section Title Size */
.philosophy-content .quote {
    font-family: var(--font-heading);
    font-size: 2rem;
    /* Balanced size */
    line-height: 1.4;
    margin-bottom: 30px;
    color: var(--color-primary);
    /* Gold Highlight */
    font-weight: 700;
}

.philosophy-content .philosophy-body {
    font-size: 1.1rem;
    color: #AAA;
    /* Lighten for visibility on dark background */
    font-weight: 500;
    line-height: 1.7;
    text-shadow: none;
}

.highlight-white {
    color: #fff;
    font-style: italic;
    margin: 0 4px;
    /* Add breathing room around the highlighted word */
    font-family: var(--font-heading);
}

/* Section: Contact */
#contact {
    padding: var(--spacing-container) 0 60px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-desc {
    margin-top: 20px;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #888;
}

.form-group input[type="text"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #444;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-bottom-color: var(--color-primary);
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 1rem;
}

.custom-checkbox input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 1px solid #666;
    display: inline-block;
    position: relative;
    transition: all 0.3s;
}

.custom-checkbox input:checked+.checkmark {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.submit-btn {
    background: transparent;
    border: none;
    padding: 20px 0;
    width: 100%;
    margin-top: 30px;
    color: var(--color-primary);
    font-size: 1.1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.submit-btn:hover {
    padding-left: 20px;
    background: rgba(197, 160, 89, 0.05);
}

/* Footer */
footer {
    border-top: 1px solid #222;
    padding-top: 40px;
    margin-top: 100px;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
}

/* Animations */
.fade-in-up,
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* This controls the scroll reveal */
.fade-in-up.revealed,
.reveal-text.revealed {
    opacity: 1;
    /* Keep things visible! */
    transform: translateY(0);
}

/* Feature items need special care because they overlap logically with active */
.feature-item.revealed {
    opacity: 0.6;
    /* Default visible state */
}

.feature-item.selected {
    opacity: 1;
    /* Highlighted state */
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* Responsive */
@media (max-width: 1024px) {
    :root {
        --spacing-container: 60px;
        /* Reduced spacing */
    }

    .main-title {
        font-size: 1.8rem;
        /* Drastically reduced for mobile */
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

    .philosophy-content .quote {
        font-size: 1.4rem;
    }

    .sub-copy {
        font-size: 0.95rem;
    }

    /* Fix Grid Layouts - Stack vertically */
    .text-left-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Fix Flex Layout - Stack vertically */
    .product-showcase {
        flex-direction: column;
        gap: 40px;
    }

    /* Fix Nav spacing and alignment */
    nav {
        padding: 15px 20px;
        background: rgba(5, 5, 5, 0.95);
        align-items: center;
        /* Keep centered vertically */
    }

    .logo {
        font-size: 0.9rem;
        max-width: 65%;
        /* Prevent overlapping with contact button */
        line-height: 1.3;
        margin-right: 10px;
    }

    .nav-cta {
        font-size: 0.8rem;
        white-space: nowrap;
        /* Prevent LINE BREAK on contact button */
    }

    /* Hide scroll indicator on mobile */
    .scroll-indicator {
        display: none;
    }

    /* Reduce Philosophy padding on mobile */
    #philosophy {
        padding: 60px 0;
    }

    /* Hide Product Image on Mobile */
    .product-image-container {
        display: none;
    }

    #hero {
        padding-top: 120px;
        align-items: center;
        /* Center content */
        padding-bottom: 30px;
        /* Drastically reduce bottom space */
        height: auto;
        min-height: auto;
        /* Force auto height */
    }

    /* Force reduce Authority top padding */
    #authority {
        padding-top: 30px;
    }

    .logo-container {
        margin-top: 20px;
        /* Spacing from top */
    }

    /* Keyword Items Compact */
    .keyword-item .number {
        font-size: 2rem;
    }

    .keyword-item .icon {
        font-size: 1.5rem;
    }

    /* Disable custom cursor on mobile */
    .cursor,
    .cursor-follower {
        display: none;
    }
}