/* ═══════════════ RESET & BASE ═══════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a14;
    color: #c8ccd4;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

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

ul {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    color: inherit;
}

input {
    font-family: inherit;
}

code, pre {
    font-family: 'Courier New', monospace;
}

/* ═══════════════ VARIABLES ═══════════════ */
:root {
    --accent: #00f0ff;
    --accent2: #a855f7;
    --green: #22c55e;
    --red: #ef4444;
    --yellow: #eab308;
    --glass: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --surface: #12121e;
    --surface2: #181828;
    --text: #e2e8f0;
    --text2: #94a3b8;
    --container: 1200px;
    --radius: 16px;
    --radius-sm: 10px;
}

/* ═══════════════ UTILITIES ═══════════════ */
.container {
    width: 100%;
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    color: #fff;
    margin-bottom: 12px;
}

.section-sub {
    text-align: center;
    color: var(--text2);
    margin-bottom: 48px;
    font-size: 1rem;
}

.section-tag {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid var(--glass-border);
    color: var(--accent);
    margin-bottom: 24px;
}

/* ═══════════════ BUTTONS ═══════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.25s ease;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}

.btn--accent {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #0a0a14;
    border: none;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.btn--accent:hover {
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
    transform: translateY(-1px);
}

.btn--ghost {
    color: var(--text2);
    border: 1px solid var(--glass-border);
    background: transparent;
}

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

.btn--outline {
    color: var(--text);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 10px;
    background: transparent;
}

.btn--outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn--block {
    width: 100%;
}

/* ═══════════════ BACKGROUND ═══════════════ */
.bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    pointer-events: none;
}

.bg-glow--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.25), transparent 70%);
    top: -200px;
    left: -100px;
}

.bg-glow--2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2), transparent 70%);
    bottom: -100px;
    right: -100px;
}

/* ═══════════════ HEADER ═══════════════ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: background 0.3s;
}

.header.scrolled {
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}

.header__inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo__icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.logo__icon svg {
    width: 100%;
    height: 100%;
}

.logo__text {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}

.logo__accent {
    color: var(--accent);
    font-weight: 800;
}

.nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 28px;
}

.nav__link {
    font-size: 0.875rem;
    color: var(--text2);
    font-weight: 500;
    transition: color 0.2s;
}

.nav__link:hover {
    color: #fff;
}

.header__actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.chain-select {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    cursor: pointer;
}

.chain-select__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    display: inline-block;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
}

.burger span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

/* ═══════════════ HERO ═══════════════ */
.hero {
    padding-top: 160px;
    padding-bottom: 60px;
    text-align: center;
}

.hero__title {
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin-bottom: 12px;
}

.hero__sub {
    color: var(--text2);
    font-size: 1.1rem;
    margin-bottom: 40px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
}

.search-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 6px 6px 6px 18px;
    gap: 12px;
    transition: border-color 0.3s;
}

.search-bar:focus-within {
    border-color: var(--accent);
}

.search-bar__icon {
    color: var(--text2);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.search-bar__input {
    flex: 1;
    min-width: 0;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.95rem;
    padding: 10px 0;
}

.search-bar__input::placeholder {
    color: var(--text2);
}

.search-bar__btn {
    flex-shrink: 0;
    padding: 12px 28px;
}

.hero__note {
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--text2);
}

/* ═══════════════ RESULTS ═══════════════ */
.results {
    padding: 40px 0 80px;
}

.results__tabs {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.results__tab {
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text2);
    border: 1px solid transparent;
    background: transparent;
    transition: all 0.25s;
    cursor: pointer;
}

.results__tab:hover {
    color: #fff;
}

.results__tab.active {
    background: var(--glass);
    border-color: var(--glass-border);
    color: #fff;
}

.results__panel {
    display: none;
}

.results__panel.active {
    display: block;
    animation: fadeUp 0.4s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Risk Card */
.risk-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 48px;
    padding: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.risk-ring {
    position: relative;
    width: 160px;
    height: 160px;
    flex-shrink: 0;
}

.ring-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-progress {
    transition: stroke-dashoffset 1s ease;
}

.risk-ring__label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.risk-ring__pct {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}

.risk-ring__tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 2px 10px;
    border-radius: 6px;
    margin-top: 4px;
}

