/* --- Brand Variables (Global) --- */
:root {
    --salva-void: #0A0A0A;
    --salva-white: #FAFAFA;
    --salva-muted: #737373;
    --salva-accent: #FF3D00;
    --salva-surface: #0F0F0F;
    --salva-border: #262626;
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0 !important;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--salva-void);
    color: var(--salva-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

::selection {
    background: var(--salva-accent);
    color: var(--salva-void);
}

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

/* ======== HEADER ======== */
.nexus-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0) 100%);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), padding 0.3s ease, background 0.3s ease;
}

.nexus-header.scrolled {
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-logo {
    display: flex;
    align-items: center;
    z-index: 10001;
}

.header-logo img {
    height: 38px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
    filter: brightness(0) invert(1);
}

.menu-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10001;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

.menu-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--salva-white);
    transition: color 0.3s;
}

.hamburger-lines {
    width: 28px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.line {
    width: 100%;
    height: 1px;
    background-color: var(--salva-white);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.menu-open .line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
    background-color: var(--salva-accent);
}

.menu-open .line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.menu-open .line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -7px);
    background-color: var(--salva-accent);
}

.menu-open .menu-text {
    color: var(--salva-accent);
}

/* ======== FULLSCREEN MENU ======== */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--salva-void);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    clip-path: circle(0% at 95% 5%);
}

.menu-bg-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--salva-surface);
    opacity: 0.3;
    pointer-events: none;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

.nav-item {
    margin: 12px 0;
    overflow: hidden;
}

.nav-link {
    display: block;
    font-family: 'Inter Tight', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--salva-white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    transition: all 0.4s ease;
    transform: translateY(100%);
}

.nav-link:hover {
    color: var(--salva-accent);
    transform: translateX(10px);
}

.menu-footer {
    position: absolute;
    bottom: 50px;
    display: flex;
    gap: 40px;
    color: var(--salva-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 1px;
    opacity: 0;
}

.menu-footer a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.menu-footer a:hover {
    color: var(--salva-accent);
}

/* ======== SECTION 1: HERO ======== */
.salva-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 60px 80px;
    background-color: var(--salva-void);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-text {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Inter Tight', sans-serif;
    font-size: clamp(4rem, 10vw, 10rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.06em;
    color: var(--salva-white);
    margin-bottom: 40px;
}

.hero-title .accent {
    color: var(--salva-accent);
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--salva-muted);
    max-width: 520px;
    margin-bottom: 50px;
}

.hero-cta {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-primary {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--salva-white);
    background: none;
    border: none;
    padding: 12px 0;
    position: relative;
    cursor: pointer;
    transition: color 0.3s;
}

.btn-primary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--salva-accent);
    transform: scaleX(1);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-primary:hover::after {
    transform: scaleX(1.1);
}

.btn-secondary {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--salva-white);
    border: 1px solid var(--salva-white);
    padding: 14px 36px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--salva-white);
    color: var(--salva-void);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual img {
    width: 100%;
    max-width: 550px;
    object-fit: cover;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 60px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-scroll-indicator span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--salva-muted);
}

.scroll-line {
    width: 60px;
    height: 1px;
    background-color: var(--salva-border);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 1px;
    background-color: var(--salva-accent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ======== SECTION 2: THE DEAL ======== */
.salva-deal {
    position: relative;
    width: 100%;
    padding: 140px 60px;
    background-color: var(--salva-void);
    overflow: hidden;
}

.deal-decorative {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Inter Tight', sans-serif;
    font-size: clamp(8rem, 15vw, 14rem);
    font-weight: 900;
    color: var(--salva-white);
    opacity: 0.03;
    white-space: nowrap;
    pointer-events: none;
    letter-spacing: -0.04em;
    user-select: none;
}

.deal-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: start;
    position: relative;
    z-index: 2;
}

.deal-divider {
    width: 1px;
    height: 100%;
    min-height: 300px;
    background-color: var(--salva-border);
    align-self: stretch;
}

.deal-block {
    padding: 40px 50px;
}

.deal-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--salva-accent);
    margin-bottom: 30px;
}

.deal-heading {
    font-family: 'Inter Tight', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--salva-white);
    margin-bottom: 24px;
}

.deal-text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--salva-muted);
}

/* ======== SECTION 3: METRICS ======== */
.salva-metrics {
    position: relative;
    width: 100%;
    padding: 100px 60px;
    background-color: var(--salva-void);
    border-top: 1px solid var(--salva-border);
    border-bottom: 1px solid var(--salva-border);
}

