/* =========================================================================
   DESIGN TOKENS & GLOBALS
   ========================================================================= */

   :root {
    --bg-color: #111111;
    --text-primary: #ffffff;
    --accent: #E8590C;
    --orange-light: #FF8040;
    --orange-dark: #B84000;
    --off-white: #F7F6F2;
    --card-bg: #2A2A2A;
    --mid-grey: #555555;
    --border: rgba(255, 255, 255, 0.08);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-mono: 'DM Mono', monospace;

    --ease-out-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

/* =========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================= */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.highlight-orange { color: var(--accent); }
.highlight-white { color: var(--text-primary); font-weight: 600; }
.font-mono { font-family: var(--font-mono); font-size: 0.9em; }
.centered { text-align: center; }

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 4px 14px rgba(232, 89, 12, 0.4);
}

.btn-primary:hover {
    background-color: var(--orange-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 89, 12, 0.6);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

.layout-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 900px) {
    .layout-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .layout-split.reverse .left {
        order: 2;
    }
    .layout-split.reverse .right {
        order: 1;
    }
}

/* =========================================================================
   1. NAVIGATION
   ========================================================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background-color: rgba(17, 17, 17, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wordmark {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.wordmark .takeoff {
    color: var(--text-primary);
}

.wordmark .dot-ai {
    color: var(--orange-light);
}

/* =========================================================================
   2. HERO
   ========================================================================= */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.grid-lines {
    position: absolute;
    inset: 0;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.radial-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232, 89, 12, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cropmark {
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: var(--accent);
    border-style: solid;
    border-width: 0;
    opacity: 0.5;
}

.cropmark.top-left { top: 40px; left: 40px; border-top-width: 2px; border-left-width: 2px; }
.cropmark.top-right { top: 40px; right: 40px; border-top-width: 2px; border-right-width: 2px; }
.cropmark.bottom-left { bottom: 40px; left: 40px; border-bottom-width: 2px; border-left-width: 2px; }
.cropmark.bottom-right { bottom: 40px; right: 40px; border-bottom-width: 2px; border-right-width: 2px; }

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 10;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(232, 89, 12, 0.1);
    color: var(--orange-light);
    border: 1px solid rgba(232, 89, 12, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.badge-dot {
    font-size: 0.5rem;
    animation: blink 2s infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero-title {
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.hero-subtext {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--off-white);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.5;
}

.hero-cta {
    margin-bottom: 3rem;
}

.social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--mid-grey);
    font-size: 0.875rem;
}

.avatars {
    display: flex;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--bg-color);
    margin-left: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
}
.avatar:first-child { margin-left: 0; }

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--mid-grey);
    animation: bounce 2s infinite;
}

@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); } 40% { transform: translateY(-10px) translateX(-50%); } 60% { transform: translateY(-5px) translateX(-50%); } }

/* =========================================================================
   3. STATS STRIP
   ========================================================================= */

.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(42, 42, 42, 0.3);
}

.stat-item {
    padding: 2.5rem 2rem;
    text-align: center;
    border-right: 1px solid var(--border);
}
.stat-item:last-child {
    border-right: none;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--mid-grey);
    font-weight: 500;
}

@media (max-width: 768px) {
    .stats-strip {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-item:nth-child(2) { border-right: none; }
    .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 1px solid var(--border); }
}

/* =========================================================================
   4. HOW IT WORKS
   ========================================================================= */

.steps-list {
    margin-top: 3rem;
}

.steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.steps-list li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 15px;
    width: 2px;
    height: calc(100% - 20px);
    background: var(--border);
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--accent);
    z-index: 2;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.25rem;
    margin: 0;
    padding-top: 2px;
}

/* Terminal Mockup */
.terminal-mockup {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0,0,0,0.5);
}

