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

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
    background: radial-gradient(circle at top, #111827 0, #020617 50%, #000 100%);
    color: #e5e7eb;
    line-height: 1.6;
}

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

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

/* HEADER */

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.85));
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 16px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 0 0, #6366f1, #a855f7);
    color: #0f172a;
    font-weight: 700;
    font-size: 14px;
}

.logo-text {
    font-weight: 600;
    letter-spacing: 0.03em;
    font-size: 14px;
    text-transform: uppercase;
    color: #e5e7eb;
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 14px;
}

.nav a {
    color: #cbd5f5;
    text-decoration: none;
    position: relative;
    padding-bottom: 3px;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(to right, #6366f1, #a855f7);
    transition: width 0.2s ease;
}

.nav a:hover::after {
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #0b1120;
    box-shadow: 0 10px 30px rgba(88, 80, 236, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 40px rgba(88, 80, 236, 0.6);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-lg {
    padding: 12px 28px;
    font-size: 15px;
}

.burger {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.8);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.burger span {
    width: 18px;
    height: 2px;
    background: #e5e7eb;
    border-radius: 999px;
}

/* HERO */

.hero {
    padding: 72px 0 72px;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(129, 140, 248, 0.6);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #a5b4fc;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 40px);
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-subtitle {
    max-width: 460px;
    color: #9ca3af;
    font-size: 15px;
    margin-bottom: 20px;
}

.hero-list {
    list-style: none;
    margin-bottom: 24px;
    color: #cbd5f5;
    font-size: 14px;
}

.hero-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.hero-list li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: radial-gradient(circle at 0 0, #22c55e, #4ade80);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-note {
    font-size: 13px;
    color: #9ca3af;
}

/* HERO DEVICE */

.hero-device {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-glow {
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.28), transparent 70%);
    filter: blur(4px);
}

.device-card {
    position: relative;
    width: 220px;
    height: 140px;
    border-radius: 24px;
    background: radial-gradient(circle at 0 0, #1f2937, #020617);
    border: 1px solid rgba(148, 163, 184, 0.6);
    box-shadow:
        0 20px 60px rgba(15, 23, 42, 0.9),
        0 0 0 1px rgba(15, 23, 42, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 18px;
    transform: rotate(-8deg);
}

.device-logo {
    font-size: 18px;
    font-weight: 700;
    color: #e5e7eb;
}

.device-text {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #9ca3af;
}

.device-chip {
    align-self: flex-end;
    width: 52px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #facc15, #f97316);
    opacity: 0.9;
}

.device-shadow {
    position: absolute;
    bottom: -24px;
    width: 160px;
    height: 28px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.8), transparent 70%);
    filter: blur(8px);
}

/* SECTION */

.section {
    padding: 64px 0;
}

.section-dark {
    background: radial-gradient(circle at top, #020617 0, #020617 40%, #000 100%);
}

.section-soft {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(18px);
}

.section h2 {
    font-size: 26px;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 14px;
    color: #9ca3af;
    max-width: 520px;
}

.section-subtitle.center {
    text-align: center;
    margin: 12px auto 0;
}

/* GRID & CARDS */

.grid {
    display: grid;
    gap: 20px;
    margin-top: 28px;
}

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

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

.card {
    border-radius: 18px;
    background: radial-gradient(circle at 0 0, rgba(129, 140, 248, 0.12), rgba(15, 23, 42, 0.92));
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 18px 18px 16px;
    font-size: 14px;
    color: #d1d5db;
}

.card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.card-outline {
    background: transparent;
    border-style: dashed;
}

/* SECURITY */

.security-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.security-list {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    font-size: 14px;
}

.security-item h3 {
    font-size: 15px;
    margin-bottom: 6px;
}

.security-schema {
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: radial-gradient(circle at 0 0, rgba(79, 70, 229, 0.22), rgba(15, 23, 42, 0.96));
    font-size: 13px;
}

.schema-box {
    padding: 10px 12px;
    border-radius: 999px;
    min-width: 80px;
    text-align: center;
}

.schema-box.user {
    background: rgba(148, 163, 184, 0.16);
}

.schema-box.device {
    background: rgba(129, 140, 248, 0.16);
}

.schema-box.chain {
    background: rgba(34, 197, 94, 0.16);
}

.schema-label {
    font-weight: 500;
}

.schema-note {
    display: block;
    font-size: 11px;
    color: #a5b4fc;
}

.schema-arrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
}

/* STEPS */

.steps {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.step {
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    padding: 18px 18px 16px;
    background: radial-gradient(circle at 0 0, rgba(129, 140, 248, 0.08), rgba(15, 23, 42, 0.96));
    font-size: 14px;
}

.step-number {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(129, 140, 248, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #a5b4fc;
    margin-bottom: 8px;
}

.step h3 {
    font-size: 15px;
    margin-bottom: 6px;
}

/* ASSETS */

.assets-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 12px;
}

.asset-pill {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    font-size: 13px;
    background: rgba(15, 23, 42, 0.7);
}

.assets-note {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 8px;
}

.link-underline {
    font-size: 13px;
    color: #a5b4fc;
    text-decoration: none;
    border-bottom: 1px dashed rgba(165, 180, 252, 0.8);
}

.link-underline:hover {
    border-bottom-style: solid;
}

/* TABLE */

.table-wrapper {
    margin-top: 24px;
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 640px;
}

.compare-table th,
.compare-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(55, 65, 81, 0.9);
    text-align: left;
}

.compare-table thead th {
    font-weight: 500;
    color: #9ca3af;
    background: rgba(15, 23, 42, 0.9);
}

.compare-table tbody tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.55);
}

/* REVIEWS */

.reviews {
    margin-top: 24px;
}

.review-card {
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    padding: 18px 18px 16px;
    background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.12), rgba(15, 23, 42, 0.96));
    font-size: 14px;
}

