:root {
    --bg: #08090d;
    --bg-2: #10131a;
    --panel: rgba(255, 255, 255, 0.075);
    --panel-strong: rgba(255, 255, 255, 0.11);
    --line: rgba(255, 255, 255, 0.14);
    --text: #f7f8fb;
    --muted: #aeb7c7;
    --teal: #28d6c5;
    --violet: #7c5cff;
    --amber: #ffba4a;
    --rose: #ff6b8a;
    --blue: #38bdf8;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
    letter-spacing: 0;
}

body {
    font-family: "Instrument Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        linear-gradient(145deg, rgba(40, 214, 197, 0.12), transparent 34%),
        linear-gradient(220deg, rgba(255, 186, 74, 0.1), transparent 38%),
        var(--bg);
    color: var(--text);
    min-height: 100vh;
}

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

p {
    color: var(--muted);
    line-height: 1.75;
}

.muted {
    color: var(--muted);
}

.bs-nav {
    background: rgba(8, 9, 13, 0.72);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.navbar {
    padding: 14px 0;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 600;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
    color: #fff;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    color: #07100f;
    background: linear-gradient(135deg, var(--teal), var(--amber));
    box-shadow: 0 12px 30px rgba(40, 214, 197, 0.28);
}

.glass-menu {
    border: 1px solid var(--line);
    background: rgba(12, 15, 23, 0.94);
    backdrop-filter: blur(20px);
    border-radius: 8px;
}

.btn {
    border-radius: 999px;
    font-weight: 700;
}

.btn-neon {
    color: #07100f;
    background: linear-gradient(135deg, var(--teal), var(--amber));
    border: 0;
    box-shadow: 0 16px 38px rgba(40, 214, 197, 0.2);
}

.btn-neon:hover {
    color: #07100f;
    transform: translateY(-1px);
    box-shadow: 0 22px 50px rgba(40, 214, 197, 0.28);
}

.btn-ghost {
    color: #fff;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.07);
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.hero-section,
.page-hero,
.service-hero,
.article-hero,
.auth-section {
    padding: 148px 0 86px;
    position: relative;
    overflow: hidden;
}

.hero-section::before,
.page-hero::before,
.service-hero::before,
.article-hero::before,
.auth-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black, transparent 80%);
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.hero-copy.narrow,
.article-header {
    max-width: 850px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.hero-copy h1,
.page-hero h1,
.service-hero h1,
.article-header h1,
.auth-card h1 {
    font-weight: 800;
    font-size: clamp(2.5rem, 6vw, 5.4rem);
    line-height: 1.02;
    margin-bottom: 24px;
}

.hero-copy p,
.page-hero p,
.service-hero p,
.article-header p {
    font-size: 1.15rem;
    max-width: 720px;
}

.hero-actions,
.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.trust-row span {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: var(--muted);
}

.dashboard-visual,
.service-visual {
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(255,255,255,0.13), rgba(255,255,255,0.04));
    box-shadow: var(--shadow);
    border-radius: 8px;
    padding: 18px;
    min-height: 460px;
    position: relative;
    overflow: hidden;
}

.visual-topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.visual-topbar span,
.mock-window span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--rose);
}

.visual-topbar span:nth-child(2),
.mock-window span:nth-child(2) {
    background: var(--amber);
}

.visual-topbar span:nth-child(3),
.mock-window span:nth-child(3) {
    background: var(--teal);
}

.visual-topbar strong {
    margin-left: auto;
    color: var(--muted);
}

