/* Tygaria - Landing Page */

:root {
    --bg: #0a0a0f;
    --surface: #12121a;
    --border: #1e1e2e;
    --text: #e4e4e8;
    --text-dim: #8b8b95;
    --accent: #4ade80;
    --ironforge: #b32828;
    --nightbloom: #7333a6;
    --goldtide: #cc9f26;
    --ashwatch: #bf8c33;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Nav */
nav {
    position: fixed; top: 0; width: 100%; z-index: 100;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 1.5rem;
}
.logo { color: var(--accent); font-size: 1.25rem; font-weight: 700; text-decoration: none; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: var(--text-dim); text-decoration: none; font-size: 0.9rem; }
.nav-links a:hover { color: var(--text); }
.btn-play {
    background: var(--accent); color: var(--bg);
    padding: 0.4rem 1rem; border-radius: 6px; font-weight: 600;
}

/* Hero */
.hero {
    text-align: center; padding: 8rem 1.5rem 4rem;
    max-width: 700px; margin: 0 auto;
}
.hero h1 { font-size: 3.5rem; color: var(--accent); margin-bottom: 0.5rem; }
.tagline { font-size: 1.3rem; color: var(--text); margin-bottom: 0.75rem; }
.sub { color: var(--text-dim); margin-bottom: 2rem; }
.btn-primary {
    display: inline-block; background: var(--accent); color: var(--bg);
    padding: 0.75rem 2rem; border-radius: 8px; font-weight: 700;
    text-decoration: none; font-size: 1.1rem;
}
.btn-primary:hover { opacity: 0.9; }

/* Sections */
.section {
    max-width: 1000px; margin: 0 auto; padding: 4rem 1.5rem;
}
.section.dark { background: var(--surface); max-width: 100%; }
.section.dark > * { max-width: 1000px; margin-left: auto; margin-right: auto; }
.section h2 { font-size: 1.8rem; margin-bottom: 1rem; }
.section p { color: var(--text-dim); margin-bottom: 1.5rem; }

/* Features */
.features {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem; margin-top: 2rem;
}
.feature {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; padding: 1.5rem;
}
.feature h3 { color: var(--accent); margin-bottom: 0.5rem; }
.feature p { color: var(--text-dim); font-size: 0.9rem; margin: 0; }

/* Clans */
.clans {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem; margin-top: 2rem;
}
.clan {
    border: 1px solid var(--border); border-radius: 10px;
    padding: 1.5rem; border-top: 3px solid; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.clan:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.clan.ironforge { border-top-color: var(--ironforge); }
.clan.nightbloom { border-top-color: var(--nightbloom); }
.clan.goldtide { border-top-color: var(--goldtide); }
.clan.ashwatch { border-top-color: var(--ashwatch); }
.clan h3 { margin-bottom: 0.5rem; }
.clan > p { color: var(--text-dim); font-size: 0.9rem; margin: 0; }
.clan-detail { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.clan.open .clan-detail { max-height: 500px; margin-top: 1rem; }
.click-hint { text-align: center; color: var(--text-dim); font-size: 0.8rem; margin-top: 1.5rem; }

/* NPC cards */
.npc-list { display: flex; flex-direction: column; gap: 0.5rem; }
.npc-card {
    background: rgba(255,255,255,0.03); border: 1px solid var(--border);
    border-radius: 8px; padding: 0.75rem 1rem; font-size: 0.85rem;
    color: var(--text-dim); line-height: 1.4;
}
.npc-card strong { color: var(--text); }

/* Game */
.game-container {
    width: 100%; aspect-ratio: 4/3; max-height: 600px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; overflow: hidden; margin-top: 1rem;
}
.game-container canvas { width: 100%; height: 100%; }

/* Footer */
footer {
    text-align: center; padding: 2rem 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-dim); font-size: 0.85rem;
}
footer a { color: var(--accent); text-decoration: none; }
