:root {
    --hs-dark: #071829;
    --hs-dark-2: #0b1f3a;
    --hs-surface: #ffffff;
    --hs-bg: #eef3f9;
    --hs-text: #122033;
    --hs-muted: #5a6b7d;
    --hs-line: #d5e0ec;
    --hs-accent: #1a5fbf;
    --hs-accent-light: #3d8bf0;
    --hs-accent-dark: #0d4a9f;
    --hs-gradient: linear-gradient(135deg, #0d4a9f 0%, #1a5fbf 48%, #3d8bf0 100%);
    --hs-shadow: 0 18px 40px rgba(7, 24, 41, 0.12);
    --hs-container: min(1320px, 94vw);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--hs-text);
    background: var(--hs-bg);
    line-height: 1.6;
}

h1, h2, h3, h4, .section-title {
    font-family: "Sora", "Manrope", sans-serif;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
}

.header-container {
    width: var(--hs-container);
    margin-inline: auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.header-top {
    background: var(--hs-dark-2);
    color: #c8cdd1;
    font-size: 0.82rem;
    padding: 0.45rem 0;
}

.header-top__link {
    color: #e8eaec;
}

.header-top__link:hover {
    color: var(--hs-accent-light);
}

.header-top__tag {
    color: #9aa3a8;
}

.header-main {
    background: var(--hs-dark);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff !important;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 10px;
    background: var(--hs-gradient);
    color: #fff;
    font-size: 0.95rem;
}

.navbar-dark .nav-link {
    color: rgba(255, 255, 255, 0.86) !important;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.5rem 0.85rem !important;
}

.navbar-dark .nav-link:hover {
    color: #fff !important;
}

.btn-brand {
    background: var(--hs-accent);
    border: 1px solid var(--hs-accent);
    color: #fff !important;
    font-weight: 700;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
}

.btn-brand:hover {
    background: var(--hs-accent-dark);
    border-color: var(--hs-accent-dark);
    color: #fff;
}

.btn-brand-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff !important;
    font-weight: 700;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
}

.btn-brand-outline:hover {
    border-color: #fff;
    color: #fff;
}

/* Layout */
.main-inner {
    padding: 2.5rem 0 4rem;
}

.page-inner {
    width: var(--hs-container);
    margin-inline: auto;
}

/* Hero */
.hero-banner {
    position: relative;
    min-height: clamp(420px, 58vh, 560px);
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(4, 14, 28, 0.96) 0%, rgba(7, 24, 41, 0.92) 45%, rgba(13, 74, 159, 0.75) 100%),
        url("https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
}

.hero-banner__content {
    position: relative;
    z-index: 1;
    width: var(--hs-container);
    margin-inline: auto;
    padding: 4rem 0 5rem;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}

.hero-banner h1 {
    font-size: clamp(2rem, 4.5vw, 3.35rem);
    font-weight: 700;
    line-height: 1.08;
    max-width: 16ch;
    margin-bottom: 1rem;
}

.hero-banner .lead {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 58ch;
    margin-bottom: 1.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Quick links */
.quick-links {
    margin-top: -2.5rem;
    position: relative;
    z-index: 2;
    padding-bottom: 1rem;
}

.quick-links__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
}

.quick-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 72px;
    padding: 1rem;
    background: var(--hs-surface);
    border-radius: 14px;
    box-shadow: var(--hs-shadow);
    color: var(--hs-text);
    font-weight: 700;
    font-size: 0.92rem;
    border: 1px solid var(--hs-line);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.quick-link:hover {
    transform: translateY(-3px);
    border-color: #9ec5f5;
    color: var(--hs-accent);
}

/* Sections */
.section-block {
    padding: 4.5rem 0;
}

.section-block--light {
    background: var(--hs-bg);
}

.section-block--white {
    background: var(--hs-surface);
}

.section-kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--hs-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.6rem, 2.8vw, 2.35rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.section-lead {
    color: var(--hs-muted);
    font-size: 1.05rem;
    max-width: 68ch;
}

/* Intro split */
.intro-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
}

.check-list li {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--hs-line);
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.check-list li i {
    color: var(--hs-accent);
    margin-top: 0.2rem;
}

/* Value cards */
.value-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.value-card {
    background: var(--hs-surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--hs-shadow);
    border: 1px solid var(--hs-line);
}

.value-card__img {
    height: 160px;
    background-size: cover;
    background-position: center;
}

.value-card__body {
    padding: 1.25rem;
}

.value-card__label {
    font-size: 0.8rem;
    color: var(--hs-muted);
}

.value-card h3 {
    font-size: 1.1rem;
    margin: 0.35rem 0 0;
}

/* Stats */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.stat-box {
    background: var(--hs-surface);
    border-radius: 14px;
    padding: 1.5rem 1rem;
    text-align: center;
    border: 1px solid var(--hs-line);
    box-shadow: var(--hs-shadow);
}

