/* ==========================================================================
   Data Trust — base stylesheet (no framework, plain CSS)
   ========================================================================== */

:root {
    --bg: #f4f6f9;
    --surface: #ffffff;
    --surface-alt: #f0f2f6;
    --border: #e2e6ee;
    --text: #1c2333;
    --text-muted: #6b7280;
    --primary: #166534;
    --primary-dark: #14532d;
    --primary-contrast: #ffffff;
    --accent: #a16207;
    --accent-dark: #854d0e;
    --accent-contrast: #ffffff;
    --success: #16a34a;
    --success-bg: #e8f8ee;
    --warning: #d97706;
    --warning-bg: #fff6e5;
    --danger: #dc2626;
    --danger-bg: #fde8e8;
    --info: #0891b2;
    --info-bg: #e6f7fa;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
    --sidebar-w: 260px;
    --topbar-h: 64px;
}

[data-theme="dark"] {
    --bg: #10141c;
    --surface: #171d29;
    --surface-alt: #1e2634;
    --border: #2a3244;
    --text: #e7eaf1;
    --text-muted: #9aa4b8;
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --primary-contrast: #06170c;
    --accent: #eab308;
    --accent-dark: #ca8a04;
    --accent-contrast: #1c1503;
    --success-bg: #103821;
    --warning-bg: #3a2a0a;
    --danger-bg: #3a1414;
    --info-bg: #0c313a;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14.5px;
    line-height: 1.5;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; }
p { margin: 0 0 1em; }
img { max-width: 100%; }

/* -------------------------------------------------------------- layout */
.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(160deg, var(--bg), var(--surface-alt));
}
.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
}
.auth-card.wide { max-width: 560px; }
.auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; font-weight: 700; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.auth-logo:hover { text-decoration: none; color: var(--text); }
.auth-logo .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }

/* ---------------------------------------------------- split login layout */
.auth-split { min-height: 100vh; display: flex; }
.auth-split-form { flex: 1 1 50%; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--bg); min-width: 0; }
.auth-split-form-inner { width: 100%; max-width: 400px; }
.auth-split-image {
    flex: 1 1 50%; position: relative; display: flex; align-items: flex-end;
    background: linear-gradient(135deg, #0f3d21, #166534 55%, #a16207 150%); background-size: cover; background-position: center;
}
.auth-split-image.has-bg::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(10,15,35,.78), rgba(10,15,35,.15));
}
.auth-split-image-overlay { position: relative; z-index: 1; color: #fff; padding: 48px; max-width: 460px; }
.auth-split-image-overlay h3 { font-size: 1.5rem; margin: 0 0 10px; }
.auth-split-image-overlay p { font-size: .92rem; opacity: .92; margin: 0; }
@media (max-width: 900px) { .auth-split-image { display: none; } }

/* ---------------------------------------------------------- password field */
.password-field { position: relative; }
.password-field input { padding-right: 42px; }
.password-toggle {
    position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
    width: 30px; height: 30px; border: none; background: transparent; color: var(--text-muted);
    cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 6px;
}
.password-toggle:hover { background: var(--surface-alt); color: var(--text); }

.app-shell { display: flex; min-height: 100vh; }
.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 18px 14px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; padding: 6px 10px 18px; color: var(--text); }
.sidebar-brand:hover { text-decoration: none; color: var(--primary); }
.sidebar-brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.icon-btn.sidebar-close { display: none; }
.nav-section-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); padding: 14px 10px 6px; }
.nav-link {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px; border-radius: var(--radius-sm);
    color: var(--text); font-size: .92rem;
}
.nav-link:hover { background: var(--surface-alt); text-decoration: none; }
.nav-link.active { background: var(--primary); color: var(--primary-contrast); }
.nav-link .ic { width: 18px; text-align: center; opacity: .85; }

/* ------------------------------------------------------------------ icons */
.icon { flex-shrink: 0; vertical-align: -3px; }
.nav-link .icon { opacity: .85; }
.nav-link.active .icon { opacity: 1; }
.module-tile .icon { color: var(--primary); }
.empty-state .icon { color: var(--text-muted); margin-bottom: 6px; }
.icon-btn.hamburger-btn { display: none; }

