/* Buttons */
.btn {
    padding: 1rem 2rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: #000;
    box-shadow: var(--shadow-glow);
}

html[data-theme="light"] .btn-primary {
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
}

/* Hero Section */
.hero-command-center {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 4rem 2rem;
    gap: 4rem;
}

.hero-split {
    flex: 1;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-title {
    font-size: 4.5rem;
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 90%;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Command Interface */
.command-interface {
    display: flex;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-surface);
    height: 450px;
}

.command-sidebar {
    width: 220px;
    background: var(--bg-elevated);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
}

.cmd-btn {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 1.2rem 1rem;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s;
}

.cmd-btn:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
}

.cmd-btn.active {
    background: var(--bg-surface);
    color: var(--accent-primary);
    border-left: 3px solid var(--accent-primary);
}

.command-display {
    flex: 1;
    position: relative;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.workflow-canvas {
    width: 100%;
    height: 100%;
    position: relative;
}

.workflow-svg {
    width: 100%;
    height: 100%;
}

.path-wireframe {
    stroke: var(--border-strong);
    stroke-width: 2;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.node {
    fill: var(--bg-elevated);
    stroke: var(--accent-primary);
    stroke-width: 2;
}

.central-node {
    stroke: var(--accent-secondary);
    stroke-width: 3;
}

.status-overlay {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    font-family: 'Outfit', monospace;
    font-size: 0.9rem;
    color: var(--accent-primary);
    background: var(--bg-elevated);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
}

/* ROI Section */
.roi-section {
    padding: 6rem 4rem;
    background: var(--bg-elevated);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header .highlight {
    color: var(--accent-secondary);
}

.calculator-widget {
    display: flex;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-surface);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-surface);
    border: 1px solid var(--border-subtle);
}

.calc-inputs {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-weight: 600;
    color: var(--text-secondary);
}

.input-group input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    background: var(--bg-elevated);
    height: 8px;
    border-radius: 4px;
    outline: none;
}

.input-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-primary);
    cursor: pointer;
    box-shadow: var(--shadow-glow);
}

.value-display {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-primary);
    align-self: flex-end;
}

.calc-visualizer {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 300px;
}

#roi-canvas {
    width: 100%;
    height: 250px;
}

.roi-results {
    margin-top: 2rem;
    text-align: center;
}

.roi-results h3 {
    color: var(--text-secondary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.savings-amount {
    font-size: 4rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, var(--accent-primary), #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0,255,136,0.2);
}

/* About Page */
.about-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 4rem 4rem;
    background: radial-gradient(circle at center, var(--bg-elevated) 0%, var(--bg-base) 100%);
}

.about-hero-content {
    max-width: 800px;
}

.about-hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.about-hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.timeline-section {
    padding: 6rem 2rem;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8rem;
    padding: 4rem 0;
}

.timeline-wire {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100%;
    z-index: 0;
}

#timeline-path {
    stroke: var(--accent-primary);
    stroke-width: 4;
    stroke-linecap: round;
    /* initial state for scroll drawing */
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
}

.timeline-node {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.node-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--bg-surface);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.node-content {
    width: 45%;
    background: var(--bg-elevated);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-surface);
    opacity: 0; /* For scroll animation */
    transform: translateY(30px);
}

.node-content.left-align {
    margin-right: auto;
    text-align: right;
}

.node-content.right-align {
    margin-left: auto;
    text-align: left;
}

.node-content h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.node-content p {
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .timeline-wire {
        left: 30px;
    }
    .node-marker {
        left: 30px;
    }
    .node-content {
        width: 80%;
        margin-left: auto !important;
        text-align: left !important;
    }
}

/* Services & Portfolio Page */
.services-hero {
    padding: 10rem 4rem 4rem;
    text-align: center;
}

.services-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.services-hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2rem 4rem 8rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-surface);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.large-card {
    grid-column: span 2;
    flex-direction: row;
    min-height: 400px;
}

.large-card.reverse-layout {
    flex-direction: row-reverse;
}

