:root {
    --bg-primary: #04192a;
    --bg-secondary: #0d263a;
    --accent-teal: #17efdf;
    --accent-red: #e73335;
    --text-primary: #e9ecef;
    --text-secondary: #a0b3c4;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

h1, h2, h3 {
    color: var(--text-primary);
    line-height: 1.2;
    font-weight: 600;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    color: var(--accent-teal);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* a:hover {
    color: var(--text-primary);
} */

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
}

section {
    padding: 6rem 0;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: var(--accent-teal);
    color: var(--bg-primary);
    border: 2px solid var(--accent-teal);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-red);
    border: 2px solid var(--accent-red);
}

.btn-secondary:hover {
    background-color: var(--accent-red);
    color: var(--text-primary);
}

.btn-inverted {
    background-color: var(--bg-primary);
    color: var(--accent-teal);
    border: 2px solid var(--accent-teal);
}

/* --- Header & Hero --- */
.hero {
    background-color: var(--bg-primary);
    padding: 1rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding-bottom: 2rem; */
    /* height: 130px; */
    position: relative;
    z-index: 2;
}

.logo {
    height: 80px;
    /* font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none; */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    max-width: 20ch;
    margin: 0 auto 1rem;
}

.hero-content .subtext {
    font-size: 1.1rem;
    max-width: 60ch;
    margin: 0 auto 2.5rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.bg-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.bg-bubbles li {
    position: absolute;
    list-style: none;
    display: block;
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(23, 239, 223, 0), rgba(23, 239, 223, 0.3));
    top: -160px;
    animation: stream 20s infinite;
    transition-timing-function: linear;
}

.bg-bubbles li:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; height: 60px; }
.bg-bubbles li:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 15s; height: 80px; }
.bg-bubbles li:nth-child(3) { left: 25%; animation-delay: 4s; animation-duration: 18s; height: 40px; }
.bg-bubbles li:nth-child(4) { left: 40%; animation-delay: 1s; animation-duration: 20s; height: 100px; background: linear-gradient(to bottom, rgba(231, 51, 53, 0), rgba(231, 51, 53, 0.4)); }
.bg-bubbles li:nth-child(5) { left: 70%; animation-delay: 5s; animation-duration: 14s; height: 70px; }
.bg-bubbles li:nth-child(6) { left: 80%; animation-delay: 3s; animation-duration: 16s; height: 90px; }
.bg-bubbles li:nth-child(7) { left: 32%; animation-delay: 7s; animation-duration: 13s; height: 50px; }
.bg-bubbles li:nth-child(8) { left: 55%; animation-delay: 9s; animation-duration: 19s; height: 120px; }
.bg-bubbles li:nth-child(9) { left: 65%; animation-delay: 6s; animation-duration: 22s; height: 75px; }
.bg-bubbles li:nth-child(10) { left: 90%; animation-delay: 8s; animation-duration: 15s; height: 85px; }
.bg-bubbles li:nth-child(11) { left: 5%; animation-delay: 10s; animation-duration: 14s; height: 55px; }
.bg-bubbles li:nth-child(12) { left: 15%; animation-delay: 12s; animation-duration: 17s; height: 95px; }
.bg-bubbles li:nth-child(13) { left: 30%; animation-delay: 14s; animation-duration: 16s; height: 65px; }
.bg-bubbles li:nth-child(14) { left: 45%; animation-delay: 11s; animation-duration: 19s; height: 110px; background: linear-gradient(to bottom, rgba(231, 51, 53, 0), rgba(231, 51, 53, 0.4)); }
.bg-bubbles li:nth-child(15) { left: 60%; animation-delay: 15s; animation-duration: 13s; height: 70px; }
.bg-bubbles li:nth-child(16) { left: 75%; animation-delay: 13s; animation-duration: 18s; height: 90px; }
.bg-bubbles li:nth-child(17) { left: 85%; animation-delay: 17s; animation-duration: 12s; height: 50px; }
.bg-bubbles li:nth-child(18) { left: 50%; animation-delay: 19s; animation-duration: 21s; height: 130px; }
.bg-bubbles li:nth-child(19) { left: 70%; animation-delay: 16s; animation-duration: 24s; height: 80px; }
.bg-bubbles li:nth-child(20) { left: 95%; animation-delay: 18s; animation-duration: 14s; height: 90px; }

