/* ============================================================
   Intedge IA — design system
   ============================================================ */
:root {
    /* Paleta Watts: verde #4ade80 sobre fundo quase preto */
    --bg:        #050505;
    --bg-soft:   #0d0d0d;
    --panel:     #111111;
    --panel-2:   #181818;
    --border:    rgba(51, 51, 51, .55);
    --text:      #ffffff;
    --muted:     rgba(255, 255, 255, .6);
    --brand:     #4ade80;   /* verde principal */
    --brand-2:   #22c55e;   /* verde do gradiente */
    --brand-hover:#16a34a;  /* verde hover */
    --danger:    #f87171;
    --warn:      #fbbf24;
    --ok:        #4ade80;
    --radius:    14px;
    --shadow:    0 10px 40px rgba(0, 0, 0, .55);
    --grad:      linear-gradient(135deg, #4ade80, #22c55e);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ── Navbar ───────────────────────────────────────────── */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(13, 13, 13, .75);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.12rem; color: #fff; letter-spacing: .5px; }
.brand:hover { text-decoration: none; }
.brand .dot {
    width: 11px; height: 11px; border-radius: 50%;
    background: var(--grad); box-shadow: 0 0 12px var(--brand);
}
.nav-links { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav-links a {
    color: rgba(255, 255, 255, .7); padding: 7px 11px; border-radius: 6px;
    font-size: .86rem; position: relative; transition: color .2s;
}
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links a.active { color: #fff; }
.nav-links a.active::after {
    content: ''; position: absolute; bottom: -1px; left: 11px;
    width: calc(100% - 22px); height: 2px;
    background: var(--brand); box-shadow: 0 0 8px var(--brand); border-radius: 2px;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border-radius: 11px; border: 1px solid var(--border);
    background: var(--panel); color: var(--text); font-weight: 600; font-size: .92rem;
    cursor: pointer; transition: .18s; text-decoration: none;
}
.btn:hover { background: var(--panel-2); text-decoration: none; }
.btn-primary {
    background: linear-gradient(180deg, rgba(34,197,94,.20), rgba(20,83,45,.32));
    border: 1px solid rgba(74,222,128,.45);
    color: var(--brand);
    box-shadow: 0 0 24px rgba(74,222,128,.12);
}
.btn-primary:hover {
    background: linear-gradient(180deg, rgba(34,197,94,.30), rgba(20,83,45,.44));
    box-shadow: 0 0 32px rgba(74,222,128,.22);
}
.btn-ghost { background: transparent; }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }

/* ── Cards / panels ───────────────────────────────────── */
.card {
    background: var(--panel); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ── Forms ────────────────────────────────────────────── */
label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
input, select, textarea {
    width: 100%; padding: 11px 13px; border-radius: 10px;
    background: var(--bg-soft); border: 1px solid var(--border); color: var(--text);
    font-size: .95rem; font-family: inherit; outline: none; transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); }
.field { margin-bottom: 16px; }

/* ── Alerts ───────────────────────────────────────────── */
.alert { padding: 12px 15px; border-radius: 10px; font-size: .9rem; margin-bottom: 16px; border: 1px solid; }
.alert-error { background: rgba(248,113,113,.1); border-color: rgba(248,113,113,.3); color: #fecaca; }
.alert-ok    { background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.3); color: #bbf7d0; }

/* ── Misc ─────────────────────────────────────────────── */
.muted { color: var(--muted); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .72rem; font-weight: 700;
    background: rgba(74,222,128,.12); color: var(--brand); border: 1px solid rgba(74,222,128,.25); }
.stat { font-size: 2rem; font-weight: 800; }
.stat-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi-label { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.center { text-align: center; }
.auth-wrap {
    min-height: calc(100vh - 60px);
    display: flex; align-items: center; justify-content: center; padding: 48px 20px;
    background:
        radial-gradient(circle at 18% 26%, rgba(74,222,128,.07), transparent 24%),
        radial-gradient(circle at 82% 74%, rgba(74,222,128,.06), transparent 24%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34'%3E%3Ccircle cx='3' cy='3' r='1.2' fill='%234ade80' fill-opacity='0.10'/%3E%3C/svg%3E"),
        var(--bg);
}
.auth-card { width: 100%; max-width: 430px; }
.auth-card .card { padding: 36px 32px; border-radius: 18px; background: rgba(17,17,17,.82); backdrop-filter: blur(6px); }
.auth-title { font-size: 1.6rem; font-weight: 800; margin: 0 0 4px; }
.remember-row { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 18px; font-size: .85rem; }
.remember-row label { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--muted); cursor: pointer; }
.remember-row input { width: auto; }
.btn-auth {
    display: flex; align-items: center; justify-content: center;
    width: 100%; padding: 14px; border-radius: 10px; font-weight: 700; font-size: 1rem; cursor: pointer;
    background: linear-gradient(180deg, rgba(34,197,94,.20), rgba(20,83,45,.32));
    border: 1px solid rgba(74,222,128,.45); color: var(--brand);
    box-shadow: 0 0 24px rgba(74,222,128,.12); transition: .18s;
}
.btn-auth:hover { background: linear-gradient(180deg, rgba(34,197,94,.30), rgba(20,83,45,.44)); box-shadow: 0 0 32px rgba(74,222,128,.22); }

/* ── Landing ──────────────────────────────────────────── */
.hero { padding: 96px 0; position: relative; overflow: hidden; min-height: 460px; display: flex; align-items: center;
    background-repeat: no-repeat; }
.hero-content { max-width: 600px; position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 3rem; line-height: 1.1; margin: 16px 0 18px; font-weight: 850; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 540px; margin: 0 0 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-bullets { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 28px; }
.hero-bullets .b { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }
.hero-bullets .b .ic { color: var(--brand); }
.hero-media img { width: 100%; border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow); display: block; }
.hero-code {
    background: #0b0b0b; border: 1px solid var(--border); border-radius: 16px;
    box-shadow: var(--shadow); padding: 18px; font-family: ui-monospace, monospace; font-size: .82rem; line-height: 1.7;
}
.hero-code .dots { display: flex; gap: 6px; margin-bottom: 14px; }
.hero-code .dots span { width: 11px; height: 11px; border-radius: 50%; background: #333; }
.hero-code .dots span:nth-child(1){ background:#f87171; } .hero-code .dots span:nth-child(2){ background:#fbbf24; } .hero-code .dots span:nth-child(3){ background:var(--brand); }
.hero-code .k { color: var(--brand); } .hero-code .s { color: #93c5fd; } .hero-code .c { color: var(--muted); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-media { order: -1; } }
.glow { position: absolute; width: 560px; height: 560px; border-radius: 50%;
    background: radial-gradient(circle, rgba(74,222,128,.16), transparent 70%);
    top: -180px; right: -120px; pointer-events: none; }
.section { padding: 60px 0; }
.section h2 { font-size: 1.9rem; text-align: center; margin: 0 0 10px; }
.section .sub { text-align: center; color: var(--muted); margin-bottom: 40px; }
.feature .ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(74,222,128,.12);
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 14px; }
.feature h3 { margin: 0 0 8px; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--muted); font-size: .92rem; }
.price-card { text-align: center; }
.price-card .price { font-size: 2.4rem; font-weight: 850; margin: 10px 0; }
.price-card .tokens { color: var(--brand); font-weight: 700; }
.footer { border-top: 1px solid var(--border); padding: 30px 0; color: var(--muted); font-size: .88rem; text-align: center; }

/* ── OAuth buttons ────────────────────────────────────── */
.oauth-sep { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; margin: 18px 0; }
.oauth-sep::before, .oauth-sep::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.oauth-btn { background: #161616; color: #fff; border: 1px solid var(--border); font-weight: 600; }
.oauth-btn:hover { background: #1f1f1f; text-decoration: none; }
.oauth-row { display: flex; gap: 10px; }
.oauth-row .oauth-btn { flex: 1; }

/* ── Impersonation banner ─────────────────────────────── */
.impersonate-bar {
    background: linear-gradient(90deg, #b45309, #d97706);
    color: #fff; text-align: center; padding: 8px 16px; font-size: .88rem;
    display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
}
.impersonate-bar a { color: #fff; text-decoration: underline; font-weight: 700; }

table.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.tbl th, table.tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
table.tbl th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