.card-content {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-content h2 {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card-content h2 svg {
    color: var(--accent-primary);
    width: 32px;
    height: 32px;
}

.card-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-list li svg {
    color: var(--accent-secondary);
    width: 20px;
    height: 20px;
}

.card-visual {
    flex: 1;
    background: var(--bg-elevated);
    border-left: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
    overflow: hidden;
}

.large-card.reverse-layout .card-visual {
    border-left: none;
    border-right: 1px solid var(--border-subtle);
}

/* Live Mockups */
.live-mockup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    height: 100%;
}

.flow-node {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-glow);
    z-index: 2;
}

.webhook-node { border-color: var(--accent-primary); color: var(--accent-primary); }
.api-node { border-color: var(--accent-secondary); color: var(--accent-secondary); }
.db-node { border-color: #00ff88; color: #00ff88; }

.flow-wire {
    width: 60px;
    height: 20px;
    overflow: visible;
}

.wire-path {
    stroke: var(--border-subtle);
    stroke-width: 2;
    fill: none;
}

.wire-packet {
    fill: var(--accent-primary);
}

/* Voice Analyzer Mockup */
.voice-analyzer {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 60px;
}

.voice-analyzer .bar {
    width: 10px;
    background: var(--accent-secondary);
    border-radius: 5px;
    box-shadow: 0 0 10px var(--accent-secondary);
    height: 10px; /* animated via js */
}

/* Chat Mockup */
.visual-chat {
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 3rem;
}

.chat-mockup {
    width: 80%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-bubble {
    padding: 1rem 1.5rem;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    max-width: 80%;
}

.user-bubble {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.ai-bubble {
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.typing {
    display: flex;
    gap: 4px;
    align-items: center;
    height: 40px;
}

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

/* Complex Node Grid */
.n8n-complex .node-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.node-row {
    display: flex;
    justify-content: center;
    gap: 4rem;
    z-index: 2;
}

.node-row.double {
    gap: 2rem;
}

.split-row {
    height: 60px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.split-wire {
    width: 150px;
    height: 60px;
    overflow: visible;
}

.wire-path-branch {
    stroke: var(--border-subtle);
    stroke-width: 2;
    fill: none;
}

.branch-packet-1, .branch-packet-2 {
    fill: var(--accent-secondary);
}

@media (max-width: 900px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .large-card, .large-card.reverse-layout {
        grid-column: span 1;
        flex-direction: column;
    }
    .card-visual {
        border-left: none;
        border-top: 1px solid var(--border-subtle);
        min-height: 250px;
    }
}

/* Contact & Onboarding Page */
.contact-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 4rem 4rem;
}

.onboarding-section {
    width: 100%;
    max-width: 1200px;
}

.onboarding-container {
    display: flex;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    box-shadow: var(--shadow-surface);
    overflow: hidden;
    min-height: 600px;
}

.form-wrapper {
    flex: 1.5;
    padding: 4rem;
    position: relative;
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

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

.form-step h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.form-step p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.form-step .input-group input[type="text"],
.form-step .input-group input[type="email"],
.form-step .input-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
    outline: none;
}

.form-step .input-group input:focus,
.form-step .input-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.btn i {
    width: 18px;
    height: 18px;
    margin-left: 8px;
    vertical-align: middle;
}

.radio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.custom-radio input {
    display: none;
}

.radio-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    font-weight: 500;
}

.radio-card i {
    width: 32px;
    height: 32px;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.custom-radio input:checked + .radio-card {
    border-color: var(--accent-primary);
    background: rgba(0, 229, 255, 0.05);
    box-shadow: var(--shadow-glow);
}

.custom-radio input:checked + .radio-card i {
    color: var(--accent-primary);
}

.custom-radio:hover .radio-card {
    border-color: rgba(255, 255, 255, 0.3);
}

.form-actions {
    display: flex;
    gap: 1rem;
}

.success-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.success-pulse {
    width: 80px;
    height: 80px;
    color: #00ff88;
    filter: drop-shadow(0 0 15px rgba(0, 255, 136, 0.5));
    animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* AI Status Avatar Sidebar */
.avatar-sidebar {
    flex: 1;
    background: var(--bg-elevated);
    border-left: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.avatar-visual {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}

.ai-orb {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orb-core {
    width: 40px;
    height: 40px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 30px var(--accent-primary);
    z-index: 2;
    transition: background 0.5s, box-shadow 0.5s;
}

.orb-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--accent-primary);
    opacity: 0.5;
    transition: border-color 0.5s;
}

.ring-1 {
    width: 100px;
    height: 100px;
    animation: rotate 10s linear infinite;
    border-top: 2px solid transparent;
}

.ring-2 {
    width: 140px;
    height: 140px;
    animation: rotate 15s linear infinite reverse;
    border-bottom: 2px solid transparent;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.avatar-dialogue {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 1.5rem;
    border-radius: 12px;
    position: relative;
    width: 100%;
}

.avatar-dialogue::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 10px 10px 10px;
    border-style: solid;
    border-color: transparent transparent var(--border-subtle) transparent;
}

.avatar-dialogue::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 9px 9px 9px;
    border-style: solid;
    border-color: transparent transparent var(--bg-surface) transparent;
}

#ai-dialogue-text {
    font-family: 'Outfit', monospace;
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 900px) {
    .onboarding-container {
        flex-direction: column-reverse;
    }
    .avatar-sidebar {
        border-left: none;
        border-bottom: 1px solid var(--border-subtle);
        padding: 2rem;
    }
    .avatar-visual {
        width: 120px;
        height: 120px;
        margin-bottom: 1.5rem;
    }
    .form-wrapper {
        padding: 2rem;
    }
}

/* Calculator Tabs */
.calculator-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.calc-tab {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calc-tab:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.calc-tab.active {
    background: var(--bg-elevated);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

/* Deployment Pipeline */
.deployment-pipeline {
    padding: 6rem 4rem;
    background: var(--bg-default);
    border-top: 1px solid var(--border-subtle);
}

.pipeline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pipeline-step {
    background: var(--bg-surface);
    padding: 3rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.pipeline-step:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.step-number {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    color: var(--bg-elevated);
    position: absolute;
    top: -20px;
    right: 20px;
    line-height: 1;
    text-shadow: 1px 1px 0 var(--border-subtle);
}

.pipeline-step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
}

.pipeline-step p {
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* CTA Section */
.cta-section {
    padding: 8rem 4rem;
    background: linear-gradient(180deg, var(--bg-default) 0%, var(--bg-surface) 100%);
    text-align: center;
    border-top: 1px solid var(--border-subtle);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-family: 'Outfit', sans-serif;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.cta-btn {
    font-size: 1.1rem;
    padding: 1.25rem 2.5rem;
    box-shadow: var(--shadow-glow);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 15px rgba(0, 229, 255, 0.4); }
    50% { box-shadow: 0 0 30px rgba(0, 229, 255, 0.8); }
    100% { box-shadow: 0 0 15px rgba(0, 229, 255, 0.4); }
}

/* Footer */
.site-footer {
    padding: 4rem;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-subtle);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #00ff88;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

.footer-nav h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-nav a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.3s;
}

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

.footer-copy {
    text-align: right;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .pipeline-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .footer-copy {
        text-align: center;
    }
    .status-indicator {
        justify-content: center;
    }
}

/* Voice Connection Component */
.voice-connection {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 1rem;
}

.voice-connection .node-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-elevated);
    border: 1px solid var(--accent-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.2);
    color: var(--accent-secondary);
}

.voice-connection .node-icon i {
    width: 32px;
    height: 32px;
}

.voice-analyzer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 60px;
    flex-grow: 1;
    margin: 0 1rem;
}

.voice-analyzer .bar {
    width: 6px;
    height: 10px;
    background: var(--accent-secondary);
    border-radius: 3px;
    animation: wave 1s infinite alternate ease-in-out;
}
.voice-analyzer .bar:nth-child(even) { background: var(--accent-primary); }

@keyframes wave {
    0% { height: 10px; }
    100% { height: 50px; }
}

/* Interactive Chat Mockup */
.interactive-chat {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    min-height: 250px;
    overflow: hidden;
}

.chat-bubble {
    padding: 0.75rem 1.25rem;
    border-radius: 16px;
    max-width: 80%;
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(10px);
}

.user-bubble {
    align-self: flex-end;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    border-bottom-right-radius: 4px;
}

.ai-bubble {
    align-self: flex-start;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid var(--accent-primary);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.typing-indicator .dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-primary);
    margin-right: 3px;
    animation: typing 1.4s infinite ease-in-out;
}
.typing-indicator .dot:nth-child(1) { animation-delay: 0s; }
.typing-indicator .dot:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Custom Dropdown & Calendar Wizard */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}
.custom-dropdown {
    appearance: none;
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
}
.select-icon {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-secondary);
}

