:root {
    --bg: #080c10;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-solid: #0f1419;
    --surface-hover: rgba(255, 255, 255, 0.07);
    --text: #e8f0fe;
    --muted: #6b7a99;
    --primary: #f7931a;
    --primary-dark: #ffb84d;
    --accent2: #00d4aa;
    --green: #00d4aa;
    --green-dark: #00b894;
    --border: rgba(255, 255, 255, 0.08);
    --soft: rgba(247, 147, 26, 0.12);
    --accent-dim: rgba(247, 147, 26, 0.15);
    --glow: rgba(247, 147, 26, 0.4);
    --danger: #ff6b6b;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    --radius: 16px;
    --radius-lg: 20px;
    --max-width: 760px;
    --header-height: 64px;
}

* {
    box-sizing: border-box;
    min-width: 0;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    font-family: "Syne", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(247, 147, 26, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(247, 147, 26, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    z-index: 0;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 60vw;
    background: radial-gradient(ellipse, rgba(247, 147, 26, 0.08) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

#canvas-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.25;
    pointer-events: none;
}

a {
    color: var(--primary-dark);
}

/* ── Site header / navigation ── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 12, 16, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 960px;
    margin: 0 auto;
    padding: 12px clamp(16px, 4vw, 24px);
    min-height: var(--header-height);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.site-brand img {
    display: block;
    border-radius: 8px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: var(--text);
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 12px;
    border-radius: 10px;
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: color 0.2s, background 0.2s;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--text);
    background: var(--surface-hover);
    outline: none;
}

.site-nav a:focus-visible {
    box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--primary);
}

.site-nav a.is-active {
    color: var(--primary);
    background: var(--soft);
}

/* ── Layout ── */

.page {
    position: relative;
    z-index: 1;
    width: min(var(--max-width), 100%);
    margin: 0 auto;
    padding: clamp(16px, 4vw, 28px) clamp(14px, 4vw, 24px) 48px;
}

.page-narrow {
    --max-width: 420px;
}

.page-home {
    --max-width: 680px;
}

main {
    position: relative;
    z-index: 1;
}

/* ── Cards ── */

.hero,
section,
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.hero {
    display: grid;
    gap: 18px;
    padding: clamp(18px, 5vw, 30px);
}

.card {
    padding: clamp(16px, 4vw, 22px);
    overflow: hidden;
}

.stack {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

section {
    padding: clamp(16px, 4vw, 22px);
}

.page-home section + section {
    margin-top: 1rem;
}

.stack > section + section {
    margin-top: 0;
}

/* ── Typography ── */

h1 {
    margin: 0;
    font-size: clamp(28px, 7vw, 44px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 800;
}

h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, #ffb84d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 800;
}

h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 800;
}

.subtitle {
    margin: 4px 0 0;
    color: var(--muted);
    font-family: "Space Mono", ui-monospace, monospace;
    font-size: 14px;
    line-height: 1.5;
}

p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 15px;
}

p strong {
    color: var(--text);
}

.mt {
    margin-top: 12px;
}

.hint {
    color: var(--muted);
    font-weight: 600;
    font-size: 12px;
}

/* ── Brand row ── */

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.token-mark,
.logo-wrap {
    flex: none;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--accent-dim);
    border: 1px solid rgba(247, 147, 26, 0.25);
}

.token-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.logo-wrap {
    position: relative;
}

.logo-icon {
    font-size: 2rem;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 8px var(--glow));
}

/* ── Badges & buttons ── */

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid rgba(0, 212, 170, 0.25);
    border-radius: 999px;
    background: rgba(0, 212, 170, 0.08);
    color: var(--accent2);
    font-family: "Space Mono", ui-monospace, monospace;
    font-size: 12px;
    font-weight: 700;
}

.badge::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--accent2);
    border-radius: 50%;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

a.button,
button.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, #e8820f 100%);
    color: #080c10;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    border: 0;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

a.button:hover,
button.action-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px var(--glow);
}

a.button.secondary,
button.action-btn.secondary {
    background: transparent;
    color: var(--primary-dark);
    border: 1px solid rgba(247, 147, 26, 0.35);
    box-shadow: none;
}

a.button.secondary:hover {
    background: var(--soft);
}

/* ── Quick nav (in-page anchors) ── */

.quicknav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding-top: 2px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
    padding-top: 14px;
}

.quicknav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 2px;
    border-bottom: 1px solid transparent;
}

.quicknav a:hover,
.quicknav a:focus-visible {
    color: var(--primary-dark);
    border-bottom-color: rgba(247, 147, 26, 0.4);
}

/* ── Grid & lists ── */

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 13px;
    background: rgba(255, 255, 255, 0.02);
}

.label {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 4px;
}

.value {
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
}

.list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.list li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.dot {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(0, 212, 170, 0.12);
    color: var(--accent2);
    font-weight: 900;
    font-size: 13px;
}

/* ── Timeline ── */

.timeline {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline li {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 18px;
    position: relative;
}

.timeline li:last-child {
    padding-bottom: 0;
}

.timeline li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 20px;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.tl-marker {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--surface-solid);
    border: 2px solid var(--border);
}

.timeline li.done .tl-marker {
    background: var(--green);
    border-color: var(--green);
}

.timeline li.active .tl-marker {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--soft);
}

.tl-phase {
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 4px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.tl-status {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary-dark);
    background: var(--soft);
    border: 1px solid rgba(247, 147, 26, 0.22);
    border-radius: 999px;
    padding: 2px 8px;
}

.timeline .tl-body p {
    font-size: 14px;
}

/* ── Home page sections ── */

.page-home header.page-hero {
    text-align: center;
    margin-bottom: 1rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 1rem 0 0.5rem;
}

