/* 
   BTR.z V2 - Premium Aesthetic System 
   Theme: Cyberpunk Minimalist / Deep Space
*/

:root {
    /* Colors */
    --bg-dark: #030305;
    --bg-darker: #000000;

    --primary: #00ffa3;
    /* Cyber Emerald */
    --primary-dim: rgba(0, 255, 163, 0.4);
    --primary-glow: rgba(0, 255, 163, 0.15);

    --accent: #7d00ff;
    /* Deep Violet */
    --accent-glow: rgba(125, 0, 255, 0.2);

    --text-white: #ffffff;
    --text-gray: #a1a1aa;
    --text-dark: #121212;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-shine: rgba(255, 255, 255, 0.05);
    --backdrop-blur: 24px;

    /* Fonts */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-arabic: 'Cairo', sans-serif;

    /* Metrics */
    --container-width: 1240px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-clip: padding-box;
    /* Standard property for compatibility */
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* RTL Support for Arabic */
html[dir="rtl"] body {
    font-family: var(--font-arabic), var(--font-body);
    text-align: right;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] .btn,
html[dir="rtl"] .nav-link,
html[dir="rtl"] .stat-value {
    font-family: var(--font-arabic), var(--font-heading);
}

html[dir="rtl"] .hero-btns,
html[dir="rtl"] .header-actions {
    flex-direction: row;
    /* Keep row but RTL handles order */
}

html[dir="rtl"] .contract-box {
    padding: 10px 20px 10px 10px;
}

html[dir="rtl"] .contract-icon {
    margin-right: 0;
    margin-left: 12px;
}

html[dir="rtl"] .contract-address {
    margin-right: 0;
    margin-left: 16px;
}

html[dir="rtl"] .phase-list li {
    padding-left: 0;
    padding-right: 20px;
}

html[dir="rtl"] .phase-list li::before {
    left: auto;
    right: 0;
}

html[dir="rtl"] .footer-legal a {
    margin-left: 0;
    margin-right: 20px;
}

html[dir="rtl"] .tax-list li {
    flex-direction: row;
    /* Maintain row interaction */
}

html[dir="rtl"] .fa-arrow-right-long {
    transform: rotate(180deg);
}

/* Background Atmosphere */
.fixed-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: radial-gradient(circle at 50% -20%, #1a1a2e 0%, var(--bg-dark) 60%);
    z-index: -2;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

.ambient-light {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
}

.top-left {
    top: -200px;
    left: -100px;
    background: var(--primary-glow);
}

.bottom-right {
    bottom: -200px;
    right: -100px;
    background: var(--accent-glow);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-white);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 20%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight {
    color: var(--primary);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
}

.center {
    text-align: center;
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 600;
    font-family: var(--font-body);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    cursor: pointer;
    font-size: 0.95rem;
    gap: 10px;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -5px var(--primary-dim);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-gray);
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    display: flex;
    font-size: 1.1rem;
    justify-content: center;
}

.btn-glass:hover {
    border-color: var(--primary);
    color: var(--text-white);
}

.btn-sm {
    padding: 8px 16px;
    width: auto;
    font-size: 0.85rem;
}

.lang-btn {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--backdrop-blur));
    border-radius: var(--radius-md);
    padding: 40px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    background: rgba(3, 3, 5, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-white);
    letter-spacing: -0.5px;
}

.logo-symbol {
    color: var(--primary);
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

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

.header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.indicator {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    /* Offset header */
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary);
    border: 1px solid rgba(0, 255, 163, 0.2);
    margin-bottom: 24px;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 24px;
    z-index: 2;
    position: relative;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    max-width: 500px;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Contract Wrapper */
.contract-wrapper {
    margin-bottom: 40px;
}

.contract-box {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px 10px 10px 20px;
    backdrop-filter: blur(10px);
    max-width: 100%;
}

.contract-icon {
    font-size: 1.2rem;
    margin-right: 12px;
    color: var(--text-gray);
}

.contract-address {
    font-family: 'Space Mono', monospace;
    /* Fallback to monospace if font not loaded */
    color: var(--text-white);
    font-size: 0.95rem;
    margin-right: 16px;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.copy-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-gray);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
    border-color: var(--primary-dim);
}

.tooltip {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #000;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    white-space: nowrap;
}

.copy-btn:active .tooltip,
.copy-feedback.active {
    opacity: 1;
}

.hero-btns {
    display: flex;
    gap: 16px;
}

/* Hero Visual (Orb & Card) */
.hero-visual {
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.orb-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-dim);
    top: 10%;
    right: 10%;
    opacity: 0.4;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: var(--accent-glow);
    bottom: 10%;
    right: 30%;
    opacity: 0.5;
}

.grid-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg);
    width: 320px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    z-index: 2;
    padding: 24px;
}

.card-header {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.positive {
    color: var(--primary);
}

.chart-line {
    height: 60px;
    width: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMzAwIDYwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik0wLDUwIEM1MCw1MCA4MCwxMCAxNTAsMzAgQzIyMCw1MCAyNTAsMCAzMDAsMTAiIHN0cm9rZT0iIzAwZmZhMyIgc3Ryb2tlLXdpZHRoPSIzIiBmaWxsPSJub25lIi8+PC9zdmc+');
    background-size: cover;
    margin-top: 20px;
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

/* Stats Banner */
.stats-banner {
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 30px 0;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-white);
    line-height: 1;
    margin-bottom: 5px;
}

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

.separator {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

/* About Section */
.section-title-wrapper {
    margin-bottom: 80px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 24px;
    transition: all 0.3s;
}

.feature-card:hover .icon-box {
    background: var(--primary);
    color: #000;
}

/* Tokenomics */
.tokenomics-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
}

.supply-card {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.supply-header h3 {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.supply-header .ticker {
    font-size: 1rem;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-white);
}

.supply-value {
    font-size: 3rem;
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
    margin: 20px 0;
    word-break: break-word;
}

.supply-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.tax-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.tax-big {
    font-size: 4rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin: 10px 0 20px;
    color: var(--text-white);
}

.tax-list {
    list-style: none;
}

.tax-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-gray);
}

.tax-list li:last-child {
    border-bottom: none;
}

/* Roadmap */
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.phase-card {
    position: relative;
    border-top: 2px solid transparent;
}

.active-phase {
    border-top-color: var(--primary);
    background: linear-gradient(180deg, rgba(0, 255, 163, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.phase-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 24px;
}

.phase-num {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    font-family: var(--font-heading);
    line-height: 1;
}

.phase-list {
    list-style: none;
    color: var(--text-gray);
}

.phase-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
}

.phase-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.phase-list li.done {
    text-decoration: line-through;
    opacity: 0.5;
}

/* CTA */
.cta-card {
    border: 1px solid var(--primary-dim);
    box-shadow: 0 0 40px rgba(0, 255, 163, 0.05);
    background: radial-gradient(circle at center, rgba(0, 255, 163, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-content p {
    color: var(--text-gray);
    margin-bottom: 32px;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    background: #000;
    padding: 80px 0 30px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.footer-desc {
    color: var(--text-gray);
    max-width: 300px;
    margin-top: 10px;
    font-size: 0.9rem;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: #444;
}

.footer-legal a {
    color: #666;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--text-white);
}

/* Mobile */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-visual {
        order: 1;
        height: 400px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .contract-box {
        justify-content: center;
        width: 100%;
        display: flex;
    }

    .hero-btns {
        justify-content: center;
    }

    .mobile-hidden {
        display: none;
    }

    .features-grid,
    .roadmap-grid,
    .tokenomics-layout,
    .tax-info-grid {
        grid-template-columns: 1fr;
    }
}