/* ═══════════════════════════════════════════════════════════════
   ULTIMATECRYPTOSUITE — LANDING PAGE (SOC / CYBERPUNK THEME)
   Custom styles layered on top of Tailwind CDN.
   ═══════════════════════════════════════════════════════════════ */

:root {
    --bg-deep: #0b0f19;
    --bg-card: #0d1322;
    --bg-panel: #0a0e17;
    --emerald: #10b981;
    --cyan: #06b6d4;
    --white: #f8fafc;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-600: #475569;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-deep);
    font-family: "Inter", system-ui, -apple-system, sans-serif;
}

.font-mono,
code,
pre {
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

/* ───────────────────────── SCROLLBAR ───────────────────────── */
::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}
::-webkit-scrollbar-track {
    background: #0a0e17;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 6px;
    border: 1px solid #334155;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--emerald);
}

/* ─────────────────────── SELECTION COLOR ───────────────────── */
::selection {
    background: rgba(16, 185, 129, 0.35);
    color: #ffffff;
}

/* ─────────────────────── LOGO MARK ─────────────────────────── */
.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(16,185,129,0.18), rgba(6,182,212,0.18));
    border: 1px solid rgba(16,185,129,0.4);
    box-shadow: 0 0 18px rgba(16,185,129,0.25);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.group:hover .logo-mark {
    transform: rotate(-6deg) scale(1.05);
    box-shadow: 0 0 26px rgba(6,182,212,0.5);
}

/* ─────────────────── TEXT GLOW EFFECTS ─────────────────────── */
.text-glow-emerald {
    text-shadow: 0 0 18px rgba(16,185,129,0.55), 0 0 42px rgba(16,185,129,0.28);
}
.text-glow-cyan {
    text-shadow: 0 0 18px rgba(6,182,212,0.55), 0 0 42px rgba(6,182,212,0.28);
}

/* ─────────────────── HERO BACKGROUND GRID ──────────────────── */
.hero-grid {
    background-image:
        linear-gradient(rgba(16,185,129,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16,185,129,0.05) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 40%, #000 55%, transparent 100%);
    mask-image: radial-gradient(ellipse 75% 60% at 50% 40%, #000 55%, transparent 100%);
}

/* ─────────────────────── GLOW ORBS ─────────────────────────── */
.glow-orb {
    filter: blur(110px);
    opacity: 0.16;
    animation: orbDrift 14s ease-in-out infinite alternate;
}
.glow-orb-cyan {
    background: var(--cyan);
}
.glow-orb-emerald {
    background: var(--emerald);
    animation-delay: -7s;
}
@keyframes orbDrift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -30px) scale(1.15); }
}

/* ──────────────────── STATUS BADGE DOT ─────────────────────── */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    background: #64748b;
    position: relative;
    flex-shrink: 0;
}
.status-dot-online {
    background: var(--emerald);
    box-shadow: 0 0 10px rgba(16,185,129,0.9);
    animation: pulseDot 1.8s ease-in-out infinite;
}
.status-dot-offline {
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239,68,68,0.8);
}
.status-dot-checking {
    background: var(--cyan);
    animation: pulseDot 1.2s ease-in-out infinite;
}
@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.45; transform: scale(0.82); }
}

/* ───────────────────────── BUTTONS ─────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 1.6rem;
    border-radius: 0.55rem;
    background: linear-gradient(135deg, var(--emerald), #059669);
    color: #04110b;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border: 1px solid rgba(16,185,129,0.7);
    box-shadow: 0 0 22px rgba(16,185,129,0.35);
    transition: all 0.25s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 34px rgba(16,185,129,0.6);
    filter: brightness(1.08);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 1.6rem;
    border-radius: 0.55rem;
    background: rgba(6,182,212,0.08);
    color: var(--cyan);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border: 1px solid rgba(6,182,212,0.5);
    transition: all 0.25s ease;
}
.btn-secondary:hover {
    background: rgba(6,182,212,0.16);
    box-shadow: 0 0 26px rgba(6,182,212,0.35);
    transform: translateY(-2px);
}
.btn-ghost {
    background: transparent;
    color: var(--slate-300);
    border-color: rgba(148,163,184,0.35);
}
.btn-ghost:hover {
    background: rgba(148,163,184,0.08);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(148,163,184,0.2);
}

/* ─────────────────── SECTION TAG PILL ──────────────────────── */
.section-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    border-radius: 9999px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--emerald);
    border: 1px solid rgba(16,185,129,0.4);
    background: rgba(16,185,129,0.08);
}