.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
    height: var(--topbar-h); flex-shrink: 0;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 22px; border-bottom: 1px solid var(--border);
    background: var(--surface); position: sticky; top: 0; z-index: 20;
}
.topbar-title { font-weight: 600; font-size: 1.02rem; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.content { padding: 24px; max-width: 1320px; width: 100%; margin: 0 auto; }

/* --------------------------------------------------------------- icon buttons */
.icon-btn {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface-alt); border: 1px solid var(--border);
    cursor: pointer; color: var(--text); position: relative;
}
.icon-btn:hover { background: var(--border); }
.badge-dot {
    position: absolute; top: -2px; right: -2px;
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--danger); border: 2px solid var(--surface);
}
.badge-count {
    position: absolute; top: -6px; right: -6px;
    min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
    background: var(--danger); border: 2px solid var(--surface); color: #fff;
    font-size: .64rem; font-weight: 700; line-height: 1;
    display: flex; align-items: center; justify-content: center;
}

/* ----------------------------------------------------------------- dropdown */
.dropdown { position: relative; }
.dropdown-menu {
    display: none; position: absolute; right: 0; top: calc(100% + 8px);
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow);
    min-width: 260px; max-height: 420px; overflow-y: auto; z-index: 40;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-item {
    display: block; padding: 10px 14px; border-bottom: 1px solid var(--border);
    font-size: .88rem; color: var(--text);
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background: var(--surface-alt); text-decoration: none; }
.dropdown-empty { padding: 18px 14px; color: var(--text-muted); font-size: .88rem; text-align: center; }

/* ------------------------------------------------------------------- profile menu */
.avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--primary); color: var(--primary-contrast);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .82rem; flex-shrink: 0;
}
.avatar.lg { width: 56px; height: 56px; font-size: 1.2rem; }
.avatar.sm { width: 30px; height: 30px; font-size: .74rem; }

/* ----------------------------------------------------------------------- forms */
label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 6px; }
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=datetime-local], input[type=tel], input[type=search],
select, textarea {
    width: 100%; padding: 9px 12px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); background: var(--surface); color: var(--text);
    font-size: .92rem; font-family: inherit;
}
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47,94,255,.15); }
.hint { font-size: .78rem; color: var(--text-muted); margin-top: 4px; }
input[type=file] {
    width: 100%; padding: 8px; border: 1px dashed var(--border);
    border-radius: var(--radius-sm); background: var(--surface-alt); color: var(--text-muted);
    font-size: .84rem; font-family: inherit; cursor: pointer;
}
input[type=file]::file-selector-button,
input[type=file]::-webkit-file-selector-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px 14px; margin-right: 12px; border-radius: var(--radius-sm); border: 1px solid transparent;
    font-size: .82rem; font-weight: 600; cursor: pointer; background: var(--primary);
    color: var(--primary-contrast); font-family: inherit; transition: background .15s;
}
input[type=file]::file-selector-button:hover,
input[type=file]::-webkit-file-selector-button:hover { background: var(--primary-dark); }
.check-row { display: flex; align-items: flex-start; gap: 8px; font-size: .85rem; font-weight: 400; }
.check-row input { width: auto; margin-top: 3px; }
.module-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
@media (max-width: 480px) { .module-grid { grid-template-columns: 1fr; } }

.method-grid { display: grid; gap: 10px; }
.method-option {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px;
    border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer;
    transition: border-color .15s, background .15s;
}
.method-option:hover { background: var(--surface-alt); }
.method-option input[type=radio] { width: auto; margin: 0; }
.method-option:has(input:checked) { border-color: var(--primary); background: var(--surface-alt); }
.method-option-body { display: flex; flex-direction: column; gap: 2px; }

/* ---------------------------------------------------- dashboard bar chart */
.chart-vertical-wrap { overflow-x: auto; }
.chart-vertical { display: flex; align-items: flex-end; gap: 28px; height: 220px; padding: 10px 6px 0; min-width: min-content; }
.chart-col { display: flex; flex-direction: column; align-items: center; height: 100%; flex: 1 1 96px; max-width: 130px; min-width: 96px; }
.chart-col-value { font-size: .78rem; font-weight: 700; margin-bottom: 6px; }
.chart-col-track { flex: 1; width: 100%; background: var(--surface-alt); border-radius: 6px 6px 0 0; display: flex; align-items: flex-end; overflow: hidden; }
.chart-col-bar { width: 100%; border-radius: 6px 6px 0 0; transition: height .25s ease; }
.chart-col-label { margin-top: 8px; font-size: .78rem; color: var(--text-muted); max-width: 100%; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .chart-vertical { height: 180px; gap: 18px; } .chart-col { min-width: 72px; } }

