@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ─── Design Tokens ─── */
:root {
    --bg: #050508;
    --accent: #ff7300;
    --accent-hover: #e66800;
    --text-primary: #e8e8ec;
    --text-secondary: #6b6b80;
    --text-muted: #4a4a5a;
    --border: #12121e;
    --card-bg: rgb(26 26 46 / 30%);
    --primary-color: #ff7300;
    --primary-hover: #e66800;
    --sol-purple: #9945ff;
    --sol-green: #14f195;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

/* ─── SP-only line break ─── */
.sp-only {
    display: none;
}

@media (width <= 768px) {
    .sp-only {
        display: block;
    }
}

/* ─── Body ─── */
body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    background-image: radial-gradient(circle at 2px 2px, rgb(255 255 255 / 3%) 1px, transparent 0);
    background-size: 40px 40px;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ─── Container ─── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Header (sticky) ─── */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    background: rgb(5 5 8 / 80%);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgb(255 255 255 / 5%);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 36px;
    width: auto;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.header-nav-link:hover {
    color: var(--text-primary);
}

header nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

header nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

header nav a:hover {
    color: var(--text-primary);
}

/* Language switch */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--border);
}

.lang-switch a,
.lang-switch button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0;
    cursor: pointer;
    font-size: 0.8125rem;
    font-family: inherit;
    transition: color 0.2s ease;
    text-decoration: none;
}

.lang-switch a.is-active,
.lang-switch button.is-active {
    color: var(--text-primary);
}

.lang-switch a:hover:not(.is-active),
.lang-switch button:hover:not(.is-active) {
    color: var(--text-primary);
}

.lang-switch-sep {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    user-select: none;
}