.calendar-widget {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 600;
}

.cal-nav {
    cursor: pointer;
    color: var(--text-secondary);
}
.cal-nav:hover { color: var(--accent-primary); }

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    text-align: center;
}

.cal-day-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.cal-day {
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.cal-day:hover:not(.disabled) {
    border-color: var(--accent-primary);
}
.cal-day.active {
    background: var(--accent-primary);
    color: #000;
    font-weight: bold;
}
.cal-day.disabled {
    color: var(--text-secondary);
    opacity: 0.3;
    cursor: not-allowed;
}

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

.time-chip input { display: none; }
.time-chip span {
    display: block;
    text-align: center;
    padding: 0.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.time-chip input:checked + span {
    background: rgba(0, 229, 255, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.1);
}

/* Contact Specific Fixes */
.contact-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.contact-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.1);
}

/* ── STEP PANE BASE ───────────────────────────────────── */
.step-pane {
    display: none;
    animation: stepFadeIn 0.35s ease forwards;
}
.step-pane.active {
    display: block;
}
@keyframes stepFadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

.step-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.field-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

/* ── WIZARD PROGRESS BAR ──────────────────────────────── */
.wizard-progress {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 2.5rem;
}

.wp-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.wp-step span {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: all 0.4s;
}

.wp-step p {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.4s;
}