.visual-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.visual-panel,
.premium-card,
.glass-card,
.content-panel,
.testimonial-card,
.process-step,
.admin-panel,
.admin-stat {
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.visual-panel {
    min-height: 130px;
    padding: 18px;
}

.span-2 {
    grid-column: span 2;
}

.panel-label {
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 18px;
}

.flow-line {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.flow-line span {
    color: #061110;
    background: linear-gradient(135deg, var(--teal), #d7fff8);
    border-radius: 8px;
    padding: 12px 10px;
    font-weight: 800;
    text-align: center;
    font-size: 0.82rem;
}

.metric-big {
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.mini-bars,
.mock-chart {
    display: flex;
    gap: 10px;
    align-items: end;
    height: 82px;
}

.mini-bars i,
.mock-chart i {
    flex: 1;
    display: block;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, var(--violet), var(--teal));
}

.mini-bars i:nth-child(1),
.mock-chart i:nth-child(1) { height: 35%; }
.mini-bars i:nth-child(2),
.mock-chart i:nth-child(2) { height: 70%; }
.mini-bars i:nth-child(3),
.mock-chart i:nth-child(3) { height: 48%; }
.mini-bars i:nth-child(4),
.mock-chart i:nth-child(4) { height: 90%; }

.chat-preview {
    display: grid;
    gap: 12px;
}

.chat-preview div {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px;
}

.chat-preview b,
.chat-preview span {
    display: block;
}

.chat-preview span {
    color: var(--muted);
}

.section-pad {
    padding: 92px 0;
}

.soft-band {
    background: rgba(255, 255, 255, 0.035);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 44px;
    text-align: center;
}

.section-heading h2,
.content-panel h2,
.premium-card h2,
.cta-copy h2 {
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.08;
    font-weight: 800;
}

.service-grid,
.case-grid,
.blog-grid,
.why-grid,
.process-grid,
.testimonial-row,
.admin-card-grid {
    display: grid;
    gap: 20px;
}

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

.premium-card,
.glass-card,
.content-panel,
.testimonial-card,
.process-step {
    padding: 26px;
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.premium-card:hover,
.testimonial-card:hover,
.process-step:hover {
    transform: translateY(-5px);
    border-color: rgba(40, 214, 197, 0.42);
    background: var(--panel-strong);
}

.service-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #07100f;
    background: var(--accent);
    margin-bottom: 22px;
    font-size: 1.5rem;
}

.service-card h3,
.why-item h3,
.premium-card h3,
.process-step h3,
.blog-card h3,
.case-card h3 {
    font-size: 1.08rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--teal);
    font-weight: 800;
}

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

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

.why-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.055);
}

.why-item i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(40, 214, 197, 0.16);
    color: var(--teal);
    flex: 0 0 42px;
}

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

.case-visual {
    min-height: 155px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #0c1119;
    margin-bottom: 22px;
}

.case-visual.large {
    min-height: 230px;
}

.mock-window {
    display: flex;
    gap: 7px;
    margin-bottom: 18px;
}

