/* =========================================
   Homepage Hero Section
   ========================================= */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
}

.hero-content {
    max-width: 850px;
}

.hero-badge {
    background: rgba(56, 189, 248, 0.1);
    color: var(--sky-blue);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(56, 189, 248, 0.2);
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.8rem;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.hero-actions > * {
    margin: 0 0.5rem;
}

/* =========================================
   Dual-Track Tech Marquee
   ========================================= */
.tech-marquee-wrapper {
    width: 100%;
    background: rgba(11, 15, 25, 0.95);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.marquee-track {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.marquee-content {
    display: inline-block;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    width: max-content;
}

.marquee-content span {
    margin: 0 2rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Add a subtle glow on hover to match the premium feel */
.marquee-content span:hover {
    color: var(--text-main);
    text-shadow: 0 0 8px var(--sky-blue);
}

.marquee-content .dot {
    color: var(--purpleish);
    margin: 0;
}

/* Track 1 moves left */
.scroll-left {
    animation: scrollLeft 25s linear infinite;
}

/* Track 2 moves right */
.scroll-right {
    animation: scrollRight 25s linear infinite;
    color: rgba(156, 163, 175, 0.8); /* Slightly dimmer for depth */
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* =========================================
   Homepage Services Overview
   ========================================= */
.services-overview {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

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

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 16px;
    backdrop-filter: blur(8px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1; /* Keep text above the light */
}

/* The hidden light source */
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    pointer-events: none;
}

/* Turn on the light and lift the card on hover */
.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(56, 189, 248, 0.6);
    /* Outer glow + inner reflection */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(56, 189, 248, 0.05);
}

.service-card:hover::before {
    opacity: 1; /* Light fades in */
}

/* Unique light color for the Enterprise card */
.service-card.enterprise::before {
    background: radial-gradient(circle at 50% 0%, rgba(134, 239, 172, 0.15), transparent 70%);
}

.service-card.enterprise:hover {
    border-color: var(--pastel-green);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(134, 239, 172, 0.05);
}

.premium-tag {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, var(--purpleish), var(--royal-blue));
    color: #fff;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* =========================================
   Service Card Features & Pricing Additions
   ========================================= */
.card-features {
    list-style: none;
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-grow: 1; /* Pushes the pricing and button to the bottom evenly */
}

.card-features li {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.card-features li::before {
    content: "✦";
    color: var(--sky-blue);
    font-size: 0.8rem;
    margin-right: 0.75rem;
}

.card-pricing {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

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

.price-amount {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}

.price-term {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.btn-full {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: auto;
}

/* Old links retained in case you need them elsewhere */
.tier-badge {
    display: block;
    font-size: 0.8rem;
    color: var(--sky-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.card-link {
    color: var(--pastel-green);
    text-decoration: none;
    font-weight: 600;
    transition: padding-left 0.2s;
}

.service-card:hover .card-link {
    padding-left: 5px;
}

/* =========================================
   Featured Architectures (Clinical Portfolio)
   ========================================= */
.architectures-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

.arch-case {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-bottom: 6rem;
    align-items: center;
}

@media (min-width: 900px) {
    .arch-case {
        flex-direction: row;
    }
    .arch-case.reverse {
        flex-direction: row-reverse;
    }
    .arch-visual, .arch-content {
        flex: 1;
    }
}

.arch-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.inline-tag {
    position: relative;
    top: 0; right: 0;
    align-self: flex-start;
    margin-bottom: 1rem;
}

.arch-content h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.arch-scope {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.arch-scope strong {
    color: var(--sky-blue);
}

.arch-mechanics {
    margin-bottom: 2rem;
    border-top: none; /* Override standard card feature border */
    padding-top: 0;
}

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

.tech-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.arch-case:hover .tech-badge {
    border-color: rgba(134, 239, 172, 0.3);
    color: var(--pastel-green);
}

/* =========================================
   Interactive CSS Graphics (Node Networks)
   ========================================= */
.arch-visual {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.5);
}

/* Subtle grid background for the clinical blueprint feel */
.arch-visual::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 0;
}

.node-network, .pipeline-network {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.pipeline-network {
    flex-direction: row;
    justify-content: space-between;
}

.node {
    background: var(--bg-dark);
    border: 1px solid var(--sky-blue);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
    transition: all 0.4s ease;
    text-align: center;
}

.arch-case:hover .node {
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.6);
    border-color: var(--pastel-green);
    transform: scale(1.05);
}

.client-nodes {
    display: flex;
    gap: 2rem;
    width: 100%;
    justify-content: center;
}

/* Data Streams & Animations */
.data-stream {
    background: rgba(255,255,255,0.1);
    position: relative;
}

.data-stream.vertical {
    width: 2px;
    height: 40px;
}

.data-stream.horizontal-split {
    width: 60%;
    height: 40px;
    border-top: 2px solid rgba(255,255,255,0.1);
    border-left: 2px solid rgba(255,255,255,0.1);
    border-right: 2px solid rgba(255,255,255,0.1);
    margin-bottom: -2px; /* connects visually */
}

/* The glowing data packet moving through the network */
.data-stream.vertical::after {
    content: '';
    position: absolute;
    top: 0; left: -2px;
    width: 6px; height: 6px;
    background: var(--pastel-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--pastel-green);
    animation: flowDown 2s infinite linear;
}

.data-pulse {
    height: 2px;
    width: 40px;
    background: rgba(255,255,255,0.1);
    position: relative;
}

.data-pulse::after {
    content: '';
    position: absolute;
    top: -2px; left: 0;
    width: 6px; height: 6px;
    background: var(--purpleish);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--purpleish);
    animation: flowRight 1.5s infinite linear;
}

@keyframes flowDown {
    0% { top: 0; opacity: 1; }
    90% { top: 100%; opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

@keyframes flowRight {
    0% { left: 0; opacity: 1; }
    90% { left: 100%; opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* =========================================
   The Founder's Ethos Section
   ========================================= */
.ethos-section {
    width: 100%;
    background: linear-gradient(to bottom, var(--bg-dark) 0%, rgba(20, 27, 45, 0.4) 50%, var(--bg-dark) 100%);
    border-top: 1px solid rgba(124, 58, 237, 0.1);
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
    padding: 4rem 2rem 6rem;
    position: relative;
}

/* Subtle background accent */
.ethos-section::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60%; height: 60%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.05) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.ethos-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 900px) {
    .ethos-container {
        flex-direction: row;
        align-items: center;
        gap: 6rem;
    }
    .ethos-intro {
        flex: 1;
        padding-right: 2rem;
    }
    .ethos-pillars {
        flex: 1.2;
    }
}

.ethos-intro h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin: 1.5rem 0;
    letter-spacing: -0.02em;
}

.ethos-intro p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.ethos-pillars {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.pillar {
    background: rgba(11, 15, 25, 0.6);
    border-left: 3px solid var(--purpleish);
    padding: 2rem;
    border-radius: 0 12px 12px 0;
    transition: transform 0.3s ease, background 0.3s ease;
}

.pillar:hover {
    transform: translateX(10px);
    background: rgba(20, 27, 45, 0.8);
    border-left-color: var(--sky-blue);
}

.pillar-icon {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.pillar h4 {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 0.8rem;
}

.pillar p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================================
   Final CTA Section
   ========================================= */
.final-cta {
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
}

/* Create a deep spotlight effect behind the text */
.final-cta::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80%; height: 100%;
    background: radial-gradient(ellipse at center, rgba(29, 78, 216, 0.15) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.final-cta h2 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin: 1.5rem 0;
    letter-spacing: -0.02em;
}

.final-cta p {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 600px;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.cta-btn {
    font-size: 1.15rem;
    padding: 1rem 3rem;
    border-radius: 50px; /* Fully rounded pill shape for the final action */
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.5);
}

.cta-subtext {
    font-size: 0.9rem !important; /* Force smaller size specifically for this text */
    color: var(--text-muted);
    margin-bottom: 0 !important;
}