/* =============================================
   KoppeK Landing Page Styles
   Color Palette from App UI:
   - Background: #0d1117 / #1a1a2e
   - Primary Accent: #00ffc8 (teal/cyan)
   - Secondary Accent: #ff6b6b (coral)
   - Text: #ffffff / #a0a0a0
   ============================================= */

/* CSS Variables */
:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: #1a1f26;
    --accent-primary: #00ffc8;
    --accent-secondary: #ff6b6b;
    --text-primary: #ffffff;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --font-mono: 'SF Mono', 'Fira Code', 'Monaco', 'Consolas', monospace;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth scroll only on desktop */
@media (min-width: 769px) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* =============================================
   Matrix Rain Background Animation - DENSE
   ============================================= */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.25;
}

.matrix-column {
    position: absolute;
    top: -100%;
    width: 18px;
    height: 100%;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-primary), 0 0 20px var(--accent-primary);
    animation: matrix-fall var(--duration) linear var(--delay) infinite;
    writing-mode: vertical-rl;
    text-orientation: upright;
}

.matrix-column::before {
    content: "ケカキコクサスセソシタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヲン0123456789ABCDEF";
    letter-spacing: 6px;
    opacity: 0.9;
}

.matrix-column::after {
    content: "アイウエオガギグゲゴザジズゼゾダヂヅデドバビブベボパピプペポ01001101001110101001011010011010100101";
    letter-spacing: 6px;
    position: absolute;
    top: 100%;
    opacity: 0.7;
}

.matrix-column.layer2 {
    opacity: 0.4;
    font-size: 10px;
    color: rgba(0, 255, 200, 0.6);
    text-shadow: 0 0 5px var(--accent-primary);
}

.matrix-column.layer2::before {
    content: "10110100101110010110100110101001011010011010100101101001101010010110100110";
}

.matrix-column.layer2::after {
    content: "HACKTHEPLANETBREACHTHESYSTEMEXPLOITTHEVULNERABILITY";
}

@keyframes matrix-fall {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(200%);
    }
}

/* Gradient overlay for depth */
.matrix-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        var(--bg-primary) 0%,
        transparent 10%,
        transparent 90%,
        var(--bg-primary) 100%
    );
}

/* =============================================
   Main Content Container
   ============================================= */
main {
    position: relative;
    z-index: 1;
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 1s var(--transition-smooth);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animated Video Logo */
.logo-video,
.logo-fallback {
    display: block;
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem auto;
    border-radius: 40px;
    box-shadow: 
        0 0 80px rgba(0, 255, 200, 0.3),
        0 0 120px rgba(0, 255, 200, 0.1),
        0 30px 60px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite, glow 3s ease-in-out infinite alternate;
    object-fit: cover;
}

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

@keyframes glow {
    from {
        box-shadow: 
            0 0 60px rgba(0, 255, 200, 0.2),
            0 0 100px rgba(0, 255, 200, 0.1),
            0 30px 60px rgba(0, 0, 0, 0.5);
    }
    to {
        box-shadow: 
            0 0 100px rgba(0, 255, 200, 0.4),
            0 0 150px rgba(0, 255, 200, 0.2),
            0 30px 60px rgba(0, 0, 0, 0.5);
    }
}

.title {
    font-size: clamp(3.5rem, 12vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 50%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 4s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        filter: drop-shadow(0 0 20px rgba(0, 255, 200, 0.3));
    }
    to {
        filter: drop-shadow(0 0 40px rgba(0, 255, 200, 0.5));
    }
}

.tagline {
    font-size: clamp(1.2rem, 3.5vw, 1.75rem);
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
    text-shadow: 0 0 30px rgba(0, 255, 200, 0.3);
}

.subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.9;
}

.highlight {
    color: var(--accent-primary);
    font-weight: 600;
}

.highlight-alt {
    color: var(--accent-secondary);
    font-weight: 600;
}

