:root {
    --bg: #FAFBFD;
    --bg-warm: #F6F7FB;
    --card: #FFFFFF;
    --primary: #1A56DB;
    --primary-soft: #EBF0FE;
    --accent: #7DD3FC;
    --accent-soft: #E0F4FE;
    --text: #171B26;
    --text-body: #3B4050;
    --text-quiet: #7A7F8E;
    --line: #E4E7EE;
    --line-soft: #F0F1F5;
    --cta-grad: linear-gradient(135deg, #1A56DB 0%, #2563EB 100%);
}

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

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ─── NAV ─── */
.nav {
    position: fixed; top: 0; width: 100%; z-index: 90;
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 40px;
    background: rgba(250,251,253,0.88);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line-soft);
}
.nav-brand {
    display: flex; align-items: center; gap: 8px;
    font-size: 18px; font-weight: 700; color: var(--text);
    letter-spacing: -0.4px; text-decoration: none;
}
.nav-brand svg { width: 32px; height: 32px; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-link-ghost {
    padding: 8px 16px;
    background: transparent; color: var(--text);
    border: 1px solid var(--line);
    border-radius: 8px; font-size: 13px; font-weight: 600;
    text-decoration: none;
    transition: border-color .2s, color .2s;
    display: flex; align-items: center; gap: 6px;
}
.nav-link-ghost:hover { border-color: var(--primary); color: var(--primary); }
.nav-link-ghost .dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; }
.nav-link {
    padding: 8px 24px;
    background: var(--cta-grad); color: #fff;
    border-radius: 8px; font-size: 13px; font-weight: 600;
    text-decoration: none;
    transition: box-shadow .2s;
}
.nav-link:hover { box-shadow: 0 4px 14px rgba(26,86,219,.28); }

/* ─── HERO ─── */
.hero {
    max-width: 960px; margin: 0 auto;
    padding: 152px 24px 72px;
    display: flex; align-items: center; gap: 56px;
}
.hero-text { flex: 1.3; }
.hero-text h1 {
    font-size: 40px; font-weight: 800; letter-spacing: -1.2px;
    line-height: 1.2; color: var(--text); margin-bottom: 16px;
}
.hero-text h1 .accent-dot {
    display: inline-block; width: 10px; height: 10px;
    background: var(--accent); border-radius: 50%;
    margin-left: 2px; vertical-align: baseline;
    position: relative; top: -2px;
}
.hero-text .lede {
    font-size: 16px; color: var(--text-quiet);
    max-width: 440px; margin-bottom: 16px;
}
.hero-text .solve {
    font-size: 15px; color: var(--primary); font-weight: 500;
    margin-bottom: 32px;
}
.hero-cta {
    display: inline-block; padding: 16px 32px;
    background: var(--cta-grad); color: #fff;
    border-radius: 8px; font-size: 15px; font-weight: 600;
    text-decoration: none;
    transition: transform .15s, box-shadow .2s;
}
.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,86,219,.25);
}
.hero-visual {
    flex: 1;
    display: flex; justify-content: center; align-items: center;
}
.hero-visual svg { width: 200px; height: 200px; }

/* ─── TOPO ─── */
.topo-section {
    background: var(--bg-warm);
    padding: 64px 24px;
}
.topo-inner {
    max-width: 880px; margin: 0 auto;
}
.topo-inner h2 {
    font-size: 13px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: var(--primary);
    margin-bottom: 32px; text-align: center;
}
.topo-svg {
    display: block;
    width: 100%;
    max-width: 740px;
    margin: 0 auto;
}

