/* ==========================
   BASE / BACKGROUND
========================== */

body {
    position: relative;
    background: var(--color-bg);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(100deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.55) 38%, rgba(0, 0, 0, 0.30) 62%, rgba(0, 0, 0, 0.70) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.05) 30%, rgba(0, 0, 0, 0.05) 70%, rgba(0, 0, 0, 0.85) 100%),
        url("../img/backgrounds/home-hero.webp");
    background-size: cover;
    background-position: var(--bg-x, 50%) calc(var(--bg-y, 0%) + var(--scroll-bg-y, 0px));
    background-repeat: no-repeat;
    animation: backgroundZoom 26s ease-in-out infinite alternate;
    will-change: transform, background-position;
}

main {
    min-height: 100vh;
    padding-top: 64px;
}

/* ==========================
   HEADER
========================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    z-index: 1000;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 0 40px;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background var(--transition-fast), border-color var(--transition-fast), backdrop-filter var(--transition-fast);
}

.site-header.is-scrolled {
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom-color: var(--color-border);
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo img {
    height: 34px;
    width: auto;
}

.site-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.site-nav a,
.site-actions a {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--color-text);
}

.nav-link {
    color: var(--color-text-muted) !important;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-text) !important;
}

.site-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    justify-self: end;
}

.mobile-menu-toggle,
.mobile-menu {
    display: none;
}

/* ==========================
   HOME HERO
========================== */

.home-hero {
    position: relative;
    min-height: calc(100vh - 64px);
    max-width: 1760px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 58% 42%;
    align-items: center;
    gap: 40px;
    padding: 20px 72px 120px;
}

.home-hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.hero-badge {
    margin-bottom: var(--space-3);
    padding: 9px 16px;
    backdrop-filter: blur(16px);
}

.home-hero h1 {
    font-size: clamp(40px, 5.6vw, 80px);
    font-weight: 600;
    line-height: 1.03;
    letter-spacing: -0.035em;
}

.home-hero h1 span {
    color: var(--color-primary);
}

.home-hero p {
    max-width: 580px;
    margin-top: var(--space-3);
    color: var(--color-text-muted);
    font-size: 19px;
    line-height: 1.6;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-4);
    color: var(--color-text-faint);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.02em;
}

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

.home-hero-card {
    max-width: 340px;
    justify-self: end;
    margin-top: 40px;
    padding: var(--space-4);
}

.home-hero-card h3 {
    color: var(--color-text-muted);
    margin-bottom: var(--space-3);
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.1em;
}

.progress-item {
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-border);
}

.progress-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.progress-item span {
    display: block;
    color: var(--color-text-muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.progress-item strong {
    display: block;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 26px;
    letter-spacing: -0.02em;
}

.progress-bar {
    width: 100%;
    height: 3px;
    margin-top: 12px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.10);
    overflow: hidden;
}

.progress-bar div {
    height: 100%;
    border-radius: var(--radius-pill);
    background: var(--color-primary);
}

/* ==========================
   FEATURES / STATS
========================== */

.home-features {
    position: relative;
    z-index: 5;
    width: min(1760px, calc(100% - 144px));
    margin: 0 auto 8px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--color-border);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.feature {
    padding: 34px 28px;
    background: rgba(0, 0, 0, 0.55);
    transition: background var(--transition-fast);
}

.feature:hover {
    background: rgba(255, 255, 255, 0.04);
}

.feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.feature-icon img {
    width: 26px;
    height: 26px;
}

.feature:hover .feature-icon img {
    opacity: 1;
}

.feature h3 {
    margin-bottom: 8px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.feature p {
    color: var(--color-text-muted);
    font-size: 14.5px;
    line-height: 1.6;
}

.home-stats {
    position: relative;
    z-index: 5;
    width: min(1760px, calc(100% - 144px));
    margin: 0 auto 120px;
    padding: 40px 40px 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--color-border);
}

.stat {
    text-align: left;
    padding: 24px 24px 0 0;
    border-right: 1px solid var(--color-border);
}

.stat:last-child {
    border-right: 0;
}

.stat strong {
    display: block;
    color: var(--color-text);
    font-family: var(--font-mono);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.stat span {
    display: block;
    margin-top: 8px;
    color: var(--color-text-muted);
    font-size: 13.5px;
}

/* ==========================
   AUTH PAGE SECOURS
========================== */

main:has(.auth-login) {
    padding-top: 0;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 64px 72px 40px;
}

.auth-login {
    position: relative;
    overflow: hidden;
    background: none;
}

.auth-login::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(100deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.40)),
        url("../img/backgrounds/login.webp");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.auth-login > * {
    position: relative;
    z-index: 1;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    padding: 42px;
}

.auth-card h1 {
    font-size: 38px;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}

.auth-card p {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* ==========================
   PRICING
========================== */

.pricing-section {
    position: relative;
    z-index: 5;
    width: min(1200px, calc(100% - 144px));
    margin: 0 auto 140px;
}

.section-heading {
    text-align: center;
    margin-bottom: 56px;
}

.section-heading span {
    color: var(--color-text-muted);
    font-family: var(--font-mono);
    font-weight: 400;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.12em;
}

.section-heading h2 {
    margin-top: 14px;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
    letter-spacing: -0.03em;
}

.section-heading p {
    margin-top: 14px;
    color: var(--color-text-muted);
    font-size: 17px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--color-border);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    align-items: stretch;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    min-height: 560px;
    padding: 36px 32px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 0;
    transition: background var(--transition-fast);
}

.pricing-card:hover {
    background: rgba(255, 255, 255, 0.03);
}

.pricing-demo {
    border: 0;
}

.pricing-card-featured {
    background: var(--color-surface-solid);
}

.pricing-card-featured:hover {
    background: #17171a;
}

.popular-badge {
    align-self: flex-start;
    min-height: 28px;
    padding: 0 14px;
    font-size: 11px;
    margin-bottom: 26px;
}

.popular-badge-empty {
    visibility: hidden;
}

.pricing-card h3 {
    min-height: 36px;
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.price {
    min-height: 66px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 24px;
    font-family: var(--font-mono);
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.price span {
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 400;
    color: var(--color-text-muted);
    margin-bottom: 9px;
}

.pricing-card p {
    min-height: 66px;
    margin: 0 0 28px;
    line-height: 1.6;
    font-size: 14.5px;
    color: var(--color-text-muted);
}

.pricing-card ul {
    flex: 1;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pricing-card li {
    color: var(--color-text);
    font-size: 14px;
}

.pricing-card .btn {
    width: 100%;
    min-height: 50px;
    margin-top: 34px;
}

.pricing-card-featured .btn-secondary {
    background: var(--color-text);
    color: #050505;
    border-color: transparent;
}

.pricing-card-featured .btn-secondary:hover {
    background: #ffffff;
}

/* ==========================
   FOOTER
========================== */

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) var(--space-6);
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    color: var(--color-text-faint);
    font-size: 13px;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 28px;
}

.footer-right a {
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.footer-right a:hover {
    color: var(--color-text);
}
