/* KAIROS Signal — Landing Page Styles */
:root {
    --bg: #0f172a;
    --bg-card: #111827;
    --bg-card-hover: #1e293b;
    --border: rgba(255, 255, 255, 0.08);
    --text: #e2e8f0;
    --text-dim: #64748b;
    --text-muted: #d1d5db;
    --accent: #00FFFF;
    --accent-glow: rgba(0, 255, 255, 0.25);
    --accent2: #00CCCC;
    --coral: #FF7F50;
    --teal: #064e3b;
    --green: #22c55e;
    --red: #ef4444;
    --gold: #f59e0b;
    --radius: 12px;
    --radius-lg: 20px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Exo 2', 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ─── Animated Gradient Background ─── */
.animated-gradient-bg {
    background: linear-gradient(270deg, #0f172a, #1e3a8a, #FF7F50, #064e3b, #0f172a);
    background-size: 600% 600%;
    animation: gradientAnimation 25s ease infinite;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

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

/* Nav */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
}

.logo-icon {
    font-size: 1.6rem;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s;
    border: none;
    font-family: inherit;
}

.btn-accent {
    background: var(--accent);
    color: #111;
    font-weight: 700;
}

.btn-accent:hover {
    background: #00CCCC;
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.82rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 255, 0.2);
    padding: 6px 18px;
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 28px;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 255, 0);
    }

    50% {
        box-shadow: 0 0 20px 4px rgba(0, 255, 255, 0.15);
    }
}

.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.stat-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    padding: 12px 24px;
    border-radius: 12px;
    transition: all 0.3s;
}

.stat-pill:hover {
    border-color: var(--accent);
    background: rgba(0, 255, 255, 0.06);
    transform: translateY(-2px);
}

.stat-num {
    font-size: 1.4rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Mini Opt-in */
.hero-optin {
    display: flex;
    gap: 10px;
    justify-content: center;
    max-width: 460px;
    margin: 0 auto 20px;
}

.optin-input {
    flex: 1;
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.optin-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}

.optin-input::placeholder {
    color: var(--text-dim);
}

.disclaimer-small {
    font-size: 0.68rem;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto;
}

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-dark {
    background: rgba(0, 0, 0, 0.25);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.2;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ─── Audience Cards ─── */
.audience-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all 0.3s;
}

.audience-card:hover {
    border-color: rgba(0, 255, 255, 0.3);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.audience-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.audience-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.audience-list {
    list-style: none;
    margin-bottom: 20px;
}

.audience-list li {
    position: relative;
    padding: 6px 0 6px 22px;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.audience-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Feature Cards */
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: rgba(0, 255, 255, 0.3);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 14px;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ─── Data Sample Blocks ─── */
.data-samples-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.data-sample {
    background: #0a0f1a;
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: var(--radius);
    overflow: hidden;
}

.data-sample-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: rgba(0, 255, 255, 0.06);
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.data-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-format {
    font-size: 0.72rem;
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
}

.data-code {
    padding: 18px;
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    line-height: 1.65;
    overflow-x: auto;
    color: var(--text-muted);
}

.data-code code {
    font-family: inherit;
}

.json-key {
    color: #7dd3fc;
}

.json-string {
    color: #86efac;
}

.json-num {
    color: #fcd34d;
}

.json-redacted {
    background: linear-gradient(90deg, rgba(255, 127, 80, 0.3), rgba(0, 255, 255, 0.3));
    color: transparent;
    border-radius: 3px;
    padding: 1px 2px;
    user-select: none;
    animation: redactPulse 4s ease-in-out infinite;
}

@keyframes redactPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.sql-keyword {
    color: #c084fc;
    font-weight: 600;
}

/* ─── Mid-Page CTA ─── */
.mid-cta {
    text-align: center;
    margin-top: 40px;
}

.mid-cta p {
    color: var(--text-muted);
    margin-bottom: 14px;
    font-size: 1rem;
}

/* ─── Math Cards ─── */
.math-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.math-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.3s;
}

.math-card:hover {
    border-color: rgba(0, 255, 255, 0.25);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.math-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.math-equation {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.6;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 14px;
    white-space: nowrap;
    overflow-x: auto;
}

.math-redacted {
    background: linear-gradient(90deg, rgba(255, 127, 80, 0.4), rgba(6, 78, 59, 0.5));
    color: transparent;
    border-radius: 3px;
    padding: 1px 3px;
    user-select: none;
    animation: redactPulse 4s ease-in-out infinite;
}

.math-desc {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.5;
}

/* Refinery */
.refinery {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.refinery-stage {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    flex: 1;
    min-width: 200px;
    transition: all 0.3s;
}

.refinery-stage:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}

.stage-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.stage-0 {
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
}

.stage-1 {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent2);
}

.stage-2 {
    background: rgba(0, 255, 255, 0.15);
    color: var(--accent);
}

.stage-3 {
    background: rgba(245, 158, 11, 0.15);
    color: var(--gold);
}

.refinery-stage h4 {
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.refinery-stage p {
    font-size: 0.78rem;
    color: var(--text-dim);
}

.refinery-arrow {
    font-size: 1.5rem;
    color: var(--text-dim);
    font-weight: 300;
}

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

.data-cta p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* Price Cards */
.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.price-card:hover {
    transform: translateY(-4px);
}

.price-featured {
    border-color: var(--accent);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(0, 255, 255, 0.04) 0%, var(--bg-card) 40%);
}

.price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #111;
    padding: 4px 16px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.price-tier {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.price-amount {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.price-amount span {
    font-size: 1rem;
    color: var(--text-dim);
    font-weight: 400;
}

.price-features {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
}

.price-features li {
    padding: 8px 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* Signup Form */
.signup-form {
    max-width: 640px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
}

.form-input::placeholder {
    color: var(--text-dim);
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
}

.form-consent {
    margin: 14px 0;
    font-size: 0.78rem;
    color: var(--text-dim);
}

.form-consent a {
    color: var(--accent);
}

.form-consent input {
    margin-right: 6px;
}

.form-status {
    text-align: center;
    margin-top: 14px;
    font-size: 0.88rem;
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-top: 8px;
}

.footer-email {
    color: var(--accent);
    font-size: 0.85rem;
    margin-top: 4px;
}

.footer-links h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-bottom: 14px;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--text-dim);
}

.footer-disclaimer {
    margin-top: 12px;
    font-size: 0.68rem;
    color: rgba(100, 116, 139, 0.7);
    line-height: 1.6;
    max-width: 800px;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(18, 18, 26, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 16px 24px;
}

.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-inner p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.cookie-inner a {
    color: var(--accent);
}

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .math-grid {
        grid-template-columns: 1fr;
    }

    .data-samples-grid {
        grid-template-columns: 1fr;
    }
}

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

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg);
        padding: 20px;
        flex-direction: column;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 10px;
    }

    .stat-pill {
        padding: 10px 16px;
    }

    .hero-optin {
        flex-direction: column;
        align-items: stretch;
    }

    .form-row {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .refinery {
        flex-direction: column;
    }

    .refinery-arrow {
        transform: rotate(90deg);
    }

    .cookie-inner {
        flex-direction: column;
        text-align: center;
    }

    .math-equation {
        font-size: 0.75rem;
        white-space: normal;
        word-break: break-word;
    }
}

/* Animations */
@keyframes float {

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

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

.feature-card:nth-child(2) {
    animation: float 6s ease-in-out infinite;
    animation-delay: 1s;
}

.feature-card:nth-child(4) {
    animation: float 6s ease-in-out infinite;
    animation-delay: 2s;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Selection */
::selection {
    background: rgba(124, 58, 237, 0.4);
}