/* 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 (Purple Oriented) */
    --md-sys-color-primary: #D0BCFF;
    --md-sys-color-on-primary: #381E72;
    --md-sys-color-primary-container: #4F378B;
    --md-sys-color-on-primary-container: #EADDFF;

    --md-sys-color-secondary: #CCC2DC;
    --md-sys-color-on-secondary: #332D41;
    --md-sys-color-secondary-container: #4A4458;
    --md-sys-color-on-secondary-container: #E8DEF8;

    --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;

    /* Custom Gradients & Accents */
    --accent-gradient: linear-gradient(135deg, #6750A4 0%, #D0BCFF 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;
    /* Material 3 Large */
    --border-radius-m: 16px;
    /* Material 3 Medium */

    /* 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;
}

.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;
    /* Slightly lighter than background */
    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;
}

.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: #E8DEF8;
    box-shadow: 0 4px 8px rgba(208, 188, 255, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--md-sys-color-outline);
    color: var(--md-sys-color-primary);
}

.btn-outline:hover {
    background: rgba(208, 188, 255, 0.1);
    border-color: var(--md-sys-color-primary);
}

/* 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: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero-title {
    margin-bottom: var(--spacing-m);
    background: linear-gradient(to right, #D0BCFF, #E8DEF8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    margin-bottom: var(--spacing-xl);
    color: var(--md-sys-color-on-surface-variant);
    font-size: 20px;
}

.hero-visuals {
    margin-top: var(--spacing-xl);
    display: flex;
    justify-content: center;
    gap: var(--spacing-m);
    perspective: 1000px;
}

.screenshot-card {
    width: 200px;
    border-radius: var(--border-radius-m);
    box-shadow: var(--card-shadow-rest);
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.screenshot-card:nth-child(2) {
    transform: rotateY(10deg) rotateX(5deg)translateY(20px);
}

.hero:hover .screenshot-card {
    transform: rotateY(0) rotateX(0) translateY(0);
}

/* Features Section (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: 40px;
    margin-bottom: var(--spacing-m);
    color: var(--md-sys-color-primary);
}

/* Morphing Wave & Logic Visualization */
.hero-visual-container {
    position: relative;
    width: 320px;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.morph-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Voice Wave Animation */
.voice-wave {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--md-sys-color-primary);
    border-radius: 50%;
    opacity: 0.6;
    animation: pulse-wave 2s infinite ease-in-out;
}

.voice-wave::before,
.voice-wave::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid var(--md-sys-color-primary);
    animation: ripple 2s infinite ease-out;
}

.voice-wave::after {
    animation-delay: 1s;
}

@keyframes pulse-wave {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.4;
    }

    100% {
        transform: scale(0.8);
        opacity: 0.8;
    }
}

@keyframes ripple {
    0% {
        width: 60px;
        height: 60px;
        opacity: 0.8;
    }

    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

/* Card Morph Transition */
.morph-card {
    position: absolute;
    width: 160px;
    height: 220px;
    background: var(--md-sys-color-primary-container);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    padding: 16px;
    opacity: 0;
    transform: scale(0.5) translateY(50px);
    box-shadow: var(--card-shadow-hover);
    animation: morph-to-card 6s infinite;
}

.morph-card-line {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin-bottom: 8px;
}

.morph-card-line.short {
    width: 60%;
}

.morph-card-line.long {
    width: 90%;
}

@keyframes morph-to-card {

    0%,
    30% {
        opacity: 0;
        transform: scale(0.5) translateY(50px);
    }

    /* Voice Stage */
    35%,
    45% {
        opacity: 1;
        transform: scale(0.8) translateY(20px) rotate(-5deg);
        filter: blur(2px);
    }

    /* Forming */
    50%,
    90% {
        opacity: 1;
        transform: scale(1) translateY(0) rotate(0deg);
        filter: blur(0);
    }

    /* Final Card */
    95%,
    100% {
        opacity: 0;
        transform: scale(1) translateY(-20px);
    }

    /* Reset */
}

/* 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;
    opacity: 0.9;
}

.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;
}

/* Animation Sequencing for Steps */
.step-node:nth-child(1) {
    animation: step-highlight 6s infinite;
}

/* Speak */
.step-node:nth-child(3) {
    animation: step-highlight 6s infinite;
    animation-delay: 2s;
}

/* Silence */
.step-node:nth-child(5) {
    animation: step-highlight 6s infinite;
    animation-delay: 3s;
}

/* Save */

@keyframes step-highlight {

    0%,
    20% {
        opacity: 1;
        transform: scale(1.1);
    }

    25%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }
}

/* Privacy Section */
.privacy-badge {
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
    padding: var(--spacing-xs) var(--spacing-s);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: var(--spacing-s);
}

/* Footer */
footer {
    background: #141218;
    padding: var(--spacing-xl) 0;
    text-align: center;
    color: var(--md-sys-color-outline);
    margin-top: var(--spacing-xxl);
}

/* Responsive */
@media (max-width: 768px) {
    .display-large {
        font-size: 40px;
        line-height: 48px;
    }

    .hero-visuals {
        flex-direction: column;
        align-items: center;
    }


    .screenshot-card {
        width: 80%;
        transform: none !important;
        margin-bottom: var(--spacing-m);
    }
}

/* Accordion Styles */
.accordion {
    margin-top: var(--spacing-l);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-m);
}

.accordion-item {
    background: var(--md-sys-color-surface-variant);
    border-radius: var(--border-radius-m);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.accordion-header {
    width: 100%;
    padding: var(--spacing-m) var(--spacing-l);
    background: transparent;
    border: none;
    color: var(--md-sys-color-on-surface);
    text-align: left;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.accordion-header::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.accordion-header.active::after {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(0, 0, 0, 0.2);
}

.accordion-body {
    padding: var(--spacing-l);
    color: var(--md-sys-color-on-surface-variant);
    white-space: pre-wrap;
    /* Preserves markdown-like formatting if needed */
}

/* Detailed Features Layout */
.feature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xxl);
    margin-bottom: 80px;
    /* Increased spacing between rows */
}

.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;
}

.feature-img {
    max-width: 280px;
    /* Phone width */
    width: 100%;
    /* Responsive down to small screens */
    height: auto;
    border-radius: 24px;
    /* Phone corner radius */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* Deep shadow for depth */
    border: 4px solid #333;
    /* Bezel approximation */
    transition: transform 0.3s ease;
}

.feature-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {

    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
        gap: var(--spacing-l);
        text-align: center;
        margin-bottom: 60px;
    }

    .feature-text {
        max-width: 100%;
    }

    .feature-visual {
        width: 100%;
    }

    .feature-img {
        max-width: 240px;
        /* Slightly smaller on mobile */
    }
}

/* Store Buttons */
.store-btn-group {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: 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;
    transition: all 0.3s ease;
    min-width: 180px;
}

.store-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--md-sys-color-primary);
    transform: translateY(-2px);
}

.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);
    /* Bright color requested */
}

.store-coming-soon {
    font-size: 14px;
    font-weight: 500;
    color: var(--md-sys-color-primary);
    padding: 12px 24px;
    background: rgba(208, 188, 255, 0.1);
    border-radius: 30px;
    border: 1px dashed var(--md-sys-color-primary);
    display: inline-block;
}