:root {
    --ground: #08080a;
    --raised: #121215;
    --raised-hover: #16161a;
    --line: rgba(255, 255, 255, 0.08);
    --text: #f0f0f0;
    --muted: #8f8f99;
    --accent: #c8f24e;
    --accent-hover: #d2f664;
    --accent-glow: rgba(200, 242, 78, 0.4);
    --red: #ff5f56;
    --yellow: #ffbd2e;
    --green: #27c93f;
    --shell: min(1050px, 100% - 3rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; overflow-x: clip; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--ground);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Background glow for depth */
body::before {
    content: "";
    position: fixed;
    inset: -30vh 0 auto 0;
    height: 80vh;
    background: radial-gradient(40% 40% at 50% 10%, color-mix(in srgb, var(--accent) 5%, transparent), transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.navbar {
    width: var(--shell);
    margin: 0 auto;
    padding: 2.5rem 0;
    position: relative;
    z-index: 10;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    pointer-events: auto;
    color: var(--text);
    text-decoration: none;
}

.logo .accent { color: var(--accent); }

main {
    flex: 1;
    width: var(--shell);
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding-bottom: 6rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0 3rem;
    position: relative;
    border-radius: 20px;
    margin-top: 1rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120vh;
    background-image: url('assets/bg/hero.jpg');
    background-size: cover;
    background-position: center top;
    opacity: 0.25;
    z-index: -2;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

.hero-content {
    animation: fadeInUp 0.8s ease-out forwards;
}

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

h1 {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin: 0 0 1.5rem;
}

.subtitle {
    max-width: 650px;
    margin: 0 auto 2.5rem;
    font-size: clamp(1rem, 1.8vw, 1.1rem);
    line-height: 1.7;
    color: var(--muted);
    text-wrap: balance;
}

.cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.cta-button {
    display: inline-block;
    background: var(--accent);
    color: #000;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1) inset, 0 8px 24px -8px var(--accent-glow);
}

.cta-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1) inset, 0 12px 32px -8px var(--accent-glow);
}

.cta-button:hover .arrow {
    transform: translateX(4px);
}

.cta-subtext {
    font-size: 0.85rem;
    color: var(--muted);
    font-style: italic;
    margin: 0;
}
/* Navbar Updates */
.navbar {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem max(1.5rem, calc((100vw - var(--shell)) / 2));
    background: rgba(8, 8, 10, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 2rem;
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 1.5rem; }

.nav-cta {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}
.nav-cta:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

/* Kicker Badge */
.kicker-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(200, 242, 78, 0.05);
    border: 1px solid rgba(200, 242, 78, 0.2);
    color: var(--accent);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(200, 242, 78, 0.1);
    position: relative;
    overflow: hidden;
}

.kicker-badge::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(200, 242, 78, 0.2), transparent);
    animation: shimmer-badge 3s infinite;
}

@keyframes shimmer-badge {
    100% { left: 200%; }
}

/* Gradient H1 */
.gradient-text {
    background: linear-gradient(135deg, #c8f24e 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}
.cta-button.secondary {
    background: rgba(255,255,255,0.03);
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: none;
}
.cta-button.secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
}

/* Powered By Inline */
.powered-by-inline {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.powered-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}
.powered-logos-inline {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.powered-logos-inline img {
    height: 20px;
    opacity: 0.4;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}
.powered-logos-inline a:hover img {
    opacity: 0.8;
    filter: none;
}

/* Glowing Orb */
.glow-orb {
    position: absolute;
    top: 30vh;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    max-width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(200, 242, 78, 0.15) 0%, rgba(56, 189, 248, 0.05) 40%, transparent 70%);
    filter: blur(60px);
    z-index: -3;
    pointer-events: none;
    animation: pulse-orb 8s ease-in-out infinite alternate;
}
@keyframes pulse-orb {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    100% { transform: translate(-50%, -45%) scale(1.1); opacity: 1; }
}

/* Social Strip */
.social-strip {
    text-align: center;
    padding: 2rem 0 4rem;
    position: relative;
}
.platforms-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin: 0 0 1.5rem;
}
.social-strip .integration-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.integration-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 10px 20px;
    border-radius: 100px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: default;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.integration-pill:hover {
    color: var(--text);
    background: rgba(200, 242, 78, 0.05);
    border-color: rgba(200, 242, 78, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200, 242, 78, 0.1);
}


/* Mockup Glow behind sections */
.mockup-section {
    margin: 4rem 0;
    position: relative;
}

