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

:root {
    --bg-dark: #0f1724;
    --bg-light: #f7f7f4;
    --text-primary: #ffffff;
    --text-dark: #0f1724;
    --text-dark-secondary: rgba(15, 23, 36, 0.7);

    /* Spacing scale */
    --space-1: clamp(0.375rem, 0.34rem + 0.17vw, 0.5rem);
    --space-2: clamp(0.75rem, 0.68rem + 0.33vw, 1rem);
    --space-4: clamp(1.5rem, 1.36rem + 0.67vw, 2rem);
    --space-5: clamp(2.25rem, 2.04rem + 1vw, 3rem);
    --space-6: clamp(3rem, 2.72rem + 1.33vw, 4rem);
    --space-8: clamp(4.5rem, 4.08rem + 2vw, 6rem);
    --space-10: clamp(6rem, 5.44rem + 2.67vw, 8rem);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    /* background: var(--bg-dark);
    color: var(--text-primary); */
    overflow-x: hidden;
    line-height: 1.5;
    position: relative;
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    font-weight: 400;
}

/* Hero Container with SVG Background */
.hero-container {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/* SVG Background */
#lottie-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 1;
    overflow: hidden;
    background-image: url('/static/assets/landing-hero.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Dark overlay for better text readability */
.dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.0);
    z-index: 1;
}

/* Content Container */
.content {
    position: relative;
    z-index: 10;
}

.cta-button {
    position: fixed;
    top: var(--space-4);
    right: calc(var(--space-8) + 3rem);
    padding: var(--space-2) var(--space-2);
    background: rgba(163, 179, 193, 0.25);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: rgba(36, 36, 36, 1);
    border: none;
    border-radius: 28px;
    font-weight: 500;
    cursor: pointer;
    /* transition: all 0.3s ease; */
    transition: background 0.3s; /* Smooth transition */
    text-decoration: none;
    font-size: clamp(1.125rem, 1.1rem + 0.125vw, 1.25rem);
    line-height: 1;
    z-index: 9999;
    display: flex;
    align-items: center;
    height: 2.5rem;
}

.cta-button:hover {
    background: rgba(163, 179, 193, 0.5);
}

.ticker-bar {
    position: absolute;
    bottom: var(--space-6);
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 1200px;
    padding: var(--space-2) var(--space-4);
    background: rgba(163, 179, 193, 0.25);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: rgba(36, 36, 36, 1);
    border: none;
    border-radius: 28px;
    font-weight: 500;
    transition: background 0.3s;
    z-index: 9999;
    overflow: hidden;
}

.ticker-wrapper {
    display: flex;
    white-space: nowrap;
}

.ticker-item {
    padding-right: 0;
    font-size: clamp(0.85rem, 0.9rem + 0.1vw, 1rem);
    font-family: 'Azeret Mono', monospace;
    font-weight: 400;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
}

.ticker-item::before {
    content: '⬤';
    margin-left: 2rem;
    margin-right: 2rem;
    font-size: 0.5rem;
}

.footer-social {
    display: flex;
    gap: var(--space-2);
    align-items: flex-end;
    align-self: baseline;
}

.footer-linkedin, .footer-github {
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    width: clamp(2rem, 2.5rem + 0.5vw, 3rem);
    height: clamp(2rem, 2.5rem + 0.5vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: clamp(2rem, 2.5rem + 0.5vw, 3rem);
}

.footer-linkedin svg {
    width: 100%;
    height: 100%;
    fill: var(--text-dark);
    transition: all 0.3s ease;
}

.footer-linkedin:hover svg, .footer-github:hover {
    opacity: 0.7;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 4rem + 4vw, 4rem);
    font-weight: 700;
    line-height: 1;
    margin: 0;
    padding: 0;
    letter-spacing: -0.02em;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    will-change: opacity;
    opacity: 1;
    width: 100%;
    text-align: center;
}

.hero-title .gradient-text {
    color: var(--bg-light);
}

.hero-title img {
    max-width: 90vw;
    width: auto;
    height: clamp(3rem, 8vw, 8rem);
    display: block;
    margin: 0 auto;
}

.symbol-thick {
    -webkit-text-stroke: 0.525rem var(--bg-light);
    paint-order: stroke fill;
}

/* White Content Section */
.content-section {
    background: var(--bg-light);
    transition: opacity 0.5s ease 0.2s;
    border-bottom: 1px solid rgba(15, 23, 36, 0.1);
    position: relative;
    z-index: 10;
}

.content-wrapper {
    width: 100%;
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 0;
    align-items: stretch;
    transition: opacity 0.5s ease 0.2s;
}

@media (min-width: 993px) {
    .content-wrapper {
        grid-template-columns: 2fr 1.2fr;
    }
}

