/* Fábrica OS — public experience */
:root {
    --bg: #07090f;
    --bg-soft: #0b0f18;
    --card: rgba(16, 21, 32, .84);
    --border: rgba(157, 173, 204, .15);
    --text: #f4f7fb;
    --muted: #9aa5b8;
    --primary: #6d7cff;
    --accent: #5eead4;
    --success: #34d399;
    --gold: #9aa6ff;
}

html { scroll-behavior: smooth; background: var(--bg); }

body {
    font-family: 'Manrope', system-ui, sans-serif;
    background:
        radial-gradient(900px 560px at 80% -8%, rgba(109,124,255,.14), transparent 65%),
        radial-gradient(720px 480px at 3% 34%, rgba(20,184,166,.06), transparent 68%),
        #07090f;
    letter-spacing: -.014em;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .19;
    background-image: linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(#000, transparent 72%);
}

.container { width: min(1280px, calc(100% - 3rem)); }

nav {
    background: rgba(7,9,15,.78);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(24px) saturate(140%);
}

.nav-inner { height: 78px; flex-wrap: nowrap; }

.brand {
    font: 650 1.05rem/1 'Space Grotesk', sans-serif;
    letter-spacing: -.035em;
    white-space: nowrap;
}

.brand small {
    margin-left: .3rem;
    color: #9aa6ff;
    font: 750 .55rem/1 'Manrope', sans-serif;
    letter-spacing: .14em;
}

.brand-badge {
    width: 35px;
    height: 35px;
    border-radius: 11px;
    background: linear-gradient(145deg, #8794ff, #5967e9 58%, #4d53b7);
    box-shadow: 0 10px 30px rgba(91,108,255,.28), inset 0 1px 0 rgba(255,255,255,.34);
}

.nav-links { gap: 1.65rem; font-size: .8rem; font-weight: 650; }
.nav-links a { transition: color .2s; }

.btn {
    min-height: 43px;
    padding: .68rem 1rem;
    border-radius: 11px;
    background: rgba(255,255,255,.035);
    font-size: .82rem;
    border-color: var(--border);
    transition: transform .2s, border-color .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(157,173,204,.3); background: rgba(255,255,255,.06); }
.btn.primary {
    background: linear-gradient(135deg, #7c8aff, #5968e8);
    color: #fff;
    box-shadow: 0 12px 30px rgba(82,98,226,.25), inset 0 1px 0 rgba(255,255,255,.25);
}

header.hero { padding: clamp(5rem, 9vw, 8.4rem) 0 5rem; min-height: 820px; display: flex; align-items: center; }
.hero-grid { grid-template-columns: minmax(0, .92fr) minmax(520px, 1.18fr); gap: clamp(2rem, 5vw, 5.5rem); }

.hero-badges { margin-bottom: 1.5rem; }
.badge {
    padding: .48rem .72rem;
    border-radius: 8px;
    border-color: rgba(126,140,255,.22);
    background: rgba(109,124,255,.075);
    color: #b9c1d3;
    font-weight: 650;
}
.badge i { color: #9aa6ff; }

.hero-title,
.section-title,
.feature-card strong,
.service-card h3,
.step strong {
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
    letter-spacing: -.045em;
}

.hero-title { font-size: clamp(3.1rem, 5.4vw, 5.8rem); line-height: .98; font-weight: 650; margin-bottom: 1.45rem; }
.hero-title span { color: #9aa6ff; }
.hero-text { max-width: 650px; color: #a6b0c2; font-size: clamp(1rem, 1.4vw, 1.18rem); line-height: 1.75; }

.hero-card {
    padding: 8px;
    border-radius: 25px;
    background: rgba(18,23,34,.78);
    border-color: rgba(157,173,204,.2);
    box-shadow: 0 46px 110px rgba(0,0,0,.48), 0 0 0 1px rgba(255,255,255,.025) inset;
}
.hero-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(142,154,255,.32), transparent 32%, transparent 72%, rgba(94,234,212,.12));
    pointer-events: none;
    z-index: 2;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    padding: 1px;
}
.hero-card img { display: block; aspect-ratio: 3/2; object-fit: cover; border-radius: 18px; filter: saturate(.82) contrast(1.04); }
.hero-card-label {
    position: absolute;
    z-index: 3;
    top: 1.25rem;
    left: 1.25rem;
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .42rem .62rem;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(7,9,15,.72);
    backdrop-filter: blur(16px);
    border-radius: 8px;
    color: #cbd2de;
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .025em;
}
.hero-card-label span { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.12); }
.floating { animation: none; transform: perspective(1200px) rotateY(-2deg) rotateX(1deg); }

.stats { gap: .65rem; margin-top: 2rem; }
.stat-card {
    padding: 1rem;
    background: rgba(13,17,26,.72);
    border-radius: 13px;
    border-color: rgba(157,173,204,.12);
}
.stat-label { color: #68748a; font-size: .62rem; }
.stat-value { font: 650 1.2rem/1.2 'Space Grotesk', sans-serif; }
.stat-note { color: #8792a6; font-size: .7rem; }

section { padding: clamp(4.5rem, 8vw, 7.5rem) 0; }
.section-eyebrow,
.section-kicker {
    display: inline-flex;
    color: #8996ff;
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .14em;
    margin-bottom: 1rem;
}
.section-title { font-size: clamp(2.2rem, 4vw, 4rem); font-weight: 650; max-width: 820px; }
.section-subtitle { color: #8f9aaf; line-height: 1.7; max-width: 760px; }

.grid-3 { grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.feature-card,
.step,
.service-card,
.client-card,
.company-panel {
    background: linear-gradient(145deg, rgba(18,24,37,.88), rgba(11,15,24,.92));
    border-color: rgba(157,173,204,.13);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.feature-card { padding: 1.55rem; min-height: 190px; align-content: start; gap: .8rem; }
.feature-card i { color: #8996ff; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(109,124,255,.11); }
.feature-card strong { font-size: 1.12rem; }
.feature-card span { color: #8f9aaf; font-size: .88rem; line-height: 1.65; }

.services-shell { border-radius: 24px; border-color: rgba(157,173,204,.13); background: #0a0e16; box-shadow: 0 32px 90px rgba(0,0,0,.28); }
.services-shell::before { background: rgba(109,124,255,.1); }
.service-icon { background: rgba(109,124,255,.11) !important; color: #9aa6ff !important; }
.service-tags span { border-radius: 7px !important; }

footer { border-top: 1px solid var(--border); background: #080b11; }

@media (max-width: 1020px) {
    .nav-links { display: none; }
    .hero-grid { grid-template-columns: 1fr; }
    header.hero { min-height: auto; }
    .hero-card { max-width: 820px; }
    .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .container { width: min(100% - 1.5rem, 1280px); }
    .nav-inner { height: 68px; }
    .nav-actions .btn:not(.primary) { display: none; }
    header.hero { padding: 3.5rem 0 3rem; }
    .hero-title { font-size: clamp(2.7rem, 13vw, 4rem); }
    .hero-card { border-radius: 18px; }
    .hero-card img { border-radius: 12px; }
    .stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