/* ---------------------------------------------------------------------- buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 16px; border-radius: var(--radius-sm); border: 1px solid transparent;
    font-size: .88rem; font-weight: 600; cursor: pointer; background: var(--primary);
    color: var(--primary-contrast); text-decoration: none;
}
.btn:hover { background: var(--primary-dark); text-decoration: none; color: var(--primary-contrast); }
.btn.block { width: 100%; }
.btn.secondary { background: var(--surface-alt); color: var(--text); border-color: var(--border); }
.btn.secondary:hover { background: var(--border); color: var(--text); }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #b91c1c; }
.btn.accent { background: var(--accent); color: var(--accent-contrast); }
.btn.accent:hover { background: var(--accent-dark); color: var(--accent-contrast); }
.btn.sm { padding: 6px 10px; font-size: .8rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* -------------------------------------------------------------- brand mark */
.brand-mark { display: inline-flex; align-items: center; }
.brand-mark img { display: block; }
[data-theme="dark"] .brand-mark.chip-dark img { background: #fff; border-radius: 8px; padding: 4px 8px; }

/* ------------------------------------------------------------------------- cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card + .card { margin-top: 16px; }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-header h3 { margin: 0; font-size: 1.02rem; }

.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } .form-row { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

.company-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 18px; display: flex; flex-direction: column; gap: 10px;
}
.company-card:hover { border-color: var(--primary); text-decoration: none; }
.company-card h4 { margin: 0; font-size: 1rem; color: var(--text); }
.flags { display: flex; flex-wrap: wrap; gap: 6px; }

.module-tile {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 18px; display: flex; flex-direction: column; gap: 8px; color: var(--text);
}
.module-tile:hover { border-color: var(--primary); text-decoration: none; }
.module-tile .ic { display: inline-flex; color: var(--primary); }
.module-tile h4 { margin: 0; font-size: .95rem; }
.module-tile p { margin: 0; font-size: .8rem; color: var(--text-muted); }

/* -------------------------------------------------------------------------- ring */
.ring-wrap { position: relative; width: 96px; height: 96px; flex-shrink: 0; }
.ring-wrap svg { transform: rotate(-90deg); }
.ring-label {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.05rem;
}

/* ------------------------------------------------------------------------- badges */
.badge {
    display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px;
    border-radius: 100px; font-size: .74rem; font-weight: 600; white-space: nowrap;
}
.badge.success { background: var(--success-bg); color: var(--success); }
.badge.warning { background: var(--warning-bg); color: var(--warning); }
.badge.danger { background: var(--danger-bg); color: var(--danger); }
.badge.info { background: var(--info-bg); color: var(--info); }
.badge.neutral { background: var(--surface-alt); color: var(--text-muted); }

/* -------------------------------------------------------------------------- table */
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { color: var(--text-muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; }
tbody tr:hover { background: var(--surface-alt); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.table-wrap table { border: none; }
.table-wrap .table-wrap { border: none; }
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.empty-state .ic { display: inline-flex; justify-content: center; width: 100%; margin-bottom: 10px; color: var(--text-muted); }

/* --------------------------------------------------------------------------- tabs */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 18px; flex-wrap: wrap; padding-bottom: 10px; }
.tab {
    padding: 7px 14px; font-size: .85rem; font-weight: 600; color: var(--text-muted);
    border-radius: 999px; border: 1px solid transparent; background: var(--surface-alt);
}
.tab.active { color: var(--primary-contrast); background: var(--primary); text-decoration: none; }
.tab:hover:not(.active) { color: var(--text); background: var(--border); text-decoration: none; }

/* --------------------------------------------------------------- community */
.community-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius); padding: 26px 28px; margin-bottom: 20px;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
    color: #fff;
}
.community-banner h1 { color: #fff; margin: 0 0 4px; }
.community-banner .sub { color: rgba(255,255,255,.82); }
.community-banner .btn.accent:hover { background: var(--accent-dark); }
.community-search { display: flex; gap: 8px; margin-bottom: 18px; }
.community-search input[type=search] { max-width: 360px; }

.thread-item { display: flex; gap: 14px; padding: 16px 10px; border-bottom: 1px solid var(--border); border-radius: var(--radius-sm); transition: background .12s; }
.thread-item:hover { background: var(--surface-alt); }
.thread-item:last-child { border-bottom: none; }
.thread-item-body { flex: 1; min-width: 0; }
.thread-item-title { font-weight: 600; font-size: 1rem; color: var(--text); }
.thread-item-title:hover { color: var(--primary); }
.thread-stats { white-space: nowrap; }
.thread-stat-pill {
    display: inline-flex; align-items: center; gap: 4px; background: var(--surface-alt);
    border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; font-size: .78rem; color: var(--text-muted);
}
.thread-meta { font-size: .78rem; color: var(--text-muted); }
.thread-meta a { color: var(--text); font-weight: 600; }
.thread-meta a:hover { color: var(--primary); }

.resource-card { border-top: 3px solid var(--accent); display: flex; flex-direction: column; }
.resource-ic {
    width: 42px; height: 42px; border-radius: var(--radius-sm); background: var(--accent); color: #fff;
    display: flex; align-items: center; justify-content: center; margin-bottom: 10px; flex-shrink: 0;
}

.profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; }
.profile-head h3 { margin: 0; }
.profile-stat-row { display: flex; gap: 20px; flex-wrap: wrap; margin: 14px 0; }
.profile-stat-row div { text-align: center; }
.profile-stat-row strong { display: block; font-size: 1.1rem; color: var(--primary); }
.profile-stat-row span { font-size: .74rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }

