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

:root {
    --bg-color: #020617;
    --fg-color: #e5e7eb;
    --accent: #38bdf8;
    --accent-soft: rgba(56, 189, 248, 0.24);
    --accent-strong: #0ea5e9;
    --muted: #6b7280;
    --card-bg: rgba(15, 23, 42, 0.9);
    --border-subtle: rgba(148, 163, 184, 0.35);
    --radius-lg: 20px;
    --radius-md: 999px;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.85);
    --transition-fast: 160ms ease-out;
    --transition-normal: 260ms ease;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--fg-color);
    background: radial-gradient(circle at top, #0f172a 0, #020617 45%, #000 100%);
    overflow: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.08) 0, transparent 55%),
        radial-gradient(circle at 90% 100%, rgba(129, 140, 248, 0.16) 0, transparent 55%);
    mix-blend-mode: screen;
    opacity: 0.9;
}

.background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}

.gradient-layer {
    position: absolute;
    inset: -20%;
    background: conic-gradient(
        from 210deg,
        #0ea5e9,
        #22c55e,
        #a855f7,
        #0ea5e9
    );
    opacity: 0.24;
    filter: blur(90px);
    animation: gradient-rotate 26s linear infinite;
}

.grid-layer {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.65) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.65) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: radial-gradient(circle at center, black 0, transparent 76%);
    opacity: 0.65;
    transform-origin: center;
    animation: grid-drift 26s linear infinite;
}

.orbits {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0.5;
    pointer-events: none;
}

.orbits span {
    position: absolute;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.55);
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.5);
    filter: blur(0.3px);
}

.orbits span:nth-child(1) {
    width: 420px;
    height: 420px;
    animation: orbit-spin 28s linear infinite;
}

.orbits span:nth-child(2) {
    width: 640px;
    height: 640px;
    border-color: rgba(129, 140, 248, 0.6);
    box-shadow: 0 0 28px rgba(129, 140, 248, 0.7);
    animation: orbit-spin 42s linear infinite reverse;
}

.orbits span:nth-child(3) {
    width: 900px;
    height: 900px;
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.5);
    animation: orbit-spin 60s linear infinite;
}

canvas#particles {
    position: absolute;
    inset: 0;
}

.hero {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
    padding: 32px clamp(20px, 3vw, 36px);
    height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.1fr);
    gap: 40px;
    align-items: center;
}

@media (max-width: 880px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        padding-top: 32px;
        padding-bottom: 40px;
        overflow-y: auto;
    }

    body {
        overflow: hidden;
    }
}

.hero-left {
    position: relative;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.22), rgba(15, 23, 42, 0.9));
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9), 0 8px 24px rgba(15, 23, 42, 0.8);
    font-size: 11px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 18px;
}

.badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.8);
    animation: pulse-status 1.6s ease-out infinite;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.hero-title-main {
    font-size: clamp(38px, 5vw, 52px);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e5f2ff;
    text-shadow:
        0 0 12px rgba(56, 189, 248, 0.7),
        0 0 40px rgba(37, 99, 235, 0.7);
    position: relative;
}

.hero-title-main::after {
    content: "";
    position: absolute;
    inset: 64% -6% -40%;
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.36), transparent 70%);
    opacity: 0.8;
    filter: blur(12px);
    z-index: -1;
}

.hero-title-sub {
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.hero-description {
    max-width: 460px;
    font-size: 14px;
    line-height: 1.7;
    color: #9ca3af;
    margin-bottom: 26px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

.btn {
    position: relative;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-md);
    font-size: 13px;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
}

.btn.primary {
    background: radial-gradient(circle at top left, #38bdf8, #0ea5e9);
    color: #0b1120;
    box-shadow:
        0 12px 32px rgba(8, 47, 73, 0.9),
        0 0 32px rgba(56, 189, 248, 0.75);
    position: relative;
}

.btn.primary .btn-glow {
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 0% 0%, rgba(248, 250, 252, 0.42), transparent 60%);
    mix-blend-mode: screen;
    opacity: 0;
    transform: translate3d(-35%, -30%, 0);
    transition: opacity var(--transition-fast), transform var(--transition-normal);
}

.btn.primary span:last-child {
    position: relative;
    z-index: 1;
}

.btn.primary:hover .btn-glow {
    opacity: 1;
    transform: translate3d(-18%, -10%, 0);
}

.btn.ghost {
    background: rgba(15, 23, 42, 0.7);
    color: var(--fg-color);
    border: 1px solid rgba(148, 163, 184, 0.8);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.9);
}

.btn.ghost:hover {
    border-color: var(--accent);
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 1),
        0 10px 30px rgba(15, 23, 42, 1),
        0 0 24px rgba(56, 189, 248, 0.3);
}

.btn:active {
    transform: translateY(1px) scale(0.99);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 11px;
    color: var(--muted);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.meta-label {
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 10px;
    color: #6b7280;
}

.meta-value {
    font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    color: #e5e7eb;
}

.hero-right {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.neural-card {
    width: 100%;
    max-width: 420px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.98));
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(28px);
    transform-origin: center;
    animation: card-float 16s ease-in-out infinite;
}

.neural-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.9);
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.25), rgba(15, 23, 42, 0.9));
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
}

.dot.red {
    background: #f97373;
}

.dot.yellow {
    background: #fde047;
}

.dot.green {
    background: #4ade80;
}

.neural-title {
    margin-left: auto;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #9ca3af;
}

.neural-body {
    padding: 14px 16px 10px;
    font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 11px;
    color: #d1d5db;
    min-height: 140px;
    display: grid;
    gap: 4px;
}

.neural-line {
    position: relative;
    padding-left: 18px;
    opacity: 0.92;
}

.neural-line::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--accent-strong);
    opacity: 0.85;
}

.neural-line.faint {
    color: #6b7280;
    opacity: 0.8;
}

.neural-line.fade-in {
    animation: line-fade-in 0.4s ease-out forwards;
}

.neural-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px 11px;
    border-top: 1px solid rgba(15, 23, 42, 0.9);
    background: radial-gradient(circle at left, rgba(34, 197, 94, 0.2), rgba(15, 23, 42, 0.96));
    font-size: 10px;
    color: #9ca3af;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow:
        0 0 6px rgba(22, 163, 74, 0.8),
        0 0 18px rgba(34, 197, 94, 0.7);
    animation: status-breathe 1.9s ease-in-out infinite;
}

.status-text {
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

@keyframes gradient-rotate {
    0% {
        transform: rotate(0deg) translate3d(0, 0, 0);
    }
    50% {
        transform: rotate(180deg) translate3d(0, 6px, 0);
    }
    100% {
        transform: rotate(360deg) translate3d(0, 0, 0);
    }
}

@keyframes grid-drift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(-14px, -6px, 0) scale(1.02);
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes orbit-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes card-float {
    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate3d(0, 0, 0, 0deg);
    }
    25% {
        transform: translate3d(0, -6px, 0) rotate3d(0, 1, 0, 1deg);
    }
    50% {
        transform: translate3d(0, 2px, 0) rotate3d(1, 0, 0, -1deg);
    }
    75% {
        transform: translate3d(0, -4px, 0) rotate3d(0, 1, 0, -1deg);
    }
}

@keyframes pulse-status {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 18px rgba(34, 197, 94, 1);
    }
}

@keyframes status-breathe {
    0%,
    100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

@keyframes line-fade-in {
    from {
        opacity: 0;
        transform: translate3d(0, 2px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}