.risk-ring__tag.safe {
    background: rgba(34, 197, 94, 0.15);
    color: var(--green);
}

.risk-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.risk-bar {
    display: grid;
    grid-template-columns: 120px 1fr 40px;
    align-items: center;
    gap: 12px;
}

.risk-bar__head {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}

.risk-bar__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.dot--blue { background: var(--accent); }
.dot--purple { background: var(--accent2); }
.dot--red { background: var(--red); }
.dot--yellow { background: var(--yellow); }

.risk-bar__track {
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.risk-bar__fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--accent), #00d4aa);
    transition: width 0.8s ease;
}

.risk-bar__fill.fill--purple { background: linear-gradient(90deg, var(--accent2), #c084fc); }
.risk-bar__fill.fill--red { background: linear-gradient(90deg, var(--red), #f87171); }
.risk-bar__fill.fill--yellow { background: linear-gradient(90deg, var(--yellow), #facc15); }

.risk-bar__val {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text2);
    text-align: right;
}

/* Sources */
.sources-card {
    padding: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.sources-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
}

.source-row {
    display: grid;
    grid-template-columns: 90px 1fr 40px;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.source-label {
    font-size: 0.85rem;
    color: var(--text2);
}

.source-bar-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.source-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--accent), #00d4aa);
    transition: width 0.8s ease;
}

.source-bar-fill.fill--green { background: linear-gradient(90deg, var(--green), #4ade80); }
.source-bar-fill.fill--red { background: linear-gradient(90deg, var(--red), #f87171); }
.source-bar-fill.fill--yellow { background: linear-gradient(90deg, var(--yellow), #facc15); }

.source-val {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text2);
    text-align: right;
}

/* Wallet */
.wallet-card {
    padding: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.wallet-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
}

.wallet-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.9rem;
}

.wallet-row span {
    color: var(--text2);
}

.wallet-row strong {
    color: #fff;
}

.wallet-row code {
    font-size: 0.8rem;
    color: var(--accent);
    background: rgba(0, 240, 255, 0.05);
    padding: 2px 8px;
    border-radius: 6px;
}

.wallet-row:last-child {
    border-bottom: none;
}

/* Actions & Labels */
.results__actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.results__labels {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 48px;
    margin-top: 32px;
}

.results__labels span {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text2);
    position: relative;
    padding-bottom: 8px;
}

.results__labels span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
}

/* ═══════════════ PARTNERS ═══════════════ */
.partners {
    padding: 60px 0;
}

.partners__card {
    text-align: center;
    padding: 48px 40px;
}

.partners__heading {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text2);
    margin-bottom: 32px;
}

.partners__logos {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.partner-logo {
    opacity: 0.7;
    transition: opacity 0.3s;
}

.partner-logo:hover {
    opacity: 1;
}

.partner-logo svg {
    height: 28px;
    width: auto;
}

.partners__sub {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text2);
}

/* ═══════════════ API ═══════════════ */
.api-section {
    padding: 80px 0;
}

.api-card {
    padding: 48px;
}

.api-card__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-top: 16px;
}

.api-card__title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.api-card__desc {
    color: var(--text2);
    margin-bottom: 28px;
    line-height: 1.7;
}

.code-window {
    background: #0d0d1a;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    overflow-x: auto;
}

.code-dots {
    display: flex;
    flex-direction: row;
    gap: 6px;
    margin-bottom: 16px;
}

.code-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: block;
}

.code-dots span:first-child { background: #ef4444; }
.code-dots span:nth-child(2) { background: #eab308; }
.code-dots span:last-child { background: #22c55e; }

pre {
    font-size: 0.8rem;
    line-height: 1.8;
    color: var(--text2);
    white-space: pre;
    margin: 0;
}

.c-keyword { color: var(--accent); font-weight: 700; }
.c-comment { color: rgba(255, 255, 255, 0.25); }
.c-key { color: var(--accent2); }
.c-str { color: var(--green); }
.c-num { color: #f59e0b; }

/* ═══════════════ COMPLIANCE ═══════════════ */
.compliance {
    padding: 80px 0;
}

.compliance__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.compliance-item {
    padding: 32px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.compliance-item:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 240, 255, 0.2);
}

.compliance-item__icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.compliance-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.compliance-item p {
    font-size: 0.875rem;
    color: var(--text2);
    line-height: 1.6;
}

/* ═══════════════ PRICING ═══════════════ */
.pricing {
    padding: 80px 0;
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    padding: 36px;
    position: relative;
    transition: transform 0.3s, border-color 0.3s;
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.pricing-card--pro {
    border-color: var(--accent);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.08);
}

.pricing-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #0a0a14;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 100px;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.pricing-card__name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.pricing-card__features {
    margin-bottom: 28px;
    padding: 0;
    list-style: none;
}

.pricing-card__features li {
    font-size: 0.85rem;
    color: var(--text2);
    padding: 6px 0;
    border-bottom: 1px solid var(--glass-border);
}

.pricing-card__features li:last-child {
    border-bottom: none;
}

.pricing-card__features strong {
    color: #fff;
}

.pricing-card__price {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 24px;
}

.pricing-card__price span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text2);
}

/* ═══════════════ FAQ ═══════════════ */
.faq {
    padding: 80px 0;
}

.faq__list {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 32px;
}

.faq-item {
    border-bottom: 1px solid var(--glass-border);
}

.faq-item__q {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
}

.faq-item__arrow {
    font-size: 1.2rem;
    transition: transform 0.3s;
    color: var(--accent);
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.open .faq-item__arrow {
    transform: rotate(45deg);
}

.faq-item__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-item__a {
    max-height: 200px;
    padding-bottom: 20px;
}

.faq-item__a p {
    font-size: 0.875rem;
    color: var(--text2);
    line-height: 1.7;
}

/* ═══════════════ FOOTER ═══════════════ */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--glass-border);
}

.footer__top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer__brand .logo {
    margin-bottom: 16px;
}

.footer__desc {
    font-size: 0.85rem;
    color: var(--text2);
    max-width: 280px;
    line-height: 1.6;
}

.footer__col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.footer__col a {
    display: block;
    font-size: 0.85rem;
    color: var(--text2);
    padding: 4px 0;
    transition: color 0.2s;
}

.footer__col a:hover {
    color: var(--accent);
}

.footer__bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
    font-size: 0.8rem;
    color: var(--text2);
}

.footer__socials {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.footer__socials a {
    font-size: 1.1rem;
    transition: color 0.2s;
}

.footer__socials a:hover {
    color: var(--accent);
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1024px) {
    .compliance__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .nav {
        display: none;
    }

    .nav.open {
        display: flex;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 10, 20, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 24px;
        gap: 0;
        border-bottom: 1px solid var(--glass-border);
        z-index: 99;
    }

    .nav.open .nav__link {
        padding: 14px 0;
        border-bottom: 1px solid var(--glass-border);
        font-size: 1rem;
        display: block;
    }

    .burger {
        display: flex;
    }

    .chain-select {
        display: none;
    }

    .risk-card {
        flex-direction: column;
        padding: 32px;
    }

    .api-card__content {
        grid-template-columns: 1fr;
    }

    .pricing__grid {
        grid-template-columns: 1fr;
    }

    .footer__top {
        grid-template-columns: 1fr 1fr;
    }

    .results__labels {
        gap: 20px;
    }

    .hero__title {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .hero__title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .search-bar {
        flex-direction: column;
        padding: 12px;
    }

    .search-bar__btn {
        width: 100%;
    }

    .header__actions .btn--ghost,
    .header__actions .btn--accent {
        display: none;
    }

    .footer__top {
        grid-template-columns: 1fr;
    }

    .results__actions {
        flex-direction: column;
        align-items: center;
    }

    .compliance__grid {
        grid-template-columns: 1fr;
    }

    .risk-bar {
        grid-template-columns: 80px 1fr 36px;
    }
}
