/* ============================================
   ELMAS // Diamond Protocol — Design System
   ============================================ */
:root {
    --bg-color: #050608;
    --bg-alt: #08090c;
    --bg-card: #0d0f13;
    --text-main: #e2e8f0;
    --text-muted: #8892b0;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-amber: #f59e0b;
    --accent-platinum: #d1d5db;
    --accent-diamond: #b9f2ff;
    --steel-border: rgba(255, 255, 255, 0.06);
    --glass: rgba(255, 255, 255, 0.03);
    --ease-out: cubic-bezier(0.165, 0.84, 0.44, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; outline: none; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    background:
        radial-gradient(circle at 10% 20%, rgba(26, 28, 35, 0.5) 0%, rgba(8, 9, 11, 0) 40%),
        radial-gradient(circle at 90% 80%, rgba(20, 22, 28, 0.3) 0%, rgba(8, 9, 11, 0) 50%),
        #050608;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

/* Arabic font override */
[dir="rtl"] body { font-family: 'Noto Sans Arabic', 'Inter', sans-serif; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #222; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #333; }
::selection { background: rgba(255,255,255,0.1); color: #fff; }

/* --- Buttons --- */
.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    padding: 0.8rem 1.8rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 300%; height: 300%;
    background: rgba(255,255,255,0.1);
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    transition: transform 0.6s var(--ease-out);
}

.btn:hover::after { transform: translate(-50%, -50%) scale(1); }
.btn-primary { background: #ffffff; color: #000; }
.btn-primary:hover { opacity: 0.9; }
.btn-secondary { background: transparent; color: #fff; border-color: var(--steel-border); }
.btn-secondary:hover { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.2); }

/* --- Section globals --- */
section { padding: 100px 4rem; position: relative; }
section.alt-bg { background: var(--bg-alt); }

.section-title {
    font-size: 2.2rem; font-weight: 300; color: #fff;
    margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 2px;
}

.section-subtitle {
    font-size: 1rem; color: var(--text-muted); max-width: 650px;
    margin-bottom: 4rem; line-height: 1.6;
}

.section-center { text-align: center; }
.section-center .section-subtitle { margin-left: auto; margin-right: auto; }

.sub-heading {
    font-size: 1.1rem; color: #fff; font-weight: 400;
    text-transform: uppercase; letter-spacing: 2px; margin-bottom: 2rem;
}

.mono { font-family: 'JetBrains Mono', monospace; }

/* ============================================
   HEADER
   ============================================ */
header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 4rem;
    border-bottom: 1px solid var(--steel-border);
    background: rgba(5, 6, 8, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: fixed; width: 100%; top: 0; z-index: 1000;
    transition: padding 0.3s ease;
}

header.scrolled { padding: 0.6rem 4rem; background: rgba(0, 0, 0, 0.95); }

.logo {
    font-size: 1.1rem; font-weight: 600; letter-spacing: 2px;
    text-transform: uppercase; color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
}

.logo span { color: var(--text-muted); font-weight: 400; }

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

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

nav a {
    color: var(--text-muted); text-decoration: none;
    padding: 0.4rem 0.8rem;
    font-size: 0.78rem; font-weight: 400; transition: color 0.3s ease;
    text-transform: uppercase; letter-spacing: 0.5px;
}

nav a:hover, nav a.active { color: #ffffff; }

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

/* --- Language Switcher --- */
.lang-switch {
    display: flex; gap: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    border: 1px solid var(--steel-border);
}

.lang-btn {
    background: none; border: none; cursor: pointer;
    color: var(--text-muted); padding: 0.35rem 0.6rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem; letter-spacing: 1px;
    transition: all 0.3s ease;
    border-right: 1px solid var(--steel-border);
}

.lang-btn:last-child { border-right: none; }
.lang-btn:hover { color: #fff; }
.lang-btn.active { color: #fff; background: rgba(255,255,255,0.06); }

/* --- Hamburger --- */
.hamburger {
    display: none; cursor: pointer; background: none; border: none;
    width: 28px; height: 20px; position: relative; z-index: 1001;
}

.hamburger span {
    display: block; width: 100%; height: 2px; background: #fff;
    position: absolute; left: 0; transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

body.nav-open .hamburger span:nth-child(1) { top: 9px; transform: rotate(45deg); }
body.nav-open .hamburger span:nth-child(2) { opacity: 0; }
body.nav-open .hamburger span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* --- Mobile nav overlay --- */
.nav-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.95); z-index: 999;
    flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
}

body.nav-open .nav-overlay { display: flex; }

.nav-overlay a {
    color: var(--text-muted); text-decoration: none;
    font-size: 1.1rem; text-transform: uppercase; letter-spacing: 2px;
    transition: color 0.3s;
}

.nav-overlay a:hover { color: #fff; }

.nav-overlay .lang-switch { margin-top: 1rem; }

/* ============================================
   TICKER
   ============================================ */
.ticker-wrapper {
    margin-top: 65px; width: 100%; background: #000000;
    border-bottom: 1px solid var(--steel-border);
    overflow: hidden; padding: 0.4rem 0;
    font-family: 'JetBrains Mono', monospace; font-size: 0.8rem;
    white-space: nowrap; z-index: 900; position: relative;
}

.ticker-content { display: inline-block; animation: ticker 45s linear infinite; }
.ticker-item { display: inline-block; margin-right: 3rem; color: #555; }
.ticker-item span.up { color: var(--accent-green); }
.ticker-item span.down { color: var(--accent-red); }
.ticker-item strong { color: #aaa; font-weight: 500; }

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 90vh; display: flex; flex-direction: column;
    justify-content: center; align-items: center; text-align: center;
    padding: 0 4rem; position: relative;
}

#particles-js {
    position: absolute; width: 100%; height: 100%; top: 0; left: 0; z-index: 1;
    opacity: 0.3;
}

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

.badge {
    font-family: 'JetBrains Mono', monospace; color: var(--text-muted);
    border: 1px solid var(--steel-border); padding: 0.5rem 1.2rem;
    font-size: 0.72rem; letter-spacing: 2px; margin-bottom: 2rem;
    display: inline-block; background: var(--glass);
}

h1 {
    font-size: 4.2rem; font-weight: 300; line-height: 1.1;
    margin-bottom: 2rem; color: #ffffff; letter-spacing: -1px;
}

h1 span {
    font-weight: 600;
    background: linear-gradient(180deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

p.hero-subtitle {
    font-size: 1.15rem; color: var(--text-muted);
    max-width: 700px; line-height: 1.7; margin-bottom: 2.5rem;
    margin-left: auto; margin-right: auto; font-weight: 300;
}

.hero-stats {
    display: flex; gap: 3rem; justify-content: center;
    margin-bottom: 3rem; flex-wrap: wrap;
}

.hero-stat {
    text-align: center; font-family: 'JetBrains Mono', monospace;
}

.hero-stat .val {
    font-size: 1.6rem; color: #fff; font-weight: 500;
    display: block; margin-bottom: 0.3rem;
}

.hero-stat .label {
    font-size: 0.7rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1px;
}

.hero-buttons { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }

/* ============================================
   MARKET OPPORTUNITY
   ============================================ */
.market-grid {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start;
}

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

.stat-block {
    background: var(--bg-card); border: 1px solid var(--steel-border);
    padding: 1.8rem; text-align: center; transition: border-color 0.3s ease;
}

.stat-block:hover { border-color: rgba(255,255,255,0.12); }

.stat-block .val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.2rem; color: #fff; font-weight: 500;
    display: block; margin-bottom: 0.5rem;
}

.stat-block .label {
    font-size: 0.75rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1px;
}

.problem-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }

.problem-table tr {
    border-bottom: 1px solid var(--steel-border);
    transition: background 0.3s ease;
}

.problem-table tr:hover { background: rgba(255,255,255,0.02); }
.problem-table tr:last-child { border-bottom: none; }
.problem-table td { padding: 1rem 0.8rem; vertical-align: top; }

.problem-table .prob-icon {
    width: 40px; color: var(--accent-red); font-size: 1.1rem;
    text-align: center; opacity: 0.7;
}

.problem-table .prob-name { color: #fff; font-weight: 500; min-width: 140px; }
.problem-table .prob-arrow { width: 30px; text-align: center; color: var(--accent-platinum); opacity: 0.4; }
.problem-table .prob-solution { color: var(--accent-green); font-weight: 400; opacity: 0.9; }

/* ============================================
   WHY TON
   ============================================ */
.comparison-table-wrap { overflow-x: auto; margin-bottom: 3rem; }

.comparison-table {
    width: 100%; border-collapse: collapse;
    font-family: 'JetBrains Mono', monospace; font-size: 0.85rem;
}

.comparison-table th {
    padding: 1rem 1.5rem; text-align: left;
    color: var(--text-muted); font-weight: 500;
    text-transform: uppercase; letter-spacing: 1px; font-size: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.1); background: var(--bg-card);
}

.comparison-table th.ton-col { color: var(--accent-green); border-bottom-color: var(--accent-green); }

.comparison-table td {
    padding: 1rem 1.5rem; border-bottom: 1px solid var(--steel-border);
}

.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: rgba(255,255,255,0.015); }
.comparison-table .param { color: var(--text-muted); }
.comparison-table .ton-val { color: #fff; font-weight: 500; }
.comparison-table .eth-val { color: var(--text-muted); }
.comparison-table .trad-val { color: #555; }

.advantages-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.adv-card {
    background: var(--bg-card); border: 1px solid var(--steel-border);
    padding: 1.5rem; transition: all 0.4s var(--ease-out);
}

.adv-card:hover { border-color: rgba(255,255,255,0.12); transform: translateY(-3px); }
.adv-card .adv-icon { margin-bottom: 0.8rem; display: block; }
.adv-card h4 { font-size: 0.9rem; color: #fff; font-weight: 500; margin-bottom: 0.5rem; }
.adv-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* ============================================
   PROTOCOL ARCHITECTURE
   ============================================ */
.protocol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.protocol-card {
    background: var(--bg-card); border: 1px solid var(--steel-border);
    padding: 2rem; position: relative; overflow: hidden;
    transition: all 0.5s var(--ease-out);
}

.protocol-card::before {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.02), transparent);
    transition: 0.6s;
}

.protocol-card:hover {
    transform: translateY(-5px);
    border-color: rgba(185, 242, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.protocol-card:hover::before { left: 100%; }

.protocol-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem; color: var(--accent-diamond);
    letter-spacing: 2px; margin-bottom: 1rem; font-weight: 500;
}

.protocol-icon { margin-bottom: 1rem; display: block; }

.protocol-icon svg, .adv-icon svg, .sec-icon svg {
    width: 32px; height: 32px; stroke: var(--accent-diamond); stroke-width: 1.5;
    fill: none; opacity: 0.7;
}

.adv-icon svg { width: 28px; height: 28px; }
.sec-icon svg { width: 28px; height: 28px; }

.protocol-card h4 { font-size: 1.1rem; color: #fff; font-weight: 500; margin-bottom: 1rem; line-height: 1.3; }
.protocol-card ul { list-style: none; font-size: 0.85rem; color: var(--text-muted); line-height: 1.8; }

.protocol-card ul li::before {
    content: '—'; margin-right: 0.5rem; color: var(--accent-diamond); opacity: 0.5;
}

/* ============================================
   TOKENOMICS
   ============================================ */
.no-token-callout {
    background: var(--bg-card); border: 1px solid var(--steel-border);
    border-left: 3px solid var(--accent-green);
    padding: 2.5rem 3rem; margin-bottom: 3rem; max-width: 800px;
}

.no-token-callout h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem; color: var(--accent-green); font-weight: 500;
    margin-bottom: 0.8rem; letter-spacing: 1px;
}

.no-token-callout p { color: var(--text-muted); line-height: 1.7; font-size: 0.95rem; }

.revenue-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 4rem; }

.revenue-card {
    background: var(--bg-card); border: 1px solid var(--steel-border);
    padding: 2rem; text-align: center; transition: all 0.4s var(--ease-out);
}

.revenue-card:hover { border-color: rgba(255,255,255,0.12); transform: translateY(-3px); }

.revenue-card .rev-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem; color: #fff; font-weight: 500; margin-bottom: 0.5rem;
}

.revenue-card .rev-title { font-size: 0.95rem; color: #fff; font-weight: 500; margin-bottom: 0.5rem; }
.revenue-card .rev-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

.allocation-wrap { display: flex; gap: 4rem; align-items: center; justify-content: center; flex-wrap: wrap; }

.donut {
    width: 200px; height: 200px; border-radius: 50%;
    background: conic-gradient(
        #fff 0deg 216deg,
        var(--accent-platinum) 216deg 288deg,
        var(--accent-green) 288deg 324deg,
        var(--text-muted) 324deg 360deg
    );
    position: relative; transition: transform 0.4s var(--ease-out);
}

.donut:hover { transform: scale(1.05); }

.donut::after {
    content: ''; position: absolute; inset: 35%;
    background: var(--bg-alt); border-radius: 50%;
}

.allocation-legend { font-size: 0.9rem; line-height: 2.2; }
.legend-item { display: flex; align-items: center; gap: 0.8rem; }
.legend-dot { width: 12px; height: 12px; border-radius: 2px; flex-shrink: 0; }
.legend-label { color: var(--text-muted); }
.legend-pct { color: #fff; font-family: 'JetBrains Mono', monospace; font-weight: 500; margin-left: auto; padding-left: 1.5rem; }

/* ============================================
   FINANCIAL PROJECTIONS
   ============================================ */
.fin-table-wrap { overflow-x: auto; margin-bottom: 3rem; }

.fin-table {
    width: 100%; max-width: 700px; border-collapse: collapse;
    font-family: 'JetBrains Mono', monospace; font-size: 0.9rem;
}

.fin-table th {
    padding: 1rem 1.5rem; text-align: right;
    color: var(--text-muted); font-weight: 500; font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.fin-table th:first-child { text-align: left; }

.fin-table td {
    padding: 1rem 1.5rem; text-align: right;
    border-bottom: 1px solid var(--steel-border); color: var(--text-muted);
}

.fin-table td:first-child { text-align: left; color: #fff; font-weight: 500; }
.fin-table td.highlight { color: var(--accent-green); font-weight: 500; }

.scenario-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.scenario-card {
    background: var(--bg-card); border: 1px solid var(--steel-border);
    padding: 2rem; text-align: center;
    border-top: 3px solid transparent; transition: all 0.4s var(--ease-out);
}

.scenario-card:hover { transform: translateY(-3px); }
.scenario-card.bear { border-top-color: var(--accent-red); }
.scenario-card.base { border-top-color: var(--accent-platinum); transform: scale(1.03); }
.scenario-card.base:hover { transform: scale(1.05); }
.scenario-card.bull { border-top-color: var(--accent-green); }

.scenario-card .sc-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1rem;
}

.scenario-card .sc-roi {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem; color: #fff; font-weight: 500; margin-bottom: 0.8rem;
}

.scenario-card.bear .sc-roi { color: var(--accent-red); }
.scenario-card.base .sc-roi { color: var(--accent-platinum); }
.scenario-card.bull .sc-roi { color: var(--accent-green); }
.scenario-card .sc-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* ============================================
   ROADMAP
   ============================================ */
.roadmap-container { position: relative; max-width: 1000px; margin: 0 auto; padding: 40px 0; }

.roadmap-container::before {
    content: ''; position: absolute; left: 50%; top: 0;
    width: 1px; height: 100%; background: var(--steel-border);
    transform: translateX(-50%);
}

.roadmap-item { width: 50%; padding: 20px 40px; position: relative; margin-bottom: 40px; }
.roadmap-item:nth-child(odd) { left: 0; text-align: right; }
.roadmap-item:nth-child(even) { left: 50%; text-align: left; }

.roadmap-dot {
    width: 12px; height: 12px; background: #000;
    border: 2px solid var(--accent-platinum);
    border-radius: 50%; position: absolute; top: 25px; z-index: 10;
}

.roadmap-item:nth-child(odd) .roadmap-dot { right: -6px; }
.roadmap-item:nth-child(even) .roadmap-dot { left: -6px; }

.roadmap-date {
    font-family: 'JetBrains Mono', monospace; font-size: 0.85rem;
    color: var(--accent-platinum); margin-bottom: 0.5rem; font-weight: 500;
}

.roadmap-budget {
    font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
    color: var(--accent-green); margin-bottom: 0.8rem; letter-spacing: 1px;
}

.roadmap-content {
    background: var(--bg-card); padding: 1.5rem;
    border: 1px solid var(--steel-border); transition: border-color 0.3s ease;
}

.roadmap-item:hover .roadmap-content { border-color: rgba(255,255,255,0.1); }

.roadmap-content h4 { font-size: 1.1rem; color: #fff; margin-bottom: 0.5rem; font-weight: 500; }
.roadmap-content ul { list-style: none; font-size: 0.85rem; color: var(--text-muted); line-height: 1.8; }
.roadmap-content ul li::before { content: '·'; margin-right: 0.5rem; color: var(--accent-platinum); }

.roadmap-totals { display: flex; gap: 3rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap; }
.roadmap-total { text-align: center; font-family: 'JetBrains Mono', monospace; }
.roadmap-total .val { font-size: 1.6rem; color: #fff; font-weight: 500; }
.roadmap-total .label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 0.3rem; }

/* ============================================
   INVESTMENT TERMS
   ============================================ */
.invest-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 3rem; }

.funds-table { width: 100%; max-width: 700px; border-collapse: collapse; margin-bottom: 3rem; }
.funds-table td { padding: 1rem 0; vertical-align: middle; }
.funds-table .fund-name { color: #fff; font-weight: 500; font-size: 0.95rem; width: 180px; }
.funds-table .fund-bar-cell { width: 100%; }

.fund-bar-wrap { background: rgba(255,255,255,0.03); height: 28px; position: relative; width: 100%; }

.fund-bar {
    height: 100%; background: rgba(255,255,255,0.08);
    transition: width 1s var(--ease-out);
    display: flex; align-items: center; padding: 0 0.8rem;
}

.fund-bar span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem; color: #fff; font-weight: 500; white-space: nowrap;
}

.protections-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.protection-card {
    background: var(--bg-card); border: 1px solid var(--steel-border);
    padding: 1.5rem; transition: border-color 0.3s ease;
}

.protection-card:hover { border-color: rgba(255,255,255,0.12); }
.protection-card h5 { font-size: 0.85rem; color: #fff; font-weight: 500; margin-bottom: 0.5rem; }
.protection-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

/* ============================================
   LEGAL & COMPLIANCE
   ============================================ */
.legal-block {
    background: var(--bg-card); border: 1px solid var(--steel-border);
    padding: 3rem; display: flex; gap: 3rem; align-items: start; margin-bottom: 3rem;
}

.legal-text { flex: 1.2; }
.legal-text h3 { font-size: 1.6rem; color: #fff; margin-bottom: 1.2rem; font-weight: 400; }
.legal-text p { color: var(--text-muted); line-height: 1.7; font-weight: 300; font-size: 0.95rem; margin-bottom: 1rem; }

.legal-data { flex: 1; }
.legal-list { list-style: none; font-size: 0.9rem; }

.legal-list li {
    display: flex; justify-content: space-between;
    padding: 0.7rem 0; border-bottom: 1px solid var(--steel-border);
    font-family: 'JetBrains Mono', monospace;
}

.legal-list li:last-child { border-bottom: none; }
.legal-list li span:first-child { color: var(--text-muted); }
.legal-list li span:last-child { color: #fff; font-weight: 500; }

.ownership-bar-wrap { margin-bottom: 3rem; }

.ownership-labels {
    display: flex; justify-content: space-between;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem; margin-bottom: 0.5rem;
}

.ownership-bar { height: 8px; display: flex; border-radius: 4px; overflow: hidden; }
.ownership-bar .founder { background: #fff; flex: 60; }
.ownership-bar .investor { background: var(--accent-green); flex: 40; }

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

.exit-card {
    background: var(--bg-card); border: 1px solid var(--steel-border);
    padding: 1.5rem; transition: border-color 0.3s;
}

.exit-card:hover { border-color: rgba(255,255,255,0.12); }
.exit-card h5 { font-size: 0.95rem; color: #fff; margin-bottom: 0.5rem; font-weight: 500; }
.exit-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* ============================================
   SECURITY
   ============================================ */
.security-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.security-card {
    background: var(--bg-card); border: 1px solid var(--steel-border);
    padding: 2rem; transition: all 0.4s var(--ease-out);
}

.security-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.12); }
.security-card .sec-icon { margin-bottom: 1rem; display: block; }
.security-card h4 { font-size: 0.95rem; color: #fff; font-weight: 500; margin-bottom: 0.5rem; }

.security-card .sec-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem; color: var(--accent-diamond); margin-bottom: 0.5rem;
}

.security-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* ============================================
   RISK ASSESSMENT
   ============================================ */
.risk-table-wrap { overflow-x: auto; }
.risk-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }

.risk-table th {
    padding: 1rem 1.5rem; text-align: left;
    color: var(--text-muted); font-weight: 500; font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.risk-table td {
    padding: 1rem 1.5rem; border-bottom: 1px solid var(--steel-border); color: var(--text-muted);
}

.risk-table tr:last-child td { border-bottom: none; }
.risk-table tr:hover td { background: rgba(255,255,255,0.015); }
.risk-table td:first-child { color: #fff; font-weight: 500; }

.risk-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem; padding: 0.25rem 0.6rem;
    border-radius: 3px; letter-spacing: 1px;
    text-transform: uppercase; font-weight: 500;
}

.risk-low { background: rgba(16,185,129,0.1); color: var(--accent-green); }
.risk-medium { background: rgba(245,158,11,0.1); color: var(--accent-amber); }

/* ============================================
   TEAM
   ============================================ */
.team-section { text-align: center; }

.founder-card {
    background: var(--bg-card); border: 1px solid var(--steel-border);
    padding: 3rem; max-width: 500px; margin: 0 auto 3rem; transition: border-color 0.3s;
}

.founder-card:hover { border-color: rgba(255,255,255,0.12); }

.founder-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    background: rgba(255,255,255,0.05); border: 1px solid var(--steel-border);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem; color: var(--accent-platinum); font-weight: 500;
}

.founder-card h4 { font-size: 1.2rem; color: #fff; margin-bottom: 0.3rem; font-weight: 500; }
.founder-card .founder-role { font-size: 0.85rem; color: var(--accent-diamond); margin-bottom: 0.3rem; }
.founder-card .founder-loc { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; }
.founder-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

.positions-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
    max-width: 900px; margin: 0 auto;
}

.position-card {
    border: 1px dashed rgba(255,255,255,0.1); padding: 1.5rem;
    text-align: left; transition: border-color 0.3s;
}

.position-card:hover { border-color: rgba(255,255,255,0.2); }

.position-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem; color: var(--accent-green);
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.8rem;
}

.position-card h5 { font-size: 0.95rem; color: #fff; margin-bottom: 0.5rem; font-weight: 500; }
.position-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* ============================================
   CTA
   ============================================ */
.cta-block {
    background: var(--bg-card); border: 1px solid var(--steel-border);
    padding: 4rem; text-align: center; max-width: 900px; margin: 0 auto;
}

.cta-block h3 {
    font-size: 1.8rem; color: #fff; font-weight: 400;
    margin-bottom: 2rem; text-transform: uppercase; letter-spacing: 2px;
}

.steps-row { display: flex; gap: 2rem; justify-content: center; margin-bottom: 3rem; flex-wrap: wrap; }
.step-item { flex: 1; min-width: 180px; max-width: 220px; }

.step-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem; color: rgba(255,255,255,0.1); font-weight: 500; margin-bottom: 0.5rem;
}

.step-item h5 { font-size: 0.9rem; color: #fff; font-weight: 500; margin-bottom: 0.3rem; }
.step-item p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }

.cta-buttons { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }

/* ============================================
   FOOTER
   ============================================ */
footer {
    padding: 40px 4rem; border-top: 1px solid var(--steel-border);
    text-align: center; font-family: 'JetBrains Mono', monospace;
}

.footer-brand { font-size: 0.85rem; color: #555; margin-bottom: 1rem; letter-spacing: 2px; }

.footer-disclaimer {
    font-size: 0.7rem; color: #333; max-width: 700px;
    margin: 0 auto 1rem; line-height: 1.5;
}

.footer-contact { font-size: 0.75rem; color: #444; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    section { padding: 80px 2.5rem; }
    h1 { font-size: 3.2rem; }
    .market-grid { grid-template-columns: 1fr; }
    .advantages-row { grid-template-columns: repeat(2, 1fr); }
    .protocol-grid { grid-template-columns: repeat(2, 1fr); }
    .invest-stats { grid-template-columns: repeat(2, 1fr); }
    .protections-grid { grid-template-columns: repeat(2, 1fr); }
    .legal-block { flex-direction: column; }
    .security-grid { grid-template-columns: repeat(2, 1fr); }
    .positions-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    section { padding: 60px 1.2rem; }
    header { padding: 0.8rem 1.2rem; }
    header.scrolled { padding: 0.6rem 1.2rem; }
    nav { display: none; }
    .hamburger { display: block; }
    .header-cta { display: none; }

    /* Language switcher stays visible next to hamburger */
    .header-right { gap: 0.6rem; }
    .header-right .lang-switch { display: flex; }

    h1 { font-size: 2rem; letter-spacing: 0; }
    .section-title { font-size: 1.4rem; letter-spacing: 1px; }
    .section-subtitle { font-size: 0.9rem; margin-bottom: 2.5rem; }
    .sub-heading { font-size: 0.95rem; }

    /* Hero */
    .hero { min-height: 85vh; padding: 0 1.2rem; }
    .badge { font-size: 0.6rem; padding: 0.4rem 0.8rem; letter-spacing: 1px; }
    p.hero-subtitle { font-size: 0.95rem; line-height: 1.6; }
    .hero-stats { gap: 1.2rem; }
    .hero-stat .val { font-size: 1.2rem; }
    .hero-stat .label { font-size: 0.6rem; }
    .hero-buttons { gap: 1rem; }
    .hero-buttons .btn { font-size: 0.7rem; padding: 0.7rem 1.4rem; }

    /* Market */
    .market-grid { grid-template-columns: 1fr; gap: 2rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .stat-block { padding: 1.2rem; }
    .stat-block .val { font-size: 1.5rem; }
    .stat-block .label { font-size: 0.65rem; }
    .problem-table td { padding: 0.7rem 0.4rem; font-size: 0.8rem; }
    .problem-table .prob-name { min-width: 100px; }

    /* TON */
    .comparison-table { font-size: 0.75rem; }
    .comparison-table th, .comparison-table td { padding: 0.7rem 0.8rem; }
    .advantages-row { grid-template-columns: 1fr; gap: 1rem; }

    /* Protocol */
    .protocol-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .protocol-card { padding: 1.5rem; }
    .protocol-card h4 { font-size: 1rem; }

    /* Tokenomics */
    .no-token-callout { padding: 1.5rem; }
    .no-token-callout h3 { font-size: 1.1rem; }
    .revenue-cards { grid-template-columns: 1fr; gap: 1.5rem; }
    .revenue-card { padding: 1.5rem; }
    .revenue-card .rev-val { font-size: 2rem; }
    .allocation-wrap { flex-direction: column; align-items: center; gap: 2rem; }
    .donut { width: 160px; height: 160px; }

    /* Finance */
    .fin-table { font-size: 0.8rem; }
    .fin-table th, .fin-table td { padding: 0.7rem 0.8rem; }
    .scenario-cards { grid-template-columns: 1fr; gap: 1.5rem; }
    .scenario-card { padding: 1.5rem; }
    .scenario-card .sc-roi { font-size: 2rem; }
    .scenario-card.base { transform: none; }
    .scenario-card.base:hover { transform: translateY(-3px); }

    /* Roadmap */
    .roadmap-container::before { left: 20px; transform: none; }
    .roadmap-item { width: 100%; left: 0 !important; text-align: left !important; padding: 10px 10px 10px 50px; margin-bottom: 20px; }
    .roadmap-dot { left: 14px !important; right: auto !important; }
    .roadmap-content { padding: 1.2rem; }
    .roadmap-content h4 { font-size: 1rem; }
    .roadmap-totals { gap: 1.5rem; }
    .roadmap-total .val { font-size: 1.3rem; }

    /* Investment */
    .invest-stats { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .funds-table .fund-name { width: 120px; font-size: 0.85rem; }
    .protections-grid { grid-template-columns: 1fr; gap: 1rem; }

    /* Legal */
    .legal-block { padding: 1.5rem; flex-direction: column; gap: 2rem; }
    .legal-text h3 { font-size: 1.3rem; }
    .ownership-bar-wrap { max-width: 100% !important; }
    .exit-cards { grid-template-columns: 1fr; gap: 1rem; }

    /* Security */
    .security-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .security-card { padding: 1.5rem; }

    /* Risks */
    .risk-table { font-size: 0.8rem; }
    .risk-table th, .risk-table td { padding: 0.7rem 0.6rem; }

    /* Team */
    .founder-card { padding: 2rem 1.5rem; }
    .positions-grid { grid-template-columns: 1fr; gap: 1rem; }

    /* CTA */
    .cta-block { padding: 2rem 1.2rem; }
    .cta-block h3 { font-size: 1.3rem; letter-spacing: 1px; }
    .steps-row { flex-direction: column; align-items: center; gap: 1.5rem; }
    .step-item { max-width: 100%; text-align: center; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .cta-buttons .btn { width: 100%; max-width: 280px; text-align: center; }

    /* Footer */
    footer { padding: 30px 1.2rem; }
    .footer-brand { font-size: 0.75rem; }
    .footer-disclaimer { font-size: 0.6rem; }
}

/* Small phones */
@media (max-width: 380px) {
    h1 { font-size: 1.7rem; }
    .hero-stats { gap: 0.8rem; }
    .hero-stat .val { font-size: 1rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .invest-stats { grid-template-columns: 1fr; }
    .comparison-table th, .comparison-table td { padding: 0.5rem; font-size: 0.7rem; }
}