/* ------------------------------------------------------------------------- alerts */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: .88rem; border: 1px solid transparent; }
.alert.success { background: var(--success-bg); color: var(--success); border-color: var(--success); }
.alert.error { background: var(--danger-bg); color: var(--danger); border-color: var(--danger); }
.alert.info { background: var(--info-bg); color: var(--info); border-color: var(--info); }
.alert.warning { background: var(--warning-bg); color: var(--warning); border-color: var(--warning); }

.stat-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.stat-tile .stat-label { font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; }
.stat-tile .stat-value { font-size: 1.6rem; font-weight: 700; }

.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.page-header h1 { font-size: 1.35rem; }
.page-header .sub { color: var(--text-muted); font-size: .88rem; margin-top: 2px; }
.breadcrumb { font-size: .82rem; color: var(--text-muted); margin-bottom: 6px; }
.breadcrumb a { color: var(--text-muted); }

.modal-backdrop {
    display: none; position: fixed; inset: 0; background: rgba(10,14,22,.5); z-index: 100;
    align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal { background: var(--surface); border-radius: var(--radius); padding: 24px; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; }

.progress-bar { height: 8px; background: var(--surface-alt); border-radius: 100px; overflow: hidden; }
.progress-bar > span { display: block; height: 100%; background: var(--primary); }

/* ==========================================================================
   Public marketing site
   ========================================================================== */

.topbar-utility {
    display: flex; align-items: center; justify-content: flex-end; gap: 22px;
    padding: 7px 32px; background: var(--text); color: rgba(255,255,255,.85); font-size: .8rem;
}
.topbar-utility a { color: rgba(255,255,255,.85); }
.topbar-utility a:hover { color: #fff; }
.topbar-utility .flex { gap: 6px; }

.public-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 32px; border-bottom: 1px solid var(--border); background: var(--surface);
    position: sticky; top: 0; z-index: 30;
}
.public-nav { display: flex; gap: 22px; align-items: center; }
.public-nav a:not(.btn) { color: var(--text); font-size: .92rem; font-weight: 500; }
.public-nav a:not(.btn):hover { color: var(--primary); text-decoration: none; }
.public-nav-toggle { display: none; }
@media (max-width: 860px) {
    .public-nav-toggle { display: flex; }
    .public-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 2px;
        background: var(--surface); border-bottom: 1px solid var(--border);
        padding: 10px 20px 18px; box-shadow: var(--shadow);
    }
    .public-nav.open { display: flex; }
    .public-nav a:not(.btn) { padding: 10px 4px; border-bottom: 1px solid var(--border); }
    .public-nav .btn { margin-top: 8px; }
    .topbar-utility { padding: 6px 18px; gap: 14px; flex-wrap: wrap; justify-content: center; }
    .hero-slide { padding: 56px 20px; }
    .hero-slide h1 { font-size: 1.8rem; }
    .section { padding: 44px 20px; }
}