.wp-step.active span {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 12px var(--accent-glow);
}

.wp-step.active p {
    color: var(--accent-primary);
}

.wp-connector {
    flex: 1;
    height: 2px;
    background: var(--border-subtle);
    margin: 0 8px;
    margin-bottom: 18px;
    transition: background 0.4s;
}

.wp-connector.active {
    background: var(--accent-primary);
    box-shadow: 0 0 6px var(--accent-glow);
}

/* ── WIZARD BUTTONS ───────────────────────────────────── */
.wizard-next-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.85rem 2rem;
    background: var(--accent-primary);
    color: #0a0a0f;
    border: none;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}
.wizard-next-btn:hover {
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}

.wizard-back-btn {
    padding: 0.85rem 1.5rem;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}
.wizard-back-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.wizard-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #0a0a0f;
    border: none;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 0 24px var(--accent-glow);
}
.wizard-submit-btn:hover {
    box-shadow: 0 0 40px var(--accent-glow);
    transform: translateY(-3px) scale(1.02);
}

/* ── FUTURISTIC SELECT ────────────────────────────────── */
.futuristic-select {
    width: 100%;
    padding: 1rem 2.5rem 1rem 1.25rem;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

/* ── CALENDAR MATRIX ──────────────────────────────────── */
.calendar-matrix-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 4px;
}

.calendar-matrix-header span {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    padding: 4px 0;
}

.calendar-matrix-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin: 0 0 0.5rem;
}

.calendar-day-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    transition: all 0.2s ease;
    user-select: none;
}

.calendar-day-cell:hover:not(.disabled) {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(0, 229, 255, 0.06);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.12);
}

.calendar-day-cell.selected {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #0a0a0f;
    font-weight: 700;
    box-shadow: 0 0 14px var(--accent-glow);
}

.calendar-day-cell.disabled {
    opacity: 0.2;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── CLOCK SLOTS ARRAY ────────────────────────────────── */
.clock-slots-array {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.time-slot-chip {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.time-slot-chip:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.time-slot-chip.selected {
    background: rgba(0, 229, 255, 0.12);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.15);
    font-weight: 700;
}

/* ── SUCCESS STATE ────────────────────────────────────── */
.success-icon-wrapper {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.success-pulse {
    width: 64px;
    height: 64px;
    color: #00ff88;
    filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.6));
    animation: successPop 0.5s ease forwards;
}

@keyframes successPop {
    0%   { transform: scale(0.3); opacity: 0; }
    70%  { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

/* Technical Footer */
.tech-footer {
    position: relative;
    padding: 4rem 2rem 2rem;
    background-color: var(--bg-base);
    border-top: 1px solid var(--border-subtle);
    color: var(--text-primary);
    overflow: hidden;
}

.tech-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
    pointer-events: none;
}

.footer-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand-pane .brand-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.footer-brand-pane .brand-subtext {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.system-monitor {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #00ff88;
}

.status-dot.pulsing {
    animation: heartBeatPulse 2s infinite;
}

@keyframes heartBeatPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7), 0 0 0 0 rgba(0, 255, 136, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(0, 255, 136, 0), 0 0 0 12px rgba(0, 255, 136, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0), 0 0 0 0 rgba(0, 255, 136, 0); }
}

.live-metrics-feed {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--accent-secondary);
    opacity: 0.8;
}

