:root {
    --bg: #f4f7ff;
    --bg-deep: #071125;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #ffffff;
    --surface-dark: rgba(9, 18, 38, 0.82);
    --text: #0f1730;
    --text-soft: #586684;
    --text-muted: #8090b0;
    --line: rgba(27, 44, 77, 0.1);
    --primary: #5b4cf4;
    --primary-2: #2d9cff;
    --accent: #6ef5ff;
    --success: #128d5b;
    --shadow: 0 28px 80px rgba(12, 23, 48, 0.12);
    --shadow-soft: 0 18px 42px rgba(15, 23, 48, 0.08);
    --radius: 28px;
    --radius-sm: 18px;
}

[data-theme="dark"] {
    --bg: #050d1c;
    --surface: rgba(13, 23, 45, 0.86);
    --surface-strong: #0d1630;
    --text: #f5f8ff;
    --text-soft: #b1bdd9;
    --text-muted: #8090b0;
    --line: rgba(177, 189, 217, 0.12);
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
    --shadow-soft: 0 18px 42px rgba(0, 0, 0, 0.24);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    background:
        radial-gradient(circle at top, rgba(91, 76, 244, 0.16), transparent 30%),
        radial-gradient(circle at 80% 10%, rgba(45, 156, 255, 0.12), transparent 28%),
        var(--bg);
    color: var(--text);
}

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

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

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.brand-mark span {
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: -0.03em;
}

.site-shell {
    min-height: 100vh;
}

.container {
    max-width: 1200px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(18px);
    background: rgba(5, 13, 28, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
    background: rgba(5, 13, 28, 0.84);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.navbar {
    padding: 1rem 0;
}

.brand-mark {
    display: inline-flex;
    flex-direction: column;
    gap: 0.1rem;
}

.brand-mark span {
    font-size: 1.4rem;
    font-weight: 700;
}

.brand-mark small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.75rem;
}

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

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

.theme-toggle {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.hero-section,
.page-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(7, 17, 37, 0.92), rgba(23, 35, 72, 0.78) 42%, rgba(57, 79, 183, 0.62)),
        var(--bg-deep);
    color: #ffffff;
}

.hero-section {
    min-height: calc(100svh - 88px);
    display: grid;
    align-items: center;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(110, 245, 255, 0.18), transparent 22%),
        radial-gradient(circle at 75% 28%, rgba(91, 76, 244, 0.32), transparent 26%),
        linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.02) 100%);
}

.hero-grid,
.page-hero .container {
    position: relative;
    z-index: 1;
    padding-block: clamp(4rem, 9vw, 7rem);
}

.hero-grid {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr;
}

.hero-copy {
    max-width: 40rem;
    animation: rise-in 0.8s ease forwards;
}

.hero-kicker,
.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.72);
}

.hero-copy h1,
.page-hero h1 {
    font-size: clamp(2.8rem, 8vw, 5.9rem);
    line-height: 0.95;
    margin: 0.8rem 0 1.2rem;
}

.hero-subtext,
.lead-soft {
    font-size: clamp(1rem, 2vw, 1.18rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.78);
    max-width: 42rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-proof {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: grid;
    gap: 0.7rem;
    color: rgba(255, 255, 255, 0.72);
}

.hero-proof li::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    margin-right: 0.65rem;
    border-radius: 999px;
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), #ffffff);
}

.hero-visual {
    position: relative;
    min-height: 360px;
    animation: float-in 1s ease forwards;
}

.orbital-glow {
    position: absolute;
    inset: 12% 14%;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(110, 245, 255, 0.4), rgba(91, 76, 244, 0.12) 42%, transparent 68%);
    filter: blur(18px);
    animation: pulse 7s ease-in-out infinite;
}

.launch-radar {
    position: relative;
    width: min(88vw, 440px);
    aspect-ratio: 1;
    margin-inline: auto;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 56%),
        repeating-radial-gradient(circle, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 64px);
    box-shadow: 0 0 0 1px rgba(110, 245, 255, 0.12) inset;
}

.signal {
    position: absolute;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.8rem;
    color: #ffffff;
    backdrop-filter: blur(14px);
}

.signal-a { top: 10%; left: 16%; animation: drift 6s ease-in-out infinite; }
.signal-b { top: 26%; right: -2%; animation: drift 7.5s ease-in-out infinite; }
.signal-c { bottom: 18%; left: -4%; animation: drift 8.5s ease-in-out infinite; }
.signal-d { bottom: 8%; right: 14%; animation: drift 5.8s ease-in-out infinite; }