.terminal-header {
    background: rgba(17,17,17, 0.6);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.dots {
    display: flex;
    gap: 6px;
}
.dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #555;
}
.dots span:nth-child(1) { background: #ff5f56; }
.dots span:nth-child(2) { background: #ffbd2e; }
.dots span:nth-child(3) { background: #27c93f; }

.terminal-title {
    margin-left: auto;
    margin-right: auto;
    color: #888;
    font-size: 0.75rem;
    font-family: var(--font-mono);
}

.terminal-body {
    padding: 1.5rem;
    color: #a0a0a0;
    line-height: 1.7;
    height: 380px;
}

.log-line {
    margin-bottom: 0.5rem;
}

.indent-1 {
    padding-left: 1.5rem;
    color: #ccc;
}

.warning {
    color: #fbbf24;
}

.success {
    color: #34d399;
    margin-top: 1rem;
}

.progress-container {
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-label {
    min-width: 100px;
}

.progress-bar-bg {
    flex-grow: 1;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
}

/* =========================================================================
   5. FEATURES GRID
   ========================================================================= */

.features {
    background: rgba(255,255,255,0.02);
}

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

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(232, 89, 12, 0.4);
}

.feature-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.feature-icon {
    color: var(--accent);
}

.feature-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    background: rgba(232, 89, 12, 0.1);
    color: var(--orange-light);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--mid-grey);
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   6. OUTPUT PREVIEW
   ========================================================================= */

.preview-desc {
    color: var(--off-white);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.check-list svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Excel Mockup */
.excel-mockup {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0,0,0,0.5);
}

.excel-header {
    background: rgba(255,255,255,0.05);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.file-name {
    color: #e0e0e0;
}

.excel-body {
    overflow-x: auto;
}

.excel-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.excel-table th, .excel-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.excel-table th {
    background: rgba(0,0,0,0.2);
    color: #888;
    font-weight: 500;
}

.excel-table td {
    color: #e0e0e0;
}

.excel-table tr:last-child td {
    border-bottom: none;
}
.excel-table th:last-child, .excel-table td:last-child {
    border-right: none;
}

.tag {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.tag-high {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.tag-med {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

/* =========================================================================
   7. TRUST QUOTE
   ========================================================================= */

.trust-quote {
    background: linear-gradient(to right, transparent, rgba(232, 89, 12, 0.03), transparent);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.quote-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 0 2rem;
}

.quote-icon {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

blockquote {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

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

.avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
}

.attr-details {
    text-align: left;
}

.attr-name {
    font-weight: 800;
    color: var(--text-primary);
}

.attr-role {
    font-size: 0.875rem;
    color: var(--mid-grey);
}

/* =========================================================================
   8. FINAL CTA
   ========================================================================= */

.final-cta {
    position: relative;
    text-align: center;
    padding: 8rem 2rem;
    overflow: hidden;
}

.radial-glow-cta {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(232, 89, 12, 0.1) 0%, transparent 60%);
    z-index: -1;
    border-radius: 50%;
}

.cta-subtext {
    font-size: 1.25rem;
    color: var(--off-white);
    opacity: 0.8;
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.cta-actions {
    margin-bottom: 1.5rem;
}

.cta-note {
    font-size: 0.875rem;
    color: var(--mid-grey);
}

.pulse-glow {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(232, 89, 12, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(232, 89, 12, 0); }
    100% { box-shadow: 0 0 0 0 rgba(232, 89, 12, 0); }
}

/* =========================================================================
   9. FOOTER
   ========================================================================= */

footer {
    border-top: 1px solid var(--border);
    padding: 2rem;
    background: #0a0a0a;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wordmark-small {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}
.wordmark-small .takeoff { color: var(--text-primary); }
.wordmark-small .dot-ai { color: var(--orange-light); }

.footer-right p {
    color: var(--mid-grey);
    font-size: 0.875rem;
}

@media (max-width: 600px) {
    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* =========================================================================
   ANIMATIONS & JS CLASSES
   ========================================================================= */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn var(--ease-out-smooth) 0.8s forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

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

/* Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    filter: blur(8px);
    transition: opacity 1s var(--ease-out-smooth), 
                transform 1s var(--ease-out-smooth),
                filter 1s var(--ease-out-smooth);
    will-change: transform, opacity, filter;
}
.scroll-reveal.left { transform: translateX(-40px) scale(0.95); }
.scroll-reveal.right { transform: translateX(40px) scale(0.95); }

.scroll-reveal.visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    filter: blur(0);
}

/* Terminal Animation States */
.log-line { opacity: 0; }
.terminal-progress { width: 0%; transition: width 1s linear; }

/* Let JS add these classes line by line for the typing / sequential effect */
.log-line.show { opacity: 1; animation: flashText 0.1s forwards; }

@keyframes flashText {
    0% { opacity: 0; background-color: rgba(255,255,255,0.2); }
    100% { opacity: 1; background-color: transparent; }
}
