/* ============================================================
   Schottlerworks — shared design system
   The single source of truth for site styling. Linked from every
   page with <link rel="stylesheet" href="…/assets/sw.css"> using a
   relative path, so it also resolves when files are opened locally.
   Edit colours, fonts and components here once — all pages update.
   ============================================================ */

:root {
    --bg: #0A0A0C;
    --bg2: #111116;
    --bg3: #18181F;
    --border: rgba(255,255,255,0.07);
    --border-hover: rgba(255,255,255,0.15);
    --text: #E8E8F0;
    --text-muted: #6B6B80;
    --text-dim: #3A3A4A;
    --accent: #E07A5F;
    --accent2: #F2CC8F;
    --green: #4ADE80;
    --yellow: #FBBF24;
    --blue: #5B8DEF;
    --font-display: 'Bebas Neue', sans-serif;
    --font-mono: 'DM Mono', monospace;
    --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
}

/* film-grain + grid overlays */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.glow {
    position: fixed;
    width: 600px; height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.12;
}
.glow-1 { background: var(--accent); top: -200px; right: -100px; }
.glow-2 { background: var(--blue); bottom: -200px; left: -100px; opacity: 0.08; }

.wrapper {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ---------------- header ---------------- */
header {
    position: relative;
    z-index: 10;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: baseline; gap: 2px; text-decoration: none; }
.logo-main {
    font-family: var(--font-display);
    font-size: 1.8rem; letter-spacing: 2px;
    color: var(--text); line-height: 1;
}
.logo-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    margin-left: 2px; margin-bottom: 4px; flex-shrink: 0;
}
.header-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem; color: var(--text-muted);
    letter-spacing: 2px;
    border: 1px solid var(--border);
    padding: 5px 12px; border-radius: 4px;
}

/* breadcrumb (used on inner pages) */
.crumb {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: 0.68rem;
    letter-spacing: 1.5px; color: var(--text-dim);
    text-transform: uppercase;
}
.crumb a { color: var(--text-muted); text-decoration: none; transition: color .2s ease; }
.crumb a:hover { color: var(--accent); }
.crumb .sep { color: var(--text-dim); }
.crumb .here { color: var(--accent); }

/* ---------------- hero ---------------- */
.hero { padding: 100px 0 60px; position: relative; }
.hero.compact { padding: 64px 0 36px; }
.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem; color: var(--accent);
    letter-spacing: 4px; text-transform: uppercase;
    margin-bottom: 24px;
    display: flex; align-items: center; gap: 12px;
    opacity: 0; animation: fadeUp 0.8s ease 0.2s forwards;
}
.hero-eyebrow::before {
    content: ''; display: block; width: 32px; height: 1px; background: var(--accent);
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 9vw, 7rem);
    line-height: 0.95; letter-spacing: 3px; margin-bottom: 28px;
    opacity: 0; animation: fadeUp 0.8s ease 0.35s forwards;
}
.hero-title span { color: var(--accent); display: block; }
.hero-desc {
    font-size: 1rem; color: var(--text-muted);
    max-width: 560px; line-height: 1.8; font-weight: 300;
    opacity: 0; animation: fadeUp 0.8s ease 0.5s forwards;
}

/* ---------------- dividers / sections ---------------- */
.divider {
    display: flex; align-items: center; gap: 16px;
    margin: 56px 0 40px;
    opacity: 0; animation: fadeUp 0.8s ease 0.65s forwards;
}
.divider-line { flex: 1; height: 1px; background: var(--border); }
.divider-label {
    font-family: var(--font-mono); font-size: 0.65rem;
    color: var(--text-dim); letter-spacing: 3px; text-transform: uppercase;
}
.section { margin: 0 0 64px; }
.section-title {
    font-family: var(--font-display);
    font-size: 1.9rem; letter-spacing: 2px;
    color: var(--text); margin-bottom: 20px;
}
.prose { color: var(--text-muted); line-height: 1.9; font-weight: 300; max-width: 720px; }
.prose p { margin-bottom: 16px; }
.prose strong { color: var(--text); font-weight: 500; }

