:root {
    --bg-cream: #F4F1EA;
    --text-main: #181817;
    --text-muted: #4A4A45;
    --accent-red: #C53A24;
    --accent-blue: #2A4365;
    --border-color: #E2DDD0;
    
    --font-serif: 'Playfair Display', 'Noto Serif KR', serif;
    --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --container-max: 1100px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-cream);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

ul {
    list-style: none;
}

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

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

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

.serif-text {
    font-family: var(--font-serif);
}

.highlight {
    color: var(--accent-red);
    font-style: normal;
}

.highlight-text {
    color: var(--accent-red);
    font-weight: 700;
}

.highlight-orange {
    color: #F3722C;
}

/* Typography Hierarchy */
h1, h2, h3 {
    font-family: var(--font-sans);
    line-height: 1.3;
    color: var(--text-main);
}

h2.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

/* Nav */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.nav-btn {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: 2px solid var(--text-main);
    padding-bottom: 2px;
    transition: color 0.3s, border-color 0.3s;
}

.nav-btn:hover {
    color: var(--accent-red);
    border-color: var(--accent-red);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 5% 4rem;
    max-width: var(--container-max);
    margin: 0 auto;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

/* Video Background */
.video-background {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    z-index: -2;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(4px); /* Blur softens the video to prevent distraction */
}

.video-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--bg-cream);
    opacity: 0.88; /* Median opacity */
}

/* Floating Texts */
.background-animations {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}
.float-text {
    position: absolute;
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    color: var(--text-main);
    white-space: nowrap;
}
.float-text:nth-child(1) { top: 15%; animation: panRight 60s linear infinite; opacity: 0.12; }
.float-text:nth-child(2) { top: 40%; animation: panLeft 70s linear infinite; opacity: 0.16; }
.float-text:nth-child(3) { top: 65%; animation: panRight 55s linear infinite; opacity: 0.14; }
.float-text:nth-child(4) { top: 85%; animation: panLeft 65s linear infinite; opacity: 0.10; }

@keyframes panRight {
    0% { transform: translateX(-50vw); }
    100% { transform: translateX(150vw); }
}
@keyframes panLeft {
    0% { transform: translateX(150vw); }
    100% { transform: translateX(-50vw); }
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.main-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    word-break: keep-all;
}

.sub-copy {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    word-break: keep-all;
}

.sub-copy strong {
    color: var(--text-main);
}

.sub-copy strong.highlight-text {
    color: var(--accent-red);
}

.cta-btn {
    display: inline-block;
    background-color: var(--text-main);
    color: var(--bg-cream);
    padding: 1rem 1.5rem;
    font-weight: 600;
    border-radius: 4px;
    transition: transform 0.3s, background-color 0.3s;
    font-size: 1rem;
}

.cta-btn:hover {
    background-color: var(--accent-red);
    transform: translateY(-2px);
}

