/* =============================================================================
   GLUNFY · v9 — Agency-grade premium site
   ============================================================================= */

:root {
    color-scheme: dark;

    --bg:           #000000;
    --bg-soft:      #050507;
    --bg-elev-1:    #08080a;
    --bg-elev-2:    #0e0e11;
    --bg-elev-3:    #15151a;
    --bg-elev-4:    #1c1c22;

    --text:         #ffffff;
    --text-soft:    #e8e8ea;
    --text-mid:     #a0a0a6;
    --text-dim:     #6a6a70;
    --text-faint:   #3a3a40;

    --border:       rgba(255,255,255,0.06);
    --border-mid:   rgba(255,255,255,0.12);
    --border-strong:rgba(255,255,255,0.22);

    --green:        #4ade80;

    --ease-snap:   cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-glide:  cubic-bezier(0.22, 1, 0.36, 1);
    --ease-power:  cubic-bezier(0.76, 0, 0.24, 1);
    --ease-expo:   cubic-bezier(0.16, 1, 0.3, 1);

    --container: 1280px;
    --side-pad:  32px;
    --radius:    14px;
}

@media (max-width: 880px) { :root { --side-pad: 22px; --radius: 12px; } }
@media (max-width: 480px) { :root { --side-pad: 16px; } }

/* ─────────────── RESET ─────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    position: relative;
}

/* Cursor light */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 900px; height: 900px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
    transform: translate(calc(var(--mx, 50%) - 450px), calc(var(--my, 50%) - 450px));
    transition: transform 0.5s var(--ease-glide);
    mix-blend-mode: screen;
    will-change: transform;
}

/* Grid background sutil */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 90%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 90%);
}

/* Noise texture */
.bg-noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.025;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; color: inherit; font: inherit; }
::selection { background: rgba(255,255,255,0.22); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 99px; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--side-pad);
    position: relative;
    z-index: 2;
}

/* Scroll progress */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, transparent, #fff 50%, transparent);
    z-index: 100;
    transition: width 0.1s linear;
    pointer-events: none;
    box-shadow: 0 0 12px rgba(255,255,255,0.6);
}

/* ─────────────── HEADER ─────────────── */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    padding: 13px 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border-bottom: 1px solid transparent;
    transition: background 0.4s, border-color 0.4s, padding 0.4s;
}
.header.scrolled {
    background: rgba(0,0,0,0.85);
    border-bottom-color: var(--border);
    padding: 8px 0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.logo {
    display: inline-flex;
    align-items: center;
    height: 44px;
    transition: opacity 0.2s;
}
.logo:hover { opacity: 0.8; }
.logo img { height: 100%; width: auto; object-fit: contain; }

.nav {
    display: flex;
    gap: 38px;
    margin-left: auto;
    margin-right: 28px;
}
.nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-mid);
    transition: color 0.25s;
    position: relative;
}
.nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -6px;
    width: 100%; height: 1px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s var(--ease-expo);
}
.nav a:hover { color: #fff; }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 500;
    border: 1px solid var(--border-strong);
    border-radius: 99px;
    color: #fff;
    transition: all 0.3s var(--ease-snap);
    position: relative;
    overflow: hidden;
}
.btn-outline svg { transition: transform 0.3s var(--ease-bounce); }
.btn-outline:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}
.btn-outline:hover svg { transform: translate(2px, -2px); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: #fff;
    transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
    .nav, .header > .container > .btn-outline { display: none; }
    .nav-toggle { display: flex; }
    .nav.open {
        display: flex;
        position: fixed;
        top: 70px; left: 0; right: 0;
        flex-direction: column;
        gap: 0;
        padding: 16px var(--side-pad) 24px;
        background: rgba(0,0,0,0.97);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        margin: 0;
    }
    .nav.open a { padding: 16px 0; font-size: 17px; border-bottom: 1px solid var(--border); }
    .nav.open a::after { display: none; }
}

