:root {
    --bg: #07111f;
    --bg-soft: #0d1b2e;
    --panel: rgba(13, 27, 46, 0.88);
    --panel-strong: #0f1d31;
    --card: rgba(255, 255, 255, 0.04);
    --card-border: rgba(133, 176, 255, 0.18);
    --accent: #62b0ff;
    --accent-2: #8bffe1;
    --text: #e7eefb;
    --text-soft: #a8b6cf;
    --white: #ffffff;
    --success: #69d98c;
    --danger: #ff8b97;
    --shadow: 0 25px 60px rgba(1, 6, 18, 0.45);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(98, 176, 255, 0.18), transparent 28%),
        radial-gradient(circle at 80% 20%, rgba(139, 255, 225, 0.08), transparent 22%),
        linear-gradient(180deg, #040a13 0%, #07111f 30%, #091527 100%);
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(circle at center, black 30%, transparent 85%);
}

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

svg {
    display: block;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

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

p {
    color: var(--text-soft);
    line-height: 1.7;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

pre {
    margin: 0;
    white-space: pre-wrap;
}

.site-shell {
    position: relative;
    z-index: 1;
}

.container {
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
}

.narrow {
    width: min(680px, calc(100% - 2rem));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(4, 10, 19, 0.76);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 104px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand img {
    height: clamp(64px, 7vw, 92px);
    width: auto;
    max-width: min(360px, 54vw);
    display: block;
    object-fit: contain;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.primary-nav a {
    color: var(--text-soft);
    font-weight: 600;
    transition: color 0.25s ease;
}

.primary-nav a:hover,
.primary-nav a.is-active {
    color: var(--white);
}

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--white);
    border-radius: 999px;
}

.hero,
.page-hero {
    padding: 5.5rem 0 4rem;
}

.page-hero.small {
    padding-bottom: 1rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--accent-2);
}

.eyebrow::before {
    content: '';
    width: 32px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-2));
}

.hero h1,
.page-hero h1,
.section-heading h2,
.note-panel h2,
.contact-panel h2,
.auth-card h1,
.admin-main h1 {
    margin: 0;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    max-width: 12ch;
}

.hero-text,
.page-hero p {
    max-width: 60ch;
    font-size: 1.08rem;
}

