:root {
    --bg: #07090b;
    --panel: rgba(20, 23, 27, 0.94);
    --panel-light: rgba(28, 32, 36, 0.94);
    --line: rgba(255, 255, 255, 0.08);
    --text: #f4f8fb;
    --muted: #a5b5bf;
    --accent: #22d0f5;
    --accent-soft: rgba(34, 208, 245, 0.12);
    --green: #2ed37a;
    --yellow: #ffbe38;
    --red: #ff5c5c;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Trebuchet MS", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(34, 208, 245, 0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(34, 208, 245, 0.12), transparent 24%),
        linear-gradient(180deg, #090b0d 0%, #060708 100%);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 9, 11, 0.94);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 16px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand h1 {
    margin: 0;
    font-size: 28px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand-mini,
.section-mini,
.hero-label {
    margin: 0 0 8px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 12px;
}

.brand-logo {
    width: 86px;
    border-radius: 14px;
    border: 1px solid var(--line);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nav a {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: 0.2s ease;
}

.nav a:hover,
.button:hover {
    border-color: rgba(34, 208, 245, 0.42);
    background: var(--accent-soft);
}

.section,
.hero {
    padding: 56px 0;
}

.section-alt {
    background: rgba(255, 255, 255, 0.02);
}

.hero-grid,
.employee-layout,
.tracker-layout,
.footer-grid {
    display: grid;
    gap: 24px;
}

.hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
}

.employee-layout {
    grid-template-columns: 1.3fr 0.7fr;
    align-items: start;
}

.tracker-layout {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: start;
}

.footer-grid {
    grid-template-columns: minmax(0, 1fr);
}

.panel {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.hero-text h2,
.section-heading h3,
.site-footer h3 {
    margin: 0 0 16px;
    font-size: 34px;
    line-height: 1.1;
}

.hero-text p,
.info-card p,
.price-card p,
.side-card-text,
.muted,
.site-footer p {
    color: var(--muted);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 18px;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: var(--accent);
    color: #02161b;
    font-weight: bold;
    cursor: pointer;
}

.button-light {
    background: transparent;
    color: var(--text);
    border-color: var(--line);
}

.full-width {
    width: 100%;
}

.hero-list {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.7;
}

.hero-image-card img,
.side-card img {
    width: 100%;
    border-radius: 16px;
}

.section-heading {
    margin-bottom: 22px;
}

.card-grid,
.stats-grid {
    display: grid;
    gap: 18px;
}

.card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 18px 0;
}

.info-card h4,
.price-card h4,
.panel h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 22px;
}

.price {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 30px;
    font-weight: bold;
}

.form {
    display: grid;
    gap: 14px;
}

.form-inline {
    grid-template-columns: 1fr 150px auto;
    align-items: end;
}

label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 15px;
}

input,
select,
textarea,
.subject-row input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-light);
    color: var(--text);
    font: inherit;
}

textarea {
    resize: vertical;
}

.subject-settings,
.subject-stats,
.log-list {
    display: grid;
    gap: 12px;
}

.subject-row,
.subject-stat,
.log-item,
.employee-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
}

.subject-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px 110px;
    align-items: center;
    gap: 12px;
}

.subject-name,
.employee-card h4,
.log-head {
    margin: 0;
    font-size: 18px;
}

.subject-meta,
.employee-meta,
.log-meta {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.subject-bar {
    height: 10px;
    margin-top: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.subject-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #0da8c7, #34e1ff);
}

.status-banner {
    font-size: 18px;
    font-weight: bold;
}

.status-banner.green {
    border-color: rgba(46, 211, 122, 0.4);
    background: rgba(46, 211, 122, 0.12);
}

.status-banner.yellow {
    border-color: rgba(255, 190, 56, 0.4);
    background: rgba(255, 190, 56, 0.12);
}

.status-banner.red {
    border-color: rgba(255, 92, 92, 0.4);
    background: rgba(255, 92, 92, 0.14);
}

.stat-card {
    text-align: center;
}

.stat-title {
    margin: 0 0 10px;
    color: var(--muted);
}

.stat-value {
    margin: 0;
    font-size: 28px;
    font-weight: bold;
}

.employee-card h4 {
    margin-bottom: 8px;
}

.employee-meta strong {
    color: var(--text);
}

.form-message {
    min-height: 24px;
    margin: 18px 0 0;
    font-weight: bold;
}

.form-message.error {
    color: #ff9898;
}

.form-message.success {
    color: #8ef0b6;
}

.site-footer {
    padding: 40px 0 60px;
    border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
    .hero-grid,
    .employee-layout,
    .tracker-layout,
    .footer-grid,
    .card-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .form-inline,
    .subject-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .brand {
        flex-direction: column;
        align-items: flex-start;
    }

    .brand h1,
    .hero-text h2,
    .section-heading h3,
    .site-footer h3 {
        font-size: 28px;
    }

    .nav {
        width: 100%;
    }

    .nav a {
        flex: 1 1 160px;
        text-align: center;
    }
}