.header-stake {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: -0.005em;
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-stake:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* ─── Hero ─── */
.hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.sunrise-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero h1,
.hero h2 {
    font-size: clamp(2.2rem, 5.5vw, 6rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.hero-gradient-text {
    background: linear-gradient(to bottom, #e8e8ec, rgb(232 232 236 / 40%));
    -webkit-text-fill-color: transparent; /* stylelint-disable-line property-no-vendor-prefix */
    background-clip: text;
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 400;
    margin-top: 1rem;
}

/* Hero stat — integrated into hero bottom */
.hero-stat {
    margin-top: 2.5rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.75rem;
}

.hero-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.hero-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
}

/* Hero CTA area (legacy) */
.hero-ctas {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin-top: 2.5rem;
}

/* Hero CTA link (text style, not a button) */
.hero-ctas .cta-button {
    display: inline-flex;
    align-items: center;
    padding: 0;
    background: transparent;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 0;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s;
    border: none;
    cursor: pointer;
    box-shadow: none;
    transform: none;
}

.hero-ctas .cta-button:hover {
    background: transparent;
    color: var(--accent);
    transform: none;
    box-shadow: none;
}

.hero-ctas .btn-secondary {
    padding: 0;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    font-size: 1rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    transition: color 0.2s;
}

.hero-ctas .btn-secondary:hover {
    background: transparent;
    color: var(--accent);
    transform: none;
    box-shadow: none;
}

.hero .news-view-all {
    margin-top: 0.75rem;
}

/* ─── CTA Button (global, used by other pages) ─── */
.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.cta-button:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ─── Btn Secondary (global, used by other pages) ─── */
.btn-secondary {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgb(255 115 0 / 30%);
}

/* ─── Partner Slider ─── */
.partner-slider {
    padding: 1rem 0 4rem;
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    animation: slide 30s linear infinite;
    gap: 2rem;
    width: fit-content;
}

.slider-track + .slider-track {
    margin-top: 1.5rem;
}

.slider-track-reverse {
    animation-name: slide-reverse;
}

.partner-box {
    flex-shrink: 0;
    width: 160px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.partner-box img {
    max-width: 160px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    filter: grayscale(1);
    opacity: 0.3;
    transition: all 0.3s ease;
    display: block;
}

.partner-box:hover {
    transform: translateY(-2px);
}

.partner-box:hover img {
    filter: grayscale(0);
    opacity: 1;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes slide-reverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.stats {
    padding: 0 0 4rem;
}

/* ─── Section Label (new) ─── */
.section-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.section-label::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* ─── Section Title ─── */
.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

/* ─── Services Section ─── */
.services {
    padding: 4rem 0 3rem;
}

/* ─── About ─── */
.about {
    padding: 6rem 0;
}

.about-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.about-card {
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    background: transparent;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 16px rgb(255 115 0 / 6%);
}

.about-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.about-card p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

@media (width <= 768px) {
    .about-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Service grid */
.service-grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

/* Service Block */
.service-block {
    margin-bottom: 0;
}

.service-block-title {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

/* Service List (compact) */
.service-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.service-list-item:first-child {
    border-top: 1px solid var(--border);
}

.service-list-item:last-child {
    border-bottom: 1px solid var(--border);
}

a.service-list-item:hover {
    color: var(--accent);
}

a.service-list-item:hover .service-arrow {
    color: var(--accent);
    transform: translateX(4px);
}

.service-list-item--soon {
    opacity: 0.35;
}

/* Text Link (generic) */
.text-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.text-link:hover {
    color: var(--accent);
}

.service-arrow {
    color: var(--text-secondary);
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

/* Coming Soon badge */
.service-badge-soon {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.service-highlights {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.service-highlights li {
    position: relative;
    padding-left: 1.25rem;
}

.service-highlights li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* ─── Clients Section ─── */
.clients {
    padding: 6rem 0;
}

.clients-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.client-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 2.5rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgb(255 255 255 / 2%);
    transition: all 0.3s ease;
    width: 240px;
    max-width: 100%;
    min-height: 140px;
    box-sizing: border-box;
}

.client-link:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 24px rgb(255 115 0 / 10%);
    transform: translateY(-3px);
    background: rgb(255 115 0 / 4%);
}

.client-logo {
    height: auto;
    width: auto;
    max-width: 180px;
    max-height: 90px;
    filter: grayscale(0.15);
    opacity: 0.9;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.client-link:hover .client-logo {
    opacity: 1;
    filter: grayscale(0);
}

.clients-placeholder {
    color: var(--text-secondary);
    font-size: 1.125rem;
    text-align: center;
    width: 100%;
}

/* ─── News ─── */
.news {
    padding: 4rem 0;
}

.news .section-title {
    text-align: center;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0 0;
}

.news-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.news-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.news-card-thumbnail {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgb(255 255 255 / 4%);
}

.news-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-thumbnail img {
    transform: scale(1.03);
}

.news-card-body {
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.news-date {
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
}

.news-title {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.5;
}

.news-card:hover .news-title {
    color: var(--accent);
}

.news-category {
    display: inline-block;
    background: rgb(255 255 255 / 4%);
    color: var(--accent);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    border: 1px solid var(--border);
    white-space: nowrap;
}

.news-view-all {
    text-align: center;
    margin-top: 3rem;
}

.all-news {
    padding: 6rem 0;
    min-height: 60vh;
}

/* ─── Article page ─── */
.article-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.article-content {
    padding: 4rem 0 6rem;
}

.article-container {
    max-width: 720px;
}

.article-hero-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.article-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.article-content h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
}

.article-info {
    margin: 0 0 1.5rem;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.article-info dt {
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.article-info dd {
    color: var(--text-secondary);
    margin: 0;
}

.article-info a {
    color: var(--accent);
    text-decoration: none;
}

.article-info a:hover {
    text-decoration: underline;
}

.article-back {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

/* Tighter gap between Services and News on the homepage */
.services + .clients {
    padding-top: 2rem;
}

.clients + .news {
    padding-top: 2rem;
}

/* ─── Team (simplified) ─── */
.team {
    padding: 4rem 0;
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.team-member {
    background: transparent;
    padding: 2rem;
    border-radius: 0;
    border: none;
    text-align: center;
    transition: none;
    position: relative;
    flex: 0 1 auto;
    max-width: 240px;
}

.member-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border);
    transition: border-color 0.3s ease;
    position: relative;
    background: var(--card-bg);
}

.member-avatar img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
}

.team-member h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.member-role {
    color: var(--accent);
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.member-socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.member-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.member-social:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgb(255 115 0 / 8%);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--card-bg);
    border-radius: 6px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.info-item:hover {
    border-color: var(--accent);
}

.info-label {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.75rem;
}

.info-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Pubkeys */
.pubkeys {
    margin-top: 1.5rem;
}

.pubkey-item {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 6px;
    margin: 0.75rem 0;
    font-family: 'SF Mono', Monaco, Inconsolata, 'Roboto Mono', monospace;
    font-size: 0.75rem;
    word-break: break-all;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.pubkey-item:hover {
    border-color: var(--accent);
}

.pubkey-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pubkey-text {
    flex: 1;
    min-width: 0;
}

.pubkey-item strong {
    color: var(--accent);
    display: block;
    font-size: 0.8125rem;
    margin-bottom: 0.25rem;
}

.pubkey-value {
    user-select: all;
    cursor: text;
}

.copy-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
    line-height: 1;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    color: var(--accent-hover);
    transform: scale(1.15);
}

/* ─── Coming Soon ─── */
.coming-soon {
    padding: 6rem 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coming-soon-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.coming-soon h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

.coming-soon p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ─── Simple Policy (VaaS) ─── */
.simple-policy {
    text-align: center;
    margin: 3rem auto;
    max-width: 800px;
}

.simple-policy p {
    font-size: 1.25rem;
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400;
}

.simple-policy ol.policy-list {
    list-style: decimal;
    list-style-position: inside;
    margin-left: 0;
    text-align: center;
}

.simple-policy ol.policy-list li {
    margin: 0.5rem 0;
    color: var(--text-primary);
    line-height: 1.7;
    text-align: center;
}

/* ─── Targets Section ─── */
.targets {
    padding: 6rem 0;
}

/* ─── Contact ─── */
.contact {
    padding: 6rem 0;
    margin-bottom: 0;
}

.contact-form {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-secondary);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.contact-form textarea {
    resize: vertical;
}

/* Off-screen rather than display: none, so naive bots still see and fill it */
.form-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form .cta-button {
    align-self: flex-start;
    cursor: pointer;
}

.contact-alt {
    max-width: 480px;
    margin: 1.5rem auto 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.contact-alt a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* ─── Footer ─── */
footer {
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

footer p {
    font-size: 0.875rem;
    margin: 0;
}

.footer-content p {
    color: var(--text-secondary);
    margin: 0;
}

a.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
    border: none;
    outline: none;
}

a.footer-link:link {
    color: var(--text-secondary);
    text-decoration: none;
}

a.footer-link:visited {
    color: var(--text-secondary);
    text-decoration: none;
}

a.footer-link:hover {
    color: var(--text-primary);
    text-decoration: none;
}

a.footer-link:active {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgb(255 115 0 / 8%);
}

.footer-social-icon {
    width: 24px;
    height: 24px;
}

.footer-social--trillium {
    width: auto;
    height: auto;
    border: none;
    border-radius: 0;
    background: transparent;
    opacity: 0.5;
}

.footer-social--trillium:hover {
    border-color: transparent;
    background: transparent;
    opacity: 1;
}

.footer-social--trillium .footer-social-icon {
    width: auto;
    height: 16px;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ─── Company Page ─── */
.company-info-section {
    padding: 4rem 0 6rem;
}

.company-card {
    background: #0d0d1a;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    max-width: 560px;
    margin: 0 auto;
}

.company-card-label {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.company-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1.5rem;
}

.company-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.detail-item strong {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-item span {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.company-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.75rem 0;
    max-width: 560px;
    margin: 0 auto;
}

.company-connector-line {
    width: 1px;
    height: 16px;
    background: var(--border);
}

.company-connector-label {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: #3d3d52;
}

.form-message {
    margin-top: 1rem;
    font-weight: 600;
}

.form-message--success {
    color: var(--accent);
}

.form-message--error {
    color: #ff6b6b;
}

.partners {
    padding: 8rem 0;
}

/* ─── Responsive: 768px ─── */
@media (width <= 768px) {
    .container {
        padding: 0 20px;
    }

    .hero {
        min-height: 50vh;
        padding: 5rem 0 4rem;
    }

    .hero h1,
    .hero h2 {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

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

    .trusted-by,
    .services,
    .team {
        padding: 4rem 0;
    }

    .services {
        padding-bottom: 2rem;
    }

    .service-grid-two {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .services + .news {
        padding-top: 1.5rem;
    }

    .trusted-board {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 1rem;
    }

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

    .team-member {
        max-width: 100%;
    }

    .services-grid {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .services-grid.three-column {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .services-grid.four-column {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .services-grid.six-column {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .service-card-grid,
    .service-card-grid--three {
        grid-template-columns: 1fr;
    }

    .testimonials-slider {
        overflow-x: auto;
        gap: 1.5rem;
    }

    .testimonial-card {
        min-width: 300px;
    }

    .service-tile {
        max-width: 400px;
        width: 100%;
        padding: 1.5rem;
    }

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

    .service-icon {
        width: 100px;
        height: 100px;
    }

    .service-icon img {
        width: 80px;
        height: 80px;
    }

    .services + .clients {
        padding-top: 1.5rem;
    }

    .clients + .news {
        padding-top: 1.5rem;
    }

    .stats-row {
        gap: 2rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

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

    .news {
        padding: 4rem 0;
    }

    .news-date {
        width: auto;
        flex: none;
    }

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

    .all-news {
        padding: 4rem 0;
    }

    .footer-links {
        gap: 1rem;
    }

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

    .past-proposals {
        padding: 6rem 0 4rem;
    }

    .proposal-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .proposal-content {
        gap: 0.75rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .partners {
        padding: 6rem 0;
    }

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

/* ─── Responsive: 480px ─── */
@media (width <= 480px) {
    .container {
        padding: 0 16px;
    }

    .header-content {
        gap: 0.5rem;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .header-nav-link {
        font-size: 0.75rem;
    }

    .lang-switch {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .lang-switch a,
    .lang-switch button {
        font-size: 0.75rem;
    }

    .header-stake {
        padding: 0.35rem 0.7rem;
        font-size: 0.75rem;
    }

    .hero {
        min-height: 45vh;
        padding: 4rem 0 3rem;
    }

    .hero h1,
    .hero h2 {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }

    .header-cta {
        padding: 0.45rem 0.75rem;
        font-size: 0.75rem;
    }

    .service-badge {
        top: 10px;
        right: 10px;
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }

    .trusted-by,
    .services,
    .team {
        padding: 3rem 0;
    }

    .services {
        padding-bottom: 1.5rem;
    }

    .services + .news {
        padding-top: 1.25rem;
    }

    .trusted-board {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 1fr);
        gap: 1rem;
    }

    .services-grid.four-column {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .services-grid.six-column {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-icon {
        width: 84px;
        height: 84px;
    }

    .service-icon img {
        width: 64px;
        height: 64px;
    }

    .services + .clients {
        padding-top: 1.25rem;
    }

    .clients + .news {
        padding-top: 1.25rem;
    }

    .stats-row {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .news {
        padding: 3rem 0;
    }

    .all-news {
        padding: 3rem 0;
    }

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

/* ─── Design Page ─── */
.design-section {
    padding: 2rem 0;
}

.design-block {
    max-width: 900px;
}

.design-block h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.design-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Color Grid */
.design-color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.design-color-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    backdrop-filter: blur(12px);
}

.design-color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
}

.design-color-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.design-color-info strong {
    font-size: 0.875rem;
    font-weight: 500;
}

.design-color-info code {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: 'SF Mono', Monaco, Inconsolata, 'Roboto Mono', monospace;
}

/* Typography Specimen */
.design-type-specimen {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.design-type-row {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.design-type-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    width: 120px;
    flex-shrink: 0;
}

.design-type-value {
    font-size: 1.25rem;
    font-weight: 500;
}

@media (width <= 768px) {
    .design-color-grid {
        grid-template-columns: 1fr;
    }

    

    .design-type-row {
        flex-direction: column;
        gap: 0.25rem;
    }

    .design-type-label {
        width: auto;
    }

    

    
}

/* ─── Legal / Policy pages ─── */
.legal {
    padding: 4rem 0 6rem;
}

.legal .container {
    max-width: 820px;
}

.legal-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.legal h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin: 3rem 0 1rem;
}

.legal h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.75rem 0 0.75rem;
}

.legal p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal ul {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0 0 1.25rem 1.25rem;
    padding-left: 0.75rem;
}

.legal li {
    margin-bottom: 0.5rem;
}

.legal a {
    color: var(--accent);
    text-decoration: none;
}

.legal a:hover {
    text-decoration: underline;
}

.legal strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal .legal-note {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===========================================================================
   App page (app.dawnlabs.tech) — wallet, stake/swap/lend
   =========================================================================== */
.services--app {
    padding-top: 3rem;
}

/* Wallet control in header */
.wallet-control {
    position: relative;
}

.wallet-menu[hidden],
.wallet-modal[hidden] {
    display: none;
}

#connect-wallet {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

#connect-wallet {
    background: linear-gradient(90deg, var(--sol-purple), var(--sol-green));
    color: #06060a;
    font-weight: 700;
    box-shadow: 0 2px 16px rgb(153 69 255 / 30%);
}

#connect-wallet.is-connected {
    background: var(--card-bg);
    border: 1px solid rgb(20 241 149 / 45%);
    color: var(--text-primary);
    box-shadow: none;
}

.wallet-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 220px;
    padding: 0.75rem;
    background: #0c0c16;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgb(0 0 0 / 40%);
}

.wallet-menu-address {
    overflow: hidden;
    color: var(--text-secondary);
    font-size: 0.7rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wallet-menu-btn {
    padding: 0.45rem 0.9rem;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgb(255 255 255 / 16%);
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.wallet-menu-btn:hover {
    color: var(--sol-green);
    border-color: rgb(20 241 149 / 55%);
}

/* Tabs */
.app-tabs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.app-tab {
    padding: 0.6rem 1.5rem;
    background: var(--card-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.app-tab:hover {
    color: var(--text-primary);
}

.app-tab.is-active {
    background: linear-gradient(90deg, var(--sol-purple), var(--sol-green));
    color: #06060a;
    border-color: transparent;
    box-shadow: 0 4px 18px rgb(153 69 255 / 35%);
}

.app-panel {
    max-width: 520px;
    margin: 0 auto;
}

.app-card {
    padding: 1.75rem;
    background: linear-gradient(180deg, rgb(26 26 46 / 45%), rgb(10 10 16 / 60%));
    border: 1px solid rgb(255 255 255 / 8%);
    border-radius: 18px;
    box-shadow: 0 12px 40px rgb(0 0 0 / 25%);
}

/* Sub-tabs (Stake / Unstake) */
.app-subtabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    padding: 0.25rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.app-subtab {
    flex: 1;
    padding: 0.5rem;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.app-subtab.is-active {
    background: linear-gradient(90deg, var(--sol-purple), var(--sol-green));
    color: #06060a;
}

.app-subpanel {
    display: none;
}

.app-subpanel.is-active {
    display: block;
}

.app-stat-grid {
    margin-bottom: 1.5rem;
}

.services--app .info-label {
    color: #c08aff;
}

.services--app .info-item:hover {
    border-color: rgb(153 69 255 / 45%);
}

/* Amount input */
.app-field-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.app-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.app-input {
    width: 100%;
    padding: 0.85rem 3.5rem 0.85rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1.25rem;
    font-weight: 600;
}

.app-input:focus {
    border-color: var(--sol-purple);
    outline: none;
    box-shadow: 0 0 0 3px rgb(153 69 255 / 15%);
}

.app-input-suffix {
    position: absolute;
    right: 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    pointer-events: none;
}

.app-balance-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.app-balance {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.app-percent-group {
    display: flex;
    gap: 0.4rem;
}

.app-pct-btn {
    padding: 0.2rem 0.6rem;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.app-pct-btn:hover {
    color: var(--sol-green);
    border-color: rgb(20 241 149 / 45%);
}

.app-action-btn {
    width: 100%;
    margin-top: 1.25rem;
    justify-content: center;
}

/* Main stake action — Solana gradient */
.app-panel .cta-button {
    background: linear-gradient(90deg, var(--sol-purple), var(--sol-green));
    color: #06060a;
    font-weight: 800;
    box-shadow: 0 4px 24px rgb(153 69 255 / 30%);
}

.app-panel .cta-button:hover {
    background: linear-gradient(90deg, var(--sol-purple), var(--sol-green));
    box-shadow: 0 6px 32px rgb(153 69 255 / 45%), 0 6px 32px rgb(20 241 149 / 20%);
    transform: translateY(-2px);
}

.app-panel .cta-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.app-note {
    margin-top: 0.85rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.5;
    text-align: center;
}

.app-status {
    margin-top: 0.85rem;
    padding: 0.6rem 0.85rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-align: center;
    word-break: break-word;
}

.app-status--success {
    border-color: #2e7d4f;
    color: #6ee7a8;
}

.app-status--error {
    border-color: #8a3030;
    color: #f49a9a;
}

/* Stake account list (unstake) */
.app-stake-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1rem;
}

.app-stake-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.app-stake-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.app-stake-amount {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
}

.app-badge {
    align-self: flex-start;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.app-badge--active {
    background: rgb(46 125 79 / 20%);
    color: #6ee7a8;
}

.app-badge--activating,
.app-badge--deactivating {
    background: rgb(153 69 255 / 18%);
    color: #c08aff;
}

.app-badge--inactive {
    background: rgb(107 107 128 / 20%);
    color: var(--text-secondary);
}

.app-stake-action {
    padding: 0.5rem 1.1rem;
    font-size: 0.75rem;
    color: var(--text-primary);
    border-color: rgb(255 255 255 / 16%);
}

.app-stake-action:hover {
    background: transparent;
    color: var(--sol-green);
    border-color: rgb(20 241 149 / 55%);
    box-shadow: 0 4px 16px rgb(20 241 149 / 15%);
}

.app-stake-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.app-stake-action:disabled:hover {
    color: var(--text-primary);
    border-color: rgb(255 255 255 / 16%);
    box-shadow: none;
    transform: none;
}

.app-empty {
    padding: 1rem 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: center;
}

.app-empty a {
    color: var(--sol-green);
}

/* Wallet modal */
.wallet-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 60%);
}

.wallet-modal-card {
    position: relative;
    z-index: 1;
    width: calc(100% - 2rem);
    max-width: 420px;
    padding: 2.5rem 1.5rem 1.5rem;
    background: #0c0c16;
    border: 1px solid var(--border);
    border-radius: 20px;
}

.wallet-modal-title {
    max-width: 300px;
    margin: 0.25rem auto 1.75rem;
    color: var(--text-primary);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
}

.wallet-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgb(255 255 255 / 6%);
    color: var(--text-secondary);
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.wallet-modal-close:hover {
    background: rgb(255 255 255 / 12%);
    color: var(--text-primary);
}

.wallet-modal-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.wallet-option {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.7rem 0.75rem;
    background: transparent;
    color: var(--text-primary);
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.wallet-option:hover {
    background: rgb(255 255 255 / 6%);
}

.wallet-option-left {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    min-width: 0;
}

.wallet-option-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    object-fit: cover;
    border-radius: 9px;
}

.wallet-option-icon--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    font-size: 0.95rem;
}

.wallet-option-status {
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 400;
}

/* Options block (lend + VIP) */
.app-options {
    max-width: 960px;
    margin: 2.5rem auto 0;
}

.app-options-title {
    margin: 0 0 1rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

.app-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.app-option {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.app-option h4 {
    margin: 0 0 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.app-option p {
    flex: 1;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.6;
}

.app-option--vip {
    border-color: rgb(153 69 255 / 45%);
    background:
        linear-gradient(135deg, rgb(153 69 255 / 10%), transparent 45%),
        linear-gradient(180deg, rgb(26 26 46 / 45%), rgb(10 10 16 / 60%));
}

.app-contact-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.app-contact-actions .app-action-btn {
    margin-top: 0;
    text-align: center;
}

/* Option buttons: neutral ghost with green hover */
.app-option .btn-secondary {
    color: var(--text-primary);
    border-color: rgb(255 255 255 / 16%);
}

.app-option .btn-secondary:hover {
    background: transparent;
    color: var(--sol-green);
    border-color: rgb(20 241 149 / 55%);
    box-shadow: 0 4px 16px rgb(20 241 149 / 15%);
}

/* Epoch progress meter */
.epoch-meter {
    max-width: 520px;
    margin: 0 auto 1.5rem;
    padding: 1rem 1.25rem;
    background:
        linear-gradient(180deg, rgb(153 69 255 / 6%), transparent 55%),
        var(--card-bg);
    border: 1px solid rgb(255 255 255 / 8%);
    border-radius: 14px;
}

.epoch-meter-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.epoch-meter-label {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.epoch-meter-number {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}

.epoch-meter-pct {
    color: var(--sol-green);
    font-size: 0.9rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.epoch-meter-bar {
    height: 8px;
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
}

.epoch-meter-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--sol-purple), var(--sol-green));
    border-radius: 999px;
    box-shadow: 0 0 10px rgb(153 69 255 / 55%);
    transition: width 0.6s ease;
}

.epoch-meter-foot {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    margin-top: 0.6rem;
    color: var(--text-muted);
    font-size: 0.72rem;
}

@media (width <= 560px) {
    .epoch-meter-foot {
        flex-direction: column;
        gap: 0.2rem;
    }
}

/* Portfolio summary at the top of the app (positions + cumulative rewards) */
.app-portfolio {
    max-width: 520px;
    margin: 0 auto 1.5rem;
}

.app-portfolio-card {
    padding: 0.35rem 1.25rem;
    background: linear-gradient(180deg, rgb(153 69 255 / 6%), transparent 60%), var(--bg);
    border: 1px solid rgb(255 255 255 / 8%);
    border-radius: 14px;
}

.app-portfolio-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
}

.app-portfolio-row + .app-portfolio-row {
    border-top: 1px solid var(--border);
}

.app-portfolio-label {
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.app-portfolio-value {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.app-portfolio-row--rewards .app-portfolio-value {
    background: linear-gradient(90deg, var(--sol-purple), var(--sol-green));
    -webkit-text-fill-color: transparent; /* stylelint-disable-line property-no-vendor-prefix */
    background-clip: text;
}

/* VIP eligibility hint under the position summary */
.app-vip-hint {
    margin: -0.5rem 0 1.25rem;
    padding: 0.6rem 0.85rem;
    background: rgb(153 69 255 / 10%);
    border: 1px solid rgb(153 69 255 / 40%);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.78rem;
    text-align: center;
}

.app-vip-hint[hidden] {
    display: none;
}

.app-vip-hint a {
    color: var(--sol-green);
    font-weight: 600;
}

/* Stake row meta (status badge + explorer link) */
.app-stake-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.app-stake-link {
    color: var(--text-muted);
    font-size: 0.68rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.app-stake-link:hover {
    color: var(--sol-green);
}

/* Transaction history */
.app-history {
    max-width: 640px;
    margin: 2.5rem auto 0;
}

.app-history-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.app-history-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0.9rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.app-history-main {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    min-width: 0;
}

.app-history-type {
    padding: 0.15rem 0.55rem;
    background: rgb(107 107 128 / 15%);
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.app-history-type--stake {
    background: rgb(153 69 255 / 16%);
    color: #c08aff;
}

.app-history-date {
    color: var(--text-muted);
    font-size: 0.72rem;
    white-space: nowrap;
}

.app-history-right {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.app-history-delta {
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.app-history-delta.is-pos {
    color: #6ee7a8;
}

.app-history-delta.is-neg {
    color: #f49a9a;
}

@media (width <= 560px) {
    .app-history-row {
        flex-direction: column;
        gap: 0.35rem;
        align-items: flex-start;
    }
}

/* Option card icons + hover lift */
.app-option {
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.app-option:hover {
    border-color: rgb(153 69 255 / 45%);
    transform: translateY(-3px);
}

.app-option--vip:hover {
    border-color: rgb(153 69 255 / 65%);
}

.app-option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: 48px;
    height: 48px;
    margin-bottom: 0.85rem;
    background: rgb(153 69 255 / 12%);
    border: 1px solid rgb(153 69 255 / 30%);
    border-radius: 12px;
    color: #c08aff;
}

.app-option-icon--purple {
    background: rgb(153 69 255 / 12%);
    border-color: rgb(153 69 255 / 30%);
    color: #c08aff;
}

.app-option-icon--green {
    background: rgb(20 241 149 / 8%);
    border-color: rgb(20 241 149 / 25%);
    color: var(--sol-green);
}

.app-option-icon--vip {
    background: linear-gradient(135deg, rgb(153 69 255 / 22%), rgb(20 241 149 / 14%));
    box-shadow: 0 0 16px rgb(153 69 255 / 25%);
}

/* Per-option stat rows (Native Stake Lend rates) */
.app-option-stats {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.app-option-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.78rem;
}

.app-option-stat span:first-child {
    color: var(--text-secondary);
}

.app-option-stat span:last-child {
    color: var(--text-primary);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.app-option-stat--max {
    border-color: rgb(20 241 149 / 30%);
}

.app-option-stat--max span:last-child {
    color: var(--sol-green);
}

/* App page backdrop + head */
.app-aurora {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.app-head {
    margin-bottom: 2rem;
    text-align: center;
}

.app-head .stk-badge {
    margin-bottom: 0;
}

.app-title {
    margin-top: 1rem;
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

/* ─── Staking Page (stk-) ─── */
.stk-hero {
    min-height: 82vh;
}

.stk-hero .hero-content {
    max-width: 880px;
    padding: 4rem 0;
}

.stk-aurora {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.stk-aurora-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: stk-drift 16s ease-in-out infinite alternate;
}

.stk-aurora-orb--purple {
    width: 480px;
    height: 480px;
    background: rgb(153 69 255 / 40%);
    top: -12%;
    left: 6%;
}

.stk-aurora-orb--green {
    width: 420px;
    height: 420px;
    background: rgb(20 241 149 / 22%);
    bottom: -18%;
    right: 4%;
    animation-delay: -8s;
}

@keyframes stk-drift {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(60px, 40px, 0) scale(1.15);
    }
}

.stk-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgb(20 241 149 / 25%);
    background: rgb(20 241 149 / 6%);
    color: var(--sol-green);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
}

.stk-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sol-green);
    box-shadow: 0 0 8px var(--sol-green);
    animation: stk-pulse 2.2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes stk-pulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}

.stk-gradient-text {
    background: linear-gradient(90deg, var(--sol-purple) 0%, #43b4ca 55%, var(--sol-green) 100%);
    -webkit-text-fill-color: transparent; /* stylelint-disable-line property-no-vendor-prefix */
    background-clip: text;
}

.stk-hero-sub {
    max-width: 560px;
    margin: 0 auto;
}

/* Buttons */
.stk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.stk-btn--primary {
    padding: 0.95rem 2.4rem;
    font-size: 1rem;
    font-weight: 800;
    color: #06060a;
    background: linear-gradient(90deg, var(--sol-purple), var(--sol-green));
    box-shadow: 0 4px 28px rgb(153 69 255 / 35%), 0 4px 28px rgb(20 241 149 / 15%);
}

.stk-btn--primary svg {
    transition: transform 0.2s ease;
}

.stk-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgb(153 69 255 / 50%), 0 8px 40px rgb(20 241 149 / 25%);
}

.stk-btn--primary:hover svg {
    transform: translateX(3px);
}

.stk-btn--outline {
    padding: 0.65rem 1.6rem;
    font-size: 0.8125rem;
    color: var(--sol-green);
    border: 1px solid rgb(20 241 149 / 45%);
}

.stk-btn--outline:hover {
    background: var(--sol-green);
    color: #06060a;
}

.stk-btn--lg {
    padding: 1.15rem 3.2rem;
    font-size: 1.125rem;
    border-radius: 14px;
}

.stk-hero-ctas {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

/* Hero stats bar */
.stk-stats {
    margin-top: 3.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1.4rem 0.75rem;
    border: 1px solid rgb(255 255 255 / 8%);
    border-radius: 18px;
    background: rgb(8 8 14 / 55%);
    backdrop-filter: blur(14px);
}

.stk-stat {
    flex: 1;
    min-width: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 1rem;
}

.stk-stat + .stk-stat {
    border-left: 1px solid rgb(255 255 255 / 7%);
}

.stk-stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.stk-stat-value--live {
    font-size: 1.9rem;
    background: linear-gradient(90deg, var(--sol-purple), var(--sol-green));
    -webkit-text-fill-color: transparent; /* stylelint-disable-line property-no-vendor-prefix */
    background-clip: text;
}

.stk-stat-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
}

/* Section head */
.stk-section-head {
    text-align: center;
    margin-bottom: 2.75rem;
}

.stk-section-head h3 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.stk-section-head p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-top: 0.6rem;
}

/* Strategy cards */
.stk-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stk-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 2rem;
    border-radius: 16px;
    background: linear-gradient(180deg, rgb(26 26 46 / 45%), rgb(10 10 16 / 60%));
    border: 1px solid rgb(255 255 255 / 8%);
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.stk-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, var(--sol-purple), var(--sol-green));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.stk-card:hover {
    transform: translateY(-4px);
    border-color: rgb(153 69 255 / 45%);
    box-shadow: 0 16px 40px rgb(0 0 0 / 45%), 0 0 32px rgb(153 69 255 / 12%);
}

.stk-card:hover::before {
    opacity: 1;
}

.stk-card-tag {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    color: #06060a;
    background: linear-gradient(90deg, var(--sol-purple), var(--sol-green));
}

.stk-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stk-card-icon--purple {
    background: rgb(153 69 255 / 14%);
    color: #c08aff;
}

.stk-card-icon--green {
    background: rgb(20 241 149 / 10%);
    color: var(--sol-green);
}

.stk-card-icon--blue {
    background: rgb(67 180 202 / 12%);
    color: #5ac8e0;
}

.stk-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.stk-card p {
    color: var(--text-secondary);
    font-size: 0.845rem;
    line-height: 1.65;
    margin: 0;
}

.stk-card-cta {
    margin-top: auto;
    padding-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--sol-green);
}

.stk-card-cta svg {
    transition: transform 0.2s ease;
}

.stk-card:hover .stk-card-cta svg {
    transform: translateX(3px);
}

/* VIP banner */
.stk-vip {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 1.75rem;
    border-radius: 16px;
    border: 1px solid rgb(153 69 255 / 40%);
    background: linear-gradient(135deg, rgb(153 69 255 / 9%), rgb(10 10 16 / 40%) 65%);
}

.stk-vip-badge {
    flex-shrink: 0;
    background: linear-gradient(90deg, var(--sol-purple), var(--sol-green));
    color: #06060a;
    font-size: 0.6875rem;
    font-weight: 800;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    letter-spacing: 0.06em;
}

.stk-vip p {
    flex: 1;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.6;
}

/* Validator info */
.stk-validator {
    margin-top: 2.5rem;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgb(255 255 255 / 8%);
    background: rgb(8 8 14 / 55%);
}

.stk-validator h4 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-primary);
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.stk-validator .pubkeys {
    margin-top: 0;
}

.stk-validator .pubkey-item strong {
    color: #c08aff;
}

.stk-validator .pubkey-item:hover {
    border-color: rgb(153 69 255 / 45%);
}

.stk-validator .copy-btn {
    color: var(--sol-green);
}

.stk-validator .copy-btn:hover {
    color: #5ffab8;
}

/* Final CTA */
.stk-final {
    margin-top: 4rem;
    text-align: center;
    padding: 4.5rem 2rem;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 8%);
    background:
        radial-gradient(ellipse at 50% 130%, rgb(153 69 255 / 22%), transparent 62%),
        radial-gradient(ellipse at 50% -30%, rgb(20 241 149 / 10%), transparent 55%),
        rgb(8 8 14 / 70%);
}

.stk-final h3 {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.stk-final p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto 2.25rem;
}

@media (width <= 768px) {
    .stk-hero {
        min-height: 70vh;
    }

    .stk-hero .hero-content {
        padding: 3rem 0;
    }

    .stk-hero-ctas {
        flex-direction: column;
    }

    .stk-hero-ctas .stk-btn {
        width: 100%;
        max-width: 320px;
    }

    .stk-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem 0;
        padding: 1.25rem 0.5rem;
    }

    .stk-stat + .stk-stat {
        border-left: none;
    }

    .stk-stat:nth-child(2n) {
        border-left: 1px solid rgb(255 255 255 / 7%);
    }

    .stk-cards {
        grid-template-columns: 1fr;
    }

    .stk-vip {
        flex-direction: column;
        text-align: center;
    }

    .stk-final {
        padding: 3.25rem 1.5rem;
    }
}
