/* ─── Rocktoshi.com ─── */
/* Dark theme · Bitcoin orange · Clean & minimal */

:root {
    --bg: #0a0a0b;
    --bg-surface: #111114;
    --bg-card: #16161a;
    --bg-card-hover: #1c1c22;
    --text: #e2e2e6;
    --text-muted: #8888a0;
    --text-dim: #555568;
    --accent: #f7931a;
    --accent-dim: #c47615;
    --accent-glow: rgba(247, 147, 26, 0.15);
    --border: #222233;
    --radius: 8px;
    --radius-lg: 16px;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'JetBrains Mono', monospace;
    --max-width: 1100px;
    --nav-height: 64px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
}
a:hover { opacity: 0.8; }

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

/* ─── Nav ─── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 11, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    height: var(--nav-height);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.nav-wordmark {
    width: 150px;
    height: auto;
}
.nav-tagline {
    font-size: 0.55rem;
    color: var(--text-dim);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    white-space: nowrap;
}
.logo-rock { color: #555568; }
.logo-toshi { color: #8888a0; }

.nav-links {
    display: flex;
    gap: 32px;
}
.nav-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--text);
    opacity: 1;
}

.nav-stats {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-stat {
    font-family: 'Orbitron', var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.nav-stat:empty { display: none; }

.nav-stat-label {
    color: var(--text-dim);
    margin-right: 4px;
}

.nav-stat-value {
    color: var(--accent);
    font-weight: 700;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: 0.3s;
}

/* ─── Hero ─── */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--nav-height) + 24px) 24px 32px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(247, 147, 26, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(247, 147, 26, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 20%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 740px;
    width: 100%;
}

.hero-title {
    font-size: clamp(2.5rem, 9vw, 6rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    font-family: var(--font-mono);
    white-space: nowrap;
}
.title-line { display: inline; }
.title-rock { color: #555568; }
.title-toshi {
    color: #8888a0;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 24px;
    padding-bottom: 20px;
    position: relative;
}
.hero-tagline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--border);
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 500px;
    margin: 0 auto 40px;
    line-height: 1.6;
    font-style: italic;
}

.hero-section-title {
    font-family: 'Orbitron', var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.hero-subscribe {
    max-width: 460px;
    margin: 0 auto 32px;
}

.hero-links {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.hero-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    padding: 14px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(22, 22, 26, 0.6);
    transition: all 0.2s;
    width: 90px;
}
.hero-link:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    opacity: 1;
}

.hero-link-icon {
    font-size: 1.3rem;
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 700;
}

.hero-link-name {
    font-size: 0.7rem;
    color: var(--text-dim);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}


.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
}
.scroll-indicator span {
    display: block;
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: var(--font);
}

.btn-primary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}
.btn-primary:hover {
    background: var(--accent);
    color: #000;
    opacity: 1;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    opacity: 1;
}

/* ─── Sections ─── */
.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    font-family: var(--font-mono);
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1rem;
}

/* ─── Announcements ─── */
.announcements-section {
    padding: 24px 0 120px;
    text-align: center;
}

.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.announcement {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    transition: border-color 0.2s;
}
.announcement:hover {
    border-color: var(--accent);
}

.announcement time {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.announcement h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 8px 0;
}
.announcement h3 a {
    color: var(--text);
    transition: color 0.2s;
}
.announcement h3 a:hover {
    color: var(--accent);
    opacity: 1;
}

.announcement p {
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.6;
}

.nostr-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.empty-state {
    text-align: center;
    padding: 32px 20px;
    color: var(--text-dim);
    font-size: 0.9rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

/* ─── Subscribe / Channels ─── */
.subscribe-section {
    padding: 120px 0;
    background: var(--bg-surface);
    text-align: center;
}

.channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.channel-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.2s;
}
.channel-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    opacity: 1;
}

.channel-icon {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 12px;
    font-family: var(--font-mono);
    font-weight: 700;
}

.channel-name {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.channel-handle {
    color: var(--text-dim);
    font-size: 0.8rem;
    font-family: var(--font-mono);
    word-break: break-all;
}

.email-subscribe {
    max-width: 560px;
    margin: 0 auto 40px;
}

.email-subscribe h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.subscribe-form {
    max-width: 560px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.optional-row {
    margin-bottom: 4px;
}

.input {
    flex: 1;
    padding: 14px 18px;
    font-size: 0.95rem;
    font-family: var(--font);
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.2s;
    color-scheme: dark;
}
.input:focus {
    border-color: var(--accent);
}
.input::placeholder {
    color: var(--text-dim);
}
.input:-webkit-autofill,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text);
    -webkit-box-shadow: 0 0 0 1000px var(--bg-card) inset;
    transition: background-color 5000s ease-in-out 0s;
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 12px;
    min-height: 1.4em;
}
.form-note.success { color: #4ade80; }
.form-note.error { color: #f87171; }

/* ─── Page Header ─── */
.page-header {
    padding: 140px 0 60px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
}
.page-header h1 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

/* ─── About ─── */
.about-content {
    padding: 80px 0 120px;
}

.about-text h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 48px 0 16px;
    color: var(--accent);
}
.about-text h2:first-child {
    margin-top: 0;
}

.about-text p {
    color: var(--text-muted);
    max-width: 640px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.connect-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.connect-link {
    display: flex;
    flex-direction: column;
    padding: 20px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    min-width: 180px;
    transition: all 0.2s;
    text-decoration: none;
}
.connect-link:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    opacity: 1;
}
.connect-link strong {
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 4px;
}
.connect-link span {
    color: var(--text-dim);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    word-break: break-all;
}


/* ─── Footer ─── */
.footer {
    border-top: 1px solid var(--border);
    padding: 32px 0 24px;
}

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

.footer-inner > p {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-top: 4px;
}

.footer-tiles {
    display: flex;
    gap: 12px;
    margin: 20px 0;
}

.footer-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    padding: 14px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(22, 22, 26, 0.6);
    transition: all 0.2s;
    width: 90px;
}
.footer-tile:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    opacity: 1;
}

.footer-tile-icon {
    font-size: 1.3rem;
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 700;
}

.footer-tile-name {
    font-size: 0.7rem;
    color: var(--text-dim);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.footer-bottom p {
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(10, 10, 11, 0.95);
        backdrop-filter: blur(20px);
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
    }
    .nav-toggle { display: flex; }

    .nav-stats { gap: 10px; }
    .nav-stat { font-size: 0.55rem; }

    .hero-title { font-size: clamp(2rem, 10vw, 4rem); }

    .form-row { flex-direction: column; }
    .form-row .btn { width: 100%; justify-content: center; }

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


    .connect-links { flex-direction: column; }

    .footer-bottom { text-align: center; }

    .page-header h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
    .hero-tagline { font-size: 0.85rem; letter-spacing: 0.1em; }
    .hero-sub { font-size: 1rem; }
}