/* ---- Hero slider ------------------------------------------------------- */
.hero-slider { position: relative; overflow: hidden; }
.hero-slide {
    display: none; padding: 120px 32px; text-align: center; position: relative;
    background-size: cover; background-position: center;
}
.hero-slide.active { display: block; animation: dt-hero-fade .6s ease; }
@keyframes dt-hero-fade { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: scale(1); } }
.hero-slide-tint { position: absolute; inset: 0; background: radial-gradient(circle at 15% 20%, rgba(161,98,7,.28), transparent 55%); pointer-events: none; }
.hero-slide-overlay { max-width: 780px; margin: 0 auto; position: relative; z-index: 1; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); color: #fff;
    font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 20px;
}
.hero-slide h1 { font-size: 2.7rem; margin-bottom: .4em; line-height: 1.15; color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.25); }
.hero-slide p { font-size: 1.14rem; color: rgba(255,255,255,.92); max-width: 640px; margin: 0 auto; }
.hero-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,15,9,.35), rgba(6,15,9,.6)); }
.hero-dots { display: flex; justify-content: center; gap: 8px; padding: 22px 0 30px; background: var(--bg); }
.hero-dots button {
    width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0;
    background: var(--border); cursor: pointer; transition: all .2s;
}
.hero-dots button.active { background: var(--primary); width: 22px; border-radius: 5px; }

.hero { padding: 80px 32px; text-align: center; max-width: 780px; margin: 0 auto; }
.hero h1 { font-size: 2.4rem; margin-bottom: .4em; }
.hero p { font-size: 1.1rem; color: var(--text-muted); }

.section { padding: 72px 32px; max-width: 1100px; margin: 0 auto; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: 1.95rem; margin-bottom: .35em; letter-spacing: -.01em; }
.section-head p { color: var(--text-muted); }
.section-alt { background: var(--surface-alt); }
.legal-page { padding-top: 48px; }
.legal-wrap { max-width: 760px; margin: 0 auto; }
.legal-wrap h1 { margin-bottom: 4px; }
.legal-wrap .card h3 { margin-top: 1.6em; }
.legal-wrap .card h3:first-child { margin-top: 0; }
.legal-wrap .card p { color: var(--text); line-height: 1.65; }

