/* EILA Landing Page — Design Tokens from Brandbook */
:root {
    --bg-foundation: #1A2025;
    --bg-elevated: #242B33;
    --color-terracopper: #C37A46;
    --color-teal: #2F6D76;
    --color-circuit-green: #32CD32;
    --text-primary: #F8F9FA;
    --text-secondary: #A0AAB2;
    --radius: 10px;
    --color-teal-light: #4BA8B5;
    --border-subtle: rgba(47, 109, 118, 0.2);
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: var(--bg-foundation);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Noise texture overlay */
.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* Ambient glow orbs */
.glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.glow--copper {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(195, 122, 70, 0.12) 0%, transparent 70%);
    top: -10%;
    right: -5%;
    animation: drift-copper 20s ease-in-out infinite;
}

.glow--teal {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(47, 109, 118, 0.10) 0%, transparent 70%);
    bottom: 5%;
    left: -5%;
    animation: drift-teal 25s ease-in-out infinite;
}

@keyframes drift-copper {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-40px, 30px); }
}

@keyframes drift-teal {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -20px); }
}

/* Layout */
main {
    position: relative;
    z-index: 1;
    flex: 1;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 0 60px;
}

.hero__logo-wrap {
    position: relative;
    margin-bottom: 48px;
    animation: fade-up 0.8s ease-out both;
}

.hero__logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 40px rgba(195, 122, 70, 0.15));
}

.hero__logo-ring {
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    animation: ring-pulse 4s ease-in-out infinite;
}

@keyframes ring-pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.04); }
}

.hero__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero__title-line {
    display: block;
    animation: fade-up 0.8s ease-out both;
}

.hero__title-line--1 {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    color: var(--text-secondary);
    animation-delay: 0.15s;
}

.hero__title-line--2 {
    font-size: clamp(2.4rem, 6.5vw, 3.6rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-terracopper) 0%, #d4935e 50%, var(--color-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation-delay: 0.3s;
}

.hero__body {
    max-width: 580px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 40px;
    animation: fade-up 0.8s ease-out 0.45s both;
}

.hero__cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: fade-up 0.8s ease-out 0.6s both;
}

.hero__cta-buttons {
    display: flex;
    gap: 12px;
}

.hero__cta-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-terracopper), #d4935e);
    color: #FFFFFF;
    box-shadow:
        0 2px 8px rgba(195, 122, 70, 0.3),
        0 0 0 1px rgba(195, 122, 70, 0.1);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 24px rgba(195, 122, 70, 0.35),
        0 0 0 1px rgba(195, 122, 70, 0.2);
}

.btn--primary:active {
    transform: translateY(0);
}

.btn:focus-visible {
    outline: 2px solid var(--color-teal-light);
    outline-offset: 3px;
}

.btn--secondary {
    background: transparent;
    color: var(--color-teal-light);
    border: 1px solid var(--color-teal-light);
    box-shadow: 0 0 0 1px rgba(47, 109, 118, 0.1);
}

.btn--secondary:hover {
    background: rgba(47, 109, 118, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(47, 109, 118, 0.2);
}

.btn--secondary:active {
    transform: translateY(0);
}

.btn__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 20px 0 80px;
    animation: fade-up 0.8s ease-out 0.75s both;
}

.feature {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 32px 24px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

@media (hover: hover) {
    .feature:hover {
        border-color: rgba(47, 109, 118, 0.45);
        transform: translateY(-4px);
    }
}

.feature__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
    color: var(--color-teal-light);
}

.feature__icon svg {
    width: 100%;
    height: 100%;
}

.feature__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature__desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    position: relative;
    z-index: 1;
    padding: 24px;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
}

.footer__text {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.03em;
}

/* Animations */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0 40px;
    }

    .hero__logo {
        width: 160px;
        height: 160px;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-bottom: 60px;
    }

    .glow--copper {
        width: 300px;
        height: 300px;
    }

    .glow--teal {
        width: 250px;
        height: 250px;
    }
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 480px) {
    .hero {
        padding: 48px 0 32px;
    }

    .hero__logo {
        width: 140px;
        height: 140px;
    }

    .hero__logo-wrap {
        margin-bottom: 36px;
    }

    .hero__body {
        font-size: 0.95rem;
    }

    .btn {
        padding: 12px 28px;
        font-size: 0.9rem;
    }

    .hero__cta-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