/* ---------------- service / game cards ---------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px; margin-bottom: 72px;
}
.service-card {
    position: relative;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    text-decoration: none; color: inherit;
    transition: all 0.3s ease; overflow: hidden;
    opacity: 0; animation: fadeUp 0.8s ease forwards;
    display: flex; flex-direction: column;
}
.service-card.has-link::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(224,122,95,0.05), transparent);
    opacity: 0; transition: opacity 0.3s ease;
}
.service-card.has-link:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.service-card.has-link:hover::before { opacity: 1; }
.service-card-top {
    display: flex; align-items: flex-start; justify-content: space-between;
    margin-bottom: 24px;
}
.service-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: var(--bg3); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
}
.service-name {
    font-family: var(--font-display);
    font-size: 1.6rem; letter-spacing: 2px;
    margin-bottom: 8px; color: var(--text);
}
.service-desc {
    font-size: 0.875rem; color: var(--text-muted);
    line-height: 1.7; font-weight: 300; margin-bottom: 28px; flex: 1;
}
.service-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }
.tag {
    font-family: var(--font-mono); font-size: 0.62rem;
    color: var(--text-dim); border: 1px solid var(--border);
    padding: 3px 8px; border-radius: 4px; letter-spacing: 1px;
}
.service-link {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: 0.72rem;
    color: var(--accent); letter-spacing: 1px; transition: gap 0.2s ease;
}
.service-card.has-link:hover .service-link { gap: 12px; }
.service-link-arrow { font-size: 1rem; transition: transform 0.2s ease; }
.service-card.has-link:hover .service-link-arrow { transform: translateX(4px); }
.service-card.coming-soon { opacity: 0.5; }

/* ---------------- status badge ---------------- */
.status {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-mono); font-size: 0.65rem;
    letter-spacing: 1px; color: var(--green);
}
.status-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--green); animation: pulse 2s infinite;
}
.status.dev      { color: var(--yellow); }   .status.dev .status-dot      { background: var(--yellow); }
.status.early    { color: var(--accent2); }  .status.early .status-dot    { background: var(--accent2); }
.status.beta     { color: var(--blue); }     .status.beta .status-dot     { background: var(--blue); }
.status.soon     { color: var(--text-dim); } .status.soon .status-dot     { background: var(--text-dim); animation: none; }

/* ---------------- play actions (game landings) ---------------- */
.play-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 8px 0 8px; }
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 1px;
    padding: 16px 28px; border-radius: 10px; text-decoration: none;
    border: 1px solid var(--border); transition: all 0.25s ease; cursor: pointer;
}
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary {
    background: var(--accent); color: #14100e; border-color: var(--accent);
    font-weight: 500;
}
.btn-primary:hover { box-shadow: 0 14px 40px rgba(224,122,95,0.28); transform: translateY(-2px); }
.btn-ghost { background: var(--bg2); color: var(--text); }
.btn-ghost:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.btn-disabled {
    background: var(--bg2); color: var(--text-dim);
    cursor: not-allowed; pointer-events: none;
}
.btn-note {
    font-family: var(--font-mono); font-size: 0.66rem;
    color: var(--text-dim); letter-spacing: 1px; margin-top: 10px;
}

/* ---------------- feature grid ---------------- */
.feature-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.feature {
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: 10px; padding: 22px;
}
.feature-ico { font-size: 1.2rem; margin-bottom: 12px; }
.feature h4 {
    font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 1px;
    color: var(--text); margin-bottom: 8px; font-weight: 400;
}
.feature p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.65; font-weight: 300; }

/* ---------------- how-to steps ---------------- */
.steps { display: grid; gap: 12px; counter-reset: step; }
.step {
    display: flex; gap: 16px; align-items: flex-start;
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: 10px; padding: 18px 22px;
}
.step-num {
    font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 1px;
    color: var(--accent); line-height: 1; flex-shrink: 0; min-width: 28px;
}
.step-body h4 { font-size: 0.95rem; color: var(--text); margin-bottom: 4px; font-weight: 500; }
.step-body p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; font-weight: 300; }

/* ---------------- platforms ---------------- */
.platforms {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px;
}
.platform {
    display: flex; align-items: center; gap: 14px;
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: 10px; padding: 18px 20px;
}
.platform-ico { font-size: 1.4rem; width: 28px; text-align: center; }
.platform-name { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text); letter-spacing: 1px; }
.platform-status {
    margin-left: auto; font-family: var(--font-mono); font-size: 0.6rem;
    letter-spacing: 1px; color: var(--text-dim);
    border: 1px solid var(--border); border-radius: 4px; padding: 3px 8px;
}

/* ---------------- FAQ ---------------- */
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details {
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: 10px; padding: 0 22px; overflow: hidden;
}
.faq summary {
    cursor: pointer; list-style: none; padding: 18px 0;
    font-size: 0.95rem; color: var(--text); font-weight: 500;
    display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 1.2rem; }
.faq details[open] summary::after { content: '–'; }
.faq details p {
    color: var(--text-muted); font-size: 0.88rem; line-height: 1.75;
    font-weight: 300; padding-bottom: 20px;
}

/* ---------------- footer ---------------- */
footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
}
.footer-logo {
    font-family: var(--font-display); font-size: 1.1rem;
    letter-spacing: 2px; color: var(--text-dim);
}
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a {
    font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 1px;
    color: var(--text-muted); text-decoration: none; transition: color .2s ease;
}
.footer-nav a:hover { color: var(--accent); }
.footer-meta {
    font-family: var(--font-mono); font-size: 0.65rem;
    color: var(--text-dim); letter-spacing: 1px;
}
.footer-meta span { color: var(--accent); }

/* ---------------- utilities ---------------- */
.text-accent { color: var(--accent); }

/* ---------------- animations ---------------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse  { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .hero-eyebrow, .hero-title, .hero-desc, .divider, .service-card { opacity: 1 !important; }
}

/* ---------------- responsive ---------------- */
@media (max-width: 640px) {
    .wrapper { padding: 0 20px; }
    .hero { padding: 60px 0 40px; }
    .hero-title { font-size: 3.2rem; }
    .services-grid { grid-template-columns: 1fr; }
    .header-tag { display: none; }
    .play-row { flex-direction: column; }
    .btn { justify-content: center; }
}