/* ─────────────── HERO ─────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 140px 0 80px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Floating orbs no fundo do hero */
.hero-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.05), transparent 70%);
    filter: blur(40px);
}
.orb-1 { top: 10%; right: 20%; width: 400px; height: 400px; animation: orbFloat 14s ease-in-out infinite; }
.orb-2 { bottom: 15%; left: 10%; width: 300px; height: 300px; animation: orbFloat 18s ease-in-out infinite reverse; }
.orb-3 { top: 50%; right: 40%; width: 250px; height: 250px; opacity: 0.5; animation: orbFloat 22s ease-in-out infinite 5s; }
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(40px, -30px) scale(1.1); }
    66%      { transform: translate(-30px, 20px) scale(0.95); }
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px 7px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-mid);
    border-radius: 99px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-mid);
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s var(--ease-glide);
    animation: heroIn 1s var(--ease-power) backwards;
}
.tag-dot {
    width: 7px; height: 7px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--green);
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    font-size: clamp(64px, 11vw, 160px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.055em;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #a8a8a8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-sub {
    font-size: clamp(16px, 1.55vw, 19px);
    color: var(--text-mid);
    margin-bottom: 42px;
    max-width: 520px;
    line-height: 1.55;
    animation: heroIn 1s var(--ease-power) 0.3s backwards;
}
.hero-sub strong { color: #fff; font-weight: 600; }

.hero-cta {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    animation: heroIn 1s var(--ease-power) 0.5s backwards;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 30px;
    background: #fff;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    border-radius: 99px;
    transition: transform 0.4s var(--ease-bounce), box-shadow 0.4s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.8s;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 50px rgba(255,255,255,0.2);
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary svg { transition: transform 0.3s var(--ease-bounce); }
.btn-primary:hover svg { transform: translate(4px, -4px); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 22px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-mid);
    transition: color 0.25s;
    border-radius: 99px;
}
.btn-ghost:hover { color: #fff; }
.btn-ghost svg { transition: transform 0.3s; }
.btn-ghost:hover svg { transform: translateX(4px); }

/* Hero visual + mask na imagem */
.hero-visual {
    position: relative;
    animation: heroVisualIn 1.3s var(--ease-power) 0.4s backwards;
    perspective: 1200px;
    aspect-ratio: 1 / 1;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}
.visual-ring {
    position: absolute;
    inset: 5%;
    border: 1px dashed var(--border-mid);
    border-radius: 50%;
    animation: ringSpin 60s linear infinite;
    opacity: 0.6;
}
.visual-ring::before {
    content: '';
    position: absolute;
    top: -3px; left: 50%;
    width: 6px; height: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 12px #fff;
    transform: translateX(-50%);
}
@keyframes ringSpin { to { transform: rotate(360deg); } }

.logo-3d {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: float 6s ease-in-out infinite;
    transition: transform 0.4s var(--ease-glide);
    will-change: transform;
    /* MASK: faz a borda escura da imagem fundir com o bg #000 */
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at center, #000 55%, transparent 90%);
    mask-image: radial-gradient(ellipse 70% 70% at center, #000 55%, transparent 90%);
}
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-16px) rotate(0.6deg); }
}