.large-btn {
    font-size: 1.15rem;
    padding: 1.25rem 2rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.retro-computer-wrapper {
    position: relative;
    max-width: 500px;
    width: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.retro-computer-wrapper:hover {
    transform: translateY(-15px) rotate(1deg);
}

.retro-computer-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: darken; 
}



.image-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    font-family: 'Courier New', Courier, monospace; /* Retro spec feel */
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.spec-item {
    border-top: 1px solid var(--border-color);
    padding-top: 0.5rem;
}

.spec-label {
    display: block;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

/* 2. Overview Section */
.overview {
    padding: 8rem 0;
    background-color: #EFECE3; /* Slightly darker cream for contrast */
}

.overview-box {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: left;
    margin-top: 4rem;
}

.overview-item {
    flex: 1 1 calc(50% - 2rem);
    background: var(--bg-cream);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.overview-item.full-width {
    flex: 1 1 100%;
}

.overview-item h3 {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.overview-item p {
    font-size: 1.15rem;
    word-break: keep-all;
}

/* Feature Layout */
.feature-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
    text-align: left;
}

.feature-text {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-text h3 {
    display: inline-block;
    font-size: 2.5rem;       /* Huge title */
    font-weight: 900;
    color: var(--accent-red);
    text-transform: none;    /* Prevent uppercase inherited */
    letter-spacing: -0.05em;
    border-bottom: none;     /* Ensure no border */
    padding-bottom: 0;
    margin-bottom: 0.8rem;   /* Tighter spacing */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-text h3:hover {
    transform: scale(1.05);
    cursor: default;
}

.feature-text p:first-of-type {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}

.feature-highlight {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1.5px solid var(--border-color);
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-cream);
    border-left: 1px solid var(--border-color);
    min-height: 350px;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: darken; /* Makes the generated cream background fade away */
}

/* 3. Target Audience */
.target-audience {
    padding: 8rem 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.card {
    border: 1px solid var(--border-color);
    padding: 3rem;
    position: relative;
    background: var(--bg-cream);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

.cards-grid .card.visible:hover {
    transform: scale(1.1) translateY(-5px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    z-index: 10;
}

.card-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15; /* Subtle watermark blend */
    mix-blend-mode: darken; /* Ensures the graphic blends natively with the cream card */
    z-index: -1;
}

.card-tier {
    position: absolute;
    top: -15px;
    left: 3rem;
    background: var(--text-main);
    color: var(--bg-cream);
    padding: 0.2rem 1rem;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 20px;
}

.card-title {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    word-break: keep-all;
}

.card-profile {
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

.card-desc {
    color: var(--text-muted);
    word-break: keep-all;
}

/* 4. Problems */
.problems {
    padding: 8rem 0;
    background-color: var(--text-main);
    color: var(--bg-cream);
}

.problems .section-title {
    color: var(--bg-cream);
}

.problem-list {
    max-width: 800px;
    margin: 0 auto;
}

.problem-list li {
    display: flex;
    gap: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scale just the main heading when hovered */
.problems .section-title {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.problems .section-title:hover {
    transform: scale(1.08);
    cursor: default;
}

/* Emoji formatting */
.problem-heading {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.emoji-icon {
    font-size: 2.8rem; /* Much larger and cuter */
    line-height: 1;
    display: inline-block;
    transition: transform 0.3s;
}

.problem-list li:hover .emoji-icon {
    transform: scale(1.15) rotate(5deg); /* playful interaction */
}

.problem-list li:last-child {
    border-bottom: none;
}

.problem-list .num {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-red);
    line-height: 1;
}

.problem-list h3 {
    color: var(--bg-cream);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    word-break: keep-all;
}

.problem-list p {
    color: #A0A0A0;
    word-break: keep-all;
}

/* 5. Testimonials */
.testimonials {
    padding: 8rem 0;
}

.review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.review-box {
    background: #ffffff;
    padding: 3.5rem;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

.review-grid .review-box.visible:hover {
    transform: scale(1.03) translateY(-5px) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
    z-index: 10;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.review-stars {
    color: #FFB800;
    letter-spacing: 2px;
    font-size: 1.1rem;
}

.review-badge {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    background: rgba(0,0,0,0.05);
    border-radius: 20px;
    color: var(--text-muted);
}

.review-box .quote {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.review-box .story {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    word-break: keep-all;
    margin-bottom: 3rem;
    flex-grow: 1;
}

.reviewer-profile {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-blue);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 1.2rem;
    font-family: var(--font-sans);
}

.review-box:nth-child(2) .reviewer-avatar {
    background-color: var(--accent-red);
}

.reviewer-info {
    display: flex;
    flex-direction: column;
}

.reviewer-info strong {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.reviewer-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 5.5 Portfolio Section */
.dark-section {
    position: relative;
    background: linear-gradient(135deg, #18191c 0%, #0d0d12 100%);
    color: var(--bg-cream);
    overflow: hidden;
}

/* Background gradient blobs to enhance glassmorphism */
.dark-section::before {
    content: '';
    position: absolute;
    top: -20%; left: -10%;
    width: 60%; height: 60%;
    background: radial-gradient(circle, rgba(58, 110, 242, 0.12) 0%, rgba(0,0,0,0) 70%);
    z-index: 0;
    pointer-events: none;
}
.dark-section::after {
    content: '';
    position: absolute;
    bottom: -10%; right: -20%;
    width: 70%; height: 70%;
    background: radial-gradient(circle, rgba(242, 85, 58, 0.1) 0%, rgba(0,0,0,0) 70%);
    z-index: 0;
    pointer-events: none;
}

.dark-section .container {
    position: relative;
    z-index: 1;
}

.dark-section .section-title {
    color: var(--bg-cream);
}

.portfolio-header {
    margin-bottom: 5rem;
}

.portfolio-title-gradient {
    background: linear-gradient(to right, #4facfe, #00f2fe, #f093fb, #f5576c);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 5s ease infinite;
    display: inline-block;
    padding-bottom: 0.2rem;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.portfolio-header .section-subtitle {
    margin-top: 1.5rem;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    word-break: keep-all;
    font-weight: 500;
}

/* Profile Section Styling */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 6rem;
    align-items: stretch;
}

.profile-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08); /* slight inner reflection */
    border-top-color: rgba(255, 255, 255, 0.15); /* top-left directional lighting */
    border-left-color: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 45px 0 rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.profile-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.profile-card h3 {
    font-size: 1.4rem;
    color: var(--bg-cream);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.profile-list {
    list-style: none;
    padding: 0;
}

.profile-list li {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1rem;
    word-break: keep-all;
}

.profile-list li strong {
    color: rgba(255, 255, 255, 0.95);
}

.profile-list li:last-child {
    margin-bottom: 0;
}

.portfolio {
    padding: 8rem 0;
}

.video-grid {
    display: grid;
    gap: 3rem;
    margin-bottom: 4rem;
}

.horizontal-videos {
    grid-template-columns: 1fr 1fr;
}

.vertical-videos {
    grid-template-columns: 1fr 1fr;
    padding: 0 15%; /* Restricts excessively wide shorts on desktop */
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    background-color: #000;
}

.video-wrapper.vertical-video {
    padding-bottom: 177.77%; /* 9:16 Aspect Ratio */
    border-radius: 20px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

/* 6. CTA Section Refine */
.cta-section {
    padding: 10rem 0;
    background-color: var(--bg-cream);
    position: relative;
    overflow: hidden;
}

.plan-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 4rem auto 5rem;
}

.plan {
    background: #ffffff;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: left;
    position: relative;
    display: flex;
    flex-direction: column;
}

.plan:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

/* Premium B-Type Highlight */
.plan-b {
    background: var(--text-main);
    color: white;
    box-shadow: 0 15px 40px rgba(23, 23, 23, 0.2);
    border-color: rgba(255,255,255,0.1);
}

.plan-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 800;
    border-radius: 30px;
    background: rgba(0,0,0,0.05);
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.plan-badge.premium {
    background: linear-gradient(135deg, #FFB800, #FF6B00);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.plan h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}
.plan-b h3 { color: white; }

.plan-who {
    font-size: 1.1rem;
    line-height: 1.6;
    background: rgba(0,0,0,0.02);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    word-break: keep-all;
}
.plan-b .plan-who {
    background: rgba(255,255,255,0.05);
    color: white;
}

.plan-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    word-break: keep-all;
    flex-grow: 1;
}
.plan-b .plan-desc { color: rgba(255, 255, 255, 0.7); }

.footer {
    text-align: center;
    padding: 3rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-sans);
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.slide-up-delay {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.3s;
}

.fade-in-stagger {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-stagger.visible {
    opacity: 1;
    transform: translateY(0);
}

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

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }
    .hero-content {
        margin: 0 auto;
    }
    .main-title {
        font-size: 2.8rem;
    }
    .overview-box, .cards-grid, .plan-cards, .review-grid {
        display: flex;
        flex-direction: column;
    }
    .feature-card {
        flex-direction: column;
    }
    .feature-image {
        border-left: none;
        border-top: 1px solid var(--border-color);
        min-height: 250px;
    }
    .profile-grid {
        grid-template-columns: 1fr; /* Stack profile cards */
        gap: 1.5rem;
    }
    .horizontal-videos {
        grid-template-columns: 1fr; /* Stack standard videos on mobile */
    }
    .vertical-videos {
        grid-template-columns: 1fr 1fr; /* Keep 2 side-by-side shorts on mobile */
        padding: 0;
        gap: 1rem;
    }
    .problem-list li {
        flex-direction: column;
        gap: 1rem;
    }
}
