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

:root {
    --bg-dark: #000000;
    --bg-secondary: #0a0a0a;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --accent-color: #e10600;
    --accent-glow: rgba(225, 6, 0, 0.3);
    --spacing-unit: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}


.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

/* 가독성을 위한 오버레이 */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: linear-gradient(180deg, #000 0%, #999999 100%);
    background: rgba(0, 0, 0, 0.7);
}

.hero-content h1 {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, #a1a1a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 26px);
    color: var(--text-secondary);
    max-width: 800px;
    padding: 0 24px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    animation: float 2s ease-in-out infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-left: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(-45deg);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Problems Section - 3 Column Layout */
.problems-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px;
    background-color: var(--bg-dark);
}

.problems-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    width: 80%;
}

.problem-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    transition: transform 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-8px);
}

.problem-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(225, 6, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Placeholder pattern for background images */
.problem-card:nth-child(1) .problem-card-bg {
    background-image:
        linear-gradient(135deg, rgba(225, 6, 0, 0.4) 0%, rgba(0, 0, 0, 0.9) 100%),
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,.03) 10px, rgba(255,255,255,.03) 20px);
}

.problem-card:nth-child(2) .problem-card-bg {
    background-image:
        linear-gradient(135deg, rgba(225, 6, 0, 0.4) 0%, rgba(0, 0, 0, 0.9) 100%),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255,255,255,.03) 10px, rgba(255,255,255,.03) 20px);
}

.problem-card:nth-child(3) .problem-card-bg {
    background-image:
        linear-gradient(135deg, rgba(225, 6, 0, 0.4) 0%, rgba(0, 0, 0, 0.9) 100%),
        repeating-linear-gradient(90deg, transparent, transparent 10px, rgba(255,255,255,.03) 10px, rgba(255,255,255,.03) 20px);
}

.problem-card-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    padding-top: 80px;
    width: 100%;
    margin-top: auto;
}

.problem-card h3 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.problem-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.problem-card .problem-label {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 3;
    margin-bottom: 0;
}

/* Features Section - 2x2 Grid Layout */
.features-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px;
    background-color: var(--bg-dark);
}

.features-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.feature-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Diagonal stripe pattern for feature background images */
.feature-card:nth-child(1) .feature-card-bg {
    background-image:
        linear-gradient(135deg, rgba(10, 132, 255, 0.4) 0%, rgba(0, 0, 0, 0.9) 100%),
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,.03) 10px, rgba(255,255,255,.03) 20px);
}

.feature-card:nth-child(2) .feature-card-bg {
    background-image:
        linear-gradient(135deg, rgba(10, 132, 255, 0.4) 0%, rgba(0, 0, 0, 0.9) 100%),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255,255,255,.03) 10px, rgba(255,255,255,.03) 20px);
}

.feature-card:nth-child(3) .feature-card-bg {
    background-image:
        linear-gradient(135deg, rgba(10, 132, 255, 0.4) 0%, rgba(0, 0, 0, 0.9) 100%),
        repeating-linear-gradient(90deg, transparent, transparent 10px, rgba(255,255,255,.03) 10px, rgba(255,255,255,.03) 20px);
}

.feature-card-content {
    position: relative;
    z-index: 2;
    padding: 32px 40px;
    width: 100%;
    box-sizing: border-box;
}

.feature-card-image {
    position: relative;
    z-index: 2;
    width: 100%;
    flex: 1;
    margin-top: 80px;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.feature-card-carousel {
    display: flex;
    gap: 24px;
    animation: carousel-scroll 20s linear infinite;
    width: max-content;
}

.feature-card-carousel img {
    width: 400px;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 12px;
}

@keyframes carousel-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.feature-card h3 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.feature-card .feature-label {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 3;
    margin-bottom: 0;
}

/* Content Sections (Legacy - can be removed if not used) */
.pain-point,
.feature-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 24px;
    background-color: var(--bg-dark);
}

.pain-point:nth-child(even) {
    background-color: var(--bg-secondary);
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    width: 100%;
}

.content-wrapper.reverse {
    direction: rtl;
}

.content-wrapper.reverse > * {
    direction: ltr;
}

.text-content {
    padding: 40px 0;
}

.problem-label,
.feature-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    margin-bottom: 16px;
    padding: 8px 16px;
    border: 1px solid var(--accent-color);
    border-radius: 20px;
}

.feature-label {
    color: #0a84ff;
    border-color: #0a84ff;
}

.text-content h2 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.text-content p {
    font-size: clamp(18px, 2vw, 24px);
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Visual Content */
.visual-content {
    perspective: 1000px;
}

.visual-box {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 60px 40px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.visual-box:hover {
    transform: translateY(-8px);
}

/* Pain Point Visuals */
.camera-view,
.strategy-view,
.angle-view {
    text-align: center;
    width: 100%;
}

.camera-focus,
.car-position,
.fixed-camera {
    font-size: 32px;
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}

.missed-action,
.hidden-strategy,
.wanted-angles {
    font-size: 18px;
    color: var(--accent-color);
    padding: 16px;
    background: rgba(225, 6, 0, 0.1);
    border-radius: 12px;
    border: 1px solid var(--accent-color);
}

/* Solution Intro */
.solution-intro {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px;
    background: radial-gradient(circle at center, rgba(225, 6, 0, 0.1) 0%, transparent 70%);
}

.solution-content h2 {
    font-size: clamp(48px, 7vw, 84px);
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.solution-tagline {
    font-size: clamp(20px, 3vw, 32px);
    color: var(--text-secondary);
}

/* Feature Visuals */
.feature-visual {
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.1) 0%, rgba(10, 132, 255, 0.05) 100%);
    border-color: rgba(10, 132, 255, 0.3);
}

.three-d-view,
.view-controls,
.timeline-control {
    width: 100%;
}

.track-visualization {
    position: relative;
    margin-bottom: 24px;
}

.track-line {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 32px 0;
}

.car-dots {
    display: flex;
    gap: 24px;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 16px;
    animation: raceCars 3s ease-in-out infinite;
}

.car-dots .dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-block;
}

