/* Coderd — site institucional. Mesma linguagem visual do login do erp
   (app/erp/app/Views/index.php): escuro, âmbar, Chakra Petch + IBM Plex. */

:root {
    --bg: #10131A;
    --bg-panel: #0C0E13;
    --surface: #1A1F27;
    --surface-2: #171B22;
    --border: #2B323C;
    --border-strong: #3C4552;
    --ink: #EEF0F3;
    --ink-soft: #C7CCD3;
    --muted: #8B93A0;
    --accent: #E3993D;
    --accent-strong: #F2AE5C;
    --accent-ink: #1B1206;
    --accent-soft: rgba(227, 153, 61, 0.12);
    --focus: #6AB6E0;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

h1, h2, h3 {
    font-family: "Chakra Petch", "IBM Plex Sans", sans-serif;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.eyebrow {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

/* ---------- nav ---------- */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(16, 19, 26, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.site-nav .mark {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: "Chakra Petch", sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
    color: var(--ink);
}

.site-nav .mark svg { display: block; }

.site-nav .links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav .links a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 500;
    transition: color .15s ease;
}

.site-nav .links a:hover,
.site-nav .links a.active { color: var(--ink); }

.site-nav .cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--accent);
    color: var(--accent-ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.1rem;
    border-radius: 8px;
    transition: background-color .15s ease, transform .15s ease;
}

.site-nav .cta:hover { background: var(--accent-strong); transform: translateY(-1px); }

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--ink);
    padding: 0.4rem 0.6rem;
}

@media (max-width: 800px) {
    .site-nav .links { display: none; }
    .nav-toggle { display: inline-flex; }
    .site-nav.is-open .links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-panel);
        border-bottom: 1px solid var(--border);
        padding: 1rem 2rem;
        gap: 1rem;
    }
}

/* ---------- generic layout ---------- */

main { display: block; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 2rem; }

section.section { padding: 5rem 0; }
section.section.is-tight { padding: 3rem 0; }
section.section.is-panel { background: var(--bg-panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 640px; margin: 0 0 3rem; }
.section-head h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.15rem); font-weight: 600; margin: 0.6rem 0 0.8rem; }
.section-head p { color: var(--muted); font-size: 1.02rem; line-height: 1.65; margin: 0; }

/* ---------- hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    background: var(--bg-panel);
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 42px 42px;
    background-position: center;
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 0%, black 40%, transparent 85%);
            mask-image: radial-gradient(ellipse at 50% 0%, black 0%, black 40%, transparent 85%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--bg-panel);
    opacity: 0.55;
    z-index: 0;
}

.hero > .container { position: relative; z-index: 1; }

.hero-inner { max-width: 720px; margin: 0 auto; text-align: center; padding: 5rem 0 4rem; }

.hero-inner h1 {
    font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0.9rem 0 1.1rem;
    text-wrap: balance;
}

.hero-inner p.lead {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.65;
    margin: 0 0 2.2rem;
}

.hero-actions { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }

/* ---------- buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 10px;
    padding: 0.85rem 1.5rem;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color .15s ease, transform .15s ease, border-color .15s ease;
}

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface); transform: translateY(-1px); }

.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- cards ---------- */

.grid { display: grid; gap: 1.25rem; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 860px) {
    .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.6rem;
    transition: transform .15s ease, border-color .15s ease;
}

.card:hover { transform: translateY(-3px); border-color: var(--border-strong); }

.card .icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.card h3 { font-size: 1.08rem; font-weight: 600; margin: 0 0 0.5rem; }
.card p { color: var(--muted); font-size: 0.94rem; line-height: 1.6; margin: 0; }

/* ---------- footer ---------- */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
}

.site-footer .container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.site-footer .mark { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-family: "Chakra Petch", sans-serif; }
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.site-footer nav a:hover { color: var(--ink); }
.site-footer .copy { color: var(--muted); font-size: 0.85rem; width: 100%; margin-top: 1rem; text-align: center; }

/* ---------- contact ---------- */

.contact-card {
    max-width: 520px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.2rem;
    text-align: center;
}

.contact-card .icon {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--accent-soft); color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
}

.contact-card h3 { margin: 0 0 0.4rem; font-size: 1.2rem; }
.contact-card p { color: var(--muted); margin: 0 0 1.4rem; line-height: 1.6; }
.contact-card .email { font-family: "IBM Plex Mono", monospace; font-size: 1.05rem; color: var(--ink); }

/* ---------- download ---------- */

.download-card { display: flex; flex-direction: column; }
.download-card .meta { font-family: "IBM Plex Mono", monospace; font-size: 0.78rem; color: var(--muted); margin: 0.9rem 0 1.3rem; }
.download-card .btn { margin-top: auto; align-self: flex-start; }
.download-hint { color: var(--muted); font-size: 0.88rem; line-height: 1.6; margin: 2rem 0 0; }