/* ─────────────────────── FEATURE CARDS ─────────────────────── */
.feature-card {
    position: relative;
    padding: 1.75rem;
    border-radius: 0.85rem;
    background: linear-gradient(160deg, #0d1322, #0a0e17);
    border: 1px solid #1e293b;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(16,185,129,0.09), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(16,185,129,0.55);
    box-shadow: 0 14px 40px rgba(0,0,0,0.5), 0 0 24px rgba(16,185,129,0.15);
}
.feature-card:hover::before {
    opacity: 1;
}
.feature-card-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border-radius: 12px;
    margin-bottom: 1.1rem;
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.3);
}

/* ─────────────────────── ARCH CARDS ────────────────────────── */
.arch-card {
    position: relative;
    padding: 1.6rem;
    border-radius: 0.85rem;
    background: #0d1322;
    border: 1px solid #1e293b;
    transition: all 0.3s ease;
}
.arch-card:hover {
    border-color: rgba(6,182,212,0.55);
    box-shadow: 0 12px 36px rgba(0,0,0,0.5), 0 0 22px rgba(6,182,212,0.14);
    transform: translateY(-4px);
}
.arch-num {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.7rem;
    color: rgba(148,163,184,0.35);
    letter-spacing: 0.15em;
}
.arch-tag {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.28rem 0.7rem;
    border-radius: 0.4rem;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    color: var(--cyan);
    background: rgba(6,182,212,0.08);
    border: 1px solid rgba(6,182,212,0.3);
}

/* ─────────────────── INSTALL / OS TABS ─────────────────────── */
.os-tab {
    color: var(--slate-400);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}
.os-tab:hover {
    color: #ffffff;
}
.os-tab-active {
    color: var(--emerald) !important;
    background: rgba(16,185,129,0.06);
    text-shadow: 0 0 14px rgba(16,185,129,0.5);
}
.os-tab-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--emerald);
    box-shadow: 0 0 12px rgba(16,185,129,0.8);
}
.os-panel {
    animation: fadeSlide 0.35s ease;
}
@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.install-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.install-list li {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--slate-300);
}
.step-num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--emerald);
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.35);
}
.inline-code {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8em;
    padding: 0.12em 0.4em;
    border-radius: 0.35em;
    color: var(--cyan);
    background: rgba(6,182,212,0.1);
    border: 1px solid rgba(6,182,212,0.25);
}

.code-block {
    margin-top: 1.1rem;
    padding: 1.1rem 1.25rem;
    border-radius: 0.6rem;
    background: #060a12;
    border: 1px solid rgba(16,185,129,0.3);
    box-shadow: inset 0 0 24px rgba(16,185,129,0.05);
    overflow-x: auto;
}
.code-block code {
    font-size: 0.85rem;
    color: #7ee7c1;
    white-space: nowrap;
}

/* ────────────────────── API ENDPOINT TAGS ──────────────────── */
.api-endpoint {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.5rem;
    background: #0d1322;
    border: 1px solid #1e293b;
    overflow: hidden;
}
.method-get {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.14rem 0.42rem;
    border-radius: 0.3rem;
    color: var(--emerald);
    background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.4);
}
.method-post {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.14rem 0.42rem;
    border-radius: 0.3rem;
    color: var(--cyan);
    background: rgba(6,182,212,0.12);
    border: 1px solid rgba(6,182,212,0.4);
}

/* ─────────────────── REVEAL ON SCROLL ──────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─────────────────────── SCROLL HEADER ─────────────────────── */
.header-scrolled {
    background: rgba(11,15,25,0.92);
    border-color: rgba(16,185,129,0.35);
    box-shadow: 0 6px 30px rgba(0,0,0,0.6);
}

/* ─────────────────────── RESPONSIVE ────────────────────────── */
@media (max-width: 640px) {
    .hero-grid {
        background-size: 32px 32px;
    }
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}