/* ─── PRODUCTS ─── */
.products {
    max-width: 960px; margin: 0 auto;
    padding: 72px 24px;
}
.products > h2 {
    font-size: 26px; font-weight: 700; color: var(--text);
    margin-bottom: 16px; letter-spacing: -0.5px;
}
.products > p {
    font-size: 15px; color: var(--text-quiet);
    margin-bottom: 40px; max-width: 520px;
}
.product-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.p-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 32px;
    transition: box-shadow .25s;
}
.p-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.05); }
.p-card.wide { grid-column: 1 / -1; }
.p-card .tag {
    display: inline-block;
    font-size: 11px; font-weight: 700; letter-spacing: .4px;
    padding: 4px 8px; border-radius: 5px;
    margin-bottom: 16px;
}
.p-card.box .tag { background: var(--primary-soft); color: var(--primary); }
.p-card.gw .tag { background: #ECFDF5; color: #166050; }
.p-card.agent .tag { background: #FDE68A; color: #78350F; }
.p-card.brain .tag { background: var(--accent-soft); color: #0C4A6E; }
.p-card h3 {
    font-size: 17px; font-weight: 700; color: var(--text);
    margin-bottom: 8px;
}
.p-card p {
    font-size: 14px; color: var(--text-quiet); line-height: 1.65;
}

/* ─── FABRICA ─── */
.fabrica {
    background: #0F1420;
    color: #E4E7F0;
    padding: 72px 24px;
    position: relative;
    overflow: hidden;
}
.fabrica::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(125,211,252,.08) 0%, transparent 70%);
    top: -100px; right: -100px;
    pointer-events: none;
}
.fabrica-inner {
    max-width: 960px; margin: 0 auto;
    position: relative; z-index: 1;
}
.fabrica-head { margin-bottom: 40px; }
.fabrica-head .eyebrow {
    font-size: 12px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: var(--accent);
    margin-bottom: 8px;
}
.fabrica-head h2 {
    font-size: 28px; font-weight: 700; color: #F4F5F7;
    margin-bottom: 8px; letter-spacing: -0.5px;
}
.fabrica-head p { font-size: 15px; color: #B0B4C0; max-width: 480px; }
.fabrica-head p em { color: var(--accent); font-style: normal; font-weight: 500; }
.fabrica-body { display: flex; gap: 32px; align-items: stretch; }

/* Chat mockup */
.chat {
    flex: 1.1;
    background: #181E2C;
    border: 1px solid #2A3040;
    border-radius: 16px;
    overflow: hidden;
}
.chat-top {
    display: flex; align-items: center; gap: 8px;
    padding: 16px 16px;
    border-bottom: 1px solid #2A3040;
}
.chat-av {
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--cta-grad);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; color: #fff;
}
.chat-name { font-size: 13px; font-weight: 600; color: #D4D6DE; }
.chat-status { font-size: 10px; color: #4ade80; }
.chat-msgs { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.msg {
    max-width: 88%; padding: 8px 16px;
    border-radius: 12px; font-size: 13px; line-height: 1.6;
}
.msg.u {
    align-self: flex-end;
    background: var(--primary); color: #fff;
    border-bottom-right-radius: 3px;
}
.msg.a {
    align-self: flex-start;
    background: #222838; color: #E0E2EA;
    border: 1px solid #2E3548;
    border-bottom-left-radius: 3px;
}

/* Notes */
.fabrica-notes {
    flex: 1;
    display: flex; flex-direction: column;
    justify-content: center; gap: 24px;
}
.fn-item { display: flex; align-items: flex-start; gap: 16px; }
.fn-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: rgba(125,211,252,.12);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; flex-shrink: 0; margin-top: 1px;
}
.fn-item strong { display: block; font-size: 13px; color: #EAECF0; margin-bottom: 0; }
.fn-item p { font-size: 12px; color: #A0A4B0; margin: 0; line-height: 1.5; }

.faber-cta { margin-top: 40px; display: flex; align-items: center; gap: 16px; }
.faber-cta-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px;
    background: var(--cta-grad); color: #fff;
    border-radius: 8px; font-size: 14px; font-weight: 600;
    text-decoration: none;
    transition: transform .15s, box-shadow .2s;
}
.faber-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,86,219,.35);
}
.faber-cta-note {
    font-size: 12px; color: #8B90A0;
    display: flex; align-items: center; gap: 6px;
}
.faber-cta-note .dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; }

/* ─── DESIGN LANG ─── */
.design-lang { background: #0F1420; padding: 0 24px 72px; }
.design-lang-inner {
    max-width: 960px; margin: 0 auto;
    border-top: 1px solid #2A3040;
    padding-top: 40px;
}
.design-lang-inner .eyebrow {
    font-size: 11px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: #8B90A0;
    margin-bottom: 24px;
}
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dl-swatch { width: 40px; height: 40px; border-radius: 8px; margin-bottom: 8px; }
.dl-item h4 { font-size: 13px; font-weight: 650; color: #E0E2EA; margin-bottom: 8px; }
.dl-item p { font-size: 12px; color: #A0A4B0; line-height: 1.5; }

/* ─── WHY ─── */
.why { max-width: 960px; margin: 0 auto; padding: 72px 24px; }
.why > h2 {
    font-size: 26px; font-weight: 700; color: var(--text);
    margin-bottom: 32px; letter-spacing: -0.5px;
}
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
}
.why-card h4 {
    font-size: 15px; font-weight: 650; color: var(--text);
    margin-bottom: 8px;
    display: flex; align-items: center; gap: 8px;
}
.why-card h4 .pip {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent); flex-shrink: 0;
}
.why-card p { font-size: 13px; color: var(--text-quiet); line-height: 1.6; padding-left: 16px; }
.why-card.wide { grid-column: 1 / -1; }

/* ─── PARTNER ─── */
.partner { background: var(--bg-warm); padding: 72px 24px; }
.partner-inner {
    max-width: 960px; margin: 0 auto;
    display: flex; gap: 40px; align-items: flex-start;
}
.partner-text { flex: 1.2; }
.partner-eyebrow {
    font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--primary);
    margin-bottom: 8px;
}
.partner-text h2 {
    font-size: 26px; font-weight: 700; color: var(--text);
    margin-bottom: 16px; letter-spacing: -0.5px;
}
.partner-text > p {
    font-size: 15px; color: var(--text-quiet);
    margin-bottom: 32px; max-width: 440px;
}
.partner-points { display: flex; flex-direction: column; gap: 16px; }
.pp { display: flex; align-items: flex-start; gap: 16px; }
.pp-num {
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--primary-soft); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; flex-shrink: 0; margin-top: 1px;
}
.pp strong { display: block; font-size: 14px; color: var(--text); margin-bottom: 0; }
.pp p { font-size: 13px; color: var(--text-quiet); margin: 0; line-height: 1.55; }
.partner-card {
    flex: 0.85;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.pc-label {
    font-size: 12px; font-weight: 700; letter-spacing: .5px;
    color: var(--text-quiet); text-transform: uppercase;
    margin-bottom: 16px;
}
.pc-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--line-soft);
}
.pc-left { font-size: 13px; color: var(--text-body); }
.pc-right { font-size: 13px; font-weight: 600; color: var(--text); }
.pc-divider { height: 1px; background: var(--line); margin: 16px 0; }
.pc-bottom p {
    font-size: 13px; color: var(--text-quiet);
    text-align: center; line-height: 1.6; margin-bottom: 16px;
}
.pc-cta {
    display: block; width: 100%;
    padding: 16px 0; text-align: center;
    background: var(--cta-grad); color: #fff;
    border-radius: 8px; font-size: 14px; font-weight: 600;
    text-decoration: none; transition: box-shadow .2s;
}
.pc-cta:hover { box-shadow: 0 4px 14px rgba(26,86,219,.28); }

