:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-color: #00f3ff;
    /* Cyan */
    --accent-secondary: #bc13fe;
    /* Purple */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Montserrat', sans-serif;
    --font-display: 'Orbitron', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.highlight {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header */
.main-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 15px 30px;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.main-header:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

.main-header .container {
    display: flex;
    justify-content: center;
    /* Centered logo */
    align-items: center;
    padding: 0;
    /* Reset container padding for header */
}

.logo-container {
    position: relative;
}

.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: #ccc;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 243, 255, 0.1) 0%, transparent 70%);
    z-index: 1;
    animation: pulse 5s infinite alternate;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid var(--accent-color);
    border-radius: 15px;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.scroll-indicator span {
    display: block;
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    margin: 10px auto;
    border-radius: 50%;
    animation: scrollDown 2s infinite;
}

/* Timeline Section */
.timeline-section {
    padding: 100px 0;
    position: relative;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--glass-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
    box-shadow: 0 0 10px var(--accent-color);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    opacity: 0;
    /* Hidden for animation */
    animation: slideIn 0.5s forwards;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--bg-color);
    border: 4px solid var(--accent-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px var(--accent-color);
}

.timeline-item.right::after {
    left: -10px;
}

.timeline-item .content {
    padding: 20px 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s;
}

.timeline-item .content:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

/* Revenue Section */
.revenue-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--bg-color), #0f0f0f);
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.chart-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.chart-card:hover {
    transform: scale(1.05);
    border-color: var(--accent-secondary);
}

.chart-visual {
    position: relative;
    height: 150px;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 5px;
}

.chart-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.overlay-anim {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to top, rgba(0, 243, 255, 0.5), transparent);
    animation: growUp 2s infinite alternate;
}

.delay-1 {
    animation-delay: 0.5s;
}

.delay-2 {
    animation-delay: 1s;
}

.delay-3 {
    animation-delay: 1.5s;
}

/* Tech Section */
.tech-section {
    padding: 100px 0;
}

.tech-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.tech-text {
    flex: 1;
}

.tech-list {
    list-style: none;
    margin-top: 20px;
}

.tech-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.tech-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-secondary);
}

/* Tech Section Interactive */
.tech-visual-interactive {
    flex: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Toggle Switch */
.ai-toggle-checkbox {
    display: none;
}

.ai-toggle-label {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    transition: border-color 0.3s;
}

.ai-toggle-label:hover {
    border-color: var(--accent-color);
}

.toggle-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    transition: color 0.3s;
}

.toggle-slider {
    width: 50px;
    height: 26px;
    background-color: #333;
    border-radius: 20px;
    position: relative;
    transition: background-color 0.3s;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
}

/* Checked State for Toggle */
.ai-toggle-checkbox:checked+.ai-toggle-label .toggle-slider {
    background-color: var(--accent-color);
}

.ai-toggle-checkbox:checked+.ai-toggle-label .toggle-slider::after {
    transform: translateX(24px);
}

.ai-toggle-checkbox:checked+.ai-toggle-label .toggle-text:last-child {
    color: #fff;
    text-shadow: 0 0 10px var(--accent-color);
}

.ai-toggle-checkbox:not(:checked)+.ai-toggle-label .toggle-text:first-child {
    color: #fff;
}

/* Advanced Editor Simulator */
.editor-simulator {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.track-label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: -5px;
}

.timeline-track {
    height: 40px;
    background: #151515;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    border: 1px solid #333;
}

/* Agent Track */
.agent-track {
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.agent-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #444;
    margin-right: 10px;
    position: relative;
    transition: all 0.5s;
}