.car-dots .dot.red {
    background-color: #e10600;
    box-shadow: 0 0 10px rgba(225, 6, 0, 0.5);
}

.car-dots .dot.blue {
    background-color: #0066cc;
    box-shadow: 0 0 10px rgba(0, 102, 204, 0.5);
}

.car-dots .dot.green {
    background-color: #00a651;
    box-shadow: 0 0 10px rgba(0, 166, 81, 0.5);
}

.car-dots .dot.yellow {
    background-color: #ffd500;
    box-shadow: 0 0 10px rgba(255, 213, 0, 0.5);
}

@keyframes raceCars {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(20px); }
}

.feature-caption {
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
}

.view-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.view-btn {
    padding: 20px 32px;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.view-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(8px);
}

.view-btn.active {
    background: rgba(10, 132, 255, 0.2);
    border-color: #0a84ff;
}

.timeline-control {
    padding: 24px;
}

.lap-counter {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
}

.timeline-bar {
    position: relative;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 32px;
}

.timeline-progress {
    height: 100%;
    background: linear-gradient(90deg, #0a84ff 0%, #00d4ff 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.timeline-marker {
    position: absolute;
    top: -8px;
    transform: translateX(-50%);
    font-size: 24px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.2); }
}

.playback-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.control-btn {
    width: 56px;
    height: 56px;
    font-size: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* Made by */
.made-by-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px;
    background: radial-gradient(ellipse at center, rgba(225, 6, 0, 0.08) 0%, transparent 70%);
}

.made-by-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(225, 6, 0, 0.3), transparent);
}

.made-by-content {
    max-width: 800px;
}

.made-by-content h2 {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.made-by-content p {
    font-size: clamp(20px, 3vw, 32px);
    color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #1a0000 100%);
}

.cta-content {
    max-width: 700px;
}

.cta-content h2 {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.cta-content > p {
    font-size: clamp(18px, 2.5vw, 28px);
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.waitlist-form {
    display: flex;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto 24px;
}

.waitlist-form input {
    flex: 1;
    padding: 18px 24px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s ease;
}

.waitlist-form input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
}

.waitlist-form input::placeholder {
    color: var(--text-secondary);
}

.waitlist-form button {
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 600;
    background: var(--accent-color);
    border: none;
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
}

.waitlist-form button:hover {
    background: #ff1e00;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.cta-note {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Footer */
/* Language Selector */
.language-selector-wrapper {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
}

.language-selector {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 10px 16px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.language-selector:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: var(--accent-color);
}

.language-selector:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.2);
}

.language-selector option {
    background: var(--bg-dark);
    color: var(--text-primary);
    padding: 8px;
}

/* RTL Support for Arabic */
body.rtl {
    direction: rtl;
}

body.rtl .language-selector-wrapper {
    right: auto;
    left: 24px;
}

body.rtl .content-wrapper {
    direction: rtl;
}

body.rtl .problem-label,
body.rtl .feature-label {
    right: 24px;
    left: auto;
}

body.rtl .waitlist-form {
    direction: rtl;
}

body.rtl .waitlist-form input {
    text-align: right;
}

footer {
    padding: 60px 24px;
    text-align: center;
    background-color: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 968px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .content-wrapper.reverse {
        direction: ltr;
    }

    .pain-point,
    .feature-section {
        padding: 80px 24px;
    }

    /* Responsive Problems Section */
    .problems-container {
        grid-template-columns: 1fr;
        gap: 24px;
        width: 90%;
    }

    .problem-card {
        min-height: 350px;
    }

    /* Responsive Features Section */
    .features-container {
        max-width: 100%;
        width: 95%;
        gap: 24px;
    }

    .feature-card {
        min-height: 320px;
    }

    .feature-card-image {
        margin-top: 60px;
    }

    .feature-card-carousel {
        gap: 16px;
    }

    .feature-card-carousel img {
        width: 280px;
        max-height: 160px;
    }

    .feature-card-content {
        padding: 24px;
    }

    .waitlist-form {
        flex-direction: column;
    }

    .waitlist-form button {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 0 16px;
    }

    .pain-point,
    .feature-section,
    .solution-intro {
        padding: 60px 16px;
    }

    /* Mobile Problems and Features Sections */
    .problems-section,
    .features-section,
    .made-by-section,
    .cta-section {
        padding: 60px 16px;
    }

    .problems-container,
    .features-container {
        gap: 20px;
    }

    .problem-card,
    .feature-card {
        min-height: 320px;
    }

    .problem-card-content,
    .feature-card-content {
        padding: 32px 24px;
    }

    .problem-card .problem-label,
    .feature-card .feature-label {
        top: 16px;
        left: 16px;
        font-size: 12px;
        padding: 6px 12px;
    }

    .visual-box {
        padding: 40px 24px;
        min-height: 300px;
    }

    .content-wrapper {
        gap: 40px;
    }

    /* Mobile Language Selector */
    .language-selector-wrapper {
        top: 16px;
        right: 16px;
    }

    .language-selector {
        padding: 8px 12px;
        font-size: 13px;
    }

    body.rtl .language-selector-wrapper {
        right: auto;
        left: 16px;
    }
}
