:root {
    --navy: #071833;
    --navy-2: #0f2a5f;
    --blue: #1769e0;
    --cyan: #31c7d7;
    --ink: #122033;
    --muted: #667085;
    --line: #dbe4ef;
    --soft: #f5f8fc;
    --white: #ffffff;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--soft);
    font-family: "Roboto", Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
input, select, textarea, button { font: inherit; }

.site-header {
    align-items: center;
    background: var(--navy);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    padding: 18px clamp(20px, 5vw, 72px);
}
.brand { align-items: center; display: inline-flex; font-weight: 900; gap: 10px; }
.brand span {
    align-items: center;
    background: var(--cyan);
    border-radius: 6px;
    color: var(--navy);
    display: inline-flex;
    height: 36px;
    justify-content: center;
    width: 36px;
}
.nav { display: flex; gap: 22px; }
.nav a { color: #d9e7ff; font-weight: 700; }

.hero {
    align-items: center;
    background:
        linear-gradient(130deg, rgba(7, 24, 51, .96), rgba(15, 42, 95, .9)),
        url("https://images.unsplash.com/photo-1607863680198-23d4b2565df0?auto=format&fit=crop&w=1600&q=80");
    background-position: center;
    background-size: cover;
    color: var(--white);
    display: grid;
    gap: 48px;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    min-height: 680px;
    padding: 64px clamp(20px, 6vw, 96px);
}
.hero h1 { font-size: clamp(48px, 7vw, 88px); line-height: .95; margin: 10px 0 20px; }
.hero p { color: #d9e7ff; font-size: 20px; line-height: 1.65; max-width: 680px; }
.eyebrow { color: var(--cyan); font-size: 13px; font-weight: 900; letter-spacing: 0; text-transform: uppercase; }
.hero-actions, .form-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-metrics { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-metrics span {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    color: #d9e7ff;
    padding: 12px 14px;
}
.hero-metrics strong { color: var(--white); display: block; font-size: 20px; }
.btn {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
}
.btn.primary { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn.secondary { background: var(--white); color: var(--navy); }
.btn.small { min-height: 36px; padding: 8px 12px; }
.phone-preview {
    background: #081225;
    border: 8px solid #203a68;
    border-radius: 32px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .36);
    min-height: 520px;
    padding: 30px 20px;
}
.phone-top { background: #314c79; border-radius: 999px; height: 8px; margin: 0 auto 42px; width: 86px; }
.ticket-card { background: linear-gradient(150deg, #ffffff, #dceeff); border-radius: 8px; color: var(--navy); padding: 24px; }
.ticket-card strong { display: block; font-size: 28px; margin: 8px 0; }
.ticket-card p { color: var(--blue); font-size: 30px; font-weight: 900; margin: 0; }
.ticket-list { display: grid; gap: 12px; margin-top: 22px; }
.ticket-list span { background: #132d5f; border-radius: 8px; color: #d9e7ff; padding: 16px; }

.feature-band, .landing-section {
    display: grid;
    gap: 20px;
    padding: 42px clamp(20px, 6vw, 96px);
}
.feature-band { grid-template-columns: repeat(3, 1fr); }
.feature-band article, .page-shell, .legal, .panel, .stats-grid article, .workflow-grid article, .info-list article {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
}
.feature-band h2, .landing-section h2, .download-band h2 { color: var(--navy); margin-top: 0; }
.split-section { align-items: center; grid-template-columns: .85fr 1.15fr; }
.split-section p, .section-heading p, .download-band p { color: var(--muted); line-height: 1.7; }
.info-list { display: grid; gap: 14px; }
.info-list article { display: grid; gap: 8px; }
.info-list strong { color: var(--navy-2); font-size: 18px; }
.info-list span { color: var(--muted); }
.section-heading { max-width: 760px; }
.workflow-grid { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.workflow-grid span { color: var(--blue); font-weight: 900; }
.workflow-grid h3 { margin: 10px 0; }
.workflow-grid p { color: var(--muted); line-height: 1.6; }
.download-band {
    align-items: center;
    background: var(--navy);
    color: var(--white);
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin: 42px clamp(20px, 6vw, 96px);
    padding: 34px;
    border-radius: 8px;
}
.download-band h2 { color: var(--white); }
.download-band p { color: #d9e7ff; max-width: 700px; }

.page-shell { display: grid; gap: 32px; grid-template-columns: .8fr 1fr; margin: 42px auto; max-width: 1040px; }
.legal { line-height: 1.7; margin: 42px auto; max-width: 860px; }
.contact-form, .form-grid { display: grid; gap: 16px; }
label { color: var(--muted); display: grid; font-size: 14px; font-weight: 700; gap: 8px; }
input, select, textarea {
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    min-height: 44px;
    padding: 10px 12px;
    width: 100%;
}

.site-footer { background: var(--navy); color: var(--white); margin-top: 30px; padding: 34px clamp(20px, 5vw, 72px) 18px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1.4fr .8fr .8fr; }
.footer-grid p { color: #d9e7ff; line-height: 1.7; max-width: 460px; }
.footer-grid nav { display: grid; gap: 10px; }
.footer-grid nav strong { margin-bottom: 4px; }
.footer-grid a { color: #d9e7ff; font-weight: 700; }
.footer-copy { border-top: 1px solid rgba(255, 255, 255, .14); color: #adc3e8; margin-top: 26px; padding-top: 18px; }

.login-body {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(7, 24, 51, .94), rgba(15, 42, 95, .88)),
        url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1600&q=80");
    background-position: center;
    background-size: cover;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}
.login-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
    max-width: 460px;
    padding: 34px;
    width: 100%;
}
.login-brand { color: var(--navy); margin-bottom: 28px; }
.login-card h1 { margin: 8px 0 10px; }
.login-copy { color: var(--muted); line-height: 1.7; }

.admin-body { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.sidebar {
    background: var(--navy);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: 22px;
}
.admin-brand { margin-bottom: 32px; }
.side-nav { display: grid; gap: 8px; }
.side-nav a {
    align-items: center;
    border-radius: 8px;
    color: #d9e7ff;
    display: flex;
    font-weight: 700;
    gap: 12px;
    padding: 12px;
}
.side-nav a:hover, .side-nav a.active { background: #102d63; color: var(--white); }
.side-nav svg, .logout-button svg {
    fill: currentColor;
    flex: 0 0 auto;
    height: 20px;
    width: 20px;
}
.sidebar-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: grid;
    gap: 14px;
    padding-top: 18px;
}
.admin-user { align-items: center; display: flex; gap: 12px; min-width: 0; }
.admin-user span {
    align-items: center;
    background: var(--cyan);
    border-radius: 999px;
    color: var(--navy);
    display: inline-flex;
    font-weight: 900;
    height: 40px;
    justify-content: center;
    width: 40px;
}
.admin-user div { min-width: 0; }
.admin-user strong, .admin-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user small { color: #adc3e8; margin-top: 2px; }
.logout-button {
    align-items: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    color: #d9e7ff;
    cursor: pointer;
    display: flex;
    font-weight: 900;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    width: 100%;
}
.logout-button:hover { background: #102d63; color: var(--white); }
.admin-main { min-width: 0; padding: 30px; }
.admin-top { align-items: center; display: flex; justify-content: space-between; margin-bottom: 24px; }
.admin-top p { color: var(--muted); margin: 0 0 6px; }
.admin-top h1 { font-size: 34px; margin: 0; }
.admin-pill, .badge { background: #e7f8fb; border-radius: 999px; color: #036775; display: inline-flex; font-size: 12px; font-weight: 900; padding: 6px 10px; }
.stats-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); margin-bottom: 20px; }
.stats-grid span { color: var(--muted); display: block; font-weight: 700; }
.stats-grid strong { color: var(--navy-2); display: block; font-size: clamp(26px, 3vw, 42px); margin-top: 8px; }
.dashboard-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel { margin-bottom: 20px; overflow-x: auto; }
.panel-head { align-items: center; display: flex; justify-content: space-between; margin-bottom: 16px; }
.panel-head h2 { margin: 0; }
table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid var(--line); padding: 14px 12px; text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: 13px; text-transform: uppercase; }
.actions { display: flex; gap: 12px; }
.actions a { color: var(--blue); font-weight: 900; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wide, .form-actions { grid-column: 1 / -1; }
.form-actions { justify-content: flex-end; }
.alert { border-radius: 8px; font-weight: 700; margin-bottom: 16px; padding: 14px 16px; }
.alert.success { background: #eaf8ef; color: #116c38; }
.alert.danger { background: #fff0f0; color: #9f1d1d; }
.swatch { border: 1px solid var(--line); border-radius: 5px; display: inline-block; height: 22px; margin-right: 8px; vertical-align: middle; width: 34px; }
.detail { line-height: 1.8; }
.chart-panel { min-height: 320px; }
.bar-chart {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(7, minmax(42px, 1fr));
    min-height: 220px;
    padding-top: 24px;
}
.bar-item {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-rows: 24px 160px 22px;
    min-width: 0;
}
.bar-value { color: var(--navy-2); font-size: 12px; font-weight: 900; text-align: center; }
.bar-track {
    align-items: end;
    background: #eef4fb;
    border-radius: 999px;
    display: flex;
    height: 160px;
    overflow: hidden;
    width: 100%;
}
.bar-track span {
    background: linear-gradient(180deg, var(--cyan), var(--blue));
    border-radius: 999px 999px 0 0;
    display: block;
    width: 100%;
}
.users-chart .bar-track span { background: linear-gradient(180deg, #67e8f9, #0f766e); }
.bar-item small { color: var(--muted); font-size: 11px; font-weight: 700; text-align: center; }
.empty-state { color: var(--muted); line-height: 1.7; }

@media (max-width: 1000px) {
    .workflow-grid, .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .hero, .page-shell, .feature-band, .split-section, .admin-body, .stats-grid, .form-grid, .footer-grid, .dashboard-grid { grid-template-columns: 1fr; }
    .hero { min-height: auto; }
    .phone-preview { max-width: 360px; }
    .sidebar { min-height: auto; }
    .admin-main { padding: 20px; }
    .site-header, .nav, .download-band { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 620px) {
    .workflow-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 46px; }
}