.agent-research::before {
    content: '🔍';
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.agent-writer::before {
    content: '📝';
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.agent-editor::before {
    content: '🎬';
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.data-stream {
    position: absolute;
    left: 0;
    top: 50%;
    height: 2px;
    background: var(--accent-color);
    width: 0;
    opacity: 0;
    transition: all 0.5s;
}

/* Video Track */
.video-track .clip {
    height: 30px;
    top: 4px;
}

.clip {
    position: absolute;
    top: 10px;
    bottom: 10px;
    border-radius: 4px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.clip.raw {
    background: #ff4d4d;
    opacity: 0.7;
}

.clip-1 {
    left: 5%;
    width: 15%;
}

.clip-2 {
    left: 25%;
    width: 20%;
}

.clip-3 {
    left: 55%;
    width: 10%;
}

.clip-4 {
    left: 75%;
    width: 15%;
}

.clip.edited {
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    left: 5%;
    width: 90%;
    opacity: 0;
    transform: scaleX(0.9);
}

.analysis-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.bbox {
    position: absolute;
    border: 1px dashed var(--accent-color);
    opacity: 0;
    transition: opacity 0.3s;
}

.box-1 {
    top: 10%;
    left: 20%;
    width: 30px;
    height: 20px;
}

.box-2 {
    top: 40%;
    left: 60%;
    width: 40px;
    height: 25px;
}

/* Audio Track */
.audio-track {
    display: flex;
    align-items: center;
    justify-content: center;
}

.waveform-static {
    width: 100%;
    height: 2px;
    background: #555;
    transition: opacity 0.3s;
}

.waveform-dynamic {
    display: flex;
    gap: 3px;
    align-items: center;
    height: 100%;
    opacity: 0;
}

.waveform-dynamic span {
    display: block;
    width: 4px;
    background: var(--accent-secondary);
    height: 10%;
    border-radius: 2px;
    animation: wave 1s infinite ease-in-out;
}

.waveform-dynamic span:nth-child(odd) {
    animation-duration: 0.8s;
}

.waveform-dynamic span:nth-child(even) {
    animation-duration: 1.2s;
}

/* Scanner Bar */
.scanner-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background: #fff;
    box-shadow: 0 0 10px #fff;
    z-index: 10;
    opacity: 0;
}

/* Preview Window */
.preview-window {
    height: 150px;
    background: #000;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid #333;
}

.preview-content {
    font-family: var(--font-display);
    font-size: 1.5rem;
    position: absolute;
    transition: all 0.5s;
}

.raw-preview {
    color: #ff4d4d;
    letter-spacing: 5px;
    filter: blur(1px);
}

.edited-preview {
    color: var(--accent-color);
    opacity: 0;
    transform: scale(0.8);
    text-shadow: 0 0 20px var(--accent-color);
}

/* Interactive Logic via Checkbox */
/* AI Active State */
.ai-toggle-checkbox:checked~.editor-simulator .agent-icon {
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
    transform: scale(1.1);
}

.ai-toggle-checkbox:checked~.editor-simulator .data-stream {
    width: 100%;
    opacity: 0.5;
    animation: stream 2s linear infinite;
}

.ai-toggle-checkbox:checked~.editor-simulator .clip.raw {
    opacity: 0.2;
    filter: grayscale(100%);
}

.ai-toggle-checkbox:checked~.editor-simulator .clip.edited {
    opacity: 1;
    width: 100%;
    left: 0;
}

.ai-toggle-checkbox:checked~.editor-simulator .bbox {
    opacity: 1;
    animation: blink 2s infinite;
}

.ai-toggle-checkbox:checked~.editor-simulator .waveform-static {
    opacity: 0;
}

.ai-toggle-checkbox:checked~.editor-simulator .waveform-dynamic {
    opacity: 1;
}

.ai-toggle-checkbox:checked~.editor-simulator .scanner-bar {
    opacity: 1;
    animation: scan 3s linear infinite;
}

.ai-toggle-checkbox:checked~.editor-simulator .raw-preview {
    opacity: 0;
    transform: scale(1.2);
    filter: blur(10px);
}

.ai-toggle-checkbox:checked~.editor-simulator .edited-preview {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.3s;
}

.interaction-hint {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
}

@keyframes scan {
    0% {
        left: 0;
    }

    100% {
        left: 100%;
    }
}

@keyframes stream {
    0% {
        left: 0;
        width: 0;
    }

    50% {
        width: 100%;
    }

    100% {
        left: 100%;
        width: 0;
    }
}

@keyframes wave {

    0%,
    100% {
        height: 10%;
    }

    50% {
        height: 80%;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 0.5;
        border-color: var(--accent-color);
    }

    50% {
        opacity: 1;
        border-color: #fff;
    }
}

/* Footer */
.main-footer {
    padding: 50px 0 30px;
    background: transparent;
    position: relative;
}

.footer-content {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.footer-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.5;
}

.footer-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(90deg, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.footer-info p {
    margin: 8px 0;
    font-size: 0.9rem;
    color: #888;
    transition: color 0.3s;
}

.footer-info p:hover {
    color: #fff;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes pulse {
    from {
        opacity: 0.5;
        transform: scale(1);
    }

    to {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes scrollDown {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes growUp {
    from {
        height: 0;
    }

    to {
        height: 100%;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 21px;
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0;
    }

    .tech-content {
        flex-direction: column;
    }

    .main-header .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

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