.metrics-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.metric-cell {
    padding: 60px 40px;
    text-align: center;
    border-left: 1px solid var(--salva-border);
    position: relative;
    cursor: default;
}

.metric-cell:first-child {
    border-left: none;
}

.metric-cell::after {
    content: '';
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60px;
    height: 2px;
    background-color: var(--salva-accent);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.metric-cell:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.metric-number,
.metric-prefix,
.metric-suffix {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    font-weight: 700;
    color: var(--salva-white);
    line-height: 1;
}

.metric-prefix,
.metric-suffix {
    font-size: clamp(2rem, 3vw, 3rem);
    vertical-align: super;
}

.metric-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--salva-muted);
    margin-top: 20px;
    line-height: 1.5;
}

/* ======== SECTION 4: VALUE PROPOSITION ======== */
.salva-values {
    position: relative;
    width: 100%;
    padding: 120px 60px;
    background-color: var(--salva-void);
}

.values-container {
    max-width: 1200px;
    margin: 0 auto;
}

.value-item {
    display: grid;
    grid-template-columns: 80px 1fr 1.5fr;
    gap: 40px;
    align-items: baseline;
    padding: 40px 0;
    border-top: 1px solid var(--salva-border);
}

.value-item:last-child {
    border-bottom: 1px solid var(--salva-border);
}

.value-index {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--salva-accent);
    letter-spacing: 1px;
}

.value-headline {
    font-family: 'Inter Tight', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--salva-white);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.value-desc {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--salva-muted);
}

/* ======== SECTION 5: PRODUCT TEARDOWN ======== */
.salva-product {
    position: relative;
    width: 100%;
    padding: 120px 60px;
    background-color: var(--salva-surface);
}

.product-container {
    max-width: 1200px;
    margin: 0 auto;
}

.product-section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--salva-accent);
    margin-bottom: 60px;
    text-align: center;
}

.product-teardown {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.product-image-wrapper {
    position: relative;
    z-index: 2;
    max-width: 300px;
    flex-shrink: 0;
}

.product-image-wrapper img {
    width: 100%;
    height: auto;
}

.product-annotations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.annotation {
    position: absolute;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.annotation-1 {
    top: 10%;
    right: 5%;
}

.annotation-2 {
    top: 45%;
    right: 5%;
}

.annotation-3 {
    top: 75%;
    left: 5%;
    flex-direction: row-reverse;
    text-align: right;
}

.annotation-line {
    width: 80px;
    height: 1px;
    background-color: var(--salva-white);
    margin-top: 8px;
    flex-shrink: 0;
    opacity: 0.5;
}

.annotation-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--salva-white);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.annotation-detail {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--salva-muted);
    line-height: 1.5;
    max-width: 280px;
}

/* ======== SECTION 6: VISION & VALIDATION ======== */
.salva-vision {
    position: relative;
    width: 100%;
    padding: 180px 60px;
    background-color: var(--salva-void);
    text-align: center;
}

.vision-container {
    max-width: 1000px;
    margin: 0 auto;
}

.vision-quote {
    margin: 0;
    padding: 0;
}

.vision-quote p {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.2;
    color: var(--salva-white);
    letter-spacing: -0.02em;
}

.vision-author {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--salva-muted);
    margin-top: 50px;
    font-style: normal;
}

/* ======== SECTION 7: FOOTER ======== */
.salva-footer {
    position: relative;
    width: 100%;
    padding: 120px 60px 40px;
    background-color: var(--salva-void);
    border-top: 1px solid var(--salva-border);
}

.footer-logo-wrapper {
    max-width: 1200px;
    margin: 0 auto 50px;
    text-align: center;
}

.footer-logo {
    height: 50px;
    width: auto;
    display: inline-block;
    filter: brightness(0) invert(1);
}

.footer-headline-wrapper {
    max-width: 1400px;
    margin: 0 auto 80px;
    overflow: hidden;
}

.footer-mega-headline {
    font-family: 'Inter Tight', sans-serif;
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.05em;
    color: var(--salva-white);
    white-space: nowrap;
}

.footer-contact-grid {
    max-width: 1200px;
    margin: 0 auto 60px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--salva-border);
    border-bottom: 1px solid var(--salva-border);
}

.footer-contact-col {
    padding: 40px 30px;
    border-left: 1px solid var(--salva-border);
}

.footer-contact-col:first-child {
    border-left: none;
}

.footer-contact-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--salva-muted);
    margin-bottom: 12px;
}

