/* =============================================================================
   SILVRA — Design tokens & base styles
   ============================================================================= */
:root {
    /* Palette */
    --black: #08090B;
    --black-elevated: #111317;
    --surface: #191C21;
    --white: #FFFFFF;
    --silver: #C5C8CE;
    --silver-hi: #F1F2F4;
    --silver-muted: #777D87;
    --border: #30343B;
    --success: #3CCB91;
    --error: #FF5C66;

    /* Typography */
    --font-primary: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    --font-secondary: 'Poppins', system-ui, -apple-system, sans-serif;

    /* Spacing scale */
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.5rem;
    --sp-6: 2rem;
    --sp-7: 3rem;
    --sp-8: 4rem;

    /* Radii */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-pill: 999px;

    /* Elevation */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.55);

    /* Metallic gradients */
    --grad-silver: linear-gradient(135deg, #F1F2F4 0%, #C5C8CE 40%, #8A8F98 60%, #F1F2F4 100%);
    --grad-silver-soft: linear-gradient(135deg, #C5C8CE 0%, #777D87 100%);

    --container: 1160px;
    --header-h: 68px;
}

/* --- Reset --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-secondary);
    background: var(--black);
    color: var(--silver);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    color: var(--white);
    line-height: 1.15;
    margin: 0 0 var(--sp-3);
    font-weight: 600;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
}

h3 {
    font-size: 1.2rem;
}

p {
    margin: 0 0 var(--sp-4);
}

a {
    color: var(--silver-hi);
    text-decoration: none;
    transition: color .2s ease, opacity .2s ease;
}

a:hover {
    color: var(--white);
}

img,
svg {
    max-width: 100%;
    display: block;
}

code,
.mono {
    font-family: ui-monospace, 'SFMono-Regular', 'Menlo', monospace;
    font-size: .9em;
}

.muted {
    color: var(--silver-muted);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 100;
    background: var(--surface);
    color: var(--white);
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--radius-sm);
}

.skip-link:focus {
    left: var(--sp-4);
    top: var(--sp-4);
}

/* Focus visibility */
:focus-visible {
    outline: 2px solid var(--silver-hi);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--sp-5);
}

.container.narrow {
    max-width: 720px;
}

.site-main {
    min-height: 60vh;
}

.section {
    padding: var(--sp-8) 0;
}

.section-alt {
    background: var(--black-elevated);
}

.section-head {
    max-width: 640px;
    margin-bottom: var(--sp-6);
}

.section-head p {
    color: var(--silver-muted);
    font-size: 1.05rem;
}

.section-cta {
    margin-top: var(--sp-5);
    display: flex;
    gap: var(--sp-3);
    flex-wrap: wrap;
}

.page-head {
    margin-bottom: var(--sp-6);
    max-width: 720px;
}

.page-head p {
    color: var(--silver-muted);
    font-size: 1.05rem;
}

/* --- Env badge --- */
.env-badge {
    font-family: var(--font-primary);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    color: var(--silver-muted);
    background: var(--surface);
}

.env-badge.env-test {
    color: #8fd3ff;
    border-color: #2a4a5e;
}

.env-badge.env-dev {
    color: #ffd68f;
    border-color: #5e4a2a;
}

.env-badge.env-prod {
    color: var(--success);
    border-color: #2a5e4a;
}


/* --- Header / Nav --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(8, 9, 11, 0.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: var(--sp-5);
    height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
}

.brand-mark {
    display: inline-flex;
    filter: drop-shadow(0 2px 6px rgba(197, 200, 206, 0.25));
}

.brand-name {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: .12em;
    color: var(--white);
}

.site-nav {
    margin-left: auto;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: var(--sp-2);
    margin: 0;
    padding: 0;
}

.nav-link {
    display: inline-block;
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--radius-sm);
    font-size: .92rem;
    color: var(--silver-muted);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--white);
    background: var(--surface);
}

.nav-link.is-active {
    color: var(--white);
    background: var(--surface);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: var(--sp-2);
    cursor: pointer;
}

.nav-toggle-bar {
    width: 22px;
    height: 2px;
    background: var(--silver);
    border-radius: 2px;
}

.header-actions {
    margin-left: auto;
}

.site-nav+.header-actions {
    margin-left: 0;
}

/* --- Hero --- */
.hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--sp-8) + var(--sp-4)) 0 var(--sp-8);
}

.hero-light {
    position: absolute;
    inset: -30% -10% auto -10%;
    height: 420px;
    background: radial-gradient(ellipse at 50% 0%, rgba(197, 200, 206, 0.16), transparent 60%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    text-align: center;
    max-width: 820px;
}

.hero-eyebrow {
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .75rem;
    color: var(--silver-muted);
    margin-bottom: var(--sp-4);
}

.hero-title {
    margin-bottom: var(--sp-4);
}

.silver-gradient {
    background: var(--grad-silver);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--silver);
    max-width: 620px;
    margin: 0 auto var(--sp-6);
}

.hero-cta {
    display: flex;
    gap: var(--sp-3);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-note {
    margin-top: var(--sp-5);
    color: var(--silver-muted);
    font-size: .85rem;
}

/* --- Steps --- */
.steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--sp-5);
    grid-template-columns: repeat(3, 1fr);
}

.step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--sp-5);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    margin-bottom: var(--sp-3);
    background: var(--grad-silver-soft);
    color: var(--black);
    font-family: var(--font-primary);
    font-weight: 700;
}

/* --- Asset grid --- */
.asset-grid {
    display: grid;
    gap: var(--sp-4);
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.asset-card {
    display: flex;
    gap: var(--sp-4);
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--sp-4);
    transition: transform .2s ease, border-color .2s ease;
}

.asset-card:hover {
    transform: translateY(-2px);
    border-color: var(--silver-muted);
}

.asset-info h3 {
    margin-bottom: var(--sp-1);
}

.asset-meta {
    display: flex;
    gap: var(--sp-2);
    align-items: baseline;
    margin: 0;
}

.asset-symbol {
    font-family: var(--font-primary);
    color: var(--white);
    font-weight: 600;
}

.asset-network,
.asset-type {
    color: var(--silver-muted);
    font-size: .85rem;
    margin: 0;
}

/* --- Fee cards / feature list --- */
.fee-cards {
    display: grid;
    gap: var(--sp-4);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.fee-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--sp-5);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--sp-3);
}

.feature-list li {
    padding-left: var(--sp-5);
    position: relative;
}

.feature-list li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--silver-muted);
}

/* --- Footer --- */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--black-elevated);
    padding: var(--sp-7) 0 var(--sp-5);
}

.footer-inner {
    display: grid;
    gap: var(--sp-5);
    grid-template-columns: 1.2fr 1fr 1.6fr;
}

.footer-tagline {
    color: var(--silver-muted);
    font-size: .9rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.footer-nav a {
    color: var(--silver-muted);
    font-size: .92rem;
}

.footer-nav a:hover {
    color: var(--white);
}

.footer-disclaimer p {
    color: var(--silver-muted);
    font-size: .82rem;
}

.footer-meta {
    margin-top: var(--sp-3);
}