.page-home .section-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.page-home .section-label .icon {
    width: 32px;
    height: 32px;
    background: var(--accent-dim);
    border: 1px solid rgba(247, 147, 26, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.page-home section h2 {
    font-size: 0.7rem;
    font-weight: 600;
    font-family: "Space Mono", ui-monospace, monospace;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0;
}

.page-home section {
    margin-bottom: 1rem;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.page-home section:hover {
    background: var(--surface-hover);
    border-color: rgba(247, 147, 26, 0.2);
    transform: translateY(-2px);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-top: 0.25rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem;
    text-align: center;
}

.feature-icon {
    font-size: 1.3rem;
    margin-bottom: 0.35rem;
}

.feature-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
}

.feature-desc {
    font-size: 0.72rem;
    color: var(--muted);
    margin-top: 0.15rem;
}

.changelog-list {
    display: grid;
    gap: 0.75rem;
}

.changelog-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.changelog-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.changelog-dot.orange {
    background: var(--primary);
    box-shadow: 0 0 6px var(--primary);
}

.changelog-dot.teal {
    background: var(--accent2);
    box-shadow: 0 0 6px var(--accent2);
}

.changelog-dot.blue {
    background: #4dabff;
    box-shadow: 0 0 6px #4dabff;
}

.changelog-text {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.5;
}

.app-screenshot-wrap {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}

.app-screenshot {
    display: block;
    width: 100%;
    height: auto;
}

.project-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.project-logo {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.project-info p {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.platform-tag {
    display: inline-block;
    margin-top: 0.5rem;
    font-family: "Space Mono", ui-monospace, monospace;
    font-size: 0.65rem;
    color: var(--accent2);
    letter-spacing: 0.08em;
}

.gplay-btn {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1rem;
    padding: 0.85rem 1.25rem;
    background: linear-gradient(135deg, rgba(26, 46, 26, 0.8), rgba(13, 31, 13, 0.8));
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.gplay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(52, 211, 153, 0.2);
    border-color: rgba(52, 211, 153, 0.5);
}

.gplay-icon {
    width: 36px;
    height: 36px;
    background: rgba(52, 211, 153, 0.15);
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.gplay-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.gplay-label {
    font-family: "Space Mono", ui-monospace, monospace;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.gplay-store {
    font-size: 1rem;
    font-weight: 700;
}

.gplay-arrow {
    color: rgba(52, 211, 153, 0.7);
    font-size: 1.2rem;
}

.contact-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

.contact-link:hover {
    color: var(--primary);
}

/* ── Deposit page ── */

.deposit-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.deposit-header .icon {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: var(--soft);
    color: var(--primary);
    font-size: 24px;
    font-weight: 800;
}

.deposit-header h1 {
    font-size: clamp(20px, 5vw, 24px);
}

.field,
.info,
.status {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.02);
}

.field {
    padding: 14px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
}

.amount-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

input[type="text"],
input[inputmode="decimal"] {
    min-width: 0;
    flex: 1 1 80px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: clamp(20px, 6vw, 28px);
    font-weight: 600;
    width: 100%;
}

.max-btn {
    flex: none;
    width: auto;
    height: auto;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 10px;
    background: var(--surface-hover);
    color: var(--primary-dark);
    border: 0;
    cursor: pointer;
}

.asset {
    flex: none;
    padding: 8px 12px;
    border-radius: 12px;
    background: var(--surface-hover);
    font-weight: 800;
    font-size: 14px;
}

.balance {
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted);
}

.info-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.info-row:last-child {
    border-bottom: 0;
}

.bubble {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--soft);
    color: var(--primary);
    font-weight: 900;
    font-size: 13px;
}

.bubble.green {
    background: rgba(0, 212, 170, 0.12);
    color: var(--accent2);
}

.info-row .value {
    margin-top: 2px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status {
    padding: 12px 14px;
    min-height: 20px;
    font-size: 13px;
    color: var(--muted);
}

.status.error {
    border-color: rgba(255, 107, 107, 0.38);
    color: var(--danger);
}

.status.success {
    border-color: rgba(0, 212, 170, 0.38);
    color: var(--green);
}

.deposit-actions {
    display: grid;
    gap: 10px;
    margin-top: 4px;
}

.deposit-actions button {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, #e8820f 100%);
    color: #080c10;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.deposit-actions button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px var(--glow);
}

.deposit-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.deposit-actions button.complete {
    background: var(--green);
    color: #080c10;
}

.deposit-actions button.complete:disabled {
    opacity: 1;
}

/* ── Footer ── */

.site-footer {
    position: relative;
    z-index: 1;
    padding: 28px clamp(14px, 4vw, 24px) 40px;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}

.site-footer-inner {
    max-width: 960px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 8px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--primary-dark);
}

.hash-ticker {
    font-family: "Space Mono", ui-monospace, monospace;
    font-size: 0.65rem;
    color: rgba(247, 147, 26, 0.3);
    letter-spacing: 0.05em;
    margin-top: 0.75rem;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-inner {
    display: inline-block;
    animation: ticker 30s linear infinite;
}

@keyframes ticker {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* ── Responsive ── */

@media (max-width: 720px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 12px clamp(16px, 4vw, 24px) 16px;
        background: rgba(8, 12, 16, 0.97);
        border-bottom: 1px solid var(--border);
        gap: 4px;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        justify-content: flex-start;
        padding: 10px 12px;
    }

    .site-header-inner {
        position: relative;
        flex-wrap: wrap;
    }
}

@media (max-width: 560px) {
    .brand {
        align-items: flex-start;
    }

    .token-mark,
    .logo-wrap {
        width: 54px;
        height: 54px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    a.button {
        width: 100%;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 360px) {
    .info-row {
        grid-template-columns: 32px 1fr;
        padding: 10px;
    }

    .bubble {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }
}
