/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #050505;
    --card-bg: #111111;
    --text-primary: #EDEDED;
    --text-secondary: #A0A0A0;
    --bitcoin-gold: #F7931A;
    --border-color: #222222;
    --glass: rgba(17, 17, 17, 0.7);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.text-gold {
    color: var(--bitcoin-gold);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Main Content Background */
main.container {
    background: #0a0a0a;
    padding: 40px 20px;
    border-radius: 16px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    main.container {
        padding: 24px 16px;
        border-radius: 12px;
    }

    .container {
        padding: 0 16px;
    }
}

/* Starry Background */
.stars,
.stars2,
.stars3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: transparent;
    pointer-events: none;
}

.stars {
    background-image: radial-gradient(white 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
}

.stars2 {
    background-image: radial-gradient(white 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.05;
}

/* Header */
header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

/* Hero Section */
#hero {
    text-align: center;
    padding: 60px 0 80px;
}

.subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.main-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #FFFFFF 0%, #A0A0A0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0 10px;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* Author Profile */
.author-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 48px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
}

.author-profile:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(247, 147, 26, 0.2);
    transform: translateY(-2px);
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(247, 147, 26, 0.3);
    flex-shrink: 0;
    transition: border-color 0.3s ease;
}

.author-profile:hover .author-avatar {
    border-color: var(--bitcoin-gold);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    text-align: left;
}

.author-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 2px;
}

.author-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.2;
}

/* Content Blocks */
.content-block {
    margin-bottom: 80px;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-left: 16px;
    border-left: 3px solid var(--bitcoin-gold);
    line-height: 1.2;
}

/* Intro Card */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    border-color: rgba(247, 147, 26, 0.3);
}

.glass-panel {
    display: flex;
    flex-direction: column;
}

/* Intro Image & Text */
.text-content {
    padding: 24px;
}

.text-content p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.text-content p:last-child {
    margin-bottom: 0;
}

.highlight-text {
    font-weight: 500;
    color: white;
}

/* Analogy / Blockquote */
.gold-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-primary);
    border-left: 3px solid var(--bitcoin-gold);
    padding: 16px 20px;
    margin: 30px 0;
    background: linear-gradient(90deg, rgba(247, 147, 26, 0.08) 0%, transparent 100%);
    border-radius: 0 8px 8px 0;
}

.analogy-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.analogy-content strong {
    color: white;
}

/* Strategy Steps */
.strategy-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 40px;
}

.step-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 12px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-icon {
    width: 36px;
    height: 36px;
    background: rgba(247, 147, 26, 0.1);
    color: var(--bitcoin-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.step-info h3 {
    color: white;
    margin-bottom: 6px;
    font-size: 1.1rem;
    line-height: 1.3;
}

.step-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Roadmap / Formula */
.formula-box {
    background: #080808;
    border: 1px dashed #333;
    padding: 24px 16px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 40px;
    position: relative;
    overflow-x: auto;
    /* Enable horizontal scroll for long formulas on mobile */
}

.formula-label {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-color);
    padding: 0 12px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.formula-code {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: var(--bitcoin-gold);
    white-space: nowrap;
    /* Keep formula on one line to encourage scrolling if needed, or wrap */
}

.mb-4 {
    margin-bottom: 24px;
}

.mb-5 {
    margin-bottom: 40px;
}

.subsection-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
    color: white;
    text-align: center;
    /* Center on mobile for better balance */
}

/* Scenarios Grid */
.scenarios-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.scenario-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s;
}

.scenario-card:hover {
    transform: translateY(-3px);
    border-color: var(--bitcoin-gold);
}