/* ─── CTA ─── */
.cta-single {
    max-width: 640px; margin: 0 auto;
    padding: 64px 24px 72px; text-align: center;
}
.cta-single h2 {
    font-size: 26px; font-weight: 700; color: var(--text);
    margin-bottom: 16px; letter-spacing: -0.5px;
}
.cta-single p { font-size: 15px; color: var(--text-quiet); margin-bottom: 32px; }
.cta-btn {
    display: inline-block; padding: 16px 32px;
    background: var(--cta-grad); color: #fff;
    border-radius: 8px; font-size: 15px; font-weight: 600;
    text-decoration: none; transition: transform .15s, box-shadow .2s;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,86,219,.25); }
.cta-mail-inline { display: block; margin-top: 16px; font-size: 13px; color: var(--text-quiet); }
.cta-mail-inline a { color: var(--primary); text-decoration: none; }
.cta-mail-inline a:hover { text-decoration: underline; }

/* ─── DATA RESIDENCY ─── */
.data-residency {
    display: block; width: 100%;
    text-align: center; padding: 16px 24px 0;
    font-size: 11px; color: var(--text-quiet);
}

/* ─── FOOTER ─── */
.footer {
    text-align: center; padding: 32px 24px;
    font-size: 12px; color: var(--text-quiet);
    border-top: 1px solid var(--line-soft);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .hero { gap: 32px; }
    .dl-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 768px) {
    .nav { padding: 16px 16px; }
    .nav-brand { font-size: 16px; }
    .nav-brand svg { width: 32px; height: 32px; }
    .nav-link { display: none; }
    .nav-link-ghost { display: none; }

    .hero {
        flex-direction: column; text-align: center;
        padding: 120px 24px 48px; gap: 32px;
    }
    .hero-text .lede, .hero-text .solve { margin-left: auto; margin-right: auto; }
    .hero-text h1 { font-size: 30px; }
    .hero-visual svg { width: 140px; height: 140px; }
    .hero-cta { width: 100%; max-width: 300px; text-align: center; }

    .topo-svg { max-width: 100%; }
    .product-row { grid-template-columns: 1fr; }
    .fabrica-body { flex-direction: column; }
    .dl-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .partner-inner { flex-direction: column; }
    .partner-card { width: 100%; }
    .cta-btn { width: 100%; max-width: 300px; text-align: center; }
}
@media (max-width: 380px) {
    .hero-text h1 { font-size: 26px; }
    .msg { font-size: 12px; }
}
