:root {
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --card-bg: rgba(30, 41, 59, 0.5);

    --text-main: #f1f5f9;
    --text-muted: #94a3b8;

    --accent: #00f0ff;
    --accent-glow: rgba(0, 240, 255, 0.2);
    --accent-dim: rgba(0, 240, 255, 0.1);

    --success: #22c55e;
    --error: #ef4444;
    --error-bg: rgba(239, 68, 68, 0.1);

    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --container-width: 1200px;
    --header-height: 80px;
}

/* Reset & Basics */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

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

.max-width-medium {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
    overflow: hidden;
}

.background-animation::before,
.background-animation::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float 20s infinite ease-in-out;
}

.background-animation::before {
    background: var(--accent);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.background-animation::after {
    background: #3b82f6;
    bottom: -100px;
    right: -100px;
    animation-delay: -10s;
}

@keyframes float {

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

    50% {
        transform: translate(50px, 50px);
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: white;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: white;
}

.mobile-menu-btn {
    display: none;
    /* Add mobile styles later */
}

/* Buttons */
.btn-primary {
    background-color: var(--accent);
    color: var(--bg-dark);
    font-weight: 700;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background-color: white;
    box-shadow: 0 0 15px var(--accent-glow);
    transform: translateY(-1px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    /* changed from 100dvh for better compatibility */
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 10;
}

.warning-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--error-bg);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--error);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--error);
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
}

.gradient-text {
    background: linear-gradient(to right, #60a5fa, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-value-props {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.value-prop {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.value-prop.success {
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.value-prop .label {
    font-weight: 700;
    margin-right: 0.5rem;
}

.value-prop.error .label {
    color: #f87171;
}

.value-prop.success .label {
    color: var(--accent);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
    border-left: 2px solid var(--accent);
    padding-left: 1rem;
}

.hero-description strong {
    color: white;
    display: block;
    margin-top: 0.5rem;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.link-secondary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.link-secondary:hover {
    color: white;
}

.icon-check {
    color: var(--success);
}

.trust-signals {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.trust-pill {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dot-green {
    color: var(--success);
}

/* Scroll Down Indicator */
.scroll-down-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

/* Trust Ticker */
.ticker-wrapper {
    background: rgba(15, 23, 42, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
    overflow: hidden;
    position: relative;
    z-index: 20;
}

.ticker {
    display: flex;
    width: max-content;
    animation: ticker-slide 40s linear infinite;
}

.ticker-item {
    padding: 0 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ticker-item .bold {
    color: white;
    font-weight: 700;
}

@keyframes ticker-slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Problem Section */
.problem-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.highlight-red {
    color: #f87171;
}

.lead-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.lead-text strong {
    color: white;
}

.divider-gradient {
    height: 1px;
    width: 100px;
    margin: 0 auto 4rem;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
}

/* Calculator Placeholder Styling */
.calculator-container {
    max-width: 900px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(8px);
}

.calculator-header {
    text-align: center;
    margin-bottom: 2rem;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.input-group {
    margin-bottom: 2rem;
}

.input-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.input-val.accent {
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 700;
}

.slider {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-glow);
}

.calc-result {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .calc-result {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 2rem;
    }
}

.result-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--error);
    margin-bottom: 0.5rem;
}

.result-note {
    font-size: 0.75rem;
    color: #64748b;
}

/* Timeline Section */
.timeline-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

@media (max-width: 768px) {
    .timeline-grid {
        grid-template-columns: 1fr;
    }
}

.sticky-col {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.timeline-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 400;
}

.timeline-steps {
    border-left: 2px solid rgba(255, 255, 255, 0.05);
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: -2.6rem;
    top: 0.5rem;
    width: 1.2rem;
    height: 1.2rem;
    background: var(--bg-dark);
    border: 2px solid #334155;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.timeline-dot.active {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-content {
    padding: 1.5rem;
    background: transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.timeline-content:hover,
.timeline-content.highlight {
    background: rgba(255, 255, 255, 0.03);
}

.timeline-content.review {
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.1);
}

.timeline-time {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.accent-text {
    color: var(--accent);
    font-weight: 700;
}

/* Agency OS */
.eyebrow {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.agency-os h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.os-preview-container {
    padding: 0 1rem;
}

.os-window {
    background: var(--bg-darker);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    height: 600px;
    display: flex;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.os-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.os-sidebar {
    width: 250px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    display: none;
}

@media (min-width: 768px) {
    .os-sidebar {
        display: block;
    }
}

.os-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: white;
}

.dot-accent {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.os-nav li {
    list-style: none;
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.os-nav li:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.os-nav li.active {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border-left: 2px solid var(--accent);
}

.os-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(30, 41, 59, 0.3);
}

.os-header {
    height: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.system-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--success);
}

.os-dashboard-grid {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .os-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.stat-trend {
    font-size: 0.7rem;
    margin-top: 0.25rem;
}

.stat-trend.positive {
    color: var(--success);
}

.stat-trend.neutral {
    color: var(--accent);
}

.chart-container {
    flex: 1;
    margin: 1.5rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 1rem;
    padding-top: 2rem;
    gap: 0.5rem;
}

.bar {
    width: 100%;
    background: rgba(56, 189, 248, 0.3);
    border-radius: 4px 4px 0 0;
    transition: height 1s ease;
}

.bar:hover {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Tech Section */
.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 768px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.tech-badges span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
}

.tech-terminal {
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.05);
}

.terminal-line {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: #e2e8f0;
}

.terminal-line .prompt {
    color: var(--success);
}

.terminal-line.dimmed {
    color: #64748b;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.cursor {
    animation: blink 1s infinite step-end;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Footer */
.footer {
    background: #020617;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-col h4 {
    color: white;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-col a {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);

    padding-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
}

/* Login Overlay (Maintenance Mode) */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.login-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.login-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.login-card h2 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.login-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-input {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1rem;
    border-radius: 6px;
    color: white;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
}

.login-input:focus {
    border-color: var(--accent);
}

.login-btn {
    background: var(--accent);
    color: var(--bg-dark);
    font-weight: 700;
    padding: 0.8rem;
    border-radius: 6px;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.login-btn:hover {
    box-shadow: 0 0 15px var(--accent-glow);
    transform: translateY(-1px);
}

.login-error {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 1rem;
    min-height: 1.25em;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-error.visible {
    opacity: 1;
}
