/* ATE Iberia — 2026 */

:root {
    --black:  #090909;
    --dark:   #121212;
    --card:   #181818;
    --border: #222;
    --grey:   #888;
    --light:  #ccc;
    --white:  #f5f5f5;
    --accent: #00b4d8;
    --font:   'Inter', system-ui, sans-serif;
    --display:'Outfit', 'Inter', system-ui, sans-serif;
    --max:    1200px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    color: var(--light);
    background: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--accent); color: #000; }

/* ── SCROLLBAR ───────────────────────────── */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: var(--black);
}
::-webkit-scrollbar-thumb {
    background: #333;
    border: 3px solid var(--black);
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
}

/* ── NAV ─────────────────────────────────── */

#navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 100;
    transition: background .35s, box-shadow .35s;
}
#navbar.scrolled {
    background: rgba(9, 9, 9, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.nav-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(20px, 4vw, 48px);
    height: 72px;
}
.nav-logo img {
    height: 100px;
    width: auto;
    margin: -20px 0;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}
.nav-menu a {
    font-size: 14px;
    font-weight: 500;
    color: var(--grey);
    transition: color .2s;
    letter-spacing: .01em;
}
.nav-menu a:hover { color: var(--white); }
.nav-cta {
    background: var(--white) !important;
    color: var(--black) !important;
    padding: 8px 22px;
    border-radius: 6px;
    font-weight: 600 !important;
    font-size: 13px !important;
    transition: opacity .2s !important;
}
.nav-cta:hover { opacity: .85; }

.burger {
    display: none;
    background: none; border: none; cursor: pointer;
    width: 28px; height: 20px;
    position: relative; z-index: 101;
}
.burger span {
    display: block;
    width: 100%; height: 2px;
    background: var(--white);
    border-radius: 1px;
    transition: .3s;
    position: absolute; left: 0;
}
.burger span:first-child { top: 0; }
.burger span:last-child  { bottom: 0; }
.burger.open span:first-child { top: 50%; transform: translateY(-50%) rotate(45deg); }
.burger.open span:last-child  { bottom: 50%; transform: translateY(50%) rotate(-45deg); }


/* ── HERO ────────────────────────────────── */

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    gap: 40px;
    padding: 120px clamp(20px, 4vw, 48px) 80px;
    max-width: var(--max);
    margin: 0 auto;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: 40%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.08) 0%, transparent 60%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.hero-media {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-product-img {
    max-height: 70vh;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 40px 80px rgba(0,0,0,.5));
}