.radar-center {
    position: absolute;
    inset: 50%;
    transform: translate(-50%, -50%);
    width: 46%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    text-align: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(91, 76, 244, 0.8), rgba(45, 156, 255, 0.6));
    box-shadow: 0 20px 60px rgba(45, 156, 255, 0.25);
}

.radar-center small {
    display: block;
    color: rgba(255, 255, 255, 0.72);
}

.radar-center strong {
    max-width: 8rem;
    line-height: 1.05;
}

.section-block {
    padding: clamp(4.5rem, 8vw, 6.5rem) 0;
}

.section-dark {
    background: linear-gradient(180deg, rgba(7, 17, 37, 0.98), rgba(9, 22, 48, 0.92));
    color: #ffffff;
}

.section-heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: end;
    margin-bottom: 2rem;
}

.section-heading h2,
.launch-highlight h2,
.newsletter-panel h2,
.cta-banner h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.02;
    margin: 0.5rem 0 0;
}

.content-card,
.sidebar-panel,
.admin-panel,
.admin-stat-card,
.admin-auth-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.content-card,
.category-panel,
.service-strip,
.testimonial-quote,
.admin-panel,
.admin-stat-card {
    transform: translateY(26px);
    opacity: 0;
    transition: transform 0.7s ease, opacity 0.7s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.content-card:hover,
.category-panel:hover,
.service-strip:hover,
.testimonial-quote:hover,
.admin-stat-card:hover {
    border-color: rgba(91, 76, 244, 0.28);
    box-shadow: var(--shadow);
    transform: translateY(-6px);
}

.content-card-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: calc(var(--radius) - 4px) calc(var(--radius) - 4px) 0 0;
}

.content-card-media img,
.product-show-media img,
.launch-visual img,
.article-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-card-media img {
    transition: transform 0.45s ease;
}

.content-card:hover .content-card-media img {
    transform: scale(1.05);
}

.content-card-body {
    padding: 1.45rem;
}

.content-card-labels,
.content-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.content-card h3 {
    margin: 0.8rem 0 0.7rem;
    font-size: 1.35rem;
}

.content-card p,
.sidebar-panel p,
.testimonial-quote p,
.service-strip p,
.category-panel p {
    color: var(--text-soft);
    line-height: 1.7;
}

.eyebrow-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    background: rgba(91, 76, 244, 0.1);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
}

.text-link {
    color: var(--primary);
    font-weight: 700;
}

.launch-highlight,
.newsletter-panel,
.cta-banner {
    display: grid;
    gap: 2.25rem;
    align-items: center;
}

.launch-highlight,
.newsletter-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 4px);
    padding: clamp(1.75rem, 4vw, 3rem);
    box-shadow: var(--shadow);
}

.launch-visual,
.product-show-media {
    overflow: hidden;
    border-radius: var(--radius-sm);
    min-height: 260px;
    background: linear-gradient(135deg, rgba(91, 76, 244, 0.16), rgba(45, 156, 255, 0.12));
}

.launch-date {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text-soft);
    font-weight: 700;
}

.category-grid,
.service-grid,
.testimonial-grid {
    display: grid;
    gap: 1.2rem;
}

.category-panel,
.service-strip,
.testimonial-quote,
.sidebar-panel,
.bonus-panel {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    padding: 1.4rem;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.category-panel strong,
.service-strip h3 {
    display: block;
    margin-block: 0.5rem;
    font-size: 1.15rem;
}

.service-strip {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.service-icon {
    flex: 0 0 auto;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(91, 76, 244, 0.15), rgba(45, 156, 255, 0.15));
    color: var(--primary);
    font-size: 1.25rem;
}

.testimonial-quote {
    height: 100%;
}

.testimonial-quote footer {
    display: grid;
    gap: 0.12rem;
}

.testimonial-quote strong {
    display: block;
    margin-top: 1rem;
}

.newsletter-form {
    display: grid;
    gap: 1rem;
}

.page-hero {
    padding-top: 5rem;
}

.page-hero-compact .container {
    padding-block: 3.7rem 2.2rem;
}

.filter-bar {
    display: grid;
    gap: 0.9rem;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.85rem;
}

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

.article-hero h1,
.product-hero h1 {
    max-width: 52rem;
}

.article-featured-image {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.75rem;
    max-height: 420px;
}

.article-content {
    font-size: 1.02rem;
    line-height: 1.9;
    color: var(--text-soft);
}

.article-content br {
    content: "";
    display: block;
    margin-bottom: 0.8rem;
}

.product-meta-line,
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.78);
}

.empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}

.service-showcase {
    display: grid;
    gap: 1rem;
}

.service-feature {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.3rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--line);
}

.cta-banner {
    background: transparent;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--line);
}

