/* Design Tokens */
:root {
    /* Colors */
    --color-primary: #2a9d8f;      /* Mint Green */
    --color-primary-dark: #224b51; /* Deep Slate Teal */
    --color-primary-light: #e8f3f1;/* Very Light Mint */
    --color-accent: #e76f51;       /* Coral Orange (for alerts/buttons) */
    
    --color-text-main: #2b3a3c;
    --color-text-sub: #5c6f72;
    --color-text-light: #94a8ab;
    
    --color-bg-white: #ffffff;
    --color-bg-light: #f4f8f7;     /* Clean light minty gray */
    --color-bg-dark: #1b2f31;      /* Deep dark teal for CTA section */
    
    --border-color: #dce7e5;
    
    /* Spacing */
    --container-width: 1140px;
    --header-height: 80px;
    
    /* Fonts */
    --font-main: 'Noto Sans KR', sans-serif;
    --font-eng: 'Poppins', sans-serif;
    
    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    font-size: 1rem;
    line-height: 1.6;
    background-color: var(--color-bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-primary-dark);
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-error {
    color: var(--color-accent);
}

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--color-bg-light);
}

.bg-light-mint {
    background-color: var(--color-primary-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    font-family: var(--font-eng);
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    word-break: keep-all;
}

.section-desc {
    font-size: 1.15rem;
    color: var(--color-text-sub);
    max-width: 700px;
    margin: 0 auto;
    word-break: keep-all;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(42, 157, 143, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 75, 81, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    height: var(--header-height);
    box-shadow: 0 2px 20px rgba(42, 157, 143, 0.04);
    display: flex;
    align-items: center;
    transition: var(--transition-base);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(42, 157, 143, 0.08);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--color-primary);
    line-height: 1;
}

.logo-text {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    letter-spacing: -0.5px;
}

.gnb ul {
    display: flex;
    align-items: center;
    gap: 36px;
}

.gnb a {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-text-main);
    transition: var(--transition-base);
    position: relative;
}

.gnb a:not(.nav-download-btn)::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-base);
}

.gnb a:not(.nav-download-btn):hover {
    color: var(--color-primary);
}

.gnb a:not(.nav-download-btn):hover::after {
    width: 100%;
}

.nav-download-btn {
    background-color: var(--color-primary-dark);
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(34, 75, 81, 0.15);
}

.nav-download-btn:hover {
    background-color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(42, 157, 143, 0.2);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--color-primary-dark);
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    background: radial-gradient(circle at 80% 20%, var(--color-primary-light) 0%, rgba(255,255,255,0) 50%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-content .eyebrow {
    display: inline-block;
    font-family: var(--font-eng);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 2px;
    color: var(--color-primary);
    background: var(--color-primary-light);
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.25;
    margin-bottom: 24px;
    letter-spacing: -1px;
    word-break: keep-all;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--color-text-sub);
    margin-bottom: 40px;
    word-break: keep-all;
}

.hero-btns {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-badges {
    display: flex;
    gap: 16px;
}

/* Store Badge Styles */
.store-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--color-primary-dark);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 10px;
    transition: var(--transition-base);
    box-shadow: 0 4px 12px rgba(34, 75, 81, 0.15);
}

.store-badge i {
    font-size: 1.8rem;
}

.store-badge div {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.store-badge div span {
    font-size: 0.7rem;
    opacity: 0.8;
    line-height: 1;
}

.store-badge div strong {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
}

.store-badge:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(42, 157, 143, 0.25);
}

/* Phone Container */
.phone-container {
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-container::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(42, 157, 143, 0.1) 0%, rgba(255,255,255,0) 70%);
    top: -10%;
    left: -10%;
    z-index: -1;
}

/* Phone Frame */
.phone-frame {
    position: relative;
    width: 290px;
    height: 590px;
    border: 12px solid #282c34;
    border-radius: 40px;
    box-shadow: 0 24px 48px rgba(34, 75, 81, 0.2), inset 0 0 2px 2px rgba(255,255,255,0.1);
    overflow: hidden;
    background-color: #ffffff;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 20px;
    background-color: #282c34;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Pain Points Section */
.pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.pain-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 16px;
    transition: var(--transition-base);
    box-shadow: 0 4px 20px rgba(42, 157, 143, 0.02);
}

.pain-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(34, 75, 81, 0.08);
    border-color: var(--color-primary-light);
}

.pain-icon {
    font-size: 2.2rem;
    margin-bottom: 24px;
}

.pain-card h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: var(--color-primary-dark);
}

.pain-card p {
    color: var(--color-text-sub);
    font-size: 1rem;
    line-height: 1.6;
    word-break: keep-all;
}

/* Feature Walkthrough Sections */
.feature-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1.1;
}

.feature-num {
    font-family: var(--font-eng);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary-light);
    line-height: 1;
    margin-bottom: 12px;
}

.feature-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    word-break: keep-all;
}

.feature-text p {
    font-size: 1.1rem;
    color: var(--color-text-sub);
    margin-bottom: 28px;
    line-height: 1.7;
    word-break: keep-all;
}

.feature-bullets {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-bullets li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-text-main);
}

