/* ===== CSS Variables ===== */
:root {
    --primary-color: #FF3366;
    --secondary-color: #00FFAA;
    --dark-bg: #0A0E27;
    --darker-bg: #050812;
    --light-text: #E8E8F5;
    --gray-text: #9CA3AF;
    --brake-color: #FF4444;
    --accel-color: #88FF44;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
}

.logo {
    font-size: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--gray-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--light-text);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 87, 108, 0.1) 0%, transparent 50%),
        var(--darker-bg);
    animation: backgroundShift 20s ease infinite;
}

@keyframes backgroundShift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 100px 20px 50px;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.title-line {
    display: block;
    animation: fadeInUp 1s ease backwards;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.title-line.highlight {
    background: linear-gradient(135deg, #FF3366, #00FFAA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto 1.5rem;
    animation: fadeInUp 1s ease 0.4s backwards;
    font-weight: 700;
}

.hero-desc {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: var(--secondary-color);
    max-width: 700px;
    margin: 0 auto 1rem;
    animation: fadeInUp 1s ease 0.6s backwards;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero-subdesc {
    font-size: 1.05rem;
    color: var(--gray-text);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 1s ease 0.8s backwards;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #FF3366, #FF6B9D);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.6s backwards;
    box-shadow: 0 10px 30px rgba(255, 51, 102, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 51, 102, 0.5);
}

.cta-button.secondary {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.3);
}

.cta-button.secondary:hover {
    box-shadow: 0 15px 40px rgba(79, 172, 254, 0.5);
}

/* ===== Sections ===== */
section {
    padding: 5rem 0;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #fff, #999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Features ===== */
.features {
    background: var(--darker-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.feature-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.feature-card p {
    color: var(--gray-text);
    line-height: 1.8;
}

/* ===== Demo Section ===== */
.demo {
    background: var(--dark-bg);
}

.demo-description {
    text-align: center;
    color: var(--gray-text);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.demo-controls {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.pedal-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.pedal-button {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pedal-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.pedal-button:active::before {
    width: 300px;
    height: 300px;
}

.brake-button {
    background: linear-gradient(135deg, #FF4444, #CC0000);
    box-shadow: 0 10px 40px rgba(255, 68, 68, 0.4);
}

.brake-button:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(255, 68, 68, 0.6);
}

.brake-button:active {
    transform: scale(0.95);
}

.accel-button {
    background: linear-gradient(135deg, #88FF44, #44CC00);
    box-shadow: 0 10px 40px rgba(136, 255, 68, 0.4);
}

.accel-button:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(136, 255, 68, 0.6);
}

.accel-button:active {
    transform: scale(0.95);
}

.pedal-icon {
    font-size: 3rem;
}

.led-indicator {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.led-indicator.active {
    animation: ledPulse 1s ease-in-out;
}

@keyframes ledPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.brake-led.active {
    background: var(--brake-color);
    border-color: var(--brake-color);
    box-shadow: 0 0 30px var(--brake-color);
}

.accel-led.active {
    background: var(--accel-color);
    border-color: var(--accel-color);
    box-shadow: 0 0 30px var(--accel-color);
}

/* ===== Activity Log ===== */
.activity-log {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
}

.activity-log h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.log-container {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.log-entry {
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid;
    border-radius: 5px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.log-entry.brake {
    border-color: var(--brake-color);
}

.log-entry.accel {
    border-color: var(--accel-color);
}

.log-time {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-right: 1rem;
}

.log-action {
    font-weight: 700;
}

.clear-log-btn {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 68, 68, 0.2);
    color: var(--brake-color);
    border: 1px solid var(--brake-color);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
}

.clear-log-btn:hover {
    background: rgba(255, 68, 68, 0.3);
    transform: translateY(-2px);
}

/* ===== Benefits ===== */
.benefits {
    background: var(--darker-bg);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-item {
    text-align: center;
    padding: 2rem;
}

.benefit-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #FF3366, #00FFAA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.benefit-item h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--light-text);
}

.benefit-item p {
    color: var(--gray-text);
    line-height: 1.8;
}

/* ===== CTA Section ===== */
.cta-section {
    background: var(--dark-bg);
    text-align: center;
}

.cta-section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--gray-text);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* ===== Footer ===== */
.footer {
    background: var(--darker-bg);
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-text);
    font-size: 0.95rem;
}

.contact-item a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: var(--light-text);
    text-decoration: underline;
}

.footer-business {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--gray-text);
    font-size: 0.85rem;
    line-height: 1.8;
}

.footer p {
    color: var(--gray-text);
    margin-top: 1rem;
    font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 14, 39, 0.98);
        flex-direction: column;
        gap: 0;
        padding: 2rem;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu a {
        display: block;
        padding: 1.2rem 0;
        font-size: 1.1rem;
    }

    .hero-content {
        padding-top: 120px;
    }

    .demo-controls {
        gap: 2rem;
    }

    .pedal-button {
        width: 150px;
        height: 150px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Terms Modal ===== */
.terms-link {
    color: var(--gray-text);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.terms-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.footer-links {
    margin-top: 1rem;
    font-size: 0.85rem;
}

.footer-links span {
    color: rgba(255, 255, 255, 0.2);
    margin: 0 0.5rem;
}

.terms-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.terms-overlay.active {
    display: flex;
}

.terms-modal {
    background: var(--dark-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    max-width: 720px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
}

.terms-modal h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--light-text);
    text-align: center;
}

.terms-modal h3 {
    font-size: 1rem;
    color: var(--secondary-color);
    margin: 1.5rem 0 0.5rem;
}

.terms-modal p,
.terms-modal li {
    color: var(--gray-text);
    font-size: 0.9rem;
    line-height: 1.8;
}

.terms-modal ul {
    padding-left: 1.2rem;
    margin: 0.5rem 0;
}

.terms-modal .terms-footer-info {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: var(--gray-text);
    line-height: 2;
}

.terms-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    color: var(--gray-text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.terms-close:hover {
    color: var(--light-text);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FF3366, #00FFAA);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #FF6B9D, #33FFBB);
}