.site-footer {
    padding-bottom: 2rem;
}

.footer-eyebrow,
.footer-label {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.76rem;
    color: var(--text-muted);
}

.footer-copy,
.footer-links a {
    color: var(--text-soft);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    gap: 0.65rem;
}

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

.flash-stack {
    position: fixed;
    top: 5.3rem;
    left: 0;
    right: 0;
    z-index: 1100;
}

.shadow-soft {
    box-shadow: var(--shadow-soft);
}

.placeholder-gradient,
.placeholder-gradient-dark,
.placeholder-gradient-alt {
    width: 100%;
    height: 100%;
    min-height: 100%;
    background: linear-gradient(135deg, rgba(91, 76, 244, 0.42), rgba(45, 156, 255, 0.32));
}

.placeholder-gradient-alt {
    background: linear-gradient(135deg, rgba(45, 156, 255, 0.42), rgba(110, 245, 255, 0.32));
}

.placeholder-gradient-dark {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(110, 245, 255, 0.24));
}

.btn {
    border-radius: 999px;
    padding-inline: 1.2rem;
    font-weight: 700;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    border: none;
    box-shadow: 0 12px 28px rgba(91, 76, 244, 0.24);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4f41e6, #1d8df0);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.22);
}

.form-control,
.form-select {
    border-radius: 1.1rem;
    min-height: 3.2rem;
    border-color: rgba(84, 102, 144, 0.2);
    background: rgba(255, 255, 255, 0.88);
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
.admin-shell .form-control,
.admin-shell .form-select {
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
}

.pagination .page-link {
    border-radius: 999px;
    margin-inline: 0.2rem;
    border: none;
    color: var(--text);
    background: rgba(91, 76, 244, 0.08);
}

.pagination .active .page-link {
    background: var(--primary);
}

.admin-shell {
    background: #061122;
    color: #f5f8ff;
}

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

.admin-sidebar {
    padding: 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(9, 18, 38, 0.96), rgba(4, 12, 25, 0.96));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
}

.admin-brand,
.admin-auth-brand {
    display: inline-flex;
    gap: 0.9rem;
    align-items: center;
}

.brand-dot {
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    box-shadow: 0 0 18px rgba(110, 245, 255, 0.5);
}

.admin-brand strong,
.admin-auth-brand strong {
    display: block;
    font-family: "Space Grotesk", sans-serif;
}

.admin-brand small,
.admin-auth-brand small {
    color: #8ea0c4;
}

.admin-nav {
    display: grid;
    gap: 0.35rem;
    margin-top: 1.8rem;
}

.admin-nav a {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.admin-nav a.active,
.admin-nav a:hover {
    background: rgba(91, 76, 244, 0.18);
    color: #ffffff;
}

.admin-main {
    padding: 2rem;
}

.admin-page-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.6rem;
}

.admin-page-header h1 {
    margin: 0.35rem 0 0;
    font-size: clamp(2rem, 3vw, 3rem);
}

.admin-stat-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-stat-card,
.admin-panel {
    padding: 1.4rem;
}

.admin-stat-card span {
    display: block;
    color: #8ea0c4;
}

.admin-stat-card strong {
    display: block;
    font-size: 2rem;
    margin-top: 0.35rem;
    font-family: "Space Grotesk", sans-serif;
}

.admin-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

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

.admin-list-item {
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-list-item strong {
    display: block;
}

.admin-list-item span {
    color: #8ea0c4;
}

.admin-table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
    --bs-table-border-color: rgba(255, 255, 255, 0.08);
}

.admin-auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.admin-auth-card {
    width: min(100%, 460px);
    padding: 2rem;
}

.admin-auth-card h1 {
    margin-top: 1.5rem;
}

.admin-thumb {
    width: 180px;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.message-body {
    white-space: pre-wrap;
    color: #c8d4ef;
    line-height: 1.8;
}

@keyframes rise-in {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float-in {
    from { opacity: 0; transform: translate3d(0, 30px, 0) scale(0.96); }
    to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes drift {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -10px, 0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(0.98); opacity: 0.7; }
    50% { transform: scale(1.04); opacity: 1; }
}

@media (min-width: 768px) {
    .filter-bar {
        grid-template-columns: 1.5fr 1fr auto;
    }

    .newsletter-form {
        grid-template-columns: 1fr auto;
        align-items: center;
    }

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

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

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

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

@media (min-width: 992px) {
    .hero-grid,
    .launch-highlight,
    .newsletter-panel,
    .cta-banner {
        grid-template-columns: 1.05fr 0.95fr;
    }
}

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

    .admin-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: auto;
    }

    .admin-main {
        padding: 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
