/* Global Styling & Variables */
:root {
    --bg-primary: #FAF9F1;
    --bg-secondary: #EFEAE6;
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --accent-color: #EFB78A;
    --accent-hover: #e0a374;
    --safe-color: #7BC192;
    --caution-color: #E2C044;
    --risk-color: #D36060;
    
    --font-serif: 'Gowun Batang', serif;
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-serif);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 700;
}

p {
    font-family: var(--font-sans);
    color: var(--text-secondary);
}

/* Typography Overrides for Serif Headers */
.top-line {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.highlight-safe {
    color: var(--safe-color);
}

.headline {
    font-size: clamp(2.5rem, 3.5vw + 1rem, 4.2rem);
    white-space: nowrap;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.headline-icon {
    color: var(--accent-color);
    font-size: 0.5em;
    vertical-align: middle;
    margin: 0 0.5rem;
    opacity: 0.8;
}

.sub-headline {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(250, 249, 241, 0.8);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.logo-container {
    background: #ffffff;
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,0.02);
}

.logo-container img {
    height: 60px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.nav-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(239, 183, 138, 0.3);
}

.nav-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(239, 183, 138, 0.4);
}

/* Primary CTA */
.primary-cta {
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 1rem 2rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(239, 183, 138, 0.35);
    margin-top: 2rem;
}

.primary-cta:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 25px rgba(239, 183, 138, 0.5);
}

/* Sections */
section {
    padding: 6rem 5%;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding-top: 8rem;
    max-width: 1400px;
    margin: 0 auto;
    gap: 4rem;
}

.hero-content {
    flex: 1.1;
    max-width: 650px;
}

.hero-content .description {
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

.hero-visual {
    flex: 0.9;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.mockup-img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: perspective(1000px) rotateY(-5deg) translateY(0px); }
    50% { transform: perspective(1000px) rotateY(-5deg) translateY(-15px); }
    100% { transform: perspective(1000px) rotateY(-5deg) translateY(0px); }
}

/* Pain Point Section */
.pain-point-section {
    background-color: var(--bg-secondary);
    border-radius: 40px;
    margin: 0 2%;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.icon-card {
    background: #ffffff;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: var(--transition);
}

.icon-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    color: var(--accent-color);
}

.icon-circle i {
    width: 32px;
    height: 32px;
}

/* Feature Modules - Clean Design Overhaul */
.feature-clean {
    padding: 8rem 5%;
    background-color: var(--bg-primary); /* Breathing room */
}

/* 3-Step Grid */
.three-step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    padding: 2rem;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-visual {
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.liquid-drop {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 10px 15px rgba(239, 183, 138, 0.4));
    animation: float 4s ease-in-out infinite;
}

.minimal-gauge {
    width: 100px;
}

.gauge-fill {
    stroke-dasharray: 125; /* roughly pi * r */
    stroke-dashoffset: 125;
    animation: fillGauge 1.5s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes fillGauge {
    to { stroke-dashoffset: 25; } /* 80% filled */
}

.safe-bg {
    background-color: rgba(123, 193, 146, 0.1);
    color: var(--safe-color);
    box-shadow: 0 0 20px rgba(123, 193, 146, 0.2);
}

.accent-bg {
    background-color: rgba(239, 183, 138, 0.1);
    color: var(--accent-color);
    box-shadow: 0 0 20px rgba(239, 183, 138, 0.2);
}

/* Feature Modules - 2 Column Mockup */
.two-column-mockup {
    display: flex;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

.mockup-column {
    flex: 1;
}

.mockup-ui {
    background: #ffffff;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.02);
}

.mockup-header {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--bg-secondary);
    padding-bottom: 1rem;
}

.stylized-face {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
    display: block;
}

.tap-zone {
    fill: rgba(211, 96, 96, 0.2);
    stroke: var(--risk-color);
    stroke-width: 2;
    cursor: pointer;
    transition: var(--transition);
}

.tap-zone:hover {
    fill: rgba(211, 96, 96, 0.4);
}

.tap-zone.active {
    animation: pulseRisk 2s infinite;
}

@keyframes pulseRisk {
    0% { transform: scale(1); fill: rgba(211, 96, 96, 0.2); }
    50% { transform: scale(1.2); fill: rgba(211, 96, 96, 0.5); }
    100% { transform: scale(1); fill: rgba(211, 96, 96, 0.2); }
}

.analysis-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.analysis-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 12px;
    gap: 1rem;
    transition: var(--transition);
}

.item-icon {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
}

.item-details h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.item-details p {
    font-size: 0.8rem;
}

.safe-badge {
    margin-left: auto;
    font-size: 0.75rem;
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--safe-color);
    background: rgba(123, 193, 146, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.risk-badge {
    margin-left: auto;
    font-size: 0.75rem;
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--risk-color);
    background: rgba(211, 96, 96, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.suspect-item {
    border: 1px solid rgba(211, 96, 96, 0.3);
    background: #ffffff;
}

.suspect-ingredient {
    color: var(--risk-color);
    font-weight: bold;
}

.active-pulse {
    animation: glowBorder 2s infinite;
}

@keyframes glowBorder {
    0% { box-shadow: 0 0 0 rgba(211, 96, 96, 0); }
    50% { box-shadow: 0 0 15px rgba(211, 96, 96, 0.3); }
    100% { box-shadow: 0 0 0 rgba(211, 96, 96, 0); }
}

/* Footer */
.footer {
    background-color: var(--text-primary);
    color: white;
    padding: 4rem 5% 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.logo-container.minimalist {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: none;
    display: inline-block;
    margin-bottom: 1rem;
}

.logo-container.minimalist .logo-text {
    color: white;
}

.slogan {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: #cccccc;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: white;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    color: #888888;
    font-family: var(--font-sans);
    font-size: 0.9rem;
}

/* Animations */
.fade-up { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

.fade-left { opacity: 0; transform: translateX(30px); transition: 0.8s ease-out; }
.fade-left.visible { opacity: 1; transform: translateX(0); }

.stagger-in { opacity: 0; transform: translateY(20px); transition: 0.6s ease-out; }
.stagger-in.visible { opacity: 1; transform: translateY(0); }

.animated-phrase {
    display: inline-block;
    opacity: 0;
}

.fade-up.visible .animated-phrase {
    animation-name: slideInPhrase;
    animation-duration: 0.8s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}

.fade-up.visible .phrase-1 { animation-delay: 0.6s; }
.fade-up.visible .phrase-2 { animation-delay: 1.2s; }
.fade-up.visible .phrase-3 { animation-delay: 1.8s; }

@keyframes slideInPhrase {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 10rem;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .two-column-mockup {
        flex-direction: column;
        gap: 3rem;
    }
    
    .mockup-column {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .headline { font-size: 3.5rem; }
    section { padding: 4rem 5%; }
    .feature-clean { padding: 4rem 5%; }
    .footer-content { flex-direction: column; text-align: center; gap: 2rem; }
}