/* Rainbow gradient animation for exciting highlights */
@keyframes rainbow-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.rainbow-text {
    background: linear-gradient(
        90deg,
        var(--accent-primary),
        #00ff88,
        #00ccff,
        var(--accent-secondary),
        #ff88ff,
        var(--accent-primary)
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow-shift 4s ease-in-out infinite;
}

/* Rainbow Button */
.rainbow-btn {
    margin-top: 2.5rem;
    padding: 1rem 2.5rem;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    background: linear-gradient(
        90deg,
        var(--accent-primary),
        #00ff88,
        #00ddff,
        var(--accent-secondary),
        #ff66cc,
        var(--accent-primary)
    );
    background-size: 300% 100%;
    animation: rainbow-shift 3s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(0, 255, 200, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rainbow-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(0, 255, 200, 0.5);
}

.rainbow-btn:active {
    transform: scale(0.98);
}

.rainbow-btn-text {
    color: var(--bg-primary);
    text-shadow: none;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.video-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.video-modal-content {
    position: relative;
    z-index: 1;
    max-width: 90%;
    max-height: 90%;
    width: 1000px;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.video-modal-close:hover {
    opacity: 1;
}

.promo-video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 0 60px rgba(0, 255, 200, 0.2);
}

/* =============================================
   App Preview Section - Scroll Animated
   ============================================= */
.app-preview-section {
    padding: 2rem 2rem 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.app-preview-container {
    max-width: 900px;
    width: 95%;
    transform: rotateX(6deg) translateY(20px);
    opacity: 0.8;
    transition: transform 0.8s var(--transition-smooth), opacity 0.8s var(--transition-smooth);
}

.app-preview-container.in-view {
    transform: rotateX(0deg) translateY(0);
    opacity: 1;
}

.app-screenshot {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 200, 0.3);
}

/* =============================================
   Feature Sections
   ============================================= */
.feature-section {
    padding: 5rem 2rem;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-section:last-of-type {
    border-bottom: none;
}

.feature-section.alt-bg {
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 255, 200, 0.02) 50%,
        transparent 100%
    );
}

.feature-content {
    max-width: 700px;
    width: 100%;
    text-align: center;
}

.feature-headline {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.feature-lead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.feature-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    margin-bottom: 1.5rem;
    display: inline-block;
    text-align: left;
}

.feature-list li {
    font-size: 1rem;
    color: var(--text-primary);
    padding: 0.5rem 0 0.5rem 1.75rem;
    position: relative;
    line-height: 1.6;
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

.feature-list li strong {
    color: var(--accent-primary);
}

.feature-tagline {
    font-size: clamp(1.4rem, 3.5vw, 1.75rem);
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    padding: 2rem 0;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.5;
}

/* Rainbow highlights specifically in taglines */
.feature-tagline .highlight,
.feature-tagline .highlight-alt {
    background: linear-gradient(
        90deg,
        var(--accent-primary),
        #00ff88,
        #00ddff,
        var(--accent-secondary),
        #ff66cc,
        var(--accent-primary)
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow-shift 3s ease-in-out infinite;
    font-weight: 700;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   Section Titles
   ============================================= */
.section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

/* =============================================
   Countdown Section
   ============================================= */
.countdown-section {
    padding: 5rem 2rem;
    text-align: center;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(255, 107, 107, 0.03) 50%,
        transparent 100%
    );
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.countdown-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.countdown-intro {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.countdown-tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
    background: var(--bg-card);
    padding: 1.25rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 200, 0.2);
}

.countdown-value {
    font-family: var(--font-mono);
    font-size: clamp(2.25rem, 8vw, 3.5rem);
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
    text-shadow: 0 0 30px rgba(0, 255, 200, 0.3);
}

.countdown-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-top: 0.75rem;
}

.countdown-separator {
    font-family: var(--font-mono);
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    color: var(--accent-primary);
    opacity: 0.5;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.15; }
}

.launch-date {
    font-size: 1.1rem;
    color: var(--accent-secondary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.countdown-cta {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.7;
}

/* =============================================
   Contact Section
   ============================================= */
.contact-section {
    padding: 5rem 2rem;
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.875rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    transition: 
        background-color 0.3s var(--transition-smooth),
        border-color 0.3s var(--transition-smooth),
        color 0.3s var(--transition-smooth),
        box-shadow 0.3s var(--transition-smooth),
        transform 0.3s var(--transition-smooth);
}

.contact-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.contact-link.email-link:hover {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
    box-shadow: 0 0 40px rgba(0, 255, 200, 0.4);
    transform: translateY(-2px);
}

.contact-link.linkedin-link:hover {
    background-color: #0077b5;
    border-color: #0077b5;
    color: white;
    box-shadow: 0 0 40px rgba(0, 119, 181, 0.4);
    transform: translateY(-2px);
}

/* =============================================
   Footer
   ============================================= */
.footer {
    padding: 2rem;
    text-align: center;
}

.footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =============================================
   Responsive Adjustments
   ============================================= */
@media (max-width: 768px) {
    .countdown {
        gap: 0.75rem;
    }
    
    .countdown-item {
        min-width: 70px;
        padding: 0.875rem 0.5rem;
    }
    
    .countdown-separator {
        display: none;
    }
    
    .logo-video,
    .logo-fallback {
        width: 150px;
        height: 150px;
    }
    
    .feature-section {
        padding: 3.5rem 1.5rem;
    }
    
    .countdown-section {
        padding: 3.5rem 1.5rem;
    }
    
    .contact-section {
        padding: 3.5rem 1.5rem;
    }
    
    .contact-links {
        flex-direction: column;
    }
    
    .contact-link {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .countdown-item {
        min-width: 60px;
    }
    
    .countdown-value {
        font-size: 2rem;
    }
    
    .hero {
        padding: 1.5rem;
    }
    
    .feature-list li {
        padding-left: 1.5rem;
        font-size: 0.95rem;
    }
}

/* =============================================
   Reduced Motion Support
   ============================================= */
@media (prefers-reduced-motion: reduce) {
    .matrix-column,
    .logo-video,
    .countdown-separator {
        animation: none;
    }
    
    .hero-content {
        animation: none;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .app-preview-container {
        transform: none;
        opacity: 1;
        transition: none;
    }
    
    .title {
        animation: none;
    }
}
