/* ========================================
   COLOR PALETTE
   ======================================== */

:root {
    /* Text Colors */
    --color-text-primary: #0F172A;
    --color-text-secondary: #334155;
    --color-text-muted: #64748B;
    --color-text-disabled: #94A3B8;

    /* Background Colors */
    --color-bg-section: #F8FAFC;
    --color-bg-muted: #F1F5F9;
    --color-bg-hover: #E9EFF8;
    --color-bg-page: #FFFFFF;

    /* Primary Colors */
    --color-primary-100: #E9EFF8;
    --color-primary-300: #7E9DD6;
    --color-primary-500: #2255AA;
    --color-primary-700: #1C4496;
    --color-primary-900: #0F244F;
}

/* ========================================
   BASE STYLES
   ======================================== */

* {
    box-sizing: border-box;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Color Utility Classes */
.text-primary {
    color: var(--color-text-primary);
}

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

.text-muted {
    color: var(--color-text-muted);
}

.text-disabled {
    color: var(--color-text-disabled);
}

.bg-section {
    background-color: var(--color-bg-section);
}

.bg-muted {
    background-color: var(--color-bg-muted);
}

.bg-hover {
    background-color: var(--color-bg-hover);
}

.bg-page {
    background-color: var(--color-bg-page);
}

.bg-primary-100 {
    background-color: var(--color-primary-100);
}

.bg-primary-300 {
    background-color: var(--color-primary-300);
}

.bg-primary-500 {
    background-color: var(--color-primary-500);
}

.bg-primary-700 {
    background-color: var(--color-primary-700);
}

.bg-primary-900 {
    background-color: var(--color-primary-900);
}

/* ========================================
   TYPOGRAPHY STYLES
   ======================================== */

/* Headings */
.heading-h1-medium {
    font-size: 48px;
    line-height: 56px;
    letter-spacing: -0.5px;
    font-weight: 500;
}

.heading-h1 {
    font-size: 48px;
    line-height: 56px;
    letter-spacing: -0.5px;
    font-weight: 400;
}

.heading-h2 {
    font-size: 40px;
    line-height: 48px;
    letter-spacing: -0.4px;
    font-weight: 400;
}

.heading-h3-medium {
    font-size: 32px;
    line-height: 40px;
    letter-spacing: -0.3px;
    font-weight: 500;
}

.heading-h3 {
    font-size: 32px;
    line-height: 40px;
    letter-spacing: -0.3px;
    font-weight: 400;
}

.heading-h4-medium {
    font-size: 24px;
    line-height: 32px;
    letter-spacing: -0.2px;
    font-weight: 500;
}

.heading-h4 {
    font-size: 24px;
    line-height: 32px;
    letter-spacing: -0.2px;
    font-weight: 400;
}

.heading-h5 {
    font-size: 20px;
    line-height: 28px;
    letter-spacing: -0.1px;
    font-weight: 400;
}

.heading-h6 {
    font-size: 18px;
    line-height: 26px;
    letter-spacing: 0;
    font-weight: 400;
}

.heading-h6-medium {
    font-size: 18px;
    line-height: 26px;
    letter-spacing: 0;
    font-weight: 500;
}

/* Body Texts */
.text-body-lg-medium {
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0;
    font-weight: 500;
}

.text-body-lg {
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0;
    font-weight: 400;
}

.text-body {
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
    font-weight: 400;
}

.text-body-sm {
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0.1px;
    font-weight: 400;
}

.text-caption {
    font-size: 13px;
    line-height: 20px;
    letter-spacing: 0.2px;
    font-weight: 400;
}

.text-legal {
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0.3px;
    font-weight: 400;
}

/* UI & Navigation */
.ui-nav-medium {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0;
    font-weight: 500;
}

.ui-nav {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0;
    font-weight: 400;
}

.ui-button-medium {
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.3px;
    font-weight: 500;
}

.ui-button {
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.3px;
    font-weight: 400;
}

.ui-label {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.2px;
    font-weight: 400;
}

.ui-helper {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.2px;
    font-weight: 400;
}

/* ========================================
   BUTTON COMPONENT
   ======================================== */

.btn-primary {
    padding: 12px 20px;
    border-radius: 40px;
    background-color: var(--color-primary-500);
    color: white;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.3px;
    font-weight: 500;
    transition: background-color 200ms;
    cursor: pointer;
    border: none;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    white-space: normal;
}

.btn-primary:hover {
    background-color: var(--color-primary-700);
}

/* ========================================
   SECTION DIVIDER
   ======================================== */

.section-divider {
    width: 100%;
    height: 1px;
    background-image: linear-gradient(to right, #94A3B8 0%, #94A3B8 25%, transparent 25%, transparent 100%);
    background-size: 8px 1px;
    background-repeat: repeat-x;
    background-position: center;
    position: relative;
    z-index: 20;
}

.vertical-guide-line {
    width: 1px;
    background-image: linear-gradient(to bottom, #94A3B8 0%, #94A3B8 25%, transparent 25%, transparent 100%);
    background-size: 1px 8px;
    background-repeat: repeat-y;
    background-position: center;
    z-index: 10;
}

/* Intersection rectangles at guide line crossings */
.guide-intersection {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #D3E5FF;
    border: 1px solid #B1CCF1;
    border-radius: 2px;
    pointer-events: none;
    z-index: 30;
    top: -4px;
}

.guide-intersection-left {
    left: calc(50% - 600px - 4px);
    /* Center at 0px from 1200px container center, offset by half box width */
}

.guide-intersection-right {
    left: calc(50% + 600px - 4px);
    /* Center at 1200px from container center, offset by half box width */
}

/* ========================================
   RESPONSIVE DIVIDERS
   ======================================== */

.divider-vertical {
    background-image: linear-gradient(to bottom, #94A3B8 0%, #94A3B8 25%, transparent 25%, transparent 100%);
}

.divider-horizontal {
    background-image: linear-gradient(to right, #94A3B8 0%, #94A3B8 25%, transparent 25%, transparent 100%);
}

/* ========================================
   ANIMATIONS
   ======================================== */

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition: none;
        transform: none;
    }
}

/* ========================================
   SCROLLBAR UTILITIES
   ======================================== */

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* ========================================
   LOGO SCROLL ANIMATION
   ======================================== */

.logo-scroll {
    overflow: hidden;
    width: 100%;
    position: relative;
    transform: translateZ(0);
    backface-visibility: hidden;
    mask-image: linear-gradient(to right,
            transparent 0%,
            black 8%,
            black 92%,
            transparent 100%);
    -webkit-mask-image: linear-gradient(to right,
            transparent 0%,
            black 8%,
            black 92%,
            transparent 100%);
}

.logo-scroll-track {
    display: flex;
    width: max-content;
    animation: logo-marquee 40s linear infinite;
    will-change: transform;
}

.logo-scroll-group {
    display: flex;
    align-items: center;
    gap: 64px;
    flex-shrink: 0;
    padding-right: 64px;
}

.logo-scroll:hover .logo-scroll-track {
    animation-play-state: paused;
}

@keyframes logo-marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-scroll-track {
        animation: none;
    }
}