:root {
    --bg: #f7f8fa;
    --surface: #ffffff;
    --surface-soft: #eef1f5;
    --dark: #0b1020;
    --dark-2: #11182a;
    --text: #182033;
    --muted: #667085;
    --line: #e4e7ec;
    --accent: #6c5ce7;
    --accent-2: #8d7cf5;
    --accent-soft: #eeeaff;
    --white: #ffffff;
    --shadow: 0 20px 60px rgba(11, 16, 32, .08);
    --radius: 22px;
    --container: 1160px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto;
}

/* =========================
   HEADER
========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(247, 248, 250, .86);
    border-bottom: 1px solid rgba(228, 231, 236, .8);
    backdrop-filter: blur(18px);
    transition: box-shadow .25s ease, background .25s ease;
}

.site-header.scrolled {
    box-shadow: 0 10px 35px rgba(11, 16, 32, .07);
    background: rgba(255, 255, 255, .94);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.04em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--dark);
    color: var(--white);
    font-size: 15px;
    font-weight: 900;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    color: #596174;
    font-size: 14px;
    font-weight: 600;
    transition: color .2s ease;
}

.main-nav a:hover {
    color: var(--dark);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--dark);
    transition: transform .2s ease, opacity .2s ease;
}

/* =========================
   HERO
========================= */

.hero {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 78% 30%, rgba(108, 92, 231, .16), transparent 28%),
        radial-gradient(circle at 20% 10%, rgba(141, 124, 245, .10), transparent 24%),
        var(--bg);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: var(--line);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    align-items: center;
    gap: 60px;
    padding: 90px 0 100px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 18px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.dot,
.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #32c48d;
    box-shadow: 0 0 0 5px rgba(50, 196, 141, .10);
}

.hero h1 {
    max-width: 700px;
    margin: 0;
    color: var(--dark);
    font-size: clamp(48px, 6vw, 78px);
    line-height: .98;
    letter-spacing: -.065em;
}

.hero h1 span {
    color: var(--accent);
}

.hero-lead {
    max-width: 640px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.75;
}

/* =========================
   BOTONES
========================= */

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 50px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}

/* IMPORTANTE:
   El color se fuerza para evitar problemas
   de herencia dentro de las tarjetas. */

.button,
.button:visited {
    color: var(--dark);
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary,
.button-primary:visited {
    background: var(--dark);
    color: #ffffff !important;
    border-color: var(--dark);
    box-shadow: 0 12px 30px rgba(11, 16, 32, .15);
}

.button-primary:hover,
.button-primary:focus-visible {
    background: #151d32;
    color: #ffffff !important;
    border-color: #151d32;
    box-shadow: 0 16px 35px rgba(11, 16, 32, .21);
}

.button-ghost,
.button-secondary,
.button-ghost:visited,
.button-secondary:visited {
    background: #ffffff;
    border-color: var(--line);
    color: var(--dark) !important;
}

.button-ghost:hover,
.button-secondary:hover,
.button-ghost:focus-visible,
.button-secondary:focus-visible {
    background: #f8f9fb;
    border-color: #d4d8e0;
    color: var(--dark) !important;
}

.button-light,
.button-light:visited {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--dark) !important;
}

.button-light:hover,
.button-light:focus-visible {
    background: #f1f3f7;
    border-color: #f1f3f7;
    color: var(--dark) !important;
}

.button:focus-visible {
    outline: 3px solid rgba(108, 92, 231, .35);
    outline-offset: 3px;
}

/* =========================
   HERO NOTE
========================= */

.hero-note {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 26px;
    color: #7a8497;
    font-size: 12px;
}

.check {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e5f8ef;
    color: #199b68;
    font-weight: 800;
}

/* =========================
   HERO VISUAL
========================= */

.hero-visual {
    position: relative;
    min-height: 430px;
    display: grid;
    place-items: center;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
}

.orb-one {
    width: 330px;
    height: 330px;
    background: rgba(108, 92, 231, .12);
    border: 1px solid rgba(108, 92, 231, .12);
}

.orb-two {
    width: 450px;
    height: 450px;
    border: 1px solid rgba(108, 92, 231, .10);
}

.ethereum-card {
    position: relative;
    width: min(420px, 88%);
    min-height: 390px;
    padding: 25px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 28px;
    background: linear-gradient(145deg, #151c31, #090e1c);
    color: white;
    box-shadow: 0 35px 90px rgba(11, 16, 32, .25);
    transform: rotate(2deg);
}

.ethereum-card::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    top: -100px;
    right: -70px;
    border-radius: 50%;
    background: rgba(108, 92, 231, .26);
    filter: blur(30px);
}

