/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
    /* MD3 Colors - Dark Theme Base (Amber/Orange Oriented) */
    --md-sys-color-primary: #FFB74D;
    --md-sys-color-on-primary: #4A2800;
    --md-sys-color-primary-container: #663D00;
    --md-sys-color-on-primary-container: #FFDDB3;

    --md-sys-color-secondary: #DDC2A1;
    --md-sys-color-on-secondary: #3E2D16;
    --md-sys-color-secondary-container: #56442A;
    --md-sys-color-on-secondary-container: #FADEBC;

    --md-sys-color-background: #1C1B1F;
    --md-sys-color-on-background: #E6E1E5;

    --md-sys-color-surface: #1C1B1F;
    --md-sys-color-on-surface: #E6E1E5;

    --md-sys-color-surface-variant: #49454F;
    --md-sys-color-on-surface-variant: #CAC4D0;

    --md-sys-color-outline: #938F99;
    --md-sys-color-outline-variant: #49454F;
    --md-sys-color-error: #F2B8B5;

    /* Custom Gradients & Accents */
    --accent-gradient: linear-gradient(135deg, #FB8C00 0%, #FFB74D 100%);
    --glass-background: rgba(28, 27, 31, 0.8);

    /* Spacing & Layout */
    --spacing-xs: 4px;
    --spacing-s: 8px;
    --spacing-m: 16px;
    --spacing-l: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 64px;

    --border-radius-l: 28px;
    --border-radius-m: 16px;

    /* 3D Card Effects */
    --card-shadow-rest: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
    --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Noto Sans KR', sans-serif;
}

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

body {
    background-color: var(--md-sys-color-background);
    color: var(--md-sys-color-on-background);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--md-sys-color-on-background);
}

.display-large {
    font-size: 57px;
    line-height: 64px;
    letter-spacing: -0.25px;
    font-weight: 700;
}

.headline-large {
    font-size: 32px;
    line-height: 40px;
    font-weight: 600;
}

.headline-medium {
    font-size: 28px;
    line-height: 36px;
    font-weight: 600;
}

.headline-small {
    font-size: 24px;
    line-height: 32px;
    font-weight: 500;
}

.body-large {
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-l);
}

section {
    padding: var(--spacing-xxl) 0;
}

/* 3D Card Component */
.card-3d {
    background-color: #2b2930;
    border-radius: var(--border-radius-l);
    padding: var(--spacing-l);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow-rest);
}

.card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card-3d:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--md-sys-color-primary);
}

.card-3d:hover::before {
    opacity: 1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--spacing-l);
    height: 48px;
    border-radius: 24px;
    font-family: var(--font-heading);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
}

.btn-primary:hover {
    background: #FFCC80;
    box-shadow: 0 4px 8px rgba(255, 183, 77, 0.3);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(28, 27, 31, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 24px;
    color: var(--md-sys-color-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.hero-title {
    margin-bottom: var(--spacing-m);
    background: linear-gradient(to right, #FFB74D, #FFE0B2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Process Steps Visualization */
.process-flow {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 24px;
    border-radius: 32px;
    width: fit-content;
}

.step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.step-icon {
    font-size: 24px;
    color: var(--md-sys-color-primary);
}

.step-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step-arrow {
    color: var(--md-sys-color-outline);
    font-size: 16px;
}

.step-node:nth-child(1) { animation: step-highlight 6s infinite; }
.step-node:nth-child(3) { animation: step-highlight 6s infinite; animation-delay: 2s; }
.step-node:nth-child(5) { animation: step-highlight 6s infinite; animation-delay: 4s; }

@keyframes step-highlight {
    0%, 20% { opacity: 1; transform: scale(1.1); }
    25%, 100% { opacity: 0.4; transform: scale(1); }
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-l);
    margin-top: var(--spacing-xl);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-m);
    color: var(--md-sys-color-primary);
}

/* Detailed Features */
.feature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xxl);
    margin-bottom: 100px;
}

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

.feature-text {
    flex: 1;
    max-width: 500px;
}

.feature-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.placeholder-img {
    width: 100%;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--md-sys-color-outline);
    border: 1px dashed var(--md-sys-color-outline);
}

.app-screenshot {
    max-height: 560px;
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
    .feature-row, .feature-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-l);
    }
}

/* FAQ */
.faq-details {
    background-color: var(--md-sys-color-surface-variant);
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid var(--md-sys-color-outline-variant);
}

.faq-summary {
    padding: 24px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-summary::-webkit-details-marker { display: none; }

.faq-body {
    padding: 0 24px 24px;
    color: var(--md-sys-color-on-surface-variant);
    line-height: 1.6;
}

/* Language Switch */
.lang-switch {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-switch button {
    background: none;
    border: none;
    color: var(--md-sys-color-outline);
    padding: 4px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.lang-switch button.active {
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
}

/* Store Buttons */
.store-btn-group {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 24px;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    text-decoration: none;
    min-width: 180px;
}

.store-btn .material-symbols-rounded {
    font-size: 32px;
    color: var(--md-sys-color-primary);
}

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

.store-btn-caption {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--md-sys-color-on-surface-variant);
}

.store-btn-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--md-sys-color-primary);
}

/* Footer */
footer {
    background: #141218;
    padding: var(--spacing-xl) 0;
    text-align: center;
    color: var(--md-sys-color-outline);
    margin-top: var(--spacing-xxl);
}

.text-center { text-align: center; }
