/* Reset and Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: #000000 !important;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #000000 !important;
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Force pure black on all sections */
section, header, footer, div, main, article, aside, nav {
    background-color: inherit;
}

/* Video backgrounds */
video {
    background-color: #000000 !important;
}

/* ========================
   Section 1: Hero/Header
   ======================== */
.hero-section {
    width: 100%;
    min-height: 125vh;
    padding: 60px 64px;
    background-color: #000000 !important;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    background-color: #000000 !important;
}

.logo {
    flex-shrink: 0;
}

.logo-img {
    width: 237px;
    height: auto;
    max-height: 136px;
    object-fit: contain;
}

.hero-video {
    flex: 1;
    max-width: 1250px;
    background-color: #000000 !important;
}

.hero-video video {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ========================
   Section 2: Interactive FLOW Pipeline
   ======================== */
.flow-section {
    width: calc(100% - 128px);
    max-width: 1400px;
    margin: 80px auto;
    background: linear-gradient(160deg, #1a3a52 0%, #1c3d55 30%, #172e45 60%, #122438 100%);
    border-radius: 16px;
    padding: 80px 80px 70px;
    position: relative;
    overflow: hidden;
}

/* Subtle radial highlight */
.flow-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 50% at 50% 30%, rgba(100,160,210,0.07) 0%, transparent 70%);
    pointer-events: none;
}

/* Eyebrow label */
.flow-eyebrow {
    text-align: center;
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 14px;
    letter-spacing: 0.16em;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

/* Pipeline row */
.flow-pipeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    z-index: 2;
}

/* Individual node */
.flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: transform 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.flow-node:hover {
    transform: translateY(-5px);
}

.flow-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 48px;
    font-weight: 400;
    color: rgba(255,255,255,0.88);
    letter-spacing: -1px;
    transition: background 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.flow-node:hover .flow-circle,
.flow-node.is-active .flow-circle {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.35);
}

.flow-node.is-active .flow-circle {
    border-color: rgba(160,210,255,0.45);
}

.flow-node-label {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 16px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.02em;
    text-align: center;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.flow-node:hover .flow-node-label,
.flow-node.is-active .flow-node-label {
    color: rgba(255,255,255,0.92);
}

/* Connector */
.flow-connector {
    display: flex;
    align-items: center;
    padding-bottom: 32px;
    flex-shrink: 0;
    width: 120px;
}

.flow-connector-track {
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

/* Animated flowing pulses */
.flow-connector-track::before,
.flow-connector-track::after,
.flow-connector-track span {
    content: '';
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(160,210,255,0.75), transparent);
    animation: flow-pulse 2.2s linear infinite;
}

.flow-connector-track::after {
    animation-delay: 0.73s;
}

.flow-connector-track span {
    animation-delay: 1.46s;
}

@keyframes flow-pulse {
    0%   { left: -40%; opacity: 0; }
    8%   { opacity: 1; }
    92%  { opacity: 1; }
    100% { left: 110%; opacity: 0; }
}

.flow-connector-arrow {
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}

/* Info card */
.flow-info {
    margin-top: 44px;
    position: relative;
    z-index: 2;
}

.flow-info-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 32px 36px;
    display: flex;
    align-items: flex-start;
    gap: 28px;
    animation: card-in 0.3s ease;
}

@keyframes card-in {
    from { opacity: 0; transform: translateY(7px); }
    to   { opacity: 1; transform: translateY(0); }
}

.flow-info-letter {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 56px;
    color: rgba(255,255,255,0.1);
    line-height: 1;
    flex-shrink: 0;
    width: 56px;
    text-align: center;
    margin-top: 2px;
}

.flow-info-body {
    flex: 1;
}

.flow-info-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 10px;
    font-weight: 400;
}

.flow-info-desc {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
}

/* Hint */
.flow-hint {
    text-align: center;
    margin-top: 18px;
    font-size: 12px;
    color: rgba(255,255,255,0.22);
    font-family: -apple-system, sans-serif;
    position: relative;
    z-index: 2;
}

/* ========================
   Section 3: Texas Video
   ======================== */
.texas-section {
    width: 100%;
    padding: 80px 64px;
    display: flex;
    justify-content: center;
    background-color: #000000 !important;
}

.texas-video-container {
    width: 100%;
    max-width: 1300px;
    background-color: #000000 !important;
}

.texas-video-container video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    background-color: #000000 !important;
}

/* Flow Section Wrapper */
.flow-section-wrapper {
    width: 100%;
    padding: 80px 64px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000000 !important;
}