.hero-text h1 {
    font-family: var(--display);
    font-size: clamp(30px, 4vw, 50px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.03em;
    margin-bottom: 20px;
    text-wrap: balance;
    background: linear-gradient(135deg, #ffffff 30%, #99d6ea 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-text p {
    font-size: clamp(15px, 1.2vw, 18px);
    color: var(--grey);
    max-width: 440px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── BUTTONS ─────────────────────────────── */

.btn-main {
    display: inline-block;
    padding: 13px 32px;
    background: var(--white);
    color: var(--black);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0);
}
.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

.btn-outline {
    display: inline-block;
    padding: 13px 32px;
    background: transparent;
    color: var(--light);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-outline:hover {
    border-color: var(--white);
    color: var(--white);
    background: rgba(255,255,255,.03);
    transform: translateY(-2px);
}

.link-arrow {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    transition: gap .2s;
    margin-top: 8px;
}
.link-arrow:hover { color: var(--accent); }


/* ── INTRO STRIP ─────────────────────────── */

.intro-strip {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 64px 0;
}
.intro-strip p {
    font-size: clamp(16px, 1.4vw, 22px);
    font-weight: 300;
    line-height: 1.7;
    color: var(--grey);
    max-width: 900px;
}


/* ── PRODUCT LAYOUTS ─────────────────────── */

/* Full-width product */
.product-full {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    align-items: center;
    overflow: hidden;
    background: var(--dark);
}
.product-full.dark {
    background: var(--black);
}
.product-full-img {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    height: 100%;
}
.product-full-img img {
    max-height: 80vh;
    width: auto;
    object-fit: contain;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-full:hover .product-full-img img {
    transform: scale(1.03) translateY(-10px);
}

.product-full-body {
    padding: clamp(40px, 6vw, 100px);
    max-width: 560px;
}
.product-full-body h2 {
    font-family: var(--display);
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -.02em;
    margin-bottom: 16px;
    line-height: 1.15;
}
.product-full-body p {
    color: var(--grey);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
}
.product-full-body ul {
    margin-bottom: 28px;
}
.product-full-body ul li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--light);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.product-full-body ul li:last-child { border-bottom: none; }

/* Split product */
.product-split {
    padding: clamp(60px, 8vw, 120px) 0;
    border-bottom: 1px solid var(--border);
}
.product-split-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: center;
}
.product-split-media {
    overflow: hidden;
    border-radius: 8px;
}
.product-split-media img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-split:hover .product-split-media img {
    transform: scale(1.04);
}
.product-split-text h2 {
    font-family: var(--display);
    font-size: clamp(26px, 2.8vw, 40px);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -.02em;
    margin-bottom: 14px;
    line-height: 1.15;
}
.product-split-text p {
    color: var(--grey);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
}
.product-split-text ul {
    margin-bottom: 24px;
}
.product-split-text ul li {
    padding: 5px 0;
    font-size: 14px;
    color: var(--light);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.product-split-text ul li:last-child { border-bottom: none; }

.reversed .product-split-inner {
    direction: rtl;
}
.reversed .product-split-inner > * {
    direction: ltr;
}

.eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}


/* ── ABOUT ───────────────────────────────── */

.about {
    padding: clamp(80px, 10vw, 160px) 0;
    background: var(--dark);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.about-lead {
    max-width: 680px;
    margin-bottom: 64px;
}
.about-lead h2 {
    font-family: var(--display);
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -.02em;
    margin-bottom: 20px;
    line-height: 1.15;
}
.about-lead p {
    font-size: 16px;
    color: var(--grey);
    line-height: 1.8;
}

.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.pillar {
    background: var(--card);
    padding: clamp(28px, 3vw, 48px);
    transition: background 0.4s ease;
}
.pillar:hover {
    background: #1e1e1e;
}
.pillar h3 {
    font-family: var(--display);
    font-size: 48px;
    font-weight: 800;
    color: rgba(255,255,255,.06);
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -.03em;
}
.pillar h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 10px;
}
.pillar p {
    font-size: 14px;
    color: var(--grey);
    line-height: 1.65;
}


/* ── CONTACT ─────────────────────────────── */

.contact {
    padding: clamp(80px, 10vw, 140px) 0;
}
.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: start;
}
.contact-left h2 {
    font-family: var(--display);
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -.02em;
    margin-bottom: 14px;
    line-height: 1.15;
}
.contact-left p {
    color: var(--grey);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 32px;
}
.contact-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.contact-meta a {
    font-size: 14px;
    color: var(--grey);
    transition: color .2s;
}
.contact-meta a:hover { color: var(--white); }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field input,
.field textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font);
    font-size: 14px;
    color: var(--white);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    outline: none;
    transition: border-color .2s;
    resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
    color: #555;
}
.field input:focus,
.field textarea:focus {
    border-color: #444;
}

.form-ok {
    font-size: 14px;
    color: var(--accent);
    margin-top: 4px;
}


/* ── FOOTER ──────────────────────────────── */

footer {
    border-top: 1px solid var(--border);
    padding: 48px 0;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}
.footer-logo {
    height: 80px;
    width: auto;
    margin: -16px 0;
}
.footer-brand span {
    font-size: 13px;
    color: #555;
    max-width: 260px;
}
.footer-links {
    display: flex;
    gap: 28px;
}
.footer-links a {
    font-size: 13px;
    color: #555;
    transition: color .2s;
}
.footer-links a:hover { color: var(--white); }
.footer-copy {
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: #333;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}


/* ── REVEAL ──────────────────────────────── */

.reveal-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.reveal-up.visible {
    opacity: 1;
    transform: none;
}


/* ── RESPONSIVE ──────────────────────────── */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
        text-align: center;
    }
    .hero-media { order: -1; }
    .hero-product-img { max-height: 45vh; }
    .hero-text p { max-width: none; }
    .hero-actions { justify-content: center; }

    .product-full {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .product-full-img { padding: 40px 20px; }
    .product-full-img img { max-height: 50vh; }

    .product-split-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .reversed .product-split-inner { direction: ltr; }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .form-row { grid-template-columns: 1fr; }

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

    .nav-menu {
        position: fixed;
        top: 0; right: -100%;
        width: 280px; height: 100vh;
        background: var(--dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        transition: right .35s cubic-bezier(.4,0,.2,1);
        border-left: 1px solid var(--border);
    }
    .nav-menu.open { right: 0; }
    .nav-menu a { font-size: 18px; }
    .burger { display: block; }
}

@media (max-width: 600px) {
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .footer-links { flex-direction: column; gap: 12px; }
}