.bg-bubbles li:nth-child(21) { left: 8%; animation-delay: 1s; animation-duration: 18s; height: 45px; }
.bg-bubbles li:nth-child(22) { left: 18%; animation-delay: 5s; animation-duration: 20s; height: 75px; }
.bg-bubbles li:nth-child(23) { left: 28%; animation-delay: 9s; animation-duration: 12s; height: 35px; }
.bg-bubbles li:nth-child(24) { left: 38%; animation-delay: 3s; animation-duration: 25s; height: 115px; background: linear-gradient(to bottom, rgba(231, 51, 53, 0), rgba(231, 51, 53, 0.4)); }
.bg-bubbles li:nth-child(25) { left: 48%; animation-delay: 8s; animation-duration: 16s; height: 65px; }
.bg-bubbles li:nth-child(26) { left: 58%; animation-delay: 11s; animation-duration: 14s; height: 85px; }
.bg-bubbles li:nth-child(27) { left: 68%; animation-delay: 2s; animation-duration: 21s; height: 55px; }
.bg-bubbles li:nth-child(28) { left: 78%; animation-delay: 6s; animation-duration: 17s; height: 125px; }
.bg-bubbles li:nth-child(29) { left: 88%; animation-delay: 10s; animation-duration: 19s; height: 80px; }
.bg-bubbles li:nth-child(30) { left: 98%; animation-delay: 13s; animation-duration: 13s; height: 95px; }
.bg-bubbles li:nth-child(31) { left: 3%; animation-delay: 1s; animation-duration: 22s; height: 50px; }
.bg-bubbles li:nth-child(32) { left: 13%; animation-delay: 3s; animation-duration: 16s; height: 80px; }
.bg-bubbles li:nth-child(33) { left: 23%; animation-delay: 6s; animation-duration: 19s; height: 40px; }
.bg-bubbles li:nth-child(34) { left: 33%; animation-delay: 8s; animation-duration: 23s; height: 105px; background: linear-gradient(to bottom, rgba(231, 51, 53, 0), rgba(231, 51, 53, 0.4)); }
.bg-bubbles li:nth-child(35) { left: 43%; animation-delay: 12s; animation-duration: 15s; height: 60px; }
.bg-bubbles li:nth-child(36) { left: 53%; animation-delay: 14s; animation-duration: 18s; height: 85px; }
.bg-bubbles li:nth-child(37) { left: 63%; animation-delay: 1s; animation-duration: 24s; height: 50px; }
.bg-bubbles li:nth-child(38) { left: 73%; animation-delay: 4s; animation-duration: 16s; height: 115px; }
.bg-bubbles li:nth-child(39) { left: 83%; animation-delay: 7s; animation-duration: 20s; height: 75px; }
.bg-bubbles li:nth-child(40) { left: 93%; animation-delay: 9s; animation-duration: 14s; height: 80px; }

@keyframes stream {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(1080px);
        opacity: 0;
    }
}

/* --- Features Section --- */
.features {
    background: linear-gradient(to bottom, var(--bg-primary) 0%, var(--bg-secondary) 50%);
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background-color: var(--bg-primary);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    border-top: 4px solid var(--accent-teal);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.feature-card h3 {
    margin-bottom: 1rem;
}

/* --- How It Works / Workflow Section --- */
.how-it-works {
    background: linear-gradient(to bottom, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    text-align: center;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--bg-secondary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--accent-teal);
    border: 4px solid var(--bg-secondary);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    text-align: left;
}

/* --- CTA Section --- */
.cta {
    background: linear-gradient(to bottom, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    text-align: center;
    padding: 4rem 0;
}

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

.cta-content .btn {
    margin-top: 2rem;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--bg-secondary);
    padding: 0.5rem 0;
    text-align: center;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- Responsive --- */

@media (min-width: 769px) {
    .navbar {
        padding-top: 2rem;
        padding-bottom: 3rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .navbar {
        flex-direction: column;
        gap: 2rem;
        padding-bottom: 2rem;
    }
    
    .timeline::after {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 15px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item::after {
        left: 10px;
    }
}
