:root {
    /* Color Palette - Modern Blue SaaS */
    --primary: hsl(220, 90%, 56%);
    /* Vibrant Blue */
    --primary-hover: hsl(220, 90%, 46%);
    --secondary: hsl(190, 80%, 50%);
    /* Cyan/Electric Blue Accent */
    --bg-dark: hsl(222, 47%, 11%);
    /* Deep Navy Background */
    --bg-card: hsl(217, 33%, 17%);
    /* Lighter Navy for cards */
    --text-main: hsl(210, 40%, 98%);
    /* White/Off-white */
    --text-muted: hsl(215, 20%, 75%);
    /* Grey-ish blue */
    --border-color: hsl(217, 33%, 25%);

    /* Syntax Highlighting Colors */
    --code-bg: #0d1117;
    --code-keyword: #ff7b72;
    --code-string: #a5d6ff;
    --code-comment: #8b949e;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent horizontal scroll from animations */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Navbar */
.navbar {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    /* Compatibility fix */
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a:not(.btn) {
    color: var(--text-muted);
}

.nav-links a:not(.btn):hover {
    color: var(--text-main);
}

.eyebrow {
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    background: radial-gradient(circle at top center, hsl(220, 90%, 20%) 0%, var(--bg-dark) 40%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
}

.hero-title .highlight {
    color: var(--secondary);
    position: relative;
    display: inline-block;
}

/* Underline effect for highlight */
.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--secondary);
    opacity: 0.3;
    transform: skewX(-15deg);
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 500px;
}

.hero-checklist {
    margin-bottom: 40px;
}

.cta-note {
    display: block;
    margin-top: 12px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Code Window */
.code-window {
    background: var(--code-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    font-family: 'Roboto Mono', monospace;
}

.window-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.file-name {
    margin-left: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

pre {
    padding: 24px;
    overflow-x: auto;
}

code {
    color: var(--text-main);
    font-size: 0.9rem;
}

.comment {
    color: var(--code-comment);
    font-style: italic;
}

.keyword {
    color: var(--code-keyword);
}

.string {
    color: var(--code-string);
}

/* Social Proof */
.social-proof {
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.social-proof p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    opacity: 0.6;
}

.logo-text {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Basic Grid for future sections */
.section {
    padding: 80px 0;
}

.section-dark {
    background: rgba(0, 0, 0, 0.2);
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 16px;
}

.badge-red {
    background: rgba(255, 95, 86, 0.1);
    color: #ff5f56;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 16px;
}

.badge-blue {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 16px;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

/* Cards */
.card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-danger {
    border-top: 4px solid #ff5f56;
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Feature Rows */
.feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
}

.feature-visual {
    flex: 1;
}

.feature-content h3 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--text-main);
}

.feature-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.check-list li {
    position: relative;
    padding-left: 24px;
    color: var(--text-main);
    font-weight: 500;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

.small-window {
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.small-window:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* Steps / How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

.step-card {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1;
}

.tech-summary {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--secondary);
}

/* ROI Table */
.roi-table-container {
    overflow-x: auto;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 24px;
}

.roi-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.roi-table th {
    text-align: left;
    padding: 16px;
    border-bottom: 2px solid var(--border-color);
    font-size: 1.1rem;
    color: var(--text-main);
}

.roi-table td {
    padding: 20px 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
    color: var(--text-muted);
}

.roi-table tr:last-child td {
    border-bottom: none;
}

.negative strong {
    color: #ff5f56;
}

.positive strong {
    color: var(--secondary);
}

/* FAQ Styles */
.faq-grid {
    display: grid;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.faq-item h3 {
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: var(--text-main);
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Pricing Styles */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.pricing-card {
    background: var(--bg-card);
    padding: 40px 32px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-card.highlight-plan {
    border: 1px solid var(--primary);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.1);
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.plan-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.plan-period {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 32px;
    display: block;
}

.plan-features {
    text-align: left;
    margin-bottom: 40px;
    flex: 1;
}

.plan-features li {
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-features li::before {
    content: '•';
    color: var(--primary);
    font-size: 1.5rem;
    line-height: 0.5;
}

.cta-section {
    text-align: center;
    padding: 100px 0;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 24px;
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-container>div {
        min-width: 0;
    }

    .hero-visual {
        width: 100%;
    }

    .code-window {
        max-width: 100%;
        text-align: left;
    }

    .hero {
        padding-top: calc(var(--header-height) + 30px);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        margin: 0 auto 30px auto;
    }

    .hero-checklist {
        display: inline-block;
        text-align: left;
    }

    .nav-links {
        display: none;
        /* simple hide for now */
    }

    .feature-row {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .feature-row.reverse {
        flex-direction: column;
    }

    .small-window {
        transform: none;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .step-number {
        font-size: 3rem;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.modal-overlay.open .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-main);
}

.modal-header h2 {
    margin-bottom: 8px;
    font-size: 1.8rem;
}

.modal-header p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.modal-form {
    flex-direction: column;
}

.modal-form .email-input {
    width: 100%;
}

.modal-form .btn {
    width: 100%;
}

.modal-success {
    color: var(--secondary);
    font-weight: bold;
    margin-top: 16px;
}

/* Feature Navigation */
.feature-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.feature-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.feature-nav-btn:hover {
    background: var(--bg-card);
    border-color: var(--secondary);
    color: var(--text-main);
    transform: translateY(-2px);
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #27c93f;
    /* Green */
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    font-weight: 600;
    transform: translateX(120%);
    transition: transform 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-notification.show {
    transform: translateX(0);
}



.btn-icon {
    font-size: 1.2rem;
}

/* Feature Content Deep Dive */
/* ... existing styles ... */

/* Updated How It Works Styles */
.step-number {
    font-size: 3rem;
    /* Adjusted for emojis */
    opacity: 1;
    /* Emojis don't need opacity */
    top: 20px;
    right: 20px;
}

.step-card h3 {
    margin-top: 40px;
    /* Make room for icon */
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.step-meta {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.step-list {
    margin-top: 12px;
    list-style: disc;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.step-list li {
    margin-bottom: 8px;
}

.step-list strong {
    color: var(--text-main);
}

.step-note {
    margin-top: 16px;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-muted);
    border-left: 2px solid var(--border-color);
    padding-left: 12px;
}

.feature-content h3 {
    font-size: 1.1rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.feature-content h4 {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 16px;
    line-height: 1.3;
}

.feature-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* Live Intercept Card */
.live-intercept-card {
    background: #000;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    width: 100%;
    text-align: left;
}

.card-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.chat-log {
    padding: 20px;
    background: #0d1117;
}

.msg {
    margin-bottom: 12px;
    line-height: 1.5;
}

.msg .label {
    font-weight: bold;
    margin-right: 8px;
}

.msg.user {
    color: #a5d6ff;
}

.msg.user .label {
    color: #58a6ff;
}

.msg.bot-thinking {
    color: var(--text-muted);
    font-style: italic;
    opacity: 0.7;
}

.msg.system {
    color: #7ee787;
    margin-top: 12px;
}

.msg.system .label {
    color: #2ea043;
}

/* Guardrail Alert */
.guardrail-alert {
    background: rgba(40, 44, 52, 1);
    border-left: 4px solid;
    padding: 12px;
    margin: 16px 0;
    font-size: 0.85rem;
}

.guardrail-alert.blocked {
    border-color: #ff5f56;
    background: rgba(255, 95, 86, 0.05);
}

.guardrail-alert.flagged {
    border-color: #ffbd2e;
    background: rgba(255, 189, 46, 0.05);
}

.alert-header {
    font-weight: bold;
    margin-bottom: 8px;
}

.blocked .alert-header {
    color: #ff5f56;
}

.flagged .alert-header {
    color: #ffbd2e;
}

.alert-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--text-muted);
}

.alert-details span::before {
    content: '> ';
    opacity: 0.5;
}

@media (min-width: 1024px) {
    .live-intercept-card {
        transform: rotate(-1.5deg);
        transition: transform 0.4s ease;
    }

    .feature-row.reverse .live-intercept-card {
        transform: rotate(1.5deg);
    }

    .live-intercept-card:hover,
    .feature-row.reverse .live-intercept-card:hover {
        transform: rotate(0deg);
    }
}

@media (max-width: 768px) {
    .feature-content h4 {
        font-size: 1.5rem;
    }
}

/* Waitlist Form */
.waitlist-form {
    display: flex;
    justify-content: center;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto;
}

.email-input {
    padding: 16px 20px;
    /* Increased padding */
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 1rem;
    flex: 1;
    min-width: 250px;
    margin-right: 0;
    /* Handled by gap, but good to reset */
}

/* Modal specific adjustment */
.modal-form .email-input {
    margin-bottom: 16px;
    /* User asked for margins, likely for stacking in modal or general feeling */
}

.email-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

@media (max-width: 600px) {
    .waitlist-form {
        flex-direction: column;
        align-items: stretch;
    }

    .email-input {
        width: 100%;
        margin-bottom: 16px;
        /* Stacked layout needs margin */
    }
}