/* ═══════════════════════════════════════════════
   mesh.gxb.gg — MeshCore Repeater Landing Page
   Colors matched to gluecksberger.com & stockenberger.dev
   ═══════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
    --bg-dark: #0a0a0f;
    --bg-card: rgba(19, 25, 32, 0.6);
    --bg-card-hover: rgba(28, 33, 40, 0.8);
    --accent: #2e5c5d;
    --accent-light: #4d8a8b;
    --accent-mid: #4E9A9D;
    --accent-glow: rgba(78, 154, 157, 0.25);
    --accent-subtle: rgba(78, 154, 157, 0.1);
    --text-main: #e4e4e7;
    --text-secondary: #c9d1d9;
    --text-dim: #8b949e;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(78, 154, 157, 0.3);
    
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 800px;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ── BACKGROUNDS ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(78, 154, 157, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(78, 154, 157, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
}

.ambient-glow {
    position: fixed;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse, var(--accent-glow), transparent 70%);
    z-index: 0;
    filter: blur(80px);
    pointer-events: none;
}

/* ── LAYOUT ── */
.page-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1.5rem;
}

/* ══════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════ */
.site-header {
    width: 100%;
    max-width: var(--max-width);
    padding: 2.5rem 0 0;
    display: flex;
    justify-content: center;
}

.header-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: var(--text-main);
    text-decoration: none;
    text-transform: uppercase;
    transition: opacity var(--transition-fast);
}

.header-logo:hover {
    opacity: 0.8;
}

.header-logo .logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero {
    width: 100%;
    max-width: var(--max-width);
    padding: 4rem 0 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-icon-wrapper {
    width: 160px;
    height: 160px;
}

.hero-mesh-icon {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(78, 154, 157, 0.4));
}

/* SVG Animations */
.center-node {
    animation: pulseGlow 3s infinite alternate ease-in-out;
}

.anim-line-1 { stroke-dasharray: 10 30; animation: dash 3s linear infinite; }
.anim-line-2 { stroke-dasharray: 15 40; animation: dash 4s linear infinite reverse; }
.anim-line-3 { stroke-dasharray: 10 30; animation: dash 2.5s linear infinite; }
.anim-line-4 { stroke-dasharray: 12 35; animation: dash 3.5s linear infinite reverse; }
.anim-line-5 { stroke-dasharray: 10 30; animation: dash 2.8s linear infinite; }
.anim-line-6 { stroke-dasharray: 15 40; animation: dash 3.2s linear infinite reverse; }

@keyframes pulseGlow {
    0% { r: 8; fill: #4E9A9D; }
    100% { r: 11; fill: #65d5d8; }
}
@keyframes dash {
    to { stroke-dashoffset: 200; }
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px #34d399;
    animation: pulseDot 2s infinite ease-in-out;
    flex-shrink: 0;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.45; transform: scale(0.75); }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin: 0;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, #65d5d8, var(--accent-mid));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .subtitle {
    color: var(--text-secondary);
    font-size: clamp(1.05rem, 2.5vw, 1.2rem);
    max-width: 580px;
    line-height: 1.75;
    font-weight: 400;
    margin: 0;
}

.hero .subtitle strong {
    color: var(--text-main);
    font-weight: 600;
}

/* ══════════════════════════════════════════
   FEATURES GRID
   ══════════════════════════════════════════ */
.features-section {
    width: 100%;
    max-width: var(--max-width);
    padding: 2rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* ══════════════════════════════════════════
   LINKS SECTION
   ══════════════════════════════════════════ */
.links-section {
    width: 100%;
    max-width: var(--max-width);
    padding: 2rem 0 4rem;
}

.section-heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-main);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

/* MeshCore full-width on top, two cards side-by-side below */
.links-grid--featured {
    grid-template-columns: repeat(2, 1fr);
}

.links-grid--featured .link-card:first-child {
    grid-column: 1 / -1;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text-main);
    transition: all var(--transition-fast);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.link-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.highlight-card {
    background: linear-gradient(135deg, rgba(78, 154, 157, 0.1), rgba(46, 92, 93, 0.05));
    border-color: rgba(78, 154, 157, 0.3);
}
.highlight-card:hover {
    border-color: var(--accent-mid);
    background: linear-gradient(135deg, rgba(78, 154, 157, 0.15), rgba(46, 92, 93, 0.1));
}

.link-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.link-icon-wrap img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.link-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.link-title {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.link-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.link-arrow {
    color: var(--text-dim);
    font-size: 1.2rem;
    font-weight: 300;
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.link-card:hover .link-arrow {
    color: var(--accent-mid);
    transform: translateX(4px);
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.site-footer {
    width: 100%;
    max-width: var(--max-width);
    padding: 3rem 0;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-main);
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
    .links-grid,
    .links-grid--three,
    .links-grid--featured {
        grid-template-columns: 1fr;
    }

    .links-grid--featured .link-card:first-child {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }

    .hero-icon-wrapper {
        width: 140px;
        height: 140px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .features-section, .links-section {
        padding: 1rem 0 3rem;
    }

    .link-card {
        padding: 1.25rem;
    }
}
