/* ================================================================
   LINEAR BASE STYLES
   Reset, typography, body, animations
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    background: var(--ln-bg-primary);
    color: var(--ln-text-primary);
    font-family: var(--ln-font-family);
    font-weight: var(--ln-weight-book);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection {
    background: rgba(94, 106, 210, 0.3);
    color: #fff;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ln-bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

/* --- Typography --- */
.ln-text-hero {
    font-size: 92px;
    font-weight: var(--ln-weight-book);
    line-height: 1;
    letter-spacing: var(--ln-tracking-tight);
}
.ln-text-h2 {
    font-size: 56px;
    font-weight: var(--ln-weight-medium);
    line-height: 1.1;
    letter-spacing: var(--ln-tracking-tight);
}
.ln-text-h3 {
    font-size: 36px;
    font-weight: var(--ln-weight-book);
    line-height: 1.2;
    letter-spacing: var(--ln-tracking-tight);
}
.ln-text-card-title {
    font-size: 24px;
    font-weight: var(--ln-weight-medium);
    line-height: 1.3;
}
.ln-text-feature-title {
    font-size: 18px;
    font-weight: var(--ln-weight-medium);
    line-height: 1.5;
}
.ln-text-body {
    font-size: 16px;
    font-weight: var(--ln-weight-regular);
    line-height: 1.6;
    color: var(--ln-text-secondary);
}
.ln-text-small {
    font-size: 14px;
    font-weight: var(--ln-weight-book);
    line-height: 1.5;
    color: var(--ln-text-secondary);
}
.ln-text-stat {
    font-size: 48px;
    font-weight: var(--ln-weight-book);
    line-height: 1;
    letter-spacing: -0.01em;
    font-family: var(--ln-font-mono);
}

/* Gradient text */
.ln-gradient-text {
    background: linear-gradient(103.97deg, #FFFFFF 2.99%, rgba(255, 255, 255, 0.38) 91.33%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Animations --- */
@keyframes ln-hero-enter {
    from { transform: translateY(-40%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes ln-hero-graphic {
    from { opacity: 0; transform: translateY(20%) rotate(40deg); filter: contrast(400%) blur(4px); }
    to { opacity: 1; transform: translateY(0) rotate(0deg); filter: none; }
}
@keyframes ln-fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.ln-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ln-ease-spring), transform 0.6s var(--ln-ease-spring);
}
.ln-reveal.visible { opacity: 1; transform: translateY(0); }

.ln-reveal-child {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s var(--ln-ease-spring), transform 0.5s var(--ln-ease-spring);
}
.visible .ln-reveal-child { opacity: 1; transform: translateY(0); }
.visible .ln-reveal-child:nth-child(1) { transition-delay: 0.05s; }
.visible .ln-reveal-child:nth-child(2) { transition-delay: 0.10s; }
.visible .ln-reveal-child:nth-child(3) { transition-delay: 0.15s; }
.visible .ln-reveal-child:nth-child(4) { transition-delay: 0.20s; }

.ln-hero-animate { animation: ln-hero-enter var(--ln-duration-hero) var(--ln-ease-spring) both; }
.ln-hero-animate-delay { animation: ln-fade-up 0.8s var(--ln-ease-spring) 0.3s both; }
.ln-hero-graphic-animate { animation: ln-hero-graphic 2.2s ease-out both; animation-delay: 0.4s; }

/* Accessibility */
.ln-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;
}
.ln-sr-only:focus {
    position: fixed; top: 16px; left: 16px; z-index: 9999; width: auto; height: auto;
    padding: 12px 24px; margin: 0; overflow: visible; clip: auto; white-space: normal;
    background: var(--ln-accent-brand); color: white; border-radius: 8px; font-weight: 500; font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
    .ln-text-hero { font-size: 72px; }
    .ln-text-h2 { font-size: 44px; }
    .ln-text-stat { font-size: 40px; }
}
@media (max-width: 768px) {
    .ln-text-hero { font-size: 48px; }
    .ln-text-h2 { font-size: 36px; }
    .ln-text-h3 { font-size: 28px; }
    .ln-text-card-title { font-size: 20px; }
    .ln-text-stat { font-size: 32px; }
}
@media (max-width: 640px) {
    .ln-text-hero { font-size: 40px; }
    .ln-text-h2 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
    .ln-reveal, .ln-reveal-child { opacity: 1; transform: none; transition: none; }
    .ln-hero-animate, .ln-hero-animate-delay, .ln-hero-graphic-animate { animation: none; opacity: 1; }
}