@keyframes heroIn {
    from { opacity: 0; transform: translateY(40px); filter: blur(6px); }
    to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes heroVisualIn {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

/* Scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 30px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 10.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-faint);
    z-index: 3;
    animation: heroIn 1s var(--ease-power) 1s backwards;
}
.hint-line {
    width: 1px; height: 40px;
    background: linear-gradient(180deg, var(--text-faint), transparent);
    position: relative;
    overflow: hidden;
}
.hint-line::before {
    content: '';
    position: absolute;
    top: -100%; left: 0;
    width: 100%; height: 100%;
    background: #fff;
    animation: hintScroll 2.5s ease-in-out infinite;
}
@keyframes hintScroll {
    0%   { top: -100%; }
    100% { top: 100%; }
}

@media (max-width: 880px) {
    .hero { min-height: auto; padding: 110px 0 60px; }
    .hero-inner { grid-template-columns: 1fr; gap: 50px; text-align: left; }
    .hero-visual { max-width: 360px; }
    .hero-title { font-size: clamp(64px, 18vw, 110px); }
    .hero-cta { justify-content: flex-start; }
    .hero-scroll-hint { display: none; }
}

/* ─────────────── MANIFESTO ─────────────── */
.manifesto {
    padding: 140px 0;
    border-top: 1px solid var(--border);
    position: relative;
}
.manifesto-text {
    font-family: 'Inter', sans-serif;
    font-size: clamp(28px, 4vw, 56px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.035em;
    color: var(--text-faint);
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}
.manifesto-text span {
    display: inline;
    transition: color 0.6s var(--ease-power);
}
.manifesto-text span.italic {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.02em;
}
.manifesto-text span.highlight {
    color: var(--text-faint);
}
.manifesto-text.in span { color: var(--text); }
.manifesto-text.in span.highlight {
    background: linear-gradient(120deg, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

@media (max-width: 700px) {
    .manifesto { padding: 80px 0; }
    .manifesto-text { font-size: clamp(22px, 6vw, 32px); text-align: left; }
}

/* ─────────────── MARQUEE ─────────────── */
.marquee-section {
    padding: 40px 0;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    position: relative;
}
.marquee-section::before,
.marquee-section::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 200px;
    z-index: 2;
    pointer-events: none;
}
.marquee-section::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee-section::after  { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee {
    display: flex;
    gap: 56px;
    animation: marqueeScroll 35s linear infinite;
    white-space: nowrap;
}
.marquee:hover { animation-play-state: paused; }
.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-size: clamp(30px, 4.5vw, 60px);
    font-weight: 900;
    letter-spacing: -0.035em;
    color: var(--text-faint);
    transition: color 0.3s;
    flex-shrink: 0;
}
.marquee-item:hover { color: #fff; }
.marquee-item .dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ─────────────── SECTION HEAD ─────────────── */
.section-head {
    text-align: center;
    margin-bottom: 80px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
.section-wrap-label {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}
.section-label {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-mid);
    position: relative;
    display: inline-block;
    padding: 0 20px;
}
.section-label::before,
.section-label::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px; height: 1px;
    background: var(--border-mid);
}
.section-label::before { right: 100%; }
.section-label::after  { left: 100%; }

.section-title {
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: 20px;
}
.section-title span {
    background: linear-gradient(180deg, #888 0%, #555 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.section-desc {
    font-size: 16px;
    color: var(--text-mid);
    line-height: 1.6;
    max-width: 580px;
    margin: 0 auto;
}

@media (max-width: 700px) {
    .section-head { margin-bottom: 50px; }
}

/* ─────────────── ECOSYSTEM CARDS ─────────────── */
.ecosystem {
    padding: 140px 0;
    border-top: 1px solid var(--border);
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.card {
    position: relative;
    transition: transform 0.5s var(--ease-power);
    cursor: pointer;
    will-change: transform;
    transform-style: preserve-3d;
}
.card-pending { cursor: default; }
.card-inner {
    position: relative;
    background: linear-gradient(180deg, var(--bg-elev-1), var(--bg-elev-2));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 26px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.4s, background 0.4s;
    overflow: hidden;
}
.card-active:hover .card-inner {
    border-color: var(--border-strong);
    background: linear-gradient(180deg, var(--bg-elev-2), var(--bg-elev-3));
}
/* Glow halo on hover */
.card-active .card-inner::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius);
    padding: 1px;
    background: conic-gradient(from var(--angle, 0deg), transparent 0%, rgba(255,255,255,0.4) 25%, transparent 50%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
}
.card-active:hover .card-inner::before {
    opacity: 1;
    animation: rotateGradient 3s linear infinite;
}
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
@keyframes rotateGradient { to { --angle: 360deg; } }

/* Spot light no card */
.card-active .card-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle 240px at var(--mx-card, 50%) var(--my-card, 50%), rgba(255,255,255,0.06), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.card-active:hover .card-inner::after { opacity: 1; }

.card-icon {
    width: 32px; height: 32px;
    color: #fff;
    margin-bottom: 22px;
    position: relative;
    z-index: 2;
}
.card-icon svg { width: 100%; height: 100%; }
.card-icon-img { width: 40px; height: 40px; }
.card-icon-img img { width: 100%; height: 100%; object-fit: contain; display: block; }

.card-pending .card-icon { color: var(--text-mid); }
.card-pending .card-title,
.card-pending .card-desc { color: var(--text-mid); }
.card-pending .card-link { color: var(--text-faint); }

.loader-svg { transform-origin: 32px 32px; animation: spin 2.5s linear infinite; }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.card-status {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-mid);
    margin-bottom: 14px;
}
.status-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
}
.status-dot.active { background: var(--green); box-shadow: 0 0 8px var(--green); }
.status-dot.pending { background: var(--text-faint); }

.card-title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}
.card-desc {
    font-size: 13.5px;
    color: var(--text-mid);
    line-height: 1.55;
    flex: 1;
    position: relative;
    z-index: 2;
}
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 2;
}
.card-link {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-mid);
    letter-spacing: 0.02em;
}
.card-arrow {
    color: var(--text-mid);
    transition: transform 0.3s var(--ease-bounce), color 0.3s;
}
.card-active:hover .card-arrow {
    transform: translate(4px, -4px);
    color: #fff;
}
.card-active:hover .card-link { color: #fff; }

@media (max-width: 1000px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .cards-grid { grid-template-columns: 1fr; gap: 14px; }
    .card-inner { min-height: 240px; padding: 26px 24px; }
}

/* ─────────────── ATUACAO BENTO ─────────────── */
.atuacao {
    padding: 140px 0;
    border-top: 1px solid var(--border);
}
.bento-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    grid-template-areas:
        "tec mid mon"
        "tec gro gro";
    gap: 20px;
    min-height: 540px;
}
.bento {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-elev-1), var(--bg-elev-2));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: transform 0.5s var(--ease-power), border-color 0.4s, background 0.4s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 240px;
}
.bento:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    background: linear-gradient(180deg, var(--bg-elev-2), var(--bg-elev-3));
}
.bento:nth-child(1) { grid-area: tec; }
.bento:nth-child(2) { grid-area: mid; }
.bento:nth-child(3) { grid-area: mon; }
.bento:nth-child(4) { grid-area: gro; }
.bento-content {
    position: relative;
    z-index: 2;
}
.bento-icon {
    width: 44px; height: 44px;
    padding: 9px;
    background: var(--bg-elev-3);
    border: 1px solid var(--border-mid);
    border-radius: 11px;
    color: #fff;
    margin-bottom: 22px;
    transition: transform 0.4s var(--ease-bounce), border-color 0.4s;
}
.bento:hover .bento-icon { transform: scale(1.08) rotate(-4deg); border-color: var(--border-strong); }
.bento-icon svg { width: 100%; height: 100%; }
.bento-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.015em;
    margin-bottom: 10px;
}
.bento-desc {
    font-size: 13.5px;
    color: var(--text-mid);
    line-height: 1.6;
    max-width: 360px;
}
.bento-visual {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.grid-lines {
    position: absolute;
    top: 0; right: 0;
    width: 60%; height: 100%;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: linear-gradient(135deg, transparent 30%, #000);
    -webkit-mask-image: linear-gradient(135deg, transparent 30%, #000);
}
.grid-lines.lines-2 {
    width: 50%;
    background-size: 24px 24px;
    mask-image: radial-gradient(circle at top right, #000, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at top right, #000, transparent 80%);
}

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        grid-template-areas:
            "tec tec"
            "mid mon"
            "gro gro";
        min-height: 0;
    }
}
@media (max-width: 540px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "tec"
            "mid"
            "mon"
            "gro";
        gap: 14px;
    }
    .bento { min-height: 200px; padding: 26px 22px; }
}

/* ─────────────── MÉTODO / STEPS ─────────────── */
.metodo {
    padding: 140px 0;
    border-top: 1px solid var(--border);
}
.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    counter-reset: step;
}
.steps::before {
    content: '';
    position: absolute;
    top: 38px; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-mid) 20%, var(--border-mid) 80%, transparent);
}
.step {
    position: relative;
    padding-top: 0;
}
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px; height: 76px;
    border: 1px solid var(--border-mid);
    border-radius: 50%;
    background: var(--bg);
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 22px;
    position: relative;
    z-index: 2;
    transition: border-color 0.4s, background 0.4s, transform 0.4s var(--ease-bounce);
}
.step:hover .step-number {
    border-color: var(--border-strong);
    background: var(--bg-elev-2);
    transform: scale(1.05);
}
.step-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 10px;
}
.step-desc {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.65;
    max-width: 320px;
}