.stat-box strong {
    display: block;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-family: "Sora", sans-serif;
    background: var(--hs-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-box span {
    color: var(--hs-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

/* System cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.15rem;
}

.card {
    background: var(--hs-surface);
    border: 1px solid var(--hs-line);
    border-radius: 16px;
    box-shadow: var(--hs-shadow);
    padding: 1.25rem;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
}

.card h3 {
    font-size: 1.15rem;
    margin-top: 0.6rem;
}

.card p {
    color: var(--hs-muted);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.stack {
    display: inline-flex;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: #e8f1fb;
    color: var(--hs-accent-dark);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.1rem;
}

.card-actions form {
    margin: 0;
}

.card__img {
    height: 140px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    margin-bottom: 1rem;
}

.card--with-image h3 {
    margin-top: 0;
}

/* Stacks */
.stacks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stack-card {
    background: var(--hs-dark);
    color: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stack-card i {
    font-size: 1.75rem;
    color: var(--hs-accent-light);
}

.stack-card h3 {
    font-size: 1.2rem;
    margin: 1rem 0 0.5rem;
}

.stack-card p {
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
    font-size: 0.92rem;
}

/* Advantages */
.advantages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.advantage-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.advantage-box {
    background: var(--hs-surface);
    border-radius: 14px;
    padding: 1.25rem;
    border: 1px solid var(--hs-line);
    box-shadow: var(--hs-shadow);
}

.advantage-box--highlight {
    background: linear-gradient(145deg, #eef5ff 0%, #fff 100%);
    border-color: #b8d4f5;
}

.advantage-box h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.advantage-box p {
    color: var(--hs-muted);
    font-size: 0.92rem;
    margin: 0;
}

/* FAQ */
.faq-list {
    max-width: 820px;
    margin: 2rem auto 0;
}

.faq-item {
    border-bottom: 1px solid var(--hs-line);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 0;
    background: none;
    border: none;
    text-align: left;
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--hs-text);
}

.faq-question i {
    color: var(--hs-accent);
    transition: transform 0.2s ease;
}

.faq-item.is-open .faq-question i {
    transform: rotate(180deg);
}

.faq-panel {
    padding: 0 0 1.15rem;
    color: var(--hs-muted);
}

.faq-panel[hidden] {
    display: none;
}

/* CTA */
.cta-band {
    background: var(--hs-dark);
    color: #fff;
    border-radius: 20px;
    padding: clamp(2rem, 5vw, 3.5rem);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    box-shadow: var(--hs-shadow);
}

.cta-band h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
}

.cta-band p {
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    max-width: 50ch;
}

/* Testimonial */
.testimonial {
    background: var(--hs-surface);
    border-radius: 18px;
    padding: 2rem;
    border: 1px solid var(--hs-line);
    box-shadow: var(--hs-shadow);
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

.testimonial blockquote {
    font-size: 1.15rem;
    font-weight: 500;
    margin: 0 0 1rem;
    color: var(--hs-text);
}

.testimonial cite {
    color: var(--hs-muted);
    font-style: normal;
    font-weight: 700;
}

/* Inner pages */
.page-hero-strip {
    background: var(--hs-dark);
    color: #fff;
    padding: 2.5rem 0;
    margin-bottom: 2rem;
}

.page-hero-strip h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 0;
}

.page-hero-strip p {
    color: rgba(255, 255, 255, 0.75);
    margin: 0.5rem 0 0;
}

.table-wrap {
    background: var(--hs-surface);
    border: 1px solid var(--hs-line);
    border-radius: 16px;
    box-shadow: var(--hs-shadow);
    overflow-x: auto;
}

.table > :not(caption) > * > * {
    padding: 0.8rem 0.75rem;
}

.status {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.58rem;
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-pending,
.status-in_progress {
    background: #fff2cc;
    color: #7d5f00;
}

.status-done {
    background: #e2f7ea;
    color: #1d7a4b;
}

.status-cancelled {
    background: #f8e0e0;
    color: #8f2d2d;
}

.auth-wrap {
    max-width: 520px;
    margin-inline: auto;
}

.auth-form {
    background: var(--hs-surface);
    border: 1px solid var(--hs-line);
    border-radius: 16px;
    box-shadow: var(--hs-shadow);
    padding: 1.5rem;
    display: grid;
    gap: 1rem;
}

.auth-form .form-control {
    border-color: #cfd6de;
    padding: 0.7rem 0.85rem;
}

.btn-primary {
    background: var(--hs-accent);
    border-color: var(--hs-accent);
    font-weight: 700;
}

.btn-primary:hover {
    background: var(--hs-accent-dark);
    border-color: var(--hs-accent-dark);
}

.btn-outline-secondary {
    font-weight: 600;
}

/* Footer */
.site-footer {
    background: var(--hs-dark);
    color: rgba(255, 255, 255, 0.82);
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    max-width: 36ch;
}

.footer-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.55rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
}

.footer-links a:hover {
    color: var(--hs-accent-light);
}

.footer-contact li {
    display: flex;
    align-items: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-muted {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
    .quick-links__grid,
    .value-cards,
    .stats-row,
    .stacks-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .intro-split,
    .advantages-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .quick-links__grid,
    .value-cards,
    .stats-row,
    .stacks-grid,
    .advantage-boxes {
        grid-template-columns: 1fr;
    }

    .hero-banner__content {
        padding: 3rem 0 4rem;
    }

    .quick-links {
        margin-top: -1.5rem;
    }
}