.card-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h4 {
    color: var(--bitcoin-gold);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

.card-body p,
.card-body ul {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.card-body p+div,
.card-body ul+div {
    margin-top: 16px;
}

.card-body ul {
    padding-left: 20px;
    margin-top: 5px;
}

.card-body li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.card-image-placeholder {
    width: 100%;
    height: 160px;
    background-color: #1a1a1a;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    opacity: 0.9;
    margin-top: 16px;
}

/* Conclusion */
.conclusion-box {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 10px;
}

.final-statement {
    font-size: 1.25rem;
    font-family: 'Outfit', sans-serif;
    color: white;
    margin: 30px 0;
    line-height: 1.4;
}

.sign-off {
    margin-top: 50px;
}

.signature {
    font-size: 1.35rem;
    font-family: 'Outfit', sans-serif;
    margin-top: 8px;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    color: #444;
    font-size: 0.85rem;
    margin-top: 20px;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   MEDIA QUERIES (Desktop Enhancements)
   ========================================= */

@media (min-width: 768px) {

    /* Larger Container */
    .container {
        padding: 0 40px;
    }

    /* Hero */
    #hero {
        padding: 100px 0 120px;
    }

    .main-title {
        font-size: 4.5rem;
    }

    .hero-sub {
        font-size: 1.5rem;
    }

    /* Layouts */
    .glass-panel {
        flex-direction: row;
        align-items: center;
    }

    .featured-image {
        width: 50%;
        height: 100%;
        object-fit: cover;
        min-height: 350px;
    }

    .text-content {
        width: 50%;
        padding: 40px;
    }

    .section-title {
        font-size: 2.5rem;
        border-left-width: 4px;
        padding-left: 24px;
    }

    /* Grids */
    .strategy-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .step-card {
        padding: 32px;
    }

    .step-icon {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }

    .strategy-steps .step-info h3 {
        font-size: 1.25rem;
    }

    .scenarios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .full-width {
        grid-column: span 2;
    }

    .formula-code {
        font-size: 1.25rem;
    }

    .subsection-title {
        text-align: left;
        font-size: 1.5rem;
    }

    .card-image-placeholder {
        height: 180px;
    }

    .final-statement {
        font-size: 1.75rem;
    }
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--btc-gold);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang-btn:hover {
    background: rgba(247, 147, 26, 0.1);
    color: var(--btc-gold);
    box-shadow: 0 0 10px rgba(247, 147, 26, 0.2);
}

.lang-btn .lang-text {
    opacity: 0.6;
    transition: opacity 0.3s;
}

.lang-btn .lang-text.active {
    opacity: 1;
    color: var(--text-primary);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    width: 100%;
}

/* Newsletter Popup */
.newsletter-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 340px;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid var(--bitcoin-gold);
    border-radius: 12px;
    padding: 24px;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(200%);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.newsletter-popup.show {
    transform: translateY(0);
}

.newsletter-popup.hidden {
    display: none;
    /* Logic class for preventing render if subscribed */
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

.newsletter-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.newsletter-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.4;
}

#newsletter-form {
    display: flex;
    gap: 8px;
}

#newsletter-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 6px;
    color: white;
    font-family: 'Inter', sans-serif;
}

#newsletter-form input:focus {
    outline: none;
    border-color: var(--bitcoin-gold);
}

#newsletter-form button {
    background: var(--bitcoin-gold);
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
}

.success-msg {
    color: #10b981;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 12px;
    text-align: center;
}

.success-msg.hidden {
    display: none;
}

@media (max-width: 480px) {
    .newsletter-popup {
        width: calc(100vw - 40px);
        bottom: 20px;
        right: 20px;
        left: 20px;
        padding: 20px;
    }

    .newsletter-content h3 {
        font-size: 1rem;
    }

    .newsletter-content p {
        font-size: 0.85rem;
    }

    #newsletter-form input,
    #newsletter-form button {
        font-size: 14px;
    }
}

/* Floating Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Click Pulse Animation */
@keyframes rockPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
        box-shadow: 0 0 50px rgba(247, 147, 26, 0.8);
    }

    100% {
        transform: scale(1);
    }
}

/* Floating +1 Indicator */
.rock-plus-one {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bitcoin-gold);
    pointer-events: none;
    animation: floatUp 1s ease-out forwards;
    opacity: 1;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-50px);
    }
}

@media (max-width: 768px) {
    .rock-btn {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
}