.card-top,
.card-bottom {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-top {
    color: #aeb7cb;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
}

.card-top .live-dot {
    margin-left: 1px;
    margin-right: 9px;
}

.card-code {
    color: #69748a;
}

.eth-symbol {
    position: relative;
    z-index: 2;
    width: 112px;
    height: 150px;
    margin: 55px auto 30px;
    display: grid;
    place-items: center;
    color: #c4bdfc;
    font-size: 100px;
    line-height: 1;
    text-shadow: 0 0 50px rgba(141, 124, 245, .65);
}

.network-lines {
    position: absolute;
    inset: 100px 40px 100px;
    opacity: .22;
    background-image:
        linear-gradient(30deg, transparent 47%, rgba(141,124,245,.7) 48%, transparent 49%),
        linear-gradient(150deg, transparent 47%, rgba(141,124,245,.7) 48%, transparent 49%);
    background-size: 90px 90px;
    mask-image: radial-gradient(circle, black, transparent 68%);
}

.card-bottom {
    position: absolute;
    left: 25px;
    right: 25px;
    bottom: 25px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.09);
}

.card-bottom div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.card-bottom small {
    color: #69748a;
    font-size: 9px;
    letter-spacing: .1em;
}

.card-bottom strong {
    color: #e9edf6;
    font-size: 12px;
}

/* =========================
   TRUST
========================= */

.trust-strip {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.trust-grid > div {
    padding: 26px 22px;
    border-right: 1px solid var(--line);
}

.trust-grid > div:first-child {
    border-left: 1px solid var(--line);
}

.trust-grid strong,
.trust-grid span {
    display: block;
}

.trust-grid strong {
    margin-bottom: 2px;
    color: var(--dark);
    font-size: 13px;
}

.trust-grid span {
    color: #7b8495;
    font-size: 11px;
}

/* =========================
   SECTIONS
========================= */

.section {
    padding: 110px 0;
}

.section-dark {
    background: var(--dark);
    color: white;
}

.section-soft {
    background: #f0f2f5;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 50px;
}

.section-heading.centered {
    margin-inline: auto;
    text-align: center;
}

.section-heading h2,
.tool-copy h2,
.about-copy h2 {
    margin: 0;
    color: var(--dark);
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: -.05em;
}

.section-dark .section-heading h2 {
    color: white;
}

.section-heading h2 em,
.tool-copy h2 em,
.about-copy h2 em {
    color: var(--accent);
    font-style: normal;
}

.section-heading p,
.tool-copy > p,
.about-copy > p {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

/* =========================
   FEATURE CARDS
========================= */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-card {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 5px 25px rgba(11, 16, 32, .025);
    transition: transform .25s ease, box-shadow .25s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-card.featured {
    background: var(--dark);
    border-color: var(--dark);
    color: white;
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 30px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
}

.feature-card.featured .feature-icon {
    background: rgba(255,255,255,.10);
    color: #c4bdfc;
}

.feature-card h3 {
    margin: 0;
    color: inherit;
    font-size: 21px;
    letter-spacing: -.025em;
}

.feature-card p {
    min-height: 100px;
    margin: 12px 0 25px;
    color: var(--muted);
    font-size: 14px;
}

.feature-card.featured p {
    color: #aeb7cb;
}

.feature-card a:not(.button) {
    color: var(--dark);
    font-size: 13px;
    font-weight: 750;
}

.feature-card.featured a:not(.button) {
    color: #c4bdfc;
}

/* =========================
   TOPICS
========================= */

.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.topic-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    min-height: 112px;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 16px;
    background: rgba(255,255,255,.035);
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
}

.topic-card:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,.07);
    border-color: rgba(141,124,245,.38);
}

.topic-number {
    color: #667087;
    font-size: 11px;
    font-weight: 800;
}

.topic-card h3 {
    margin: 0;
    color: #f6f7fb;
    font-size: 15px;
}

.topic-card p {
    margin: 4px 0 0;
    color: #8892a8;
    font-size: 12px;
    line-height: 1.5;
}

.arrow {
    color: #8d7cf5;
    font-size: 18px;
}

.center-action {
    margin-top: 40px;
    text-align: center;
}

/* =========================
   TOOL
========================= */

.tool-section {
    background: var(--white);
}

.tool-grid {
    display: grid;
    grid-template-columns: 1fr .9fr;
    align-items: center;
    gap: 80px;
}

.tool-copy {
    max-width: 600px;
}

.tool-copy .button {
    margin-top: 28px;
}

.gas-widget {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--bg);
    box-shadow: var(--shadow);
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 13px;
}

.widget-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
}

.widget-header strong,
.widget-header small {
    display: block;
}

.widget-header strong {
    font-size: 14px;
}

.widget-header small {
    color: var(--muted);
    font-size: 11px;
}