.footer-contact-value {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--salva-white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link {
    position: relative;
    display: inline-block;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--salva-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.footer-link:hover::after {
    transform: scaleX(1);
}

.footer-link:hover {
    color: var(--salva-accent);
}

.footer-cta-wrapper {
    max-width: 1200px;
    margin: 0 auto 80px;
    text-align: center;
}

.footer-cta-btn {
    display: inline-block;
    width: 100%;
    padding: 24px 40px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--salva-white);
    background: none;
    border: 1px solid var(--salva-border);
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.footer-cta-btn:hover {
    border-color: var(--salva-accent);
    color: var(--salva-accent);
}

.footer-cta-btn:focus-visible {
    outline: 2px solid var(--salva-accent);
    outline-offset: 2px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid var(--salva-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: var(--salva-muted);
}

.footer-bottom-links a {
    color: var(--salva-muted);
    text-decoration: none;
    margin-left: 24px;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: var(--salva-white);
}

/* ======== KEYFRAMES ======== */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(300%); }
}

/* ======== RESPONSIVE: MOBILE (768px) ======== */
@media (max-width: 768px) {
    .nexus-header {
        padding: 16px 20px;
    }

    .header-logo img {
        height: 28px;
    }

    .menu-text {
        display: none;
    }

    .nav-link {
        font-size: 2rem;
    }

    .menu-footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        bottom: 30px;
    }

    /* Hero mobile */
    .salva-hero {
        padding: 120px 24px 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .hero-visual {
        order: -1;
    }

    .hero-visual img {
        max-width: 100%;
    }

    .hero-scroll-indicator {
        display: none;
    }

    /* Deal mobile */
    .salva-deal {
        padding: 80px 24px;
    }

    .deal-grid {
        grid-template-columns: 1fr;
    }

    .deal-divider {
        width: 100%;
        height: 1px;
        min-height: unset;
    }

    .deal-block {
        padding: 30px 0;
    }

    .deal-heading {
        font-size: 1.8rem;
    }

    .deal-decorative {
        font-size: 5rem;
    }

    /* Metrics mobile */
    .salva-metrics {
        padding: 60px 24px;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .metric-cell {
        border-left: none;
        border-bottom: 1px solid var(--salva-border);
        padding: 40px 20px;
    }

    .metric-cell:last-child {
        border-bottom: none;
    }

    .metric-number,
    .metric-prefix,
    .metric-suffix {
        font-size: 3rem;
    }

    .metric-prefix,
    .metric-suffix {
        font-size: 1.8rem;
    }

    /* Values mobile */
    .salva-values {
        padding: 80px 24px;
    }

    .value-item {
        grid-template-columns: 50px 1fr;
        gap: 16px;
    }

    .value-desc {
        grid-column: 1 / -1;
    }

    .value-headline {
        font-size: 1.5rem;
    }

    /* Product mobile */
    .salva-product {
        padding: 80px 24px;
    }

    .product-teardown {
        flex-direction: column;
        min-height: auto;
    }

    .product-annotations {
        position: relative;
        margin-top: 40px;
    }

    .annotation {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        flex-direction: row !important;
        text-align: left !important;
        margin-bottom: 24px;
    }

    .annotation-line {
        width: 40px;
    }

    /* Vision mobile */
    .salva-vision {
        padding: 100px 24px;
    }

    .vision-quote p {
        font-size: 2rem;
    }

    /* Footer mobile */
    .salva-footer {
        padding: 80px 24px 30px;
    }

    .footer-mega-headline {
        font-size: 2.5rem;
        white-space: normal;
    }

    .footer-contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-contact-col {
        border-left: none;
        border-bottom: 1px solid var(--salva-border);
        padding: 24px 0;
    }

    .footer-contact-col:last-child {
        border-bottom: none;
    }

    .footer-cta-btn {
        font-size: 0.8rem;
        padding: 20px 24px;
        letter-spacing: 1px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-bottom-links a {
        margin-left: 0;
        margin: 0 10px;
    }
}

/* ======== RESPONSIVE: TABLET (1024px) ======== */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 5rem;
    }

    .hero-visual {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }

    .deal-grid {
        grid-template-columns: 1fr;
    }

    .deal-divider {
        width: 100%;
        height: 1px;
        min-height: unset;
    }

    .deal-block {
        padding: 30px 20px;
    }

    .value-item {
        grid-template-columns: 60px 1fr;
        gap: 20px;
    }

    .value-desc {
        grid-column: 1 / -1;
    }

    .footer-contact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-contact-col:nth-child(3) {
        grid-column: 1 / -1;
        border-left: none;
        border-top: 1px solid var(--salva-border);
    }
}