.footer-nav-pane h4 {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.futuristic-links {
    list-style: none;
    padding: 0;
}

.futuristic-links li {
    margin-bottom: 0.75rem;
}

.nav-item-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.nav-item-link::before,
.nav-item-link::after {
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--accent-primary);
    font-family: monospace;
}

.nav-item-link::before {
    content: '[';
    transform: translateX(10px);
    margin-right: 4px;
}

.nav-item-link::after {
    content: ']';
    transform: translateX(-10px);
    margin-left: 4px;
}

.nav-item-link:hover {
    color: var(--accent-primary);
}

.nav-item-link:hover::before,
.nav-item-link:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.footer-copyright-pane {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    text-align: right;
    gap: 1.5rem;
}

.crypto-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-copyright-pane {
        justify-content: flex-start;
        text-align: left;
    }
}

/* ── ALTERNATING TIMELINE (ABOUT PAGE) ───────────────── */
.alt-timeline {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.alt-node {
    display: flex;
    width: 100%;
    align-items: stretch;
    min-height: 150px;
}

.alt-spacer {
    flex: 1;
}

.alt-spine {
    width: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex-shrink: 0;
    margin: 0 2rem;
}

.alt-line {
    width: 2px;
    flex: 1;
    background: var(--border-subtle);
}

.alt-marker {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 2px solid var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
    z-index: 2;
    margin: 0.5rem 0;
}

.alt-card {
    flex: 1;
    display: flex;
    align-items: center;
}

.alt-node[data-side="left"] .alt-card {
    justify-content: flex-end;
    text-align: right;
}

.alt-node[data-side="right"] .alt-card {
    justify-content: flex-start;
    text-align: left;
}

.alt-card-inner {
    background: var(--bg-elevated);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    max-width: 400px;
    position: relative;
}

.alt-step-num {
    position: absolute;
    top: -15px;
    font-family: monospace;
    font-size: 1.2rem;
    color: var(--accent-primary);
    background: var(--bg-base);
    padding: 0 10px;
    font-weight: 700;
}

.alt-node[data-side="left"] .alt-step-num {
    right: 20px;
}

.alt-node[data-side="right"] .alt-step-num {
    left: 20px;
}

.alt-card-inner h4 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.alt-card-inner p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Intersection Observer Classes */
.tl-card-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.tl-card-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .alt-node {
        flex-direction: column;
    }
    .alt-node[data-side="left"], .alt-node[data-side="right"] {
        flex-direction: row;
    }
    .alt-spacer {
        display: none;
    }
    .alt-spine {
        margin: 0 1rem 0 0;
    }
    .alt-node[data-side="left"] .alt-card, .alt-node[data-side="right"] .alt-card {
        justify-content: flex-start;
        text-align: left;
    }
    .alt-node[data-side="left"] .alt-step-num {
        right: auto;
        left: 20px;
    }
}

/* ── NEWSLETTER FOOTER COMPONENT ──────────────────────── */
.footer-subscribe-box {
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.02);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    text-align: left;
}

.footer-subscribe-box h5 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-mini-form {
    display: flex;
    gap: 0.5rem;
}

.footer-mini-form input {
    flex: 1;
    background: #16161a;
    color: #fff;
    border: 1px solid #2a2a35;
    padding: 10px 15px;
    border-radius: 4px;
    outline: none;
    font-size: 0.85rem;
}

.footer-mini-form input:focus {
    border-color: var(--accent-primary);
}

.footer-form-btn {
    background: var(--accent-primary);
    color: #000;
    border: none;
    padding: 0 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.footer-form-btn:hover {
    box-shadow: 0 0 15px var(--accent-glow);
}

.footer-synced {
    color: var(--accent-primary);
    font-family: monospace;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    height: 100%;
}