/* ========================
   Section 4 & 5: Feature Sections
   ======================== */
.feature-section {
    width: 100%;
    padding: 80px 64px;
    background-color: #000000 !important;
}

.feature-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 80px;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    background-color: #000000 !important;
}

/* Reverse layout: image on left, text on right */
.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text-container {
    flex: 1;
    max-width: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000000 !important;
}

.feature-image-container {
    flex: 1;
    max-width: 550px;
    background-color: #000000 !important;
}

.feature-image-container img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.feature-text {
    font-style: italic;
    font-weight: 500;
    font-size: 22px;
    line-height: 1.4;
    text-align: center;
}

/* Gradient text styles */
.gradient-text-blue {
    background: linear-gradient(90deg, #0BB4E3 0%, #FDFDFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-cyan {
    background: linear-gradient(180deg, #0BB4E3 0%, #F6F6FD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================
   Section 6: Tech Stack
   ======================== */
.techstack-section {
    width: 100%;
    padding: 80px 64px;
    background-color: #000000 !important;
}

.techstack-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #000000 !important;
}

.techstack-container video,
.techstack-container img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.techstack-placeholder {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 100px 40px;
    text-align: center;
}

.techstack-placeholder h3 {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 16px;
    color: #0BB4E3;
}

.techstack-placeholder p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
}

/* ========================
   Footer
   ======================== */
.footer {
    width: 100%;
    padding: 40px 64px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #000000 !important;
}

.footer p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* ========================
   Responsive Design
   ======================== */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .hero-section {
        min-height: auto;
        padding: 40px 40px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-video {
        max-width: 100%;
    }

    .flow-section {
        width: calc(100% - 80px);
        margin: 60px auto;
        padding: 60px 50px 50px;
    }

    .flow-circle {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }

    .flow-connector {
        width: 80px;
    }

    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
        gap: 40px;
    }

    .feature-text-container,
    .feature-image-container {
        max-width: 100%;
    }

    .texas-section,
    .feature-section,
    .techstack-section {
        padding: 60px 40px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .hero-section {
        padding: 30px 24px;
    }

    .hero-content {
        gap: 24px;
    }

    .logo-img {
        width: 200px;
    }

    .flow-section {
        width: calc(100% - 48px);
        margin: 40px auto;
        padding: 50px 30px 40px;
        border-radius: 12px;
    }

    .flow-circle {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }

    .flow-connector {
        width: 50px;
        padding-bottom: 24px;
    }

    .flow-node-label {
        font-size: 12px;
    }

    .flow-info-card {
        gap: 16px;
        padding: 20px 22px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .flow-info-letter {
        font-size: 40px;
        width: auto;
    }

    .flow-info-title {
        font-size: 16px;
    }

    .flow-info-desc {
        font-size: 14px;
    }

    .texas-section,
    .feature-section,
    .techstack-section,
    .footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    .texas-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .feature-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .feature-row {
        gap: 30px;
    }

    .feature-text {
        font-size: 18px;
    }

    .techstack-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .footer {
        padding-top: 30px;
        padding-bottom: 30px;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .hero-section {
        padding: 20px 16px;
    }

    .logo-img {
        width: 160px;
    }

    .hero-video video {
        border-radius: 6px;
    }

    .flow-section {
        width: calc(100% - 32px);
        margin: 30px auto;
        padding: 40px 20px 35px;
        border-radius: 10px;
    }

    .flow-circle {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .flow-connector {
        width: 24px;
        padding-bottom: 18px;
    }

    .flow-node-label {
        font-size: 10px;
    }

    .flow-info-letter {
        font-size: 32px;
        width: 32px;
    }

    .flow-info-title {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .flow-info-desc {
        font-size: 13px;
        line-height: 1.6;
    }

    .flow-hint {
        margin-top: 12px;
        font-size: 10px;
    }

    .texas-section,
    .feature-section,
    .techstack-section,
    .footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .texas-section {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .texas-video-container video {
        border-radius: 8px;
    }

    .feature-section {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .feature-row {
        gap: 24px;
    }

    .feature-text {
        font-size: 16px;
    }

    .feature-image-container img {
        border-radius: 8px;
    }

    .techstack-section {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .techstack-container video,
    .techstack-container img {
        border-radius: 8px;
    }

    .footer {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .footer p {
        font-size: 12px;
    }
}

/* Extra small phones */
@media (max-width: 360px) {
    .flow-circle {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .flow-connector {
        width: 14px;
    }

    .flow-node-label {
        font-size: 8px;
    }

    .logo-img {
        width: 140px;
    }
}