.review-text {
    margin-bottom: 12px;
    color: #e5e7eb;
}

.review-author {
    font-size: 13px;
    color: #9ca3af;
}

/* FAQ */

.faq-list {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    padding: 10px 12px;
    background: rgba(15, 23, 42, 0.9);
    font-size: 14px;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    font-weight: 500;
    color: #e5e7eb;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "＋";
    float: right;
    font-size: 14px;
    color: #9ca3af;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    margin-top: 8px;
    color: #cbd5f5;
}

/* CTA */

.cta {
    background: radial-gradient(circle at top, #0b1120 0, #020617 60%, #000 100%);
}

.cta-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.cta-text h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.cta-text p {
    color: #9ca3af;
    font-size: 14px;
}

.cta-note {
    font-size: 13px;
    color: #9ca3af;
    max-width: 320px;
}

/* FOOTER */

.footer {
    border-top: 1px solid rgba(55, 65, 81, 0.9);
    background: #020617;
    padding: 18px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    font-size: 13px;
}

.footer-copy {
    color: #6b7280;
    margin-top: 4px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
}

.footer-links a:hover {
    color: #e5e7eb;
}

/* RESPONSIVE */

@media (max-width: 960px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-device {
        order: -1;
    }

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

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

    .security-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .security-schema {
        margin-top: 18px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        justify-content: space-between;
    }

    .nav {
        display: none;
    }

    .burger {
        display: inline-flex;
    }

    .hero {
        padding-top: 40px;
    }

    .grid-4,
    .grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .compare-table {
        min-width: 560px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .btn-lg {
        width: 100%;
        justify-content: center;
    }

    .cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* MODAL */

body.modal-open {
    overflow: hidden;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 80;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.modal-backdrop[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    width: 100%;
    max-width: 420px;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: radial-gradient(circle at 0 0, rgba(79, 70, 229, 0.28), rgba(15, 23, 42, 0.98));
    padding: 20px 20px 18px;
    position: relative;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.9);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    color: #e5e7eb;
    font-size: 22px;
    cursor: pointer;
}

.modal-title {
    font-size: 20px;
    margin-bottom: 4px;
}

.modal-subtitle {
    font-size: 14px;
    color: #cbd5f5;
    margin-bottom: 14px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.modal-field label {
    color: #e5e7eb;
}

.modal-field input {
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.92);
    padding: 8px 10px;
    color: #e5e7eb;
    font-size: 13px;
}

.modal-field input::placeholder {
    color: #6b7280;
}

.modal-note {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    margin-bottom: 6px;
}

.modal-submit {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}
