:root {
    --blue-950: #071b37;
    --blue-900: #0a2e5f;
    --blue-800: #0d4382;
    --blue-700: #145aa5;
    --blue-600: #1c6cc0;
    --blue-100: #e7f1fb;
    --blue-050: #f4f8fc;
    --red: #ff2d2d;
    --red-hover: #e61f1f;
    --orange: #ff9700;
    --ink: #10233f;
    --muted: #61718b;
    --border: #e3eaf2;
    --white: #fff;
    --shadow: 0 18px 45px rgba(19, 57, 96, .12);
    --radius: 18px;
    --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid rgba(13,67,130,.08);
    backdrop-filter: blur(12px);
}
.header-inner {
    min-height: 86px;
    display: grid;
    grid-template-columns: 230px 1fr auto;
    align-items: center;
    gap: 28px;
}
.brand img { width: 185px; height: 64px; object-fit: contain; object-position: left center; }
.header-contact { display: flex; align-items: center; justify-content: center; gap: 25px; color: #365474; font-size: 13px; }
.contact-item { display: inline-flex; gap: 8px; align-items: center; }
.contact-item:hover { color: var(--blue-700); }
.contact-icon { color: var(--blue-800); font-weight: 800; }
.contact-item small { color: #71819a; }

.btn {
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 11px;
    font-weight: 800;
    font-size: 14px;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-header { background: var(--blue-800); color: #fff; border-radius: 999px; min-height: 44px; padding: 0 25px; }
.btn-header:hover { background: var(--blue-700); box-shadow: 0 10px 24px rgba(13,67,130,.22); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 28px rgba(255,45,45,.24); }
.btn-primary:hover { background: var(--red-hover); }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.65); background: rgba(8,48,91,.22); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

.hero {
    position: relative;
    min-height: 590px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--blue-900) url('../img/hero-estoque.jpg') center/cover no-repeat;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 50%, rgba(23,115,196,.28), transparent 37%),
        linear-gradient(90deg, rgba(5,44,91,.94) 0%, rgba(8,66,126,.86) 50%, rgba(5,58,112,.72) 100%);
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -120px auto;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: rgba(64,160,237,.12);
    filter: blur(12px);
}
.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
    gap: 74px;
    align-items: center;
    padding: 70px 0;
}
.hero-copy { max-width: 680px; }
.eyebrow, .section-kicker {
    display: inline-flex;
    align-items: center;
    color: #fff;
    background: var(--orange);
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
}
.hero h1 {
    margin: 18px 0 15px;
    color: #fff;
    font-size: clamp(40px, 4.2vw, 64px);
    line-height: 1.02;
    letter-spacing: -.045em;
    max-width: 760px;
}
.hero-copy > p {
    color: rgba(255,255,255,.88);
    line-height: 1.65;
    font-size: 17px;
    max-width: 650px;
    margin: 0;
}
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-card {
    background: rgba(255,255,255,.97);
    border: 1px solid rgba(255,255,255,.75);
    box-shadow: 0 24px 70px rgba(0,24,66,.24);
    border-radius: 22px;
    padding: 30px 31px 22px;
}
.hero-card h2 { color: var(--blue-800); font-size: 24px; margin: 0 0 10px; letter-spacing: -.02em; }
.hero-feature {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 13px;
    padding: 16px 0;
    border-bottom: 1px solid #e8edf4;
}
.hero-feature.no-border { border-bottom: 0; }
.hero-feature strong { font-size: 14px; color: #173b6a; }
.hero-feature p { margin: 5px 0 0; color: #718099; font-size: 12px; line-height: 1.5; }
.feature-mini, .feature-icon {
    display: inline-grid;
    place-items: center;
    flex: none;
    border-radius: 11px;
}
.feature-mini { width: 38px; height: 38px; font-size: 24px; color: var(--orange); background: #fff7e8; }
.feature-mini.orange { color: var(--orange); }

.features { background: linear-gradient(180deg, #f4f8fc 0%, #f8fbfe 100%); padding: 64px 0 76px; }
.section-heading { text-align: center; max-width: 720px; margin: 0 auto 35px; }
.section-kicker { background: transparent; color: var(--orange); padding: 0; border-radius: 0; }
.section-heading h2 { color: var(--blue-800); margin: 9px 0 8px; font-size: clamp(29px, 3vw, 40px); letter-spacing: -.035em; }
.section-heading p { color: var(--muted); margin: 0; line-height: 1.65; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 27px;
    min-height: 190px;
    box-shadow: 0 12px 32px rgba(25,70,117,.07);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.feature-card:hover { transform: translateY(-5px); border-color: #cfe0f2; box-shadow: var(--shadow); }
.feature-icon { width: 46px; height: 46px; background: var(--blue-100); color: var(--blue-700); font-size: 25px; }
.feature-card h3 { margin: 16px 0 8px; font-size: 18px; color: #132f54; }
.feature-card p { margin: 0; color: #697a92; line-height: 1.58; font-size: 14px; }

.traceability { background: linear-gradient(120deg, #0c4381, #1768b6); color: #fff; padding: 60px 0; }
.traceability-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 80px; align-items: center; }
.section-kicker.light { color: #ffd28c; }
.traceability h2 { font-size: clamp(29px, 3vw, 42px); margin: 10px 0 0; line-height: 1.15; letter-spacing: -.035em; }
.trace-list { display: grid; gap: 13px; }
.trace-list > div { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; gap: 11px; }
.trace-list span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 17px; }

.portal-cta { background: #0d4382; color: #fff; padding: 34px 0; }
.portal-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; }
.portal-icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,.12); display: grid; place-items: center; font-size: 27px; }
.portal-cta h2 { margin: 0 0 5px; font-size: 26px; }
.portal-cta p { margin: 0; color: rgba(255,255,255,.78); }

.site-footer { background: #07172e; color: rgba(255,255,255,.74); font-size: 12px; padding: 19px 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.4fr 1fr; align-items: center; gap: 20px; }
.footer-grid > div:nth-child(2) { text-align: center; }
.footer-grid > div:last-child { text-align: right; }
.site-footer a { color: #fff; }

@media (max-width: 980px) {
    .header-inner { grid-template-columns: 1fr auto; }
    .header-contact { display: none; }
    .hero-grid { grid-template-columns: 1fr; gap: 34px; }
    .hero-card { max-width: 720px; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .traceability-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-grid > div:nth-child(2), .footer-grid > div:last-child { text-align: center; }
}

@media (max-width: 650px) {
    .container { width: min(100% - 28px, var(--container)); }
    .header-inner { min-height: 72px; gap: 10px; }
    .brand img { width: 145px; height: 52px; }
    .btn-header { padding: 0 16px; min-height: 40px; font-size: 12px; }
    .hero { min-height: auto; }
    .hero-grid { padding: 48px 0; }
    .hero h1 { font-size: 40px; }
    .hero-copy > p { font-size: 15px; }
    .hero-actions { display: grid; grid-template-columns: 1fr; }
    .hero-actions .btn { width: 100%; }
    .hero-card { padding: 22px; }
    .feature-grid { grid-template-columns: 1fr; }
    .features { padding: 50px 0; }
    .portal-inner { grid-template-columns: 1fr; text-align: center; }
    .portal-icon { margin: 0 auto; }
    .portal-inner .btn { width: 100%; margin-top: 8px; }
}

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