@media (max-width: 800px) {
    .steps { grid-template-columns: 1fr; gap: 40px; }
    .steps::before { display: none; }
}

/* ─────────────── CTA ─────────────── */
.cta {
    padding: 120px 0 140px;
    border-top: 1px solid var(--border);
}
.cta-card {
    position: relative;
    padding: 90px 40px;
    text-align: center;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, var(--bg-elev-1), var(--bg));
}
.cta-bg-glow {
    position: absolute;
    top: -50%; left: 50%;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 65%);
    transform: translateX(-50%);
    filter: blur(60px);
    pointer-events: none;
}
.frame-corner {
    position: absolute;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255,255,255,0.4);
    z-index: 2;
}
.frame-corner.tl { top: 16px; left: 16px; border-right: none; border-bottom: none; }
.frame-corner.tr { top: 16px; right: 16px; border-left: none; border-bottom: none; }
.frame-corner.bl { bottom: 16px; left: 16px; border-right: none; border-top: none; }
.frame-corner.br { bottom: 16px; right: 16px; border-left: none; border-top: none; }

.cta-eyebrow {
    position: relative; z-index: 2;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-mid);
    margin-bottom: 22px;
}
.cta-title {
    position: relative; z-index: 2;
    font-size: clamp(36px, 6vw, 76px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.cta-title span {
    background: linear-gradient(180deg, #888 0%, #444 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.cta-sub {
    position: relative; z-index: 2;
    font-size: 16px;
    color: var(--text-mid);
    max-width: 540px;
    margin: 0 auto 36px;
    line-height: 1.6;
}
.cta-actions {
    position: relative; z-index: 2;
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 700px) {
    .cta { padding: 80px 0 100px; }
    .cta-card { padding: 60px 20px; }
    .cta-actions { flex-direction: column; gap: 0; }
}

/* ─────────────── FOOTER ─────────────── */
.footer {
    border-top: 1px solid var(--border);
    padding: 80px 0 36px;
    background: var(--bg);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--border);
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.footer-logo { height: 44px; width: auto; object-fit: contain; display: block; margin-left: -8px; }
.footer-tag { font-size: 13.5px; color: var(--text-mid); max-width: 280px; line-height: 1.55; }

.footer-nav, .footer-status {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-nav h4, .footer-status h4 {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 6px;
}
.footer-nav a {
    font-size: 13.5px;
    color: var(--text-mid);
    transition: color 0.2s;
}
.footer-nav a:hover { color: #fff; }
.footer-status .status-line {
    display: flex; align-items: center; gap: 8px;
    font-size: 13.5px;
    color: var(--text-mid);
}
.footer-status .status-version {
    font-family: 'Inter', monospace;
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 0.04em;
}

.footer-copy {
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--text-dim);
}
.footer-mark {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
}

@media (max-width: 880px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 30px; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-copy { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ─────────────── REVEAL ANIMATIONS ─────────────── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(6px);
    transition: opacity 1s var(--ease-power), transform 1s var(--ease-power), filter 1s var(--ease-power);
}
.reveal.in {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}
.word .word-inner {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 1.1s var(--ease-power);
}
.in .word-inner,
.word.in .word-inner {
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
    .reveal { opacity: 1; transform: none; filter: none; }
    .manifesto-text span { color: var(--text); }
    .word .word-inner { transform: none; }
}