.feature-bullets li i {
    color: var(--color-primary);
    font-size: 1.2rem;
    font-weight: bold;
}

.feature-visual {
    flex: 0.9;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    position: relative;
    width: 270px;
    height: 550px;
}

.phone-mockup .phone-frame {
    width: 100%;
    height: 100%;
    border: 10px solid #282c34;
}

/* Benefit Cards */
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(42, 157, 143, 0.1);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
}

.benefit-card:hover {
    background: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(42, 157, 143, 0.1);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    background-color: var(--color-primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 24px;
    box-shadow: 0 4px 12px rgba(42, 157, 143, 0.2);
}

.benefit-card h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.benefit-card p {
    color: var(--color-text-sub);
    font-size: 0.95rem;
    line-height: 1.6;
    word-break: keep-all;
}

/* Download/CTA Section */
.dark-section {
    background-color: var(--color-bg-dark);
    color: #ffffff;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.dark-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 80%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(42, 157, 143, 0.15) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}

.download-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.download-content h2.download-title {
    color: #ffffff;
    font-size: 2.8rem;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.download-content p.download-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 40px;
}

.download-store-buttons {
    display: flex;
    gap: 16px;
}

/* Larger Store Badge */
.store-badge-large {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 12px;
    transition: var(--transition-base);
}

.store-badge-large i {
    font-size: 2.2rem;
}

.store-badge-large div {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.store-badge-large div span {
    font-size: 0.75rem;
    opacity: 0.8;
}

.store-badge-large div strong {
    font-size: 1.1rem;
    font-weight: 600;
}

.store-badge-large:hover {
    background-color: #ffffff;
    color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.download-images {
    display: flex;
    justify-content: center;
    position: relative;
}

.double-phone {
    display: flex;
    gap: 20px;
    position: relative;
    width: 320px;
    height: 480px;
}

.double-phone .phone-mockup {
    position: absolute;
    width: 220px;
    height: 440px;
}

.double-phone .phone-1 {
    z-index: 2;
    top: 0;
    left: 0;
}

.double-phone .phone-2 {
    z-index: 1;
    top: 40px;
    left: 100px;
    opacity: 0.7;
    transform: scale(0.95);
    transition: var(--transition-base);
}

.download-images:hover .phone-2 {
    opacity: 0.9;
    transform: scale(1) translateX(20px);
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(34, 75, 81, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 48px rgba(34, 75, 81, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-icon {
    font-size: 3.5rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.modal-content p {
    color: var(--color-text-sub);
    margin-bottom: 24px;
    line-height: 1.6;
}

.modal-content button {
    width: 100%;
}

/* Footer */
footer {
    background-color: #0b1517;
    color: #8fa0a3;
    padding: 80px 0 40px;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.footer-top .footer-logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-top .footer-logo i {
    color: var(--color-primary);
}

.footer-menu a {
    margin-left: 24px;
    color: #c4d2d4;
    transition: color 0.3s;
}

.footer-menu a:hover {
    color: #ffffff;
}

.footer-info p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.copyright {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #5c6f72;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; opacity: 0; animation-fill-mode: forwards; }
.delay-2 { animation-delay: 0.4s; opacity: 0; animation-fill-mode: forwards; }
.delay-3 { animation-delay: 0.6s; opacity: 0; animation-fill-mode: forwards; }
.delay-4 { animation-delay: 0.8s; opacity: 0; animation-fill-mode: forwards; }

/* Responsive Layouts */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .download-content h2.download-title {
        font-size: 2.3rem;
    }
}

@media (max-width: 900px) {
    .section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2.1rem;
    }
    
    /* GNB Mobile Menu Drawer */
    .gnb {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        padding: 24px 0;
        box-shadow: 0 10px 20px rgba(34, 75, 81, 0.1);
        border-top: 1px solid var(--border-color);
    }
    
    .gnb.active {
        display: block;
        animation: fadeIn 0.3s ease forwards;
    }
    
    .gnb ul {
        flex-direction: column;
        gap: 20px;
    }
    
    .gnb a {
        display: block;
        padding: 10px 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-download-btn {
        width: 160px;
        margin: 0 auto;
    }
    
    .menu-toggle {
        display: block;
    }
    
    /* Hero layout */
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-btns, .hero-badges {
        justify-content: center;
    }
    
    .hero-btns {
        margin-bottom: 30px;
    }
    
    /* Grid adjustments */
    .pain-grid, .benefit-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pain-card, .benefit-card {
        padding: 30px 20px;
    }
    
    /* Feature rows */
    .feature-row, .feature-row.reverse {
        flex-direction: column-reverse;
        gap: 40px;
        margin-bottom: 80px;
        text-align: center;
    }
    
    .feature-bullets {
        align-items: center;
        max-width: 450px;
        margin: 0 auto;
    }
    
    /* CTA / Download */
    .download-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .download-store-buttons {
        justify-content: center;
    }
    
    .double-phone {
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 2.3rem;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .store-badge {
        width: 100%;
        max-width: 220px;
        justify-content: center;
    }
    
    .download-store-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .store-badge-large {
        width: 100%;
        max-width: 260px;
        justify-content: center;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-menu {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .footer-menu a {
        margin-left: 0;
    }
}