.mini-chart {
    height: 145px;
    display: flex;
    align-items: end;
    gap: 10px;
    margin: 30px 0;
    padding: 0 5px;
    border-bottom: 1px solid var(--line);
}

.mini-chart span {
    flex: 1;
    border-radius: 5px 5px 0 0;
    background: linear-gradient(to top, var(--accent), #b0a6ff);
    opacity: .82;
}

.widget-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.widget-values div {
    padding: 13px;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid var(--line);
}

.widget-values small,
.widget-values strong {
    display: block;
}

.widget-values small {
    color: var(--muted);
    font-size: 10px;
}

.widget-values strong {
    margin-top: 3px;
    color: var(--dark);
    font-size: 13px;
}

.widget-link {
    display: block;
    margin-top: 18px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 750;
}

/* =========================
   RESOURCES
========================= */

.resource-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.resource-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    transition: transform .2s ease, box-shadow .2s ease;
}

.resource-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.resource-icon {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 850;
}

.resource-card h3 {
    margin: 0;
    font-size: 15px;
}

.resource-card p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12px;
}

/* =========================
   ABOUT
========================= */

.about-section {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    align-items: center;
    gap: 80px;
    max-width: 1000px;
}

.about-mark {
    width: 220px;
    height: 220px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--dark);
    color: white;
    font-size: 100px;
    font-weight: 900;
    letter-spacing: -.08em;
    box-shadow: 0 30px 70px rgba(11,16,32,.17);
}

.about-copy {
    max-width: 650px;
}

.about-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 28px;
}

.about-links a {
    color: var(--dark);
    font-size: 13px;
    font-weight: 800;
}

.about-links a:hover {
    color: var(--accent);
}

/* =========================
   FOOTER
========================= */

.site-footer {
    background: #080c17;
    color: white;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.7fr repeat(3, 1fr);
    gap: 50px;
    padding: 70px 0 55px;
}

.footer-brand p {
    max-width: 300px;
    margin: 16px 0 0;
    color: #798398;
    font-size: 12px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

.footer-column h3,
.footer-column h4 {
    margin: 0 0 9px;
    color: #eef1f7;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.footer-column a {
    color: #798398;
    font-size: 12px;
    transition: color .2s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,.08);
    color: #626d81;
    font-size: 10px;
}

.footer-bottom a {
    color: inherit;
}

.footer-bottom a:hover {
    color: white;
}

/* =========================
   BACK TO TOP
========================= */

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 900;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--dark);
    color: white;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* =========================
   REVEAL
========================= */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .65s ease, transform .65s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   CODE BLOCKS
========================= */

.code-block {
    margin-top: 30px;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: #080c17;
}

.code-block pre {
    margin: 0;
    padding: 28px 30px;
    overflow-x: auto;
    background: #080c17;
    color: #e9edf6;
    text-align: left;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre;
}

.code-block code {
    margin: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
}

/* =========================
   BOTONES DE HERRAMIENTAS
========================= */

.tool-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border: 0;
    border-radius: 12px;
    background: #ffffff;
    color: #080c17 !important;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.tool-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.tool-button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 980px) {

    .hero-grid,
    .tool-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
        max-width: 760px;
    }

    .hero-visual {
        min-height: 360px;
    }

    .feature-grid,
    .topic-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-grid > div:nth-child(3) {
        border-left: 1px solid var(--line);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }
}

@media (max-width: 720px) {

    .container {
        width: min(var(--container), calc(100% - 28px));
    }

    .header-inner {
        min-height: 68px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 68px;
        left: 14px;
        right: 14px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: rgba(255,255,255,.98);
        box-shadow: var(--shadow);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity .2s ease, transform .2s ease;
    }

    .main-nav.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .main-nav a {
        padding: 13px;
        border-radius: 10px;
    }

    .main-nav a:hover {
        background: var(--surface-soft);
    }

    .hero-grid {
        padding: 65px 0 70px;
    }

    .hero h1 {
        font-size: clamp(44px, 14vw, 64px);
    }

    .hero-lead {
        font-size: 16px;
    }

    .hero-visual {
        min-height: 310px;
    }

    .ethereum-card {
        min-height: 320px;
    }

    .eth-symbol {
        margin-top: 40px;
        font-size: 80px;
    }

    .section {
        padding: 75px 0;
    }

    .feature-grid,
    .topic-grid,
    .resource-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid > div,
    .trust-grid > div:first-child,
    .trust-grid > div:nth-child(3) {
        border-left: 1px solid var(--line);
        border-right: 1px solid var(--line);
    }

    .tool-grid {
        gap: 45px;
    }

    .widget-values {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 460px) {

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    .ethereum-card {
        width: 100%;
    }

    .feature-card,
    .resource-card,
    .gas-widget {
        padding: 24px;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}