.feature-grid { gap: 22px; }
.feature-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 26px 24px; height: 100%; border-top: 3px solid var(--primary);
    transition: transform .18s ease, box-shadow .18s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-ic {
    width: 46px; height: 46px; border-radius: 50%; background: var(--success-bg); color: var(--primary);
    display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature-card h4 { margin: 0 0 8px; font-size: 1.02rem; }

.usecase-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; height: 100%; }
.usecase-card .ic { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.usecase-card h4 { margin-bottom: 6px; }
.usecase-card p { color: var(--text-muted); font-size: .9rem; }

/* ---- About Us ------------------------------------------------------- */
.about-wrap { max-width: 1100px; margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .about-wrap { grid-template-columns: 1fr; padding: 0 20px; } }
.about-media {
    aspect-ratio: 4 / 3; border-radius: var(--radius); background-size: cover; background-position: center;
    background: linear-gradient(135deg, #166534, #a16207); display: flex; align-items: center; justify-content: center;
}
.about-media-placeholder { color: rgba(255,255,255,.85); }
.about-copy h2 { font-size: 1.7rem; margin: .2em 0 .5em; }
.about-copy p { color: var(--text-muted); margin-bottom: 14px; }
.about-stats { display: flex; gap: 28px; margin-top: 20px; flex-wrap: wrap; }
.about-stats strong { display: block; font-size: 1.5rem; color: var(--primary); }
.about-stats span { font-size: .8rem; color: var(--text-muted); }

.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1240px; margin: 40px auto; padding: 0 32px; }
@media (max-width: 1000px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card { background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 26px; text-align: center; display: flex; flex-direction: column; }
.price-card .amount { font-size: 2rem; font-weight: 700; margin: 10px 0; }
.price-card .btn { margin-top: auto; }

/* ---- Custom-system CTA band ------------------------------------------ */
.cta-band { background: linear-gradient(120deg, #14532d, #166534 60%, #a16207 160%); color: #fff; padding: 44px 32px; }
.cta-band-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h3 { margin: 0 0 6px; font-size: 1.4rem; }
.cta-band p { margin: 0; color: rgba(255,255,255,.85); max-width: 560px; font-size: .92rem; }

/* ---- Newsletter -------------------------------------------------------- */
.newsletter-band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 40px 32px; }
.newsletter-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.newsletter-inner h3 { margin: 0 0 4px; font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.newsletter-inner p { margin: 0; color: var(--text-muted); font-size: .88rem; }
.newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter-form input[type=email] { min-width: 220px; }
@media (max-width: 560px) { .newsletter-form { width: 100%; } .newsletter-form input[type=email] { flex: 1; } }

.contact-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
@media (max-width: 800px) { .contact-wrap { grid-template-columns: 1fr; } }
.contact-info-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; }
.contact-info-item .ic { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-alt); display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; }

.site-footer { background: var(--text); color: rgba(255,255,255,.72); padding: 56px 32px 0; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 32px; max-width: 1100px; margin: 0 auto; padding-bottom: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: .88rem; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: #fff; margin-bottom: 12px; }
.footer-logo .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; text-align: center; font-size: .78rem; max-width: 1100px; margin: 0 auto; }

.footer-note { text-align: center; padding: 32px; color: var(--text-muted); font-size: .82rem; }

/* ---- Floating action buttons -------------------------------------------- */
.fab-stack { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 12px; z-index: 40; }
.fab { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); border: none; cursor: pointer; text-decoration: none; }
.fab-whatsapp { background: #25D366; color: #fff; }
.fab-whatsapp:hover { background: #1fb958; color: #fff; }
.fab-top { background: var(--surface); color: var(--text); border: 1px solid var(--border); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.fab-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ---- Developer docs page ------------------------------------------------ */
.code-block { background: #0f1420; color: #d7e0f5; border-radius: var(--radius-sm); padding: 16px 18px; font-family: 'SFMono-Regular', Consolas, Menlo, monospace; font-size: .82rem; overflow-x: auto; white-space: pre; }
.endpoint-table td:first-child { font-family: Consolas, Menlo, monospace; font-size: .82rem; white-space: nowrap; }

.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.attachment-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.attachment-img { width: 120px; height: 120px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); display: block; }
.thread-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.thread-item:last-child { border-bottom: none; }
.thread-meta { font-size: .78rem; color: var(--text-muted); }

.timer-pill { font-weight: 700; padding: 6px 14px; border-radius: 100px; background: var(--warning-bg); color: var(--warning); }
.question-block { padding: 16px 0; border-bottom: 1px solid var(--border); }
.option-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); margin-bottom: 8px; cursor: pointer; }
.option-row:hover { background: var(--surface-alt); }
.option-row input { margin-top: 3px; }

/* ------------------------------------------------------------ mobile nav */
/* Kept to a narrow, genuinely-mobile breakpoint (not 880px) on purpose: a
   laptop window that isn't maximized should still keep the full sidebar
   rather than collapsing to a hamburger. */
@media (max-width: 720px) {

	.icon-btn.hamburger-btn { display: flex; }
    .icon-btn.sidebar-close { display: flex; }

	 
    .sidebar {
        position: fixed; top: 0; left: 0; z-index: 60;
        transform: translateX(-100%);
        transition: transform .2s ease;
        box-shadow: var(--shadow);
        width: min(var(--sidebar-w), 82vw);
    }
    .sidebar.open { transform: translateX(0); }
    .sidebar-backdrop {
        display: none; position: fixed; inset: 0; background: rgba(10,14,22,.45); z-index: 50;
    }
    .sidebar-backdrop.open { display: block; }
    .content { padding: 16px; }
    .topbar { padding: 0 14px; }
    .page-header h1 { font-size: 1.15rem; }
    .grid.cols-4, .grid.cols-3 { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .hero { padding: 48px 20px; }
    .hero h1 { font-size: 1.7rem; }
    .dropdown-menu { min-width: 240px; max-width: calc(100vw - 28px); }
    .modal { padding: 18px; max-width: calc(100vw - 24px); }
    .two-col { grid-template-columns: 1fr; }
    .card { padding: 16px; }
    .card-header { flex-wrap: wrap; gap: 8px; }
    .topbar-title { font-size: .92rem; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 480px) {
    .auth-card { padding: 22px; }
    table { font-size: .82rem; }
    th, td { padding: 8px 8px; }
}

.text-muted { color: var(--text-muted); }
.text-sm { font-size: .82rem; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.flex { display: flex; } .items-center { align-items: center; } .gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.text-success { color: var(--success); }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