.mock-dashboard-lines {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.mock-dashboard-lines i {
    display: block;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.mock-dashboard-lines i:nth-child(2) {
    width: 72%;
}

.mock-dashboard-lines i:nth-child(3) {
    width: 52%;
}

.metric-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.metric-row span,
.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 11px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.metric-row b {
    color: #fff;
}

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

.stars {
    color: var(--amber);
    margin-bottom: 18px;
}

.person {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 22px;
}

.person span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #07100f;
    background: linear-gradient(135deg, var(--teal), var(--amber));
    font-weight: 800;
}

.person.large span {
    width: 56px;
    height: 56px;
}

.person b,
.person small {
    display: block;
}

.person small {
    color: var(--muted);
}

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

.blog-grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.blog-card h2,
.article-header h1 {
    font-weight: 800;
}

.blog-meta {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.cta-section {
    background: linear-gradient(135deg, rgba(40, 214, 197, 0.14), rgba(124, 92, 255, 0.12));
    border-top: 1px solid var(--line);
}

.cta-copy {
    padding: 30px 0;
}

.social-row {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-row a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
}

.form-control,
.form-select {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.form-control:focus,
.form-select:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.11);
    border-color: var(--teal);
    box-shadow: 0 0 0 .25rem rgba(40, 214, 197, 0.14);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.form-select option {
    color: #111;
}

.form-label {
    color: #eef3f8;
    font-weight: 700;
}

.service-orbit {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    margin: 30px auto;
    color: #061110;
    background: var(--accent);
    font-size: 4rem;
    box-shadow: 0 0 80px color-mix(in srgb, var(--accent), transparent 50%);
}

.service-stack {
    display: grid;
    gap: 12px;
}

.service-stack span {
    padding: 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
    color: #fff;
    font-weight: 700;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.check-list li {
    display: flex;
    gap: 10px;
    color: var(--muted);
}

.check-list i {
    color: var(--teal);
}

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

.process-step span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: #07100f;
    background: var(--teal);
    font-weight: 800;
    margin-bottom: 18px;
}

.premium-accordion .accordion-item {
    color: #fff;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.premium-accordion .accordion-button {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    font-weight: 800;
}

.premium-accordion .accordion-button:not(.collapsed) {
    color: #07100f;
    background: linear-gradient(135deg, var(--teal), var(--amber));
}

.premium-accordion .accordion-body {
    color: var(--muted);
}

.blog-filter {
    padding: 18px;
    margin-bottom: 26px;
}

.sticky-panel {
    position: sticky;
    top: 100px;
}

.side-post,
.category-line,
.admin-list-item {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.side-post span,
.side-post small,
.admin-list-item span,
.admin-list-item small {
    display: block;
}

.side-post small,
.admin-list-item small {
    color: var(--muted);
}

.category-line {
    display: flex;
    justify-content: space-between;
}

.article-body {
    font-size: 1.08rem;
    line-height: 1.9;
    color: #eaf1f8;
}

.comment-item {
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.stats-grid div {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    text-align: center;
}

.stats-grid b {
    display: block;
    font-size: 2.5rem;
    color: #fff;
}

.stats-grid span {
    color: var(--muted);
}

.map-frame {
    height: 260px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.auth-section {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding-left: 16px;
    padding-right: 16px;
}

.auth-card {
    width: min(100%, 480px);
    padding: 32px;
    position: relative;
    z-index: 1;
}

.legal-card h2 {
    margin-top: 26px;
}

.toast-zone {
    position: fixed;
    right: 20px;
    top: 90px;
    z-index: 1050;
    max-width: 420px;
}

.site-footer {
    padding: 64px 0 28px;
    border-top: 1px solid var(--line);
    background: #07080c;
}

.site-footer h6 {
    color: #fff;
    font-weight: 800;
    margin-bottom: 16px;
}

.site-footer a:not(.brand-mark):not(.btn) {
    display: block;
    color: var(--muted);
    margin-bottom: 10px;
}

.footer-bottom {
    margin-top: 42px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--muted);
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.admin-body {
    background: #08090d;
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 24px;
    border-right: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
}

.admin-sidebar nav {
    display: grid;
    gap: 6px;
    margin-top: 28px;
}

.admin-sidebar nav a,
.admin-sidebar-footer a,
.admin-sidebar-footer button {
    width: 100%;
    display: flex;
    gap: 10px;
    align-items: center;
    border: 0;
    border-radius: 8px;
    color: var(--muted);
    background: transparent;
    padding: 11px 12px;
    text-align: left;
}

.admin-sidebar nav a.active,
.admin-sidebar nav a:hover,
.admin-sidebar-footer a:hover,
.admin-sidebar-footer button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.admin-sidebar-footer {
    border-top: 1px solid var(--line);
    margin-top: 28px;
    padding-top: 18px;
}

.admin-main {
    padding: 34px;
}

.admin-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-heading h1 {
    font-size: clamp(2rem, 4vw, 3.3rem);
    font-weight: 800;
    margin: 0;
}

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

.admin-stat {
    padding: 22px;
}

.admin-stat i {
    color: var(--teal);
    font-size: 1.5rem;
}

.admin-stat span,
.admin-stat b {
    display: block;
}

.admin-stat span {
    color: var(--muted);
    margin-top: 14px;
}

.admin-stat b {
    font-size: 2.25rem;
}

.admin-panel {
    padding: 24px;
}

.admin-panel h2 {
    font-weight: 800;
    margin-bottom: 18px;
}

.chart-row {
    display: grid;
    grid-template-columns: 120px 1fr 44px;
    gap: 12px;
    align-items: center;
    margin: 16px 0;
}

.chart-row div {
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.chart-row i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--teal), var(--violet));
}

.admin-table {
    --bs-table-bg: rgba(255, 255, 255, 0.035);
    --bs-table-color: #f7f8fb;
    --bs-table-border-color: rgba(255, 255, 255, 0.14);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.055);
    --bs-table-striped-color: #f7f8fb;
    --bs-table-hover-bg: rgba(40, 214, 197, 0.09);
    --bs-table-hover-color: #ffffff;
    color: #f7f8fb;
    margin-bottom: 0;
}

.admin-table th,
.admin-table td {
    color: #f7f8fb;
    background-color: transparent;
    border-color: var(--line);
    vertical-align: middle;
}

.admin-table thead th {
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-table tbody tr {
    background: rgba(255, 255, 255, 0.035);
}

.admin-table tbody tr:hover {
    background: rgba(40, 214, 197, 0.09);
}

.admin-panel .table-responsive {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 9, 13, 0.72);
    overflow: auto;
}

.pagination {
    --bs-pagination-bg: rgba(255,255,255,.06);
    --bs-pagination-border-color: rgba(255,255,255,.14);
    --bs-pagination-color: #fff;
    --bs-pagination-hover-color: #07100f;
    --bs-pagination-hover-bg: var(--teal);
    --bs-pagination-hover-border-color: var(--teal);
}

@media (max-width: 1199px) {
    .service-grid,
    .case-grid,
    .blog-grid,
    .testimonial-row,
    .admin-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 991px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: relative;
        height: auto;
    }

    .sticky-panel {
        position: static;
    }
}

@media (max-width: 767px) {
    .hero-section,
    .page-hero,
    .service-hero,
    .article-hero {
        padding: 118px 0 62px;
    }

    .section-pad {
        padding: 62px 0;
    }

    .service-grid,
    .case-grid,
    .blog-grid,
    .blog-grid.two-col,
    .why-grid,
    .why-grid.three,
    .testimonial-row,
    .process-grid,
    .stats-grid,
    .admin-card-grid,
    .visual-grid {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: auto;
    }

    .flow-line {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-visual,
    .service-visual {
        min-height: auto;
    }

    .admin-main {
        padding: 20px;
    }

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