.text-content {
    color: var(--text-dark);
    padding: var(--space-10) var(--space-8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: opacity 0.5s ease 0.2s;
}

.text-content h2 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: clamp(1.875rem, 2.25rem + 1.5vw, 3.75rem);
    font-weight: 700;
    margin-bottom: var(--space-5);
    color: var(--text-dark);
    letter-spacing: -0.05em;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease;
    will-change: transform;
}

.text-content h2.animate {
    opacity: 1;
    transform: translateY(0);
}

.text-content p {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: clamp(1.375rem, 1.25rem + 0.5vw, 1.75rem);
    font-weight: 350;
    letter-spacing: -0.03em;
    line-height: 1.7;
    margin-bottom: var(--space-4);
    color: var(--text-dark);
    overflow: hidden;
}

.text-content p .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(8px);
    animation: fadeInUpWord 0.4s ease forwards;
}

@keyframes fadeInUpWord {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-content {
    width: 100%;
    order: 2;
    transition: opacity 0.5s ease 0.2s;
    display: block;
    line-height: 0;
    margin: 0;
    padding: 0;
}

.image-content img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    opacity: 0;
    transition: opacity 1.2s ease 0.2s;
    margin: 0;
    padding: 0;
}

@media (min-width: 993px) {
    .content-section {
        display: block;
    }

    .u-container {
        width: 100%;
    }

    .image-content {
        height: 100%;
        display: flex;
    }

    .image-content img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
}

.image-content img.animate {
    opacity: 1;
}

/* Cards Section Styles */
.cards-wrapper {
    width: 50%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    transition: opacity 0.5s ease 0.2s;
}

.card {
    min-height: 400px;
    padding: 0;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/assets/noise-texture.svg');
    background-repeat: repeat;
    background-size: 300px 300px;
    opacity: 1;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.card-one {
    background: rgba(204, 173, 231, 1);
}

.card-two {
    background: rgba(243, 235, 221, 1);
}

.card h3 {
    font-family: 'Azeret Mono', monospace;
    font-size: clamp(0.875rem, 0.875rem + 0.125vw, 1rem);
    font-weight: 500;
    text-transform: uppercase;
    color: var(--text-dark);
    margin: 0;
    padding: var(--space-2);
    padding-bottom: 0;
    position: relative;
    z-index: 1;
}

.card h2 {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.75rem, 2rem + 0.5vw, 2.5rem);
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    padding: 0 var(--space-2);
    padding-bottom: var(--space-2);
    position: relative;
    z-index: 1;
}

.card-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-container {
    width: 100%;
    height: 100%;
    position: relative;
}

@media (max-width: 992px) {
    .cards-wrapper {
        width: 100%;
        grid-template-columns: 1fr;
    }
}

/* HQ Section Styles */
.hq-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: var(--space-10) var(--space-8);
    transition: opacity 0.5s ease 0.2s;
}

.hq-heading {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: clamp(1.875rem, 2.25rem + 1.5vw, 3.75rem);
    font-weight: 700;
    margin-bottom: var(--space-8);
    color: var(--text-dark);
    letter-spacing: -0.05em;
    line-height: 1.3;
    will-change: transform;
}

.hq-locations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
}

.hq-location {
    color: var(--text-dark);
}

.hq-location h3 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: clamp(1.5rem, 1.75rem + 1vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--text-dark);
    letter-spacing: -0.05em;
    line-height: 1.3;
}

.hq-location p {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);
    font-weight: 350;
    letter-spacing: -0.03em;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: var(--space-2);
}

.hq-location p:last-child {
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .hq-wrapper {
        padding: var(--space-8) var(--space-5);
    }

    .hq-locations {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
}

.u-container {
    max-width: 100%;
    transition: opacity 0.5s ease 0.2s;
    margin: 0;
    padding: 0;
}

/* Footer */
footer {
    padding: var(--space-10) var(--space-8);
    color: var(--text-dark);
    background: var(--bg-light);
    /* background: linear-gradient(to bottom, var(--bg-light), #9f9f9c); */
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-8);
}

footer p {
    margin: 0;
    flex: 1;
}

.footer-social {
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .text-content {
        padding: var(--space-8) var(--space-5);
    }

    .image-content {
        min-height: 400px;
    }

    footer {
        padding: var(--space-8) var(--space-5);
        flex-direction: column;
        gap: var(--space-4);
        align-items: flex-start;
    }

    footer p {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .text-content {
        padding: var(--space-6) var(--space-5);
    }

    .cta-button {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .text-content {
        padding: var(--space-5) var(--space-5);
    }

    .image-content {
        min-height: 300px;
    }
}