.mockup-section::before {
    content: '';
    position: absolute;
    /* Vertical bleed only: a horizontal bleed widened the page on phones */
    inset: -5rem 0;
    background: radial-gradient(circle at 50% 50%, rgba(200, 242, 78, 0.03) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

.mockup-window {
    background: var(--raised);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.02) inset;
}

.window-bar {
    background: #18181b;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
    position: relative;
}

.dots { display: flex; gap: 8px; position: absolute; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.close { background: var(--red); }
.dot.min { background: var(--yellow); }
.dot.max { background: var(--green); }

.window-title {
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    font-family: monospace;
    color: #666;
}

.fade-bottom {
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
}

/* Script to Timeline Split View */
.split-content {
    display: flex;
    flex-direction: column;
    pointer-events: none;
    user-select: none;
}

@media (min-width: 768px) {
    .split-content {
        flex-direction: row;
        min-height: 450px;
        max-height: 600px;
    }
}

.editor-panel {
    flex: 1;
    overflow: hidden; /* Hide scrollbars since it's non-interactive */
}

.left-panel {
    background: #0d0d11;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 0.85rem;
    display: flex;
}

@media (min-width: 768px) {
    .left-panel { border-right: 1px solid var(--line); }
}

.line-numbers {
    padding: 1.5rem 0.5rem;
    background: rgba(0,0,0,0.2);
    border-right: 1px solid var(--line);
    color: #444;
    text-align: right;
    user-select: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.code-content {
    padding: 1.5rem 1.5rem 1.5rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.code-line { line-height: 1.5; }
.code-line .keyword { color: #ff7b72; font-weight: bold; }
.code-line .time { color: var(--muted); }
.code-line .text { color: #a5d6ff; }
.code-line .prompt { color: var(--accent); }

.code-line.highlight {
    background: rgba(200, 242, 78, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    border-left: 2px solid var(--accent);
}
.code-line.highlight-audio {
    background: rgba(56, 189, 248, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    border-left: 2px solid #38bdf8;
    color: #38bdf8;
}

.right-panel {
    background: #111114;
    display: flex;
    flex-direction: column;
}

.video-preview {
    flex: 1.2;
    background: #000;
    position: relative;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 90px 30px;
    transform: scale(1.6);
    opacity: 0.9;
}

.preview-overlay-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 33.33% 33.33%;
    pointer-events: none;
}

.player-controls {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: calc(100% - 30px);
    background: rgba(0,0,0,0.7);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.player-left, .player-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.timeline-toolbar {
    padding: 10px 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
    background: rgba(0,0,0,0.2);
}

.toolbar-tools {
    display: flex;
    gap: 12px;
}

.tool-btn {
    font-size: 0.75rem;
    color: var(--muted);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tool-btn:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.tool-btn.active { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }

.toolbar-zoom {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
}

.zoom-slider {
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0.1) 50%);
    border-radius: 2px;
    position: relative;
}

.zoom-thumb {
    position: absolute;
    top: -3px;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--text);
    border-radius: 50%;
}

.timeline-container {
    flex: 1;
    padding: 0 1.5rem 1.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.time-ruler {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.65rem;
    font-family: 'JetBrains Mono', Consolas, monospace;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    margin-bottom: 1rem;
}

.playhead {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    z-index: 10;
}

.playhead-line {
    position: absolute;
    top: 12px;
    bottom: 0;
    width: 2px;
    background: #ff5f56;
    box-shadow: 0 0 8px rgba(255, 95, 86, 0.5);
}

.playhead-cap {
    position: absolute;
    top: 0px;
    left: -5px;
    width: 12px;
    height: 12px;
    background: #ff5f56;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.timeline-tracks {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 0.75rem 1rem;
    align-items: center;
}

.track-label {
    font-size: 0.7rem;
    color: var(--muted);
    font-weight: 600;
}

.track {
    background: rgba(255,255,255,0.02);
    height: 32px;
    border-radius: 6px;
    position: relative;
    display: flex;
    gap: 2px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.clip {
    height: 100%;
    border-radius: 4px;
    display: flex;
    align-items: center;
    font-size: 0.65rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
}

.clip-title {
    position: relative;
    z-index: 10;
    background: rgba(0,0,0,0.6);
    padding: 2px 6px;
    border-radius: 2px;
    margin-left: 4px;
}

.video-clip {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.2);
}

.filmstrip {
    background-size: auto 300%;
    background-position: 0 40%;
    background-repeat: repeat-x;
}

/* Timeline Transitions */
.crossfade {
    width: 16px;
    background: rgba(255, 255, 255, 0.9);
    margin: 0 -8px;
    z-index: 20;
    transform: skewX(-20deg);
    box-shadow: 0 0 6px rgba(0,0,0,0.5);
    border-radius: 2px;
    position: relative;
}

.crossfade::after {
    content: '';
    position: absolute;
    inset: 2px;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 1px;
}

.fade-in, .fade-out {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 24px;
    pointer-events: none;
    z-index: 5;
}

.fade-in {
    left: 0;
    background: linear-gradient(to bottom right, rgba(0,0,0,0.7) 50%, transparent 50%);
}

.fade-out {
    right: 0;
    background: linear-gradient(to bottom left, rgba(0,0,0,0.7) 50%, transparent 50%);
}

.audio-clip, .sfx-clip {
    border: 1px solid rgba(255,255,255,0.2);
}

/* Authentic Audio Waveform using mask-image */
.audio-clip::before, .sfx-clip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: currentColor;
    mask-image: url("data:image/svg+xml,%3Csvg width='40' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10 Q2 0, 4 10 T8 10 Q10 20, 12 10 T16 10 Q18 0, 20 10 T24 10 Q26 20, 28 10 T32 10 Q34 0, 36 10 T40 10' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
    mask-size: auto 100%;
    mask-repeat: repeat-x;
    opacity: 0.4;
}

.audio-clip { background: #10b981; color: #34d399; }
.sfx-clip { background: #8b5cf6; color: #a78bfa; }

.audio-clip span, .sfx-clip span {
    position: relative;
    z-index: 1;
    background: rgba(0,0,0,0.5);
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 4px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.feature-card {
    background: var(--raised);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(200, 242, 78, 0.05), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(200, 242, 78, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.feature-card:hover::after { opacity: 1; }

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(200, 242, 78, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.feature-card h3 {
    margin: 0 0 1rem;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Dashboard Complex V2 */
.dashboard-complex {
    overflow: hidden;
    pointer-events: none;
    user-select: none;
}

.kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.kpi-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.kpi-label {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.kpi-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.status-online {
    font-size: 0.9rem;
    color: #10b981;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.dashboard-table-v2 {
    min-width: 800px;
}

.table-header-v2, .table-row-v2 {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1.5fr 0.3fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
}

.table-header-v2 {
    border-bottom: 1px solid var(--line);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    padding-bottom: 0.75rem;
}

.table-row-v2 {
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.table-row-v2:last-child { border-bottom: none; }

.col-video {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.video-thumb {
    width: 48px;
    height: 36px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    position: relative;
    overflow: hidden;
}

.video-thumb.rendering::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.video-thumb.pending {
    background: transparent;
    border: 1px dashed rgba(255,255,255,0.2);
}

.spinner-mini {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(56, 189, 248, 0.2);
    border-top-color: #38bdf8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

.video-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.video-info .title {
    font-size: 0.9rem;
    font-weight: 600;
}

.video-info .meta {
    font-size: 0.75rem;
    color: var(--muted);
}

.progress-container {
    width: 100%;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    margin-bottom: 0.4rem;
}

.progress-text { color: #38bdf8; font-weight: 600; }
.progress-pct { color: var(--muted); }

.progress-bar-bg {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 100px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
    border-radius: 100px;
    animation: fillProgress 1.5s ease-out forwards;
}

@keyframes fillProgress {
    from { width: 0%; }
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0.5rem;
}
.icon-btn:hover { color: var(--text); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge.green {
    background: rgba(200, 242, 78, 0.1);
    color: var(--accent);
    border: 1px solid rgba(200, 242, 78, 0.2);
}

.badge.gray {
    background: rgba(255,255,255,0.03);
    color: var(--muted);
    border: 1px solid rgba(255,255,255,0.05);
}

.badge.active {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(56, 189, 248, 0); }
    100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.badge.pending {
    background: transparent;
    color: #666;
    border: 1px dashed #444;
}

.loading-dots::after {
    content: '...';
    animation: loading 1.5s steps(4, end) infinite;
    display: inline-block;
    width: 12px;
}

@keyframes loading {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}

/* Hero Logos */
.hero-brand-logo {
    height: 24px;
    width: auto;
    opacity: 0.6;
    transition: all 0.3s ease;
}
.hero-brand-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Infrastructure Section */
.infrastructure-section {
    margin: 4rem 0 2rem;
    padding: 2rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 4rem;
    letter-spacing: -0.02em;
}

.infra-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.infra-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    text-align: left;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.infra-card:hover {
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border-color: rgba(255,255,255,0.1);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}

.infra-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.infra-logo-box {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.infra-card:hover .infra-logo-box {
    color: var(--text);
    background: rgba(200, 242, 78, 0.1);
    border-color: rgba(200, 242, 78, 0.4);
    box-shadow: 0 4px 12px rgba(200, 242, 78, 0.15);
}

.infra-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.01em;
}

.infra-card p {
    color: #a1a1aa;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Final CTA */
.final-cta {
    padding: 0 0 2rem;
    display: flex;
    justify-content: center;
}

.cta-card {
    background: linear-gradient(180deg, rgba(200, 242, 78, 0.05) 0%, rgba(200, 242, 78, 0.01) 100%), var(--raised);
    border: 1px solid rgba(200, 242, 78, 0.2);
    border-radius: 24px;
    padding: 2.5rem 3rem;
    text-align: center;
    max-width: 850px;
    width: 100%;
    box-shadow: 0 0 120px rgba(200, 242, 78, 0.08), 0 30px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.cta-card h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 1rem;
    letter-spacing: -0.03em;
}

.cta-card p {
    color: #a1a1aa;
    font-size: 1.05rem;
    margin: 0 auto 1.5rem;
    max-width: 600px;
    line-height: 1.6;
    text-wrap: balance;
}

/* Footer */
footer {
    border-top: 1px solid var(--line);
    padding: 3rem 0;
    margin-top: auto;
}

.footer-content { width: var(--shell); margin: 0 auto; }
.footer-links a { color: var(--text); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--accent); }

@media (max-width: 850px) {
    .features-grid { grid-template-columns: 1fr; }
    .platform-pill { flex-direction: column; gap: 1rem; padding: 1.5rem; }
    .infra-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .infra-grid { grid-template-columns: 1fr; }
}

.infra-logo-item:hover span, .infra-logo-item:hover svg {
    color: var(--text);
}
.infra-logo-item:hover span {
    /* removed background override */
}
.infra-tooltip {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--raised);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 20px rgba(200, 242, 78, 0.1);
    color: var(--text);
    padding: 1rem;
    border-radius: 12px;
    width: 280px;
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
}
.infra-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: var(--raised) transparent transparent transparent;
}
.infra-logo-item:hover .infra-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}


/* --- UNIFIED WINDOW STYLES --- */
.editor-window {
    display: flex;
    background: #0A0A0A;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8);
    overflow: hidden;
}

.editor-window-col {
    flex-direction: column;
}

.editor-sidebar {
    width: 320px;
    border-right: 1px solid rgba(255,255,255,0.05);
    background: #111111;
    display: flex;
    flex-direction: column;
}

.editor-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #000;
    min-width: 0;
}

.mac-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    background: #0A0A0A;
}

.mac-dots {
    display: flex;
    gap: 8px;
}

.mac-dots div {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.mac-dots div:nth-child(1) { background: #FF5F56; }
.mac-dots div:nth-child(2) { background: #FFBD2E; }
.mac-dots div:nth-child(3) { background: #27C93F; }

@media (max-width: 850px) {
    .editor-window.split-view {
        flex-direction: column;
        height: auto !important;
    }
    .editor-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        height: auto;
        max-height: 400px;
    }
    .editor-main .timeline {
        display: none !important;
    }
    .editor-main .stage-view {
        padding: 1rem !important;
    }
    
    /* Infra Tooltips Mobile */
    .infra-logo-band {
        flex-direction: column;
        gap: 1.5rem !important;
        align-items: flex-start !important;
    }
    .infra-logo-item {
        display: block;
        width: 100%;
        text-align: left;
        background: rgba(255,255,255,0.03);
        padding: 1.5rem;
        border-radius: 8px;
        border: 1px solid rgba(255,255,255,0.05);
    }
    .infra-tooltip {
        position: relative !important;
        bottom: auto !important;
        left: 0 !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        width: 100% !important;
        box-shadow: none !important;
        background: transparent !important;
        border: none !important;
        padding: 1rem 0 0 0 !important;
        color: var(--muted) !important;
    }
    .infra-tooltip::after {
        display: none !important;
    }
}


.mobile-desktop-warning {
    display: none;
    background: rgba(200, 242, 78, 0.05);
    border: 1px dashed var(--accent);
    color: var(--text);
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

@media (max-width: 850px) {
    .editor-window {
        display: none !important;
    }
    .mobile-desktop-warning {
        display: block;
    }
}


@media (max-width: 850px) {
    /* Global Font Scaling */
    html {
        font-size: 14px;
    }
    
    /* Header Polish */
    .nav-links {
        display: none !important;
    }
    header {
        padding: 1rem 1.5rem;
    }
    .nav-cta {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    /* Footer Polish */
    .footer-content {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        justify-content: center !important;
        gap: 1.5rem !important;
    }
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center !important;
    }
    .brand-container {
        align-items: center !important;
    }
    
    /* Section specific text scaling */
    .hero .subtitle {
        font-size: 1.1rem;
    }
    .section-intro h2 {
        font-size: 1.8rem !important;
    }
    .cta-card h2 {
        font-size: 1.8rem !important;
    }
}