.hero-actions,
.form-actions,
.centered-action {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.hero-badges span,
.tech-cloud span,
.blog-meta span,
.article-meta span {
    padding: 0.62rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-soft);
    font-size: 0.92rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.95rem 1.35rem;
    border-radius: 14px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: linear-gradient(135deg, var(--accent), #3c89ff);
    color: #041120;
    box-shadow: 0 20px 45px rgba(41, 117, 255, 0.25);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.full-width {
    width: 100%;
}

.hero-panel {
    display: grid;
    gap: 1rem;
}

.hero-card,
.info-card,
.domain-card,
.stat-card,
.blog-card,
.sidebar-card,
.article-card,
.contact-card,
.auth-card,
.admin-form,
.blueprint-card,
.note-panel,
.trust-bar,
.admin-note {
    background: var(--panel);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.terminal-card {
    overflow: hidden;
}

.terminal-head {
    display: flex;
    gap: 0.4rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.terminal-head span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
}

.terminal-body {
    padding: 1.4rem;
}

.terminal-body code {
    color: var(--accent-2);
    font-size: 0.96rem;
    line-height: 1.75;
}

.hero-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-card,
.info-card,
.domain-card,
.blog-card,
.sidebar-card,
.article-card,
.blueprint-card,
.contact-card,
.auth-card,
.admin-form,
.admin-note {
    padding: 1.5rem;
}

.stat-card strong,
.info-card h3,
.domain-card h3,
.blog-card h4,
.article-card h2,
.sidebar-card h3,
.footer-brand strong,
.auth-card h1,
.admin-main h1 {
    color: var(--white);
}

.stat-card span {
    color: var(--text-soft);
    font-size: 0.95rem;
}

.section {
    padding: 4.5rem 0;
}

.section-dark {
    background: linear-gradient(180deg, rgba(4, 10, 19, 0.12), rgba(6, 13, 23, 0.56));
}

.section-accent {
    background: linear-gradient(180deg, rgba(98, 176, 255, 0.05), rgba(139, 255, 225, 0.03));
}

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

.section-heading.left,
.section-heading.left.compact {
    margin-left: 0;
    text-align: left;
}

.section-heading.light h2,
.section-heading.light p {
    color: var(--white);
}

.section-heading h2,
.note-panel h2,
.contact-panel h2,
.page-hero h1,
.auth-card h1,
.admin-main h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.card-grid {
    display: grid;
    gap: 1.25rem;
}

.four-up {
    grid-template-columns: repeat(4, 1fr);
}

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

.info-card p,
.domain-card p,
.blog-card p,
.sidebar-card li,
.contact-card span,
.article-body p,
.auth-card p,
.admin-note span {
    color: var(--text-soft);
}

.split-layout,
.contact-panel,
.footer-grid,
.blog-layout,
.admin-layout {
    display: grid;
    gap: 1.5rem;
}

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

.tech-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.blueprint-card {
    position: relative;
    overflow: hidden;
}

.blueprint-card::before,
.blueprint-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.blueprint-card::before {
    background: radial-gradient(circle at 20% 20%, rgba(98, 176, 255, 0.14), transparent 38%);
}

.blueprint-card::after {
    background-image: linear-gradient(rgba(98, 176, 255, 0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(98, 176, 255, 0.09) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.35;
}

.blueprint-card ul {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1rem;
}

.blueprint-card li,
.sidebar-card li {
    position: relative;
    padding-left: 1.35rem;
    line-height: 1.7;
}

.blueprint-card li::before,
.sidebar-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.process-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 2rem;
    align-items: start;
}

.timeline {
    display: grid;
    gap: 1rem;
}

.timeline article {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    column-gap: 1rem;
    row-gap: 0.45rem;
    align-items: start;
    padding: 1.2rem 1.4rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline article > span {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(98, 176, 255, 0.28), rgba(139, 255, 225, 0.2));
    color: var(--white);
    font-weight: 800;
}

.timeline article > h3,
.timeline article > p {
    grid-column: 2;
    min-width: 0;
}

.timeline article > p {
    margin: 0;
}

.timeline h3,
.note-panel h2,
.contact-panel h2,
.article-card h2 {
    margin: 0 0 0.4rem;
}

.note-panel,
.trust-bar,
.contact-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.note-panel {
    margin-bottom: 2rem;
}

.contact-panel {
    align-items: stretch;
    grid-template-columns: 1fr 380px;
}

.contact-card {
    display: grid;
    gap: 1rem;
}

.contact-card div {
    display: grid;
    gap: 0.4rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-card div:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.contact-card strong,
.contact-card a {
    color: var(--white);
    font-size: 1.05rem;
}

.blog-meta,
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.blog-card.large h2 {
    margin: 0;
    font-size: 1.75rem;
}

.blog-card a,
.text-link,
.sidebar-card a {
    color: var(--accent-2);
    font-weight: 700;
}

.page-hero .container {
    max-width: 880px;
}

.blog-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
}

.post-listing {
    display: grid;
    gap: 1.1rem;
}

.article-card {
    min-width: 0;
}

.article-body p {
    margin: 0 0 1.1rem;
    font-size: 1.03rem;
}

.sidebar-card.sticky {
    position: sticky;
    top: 110px;
}

.footer-grid {
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.footer-brand img {
    width: 180px;
    height: auto;
}

.footer-list {
    display: grid;
    gap: 0.75rem;
}

.footer-list a,
.footer-list li,
.footer-bottom {
    color: var(--text-soft);
}

.site-footer {
    padding: 1rem 0 2.5rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.92rem;
}

.admin-shell {
    padding-top: 2rem;
}

.auth-card,
.admin-form {
    display: grid;
    gap: 1rem;
}

.alert {
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 600;
}

.alert-error {
    background: rgba(255, 139, 151, 0.12);
    color: #ffd7dc;
    border-color: rgba(255, 139, 151, 0.25);
}

.alert-success {
    background: rgba(105, 217, 140, 0.12);
    color: #d7ffe2;
    border-color: rgba(105, 217, 140, 0.24);
}

.auth-form,
.admin-form,
.form-grid {
    display: grid;
    gap: 1rem;
}

.form-grid.two-columns {
    grid-template-columns: repeat(2, 1fr);
}

label {
    display: grid;
    gap: 0.5rem;
}

label span {
    font-weight: 700;
    color: var(--white);
}

input,
textarea {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--white);
    padding: 0.95rem 1rem;
    outline: none;
    transition: border-color 0.25s ease, background 0.25s ease;
}

input:focus,
textarea:focus {
    border-color: rgba(98, 176, 255, 0.75);
    background: rgba(255, 255, 255, 0.05);
}

textarea {
    resize: vertical;
}

.checkbox-row {
    align-content: end;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.checkbox-row input {
    width: 18px;
    height: 18px;
    padding: 0;
}

.admin-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
}

.post-admin-list {
    display: grid;
    gap: 1rem;
}

.post-admin-list li {
    display: grid;
    gap: 0.25rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-note {
    gap: 0.35rem;
}

.centered-action {
    justify-content: center;
}

.trust-bar {
    padding: 1.5rem;
}

.trust-bar p {
    margin: 0;
    color: var(--white);
    font-size: 1.08rem;
}

@media (max-width: 1080px) {
    .hero-grid,
    .split-layout,
    .process-grid,
    .contact-panel,
    .blog-layout,
    .admin-layout,
    .footer-grid,
    .four-up,
    .three-up {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        max-width: 14ch;
    }

    .hero-stat-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-card.sticky {
        position: static;
    }
}

@media (max-width: 780px) {
    .nav-wrap {
        min-height: 86px;
    }

    .brand img {
        height: clamp(50px, 13vw, 68px);
        max-width: min(260px, 66vw);
    }

    .nav-toggle {
        display: inline-block;
    }

    .primary-nav {
        position: absolute;
        inset: calc(100% + 0.75rem) 1rem auto 1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        border-radius: 20px;
        background: rgba(6, 13, 24, 0.97);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: var(--shadow);
    }

    .primary-nav.is-open {
        display: flex;
    }

    .hero,
    .page-hero,
    .section {
        padding: 3.5rem 0;
    }

    .hero h1,
    .section-heading h2,
    .note-panel h2,
    .contact-panel h2,
    .page-hero h1,
    .auth-card h1,
    .admin-main h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .note-panel,
    .trust-bar,
    .footer-bottom {
        flex-direction: column;
        align-items: start;
    }

    .form-grid.two-columns {
        grid-template-columns: 1fr;
    }
}
.note-panel {
    padding: 2rem;
}

.note-panel h2.indented-heading {
    margin: 0 0 0.4rem 1rem;
}
