/*
 * Landing page (resources/views/welcome.blade.php).
 *
 * Plain CSS on purpose: the page does not load the Vite bundle, so a change
 * here ships without `npm run build`. Colours, type and spacing follow the
 * "Monkeyslippery Landing Page" design canvas.
 */

:root {
    --bg: #0E0F11;
    --bg-tint: #131417;
    --surface: #16181C;
    --line: #23262C;
    --line-strong: #2A2D33;
    --border: #33373E;
    --text: #ECEDEE;
    --text-2: #C3C7CC;
    --text-3: #B7BCC2;
    --muted: #A1A7AE;
    --faint: #8E949B;
    --accent: #FFD23F;
    --accent-ink: #0E0F11;
    --blue: #8FB3FF;
    --green: #7CE38B;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--text); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 10;
    padding: 10px 16px; border-radius: 10px;
    background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.mono { font-family: var(--font-mono); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-mark img { width: 30px; height: 30px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.nav-links a { padding: 10px 14px; text-decoration: none; color: var(--text-2); font-size: 15px; border-radius: 8px; }
.nav-links a:hover { color: #fff; background: var(--surface); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 48px; padding: 0 22px; border-radius: 12px;
    font: inherit; font-weight: 500; text-decoration: none; cursor: pointer;
    border: 1px solid var(--border); background: transparent; color: var(--text);
}
.btn:hover { border-color: #4A4F57; color: #fff; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn-primary:hover { background: #FFDC66; border-color: #FFDC66; color: var(--accent-ink); }
.btn-sm { min-height: 44px; padding: 0 18px; border-radius: 10px; gap: 8px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Shared type */
.eyebrow { margin: 0; font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
.lead { margin: 0; font-size: 18px; color: var(--text-3); }
.section { padding-top: clamp(72px, 10vw, 120px); padding-bottom: clamp(72px, 10vw, 120px); }
.section-tint { background: var(--bg-tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-stack { display: flex; flex-direction: column; gap: 56px; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.tag { display: inline-block; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-2); font-family: var(--font-mono); font-size: 12px; line-height: 1.6; }
.tag-accent { border-color: transparent; background: #2A2614; color: var(--accent); }
.tag-blue { border-color: transparent; background: #1C2433; color: var(--blue); }
.tag-green { border-color: transparent; background: #1E2B22; color: var(--green); }
.card { border-radius: 20px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.card-body { padding: 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card-title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.card-title { margin: 0; font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.card-text { margin: 0; color: var(--text-3); }
.card-link { align-self: flex-start; margin-top: auto; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: clamp(56px, 9vw, 96px); padding-bottom: clamp(56px, 8vw, 88px); }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero-kicker { margin: 0; display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.dot-sm { width: 6px; height: 6px; }
.hero h1 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -0.035em; }
.hero h1 span { color: var(--accent); }
.hero-lead { margin: 0; max-width: 540px; font-size: 19px; color: var(--text-3); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stack { margin: 0; font-family: var(--font-mono); font-size: 13px; color: var(--faint); }
.hero-visual { flex: 1 1 480px; min-width: 0; }

.window { border-radius: 16px; background: var(--surface); border: 1px solid var(--line-strong); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7); }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-strong); }
.window-bar .light { width: 11px; height: 11px; border-radius: 50%; background: #3A3E45; }
.window-tab { padding: 4px 10px; border-radius: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.window-tab.is-active { margin-left: 12px; background: var(--bg); color: var(--text-2); }
.code { margin: 0; padding: 24px 24px 28px; overflow-x: auto; font-family: var(--font-mono); font-size: 14px; line-height: 1.8; color: var(--text-2); }
.code .c { color: var(--faint); }
.code .k { color: var(--blue); }
.code .f { color: var(--accent); }
.window-status { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 12px 24px; border-top: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.window-status span { display: flex; align-items: center; gap: 8px; }

/* Motto strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 28px; padding-bottom: 28px; }
.motto { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 26px; letter-spacing: -0.02em; }
.motto span { color: var(--accent); }
.chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: 13px; color: var(--text-2); }
.chips li { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; }

/* Product screenshots in a browser frame */
.shot { padding: 24px 24px 0; }
.browser { border-radius: 12px 12px 0 0; border: 1px solid var(--line-strong); border-bottom: 0; overflow: hidden; background: var(--bg); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line-strong); }
.browser-bar .light { width: 9px; height: 9px; border-radius: 50%; background: #3A3E45; }
.browser-bar .url { margin-left: 10px; font-family: var(--font-mono); font-size: 11px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }

/* Games */
.game-art { background: var(--bg); padding: 28px; display: flex; justify-content: center; border-bottom: 1px solid var(--line); }
.game-art svg { width: 100%; max-width: 420px; height: auto; }
.games .card-title { font-size: 26px; }
.games .grid-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; color: var(--text-2); font-size: 15px; }
.ticks li { display: flex; gap: 10px; }
.ticks li::before { content: '›'; color: var(--accent); font-family: var(--font-mono); }
.meta { margin: 4px 0 0; font-family: var(--font-mono); font-size: 12px; color: var(--faint); }

/* Studio */
.studio-head { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-end; justify-content: space-between; }
.studio-head > div { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.studio-head > p { flex: 1 1 360px; min-width: 0; }
.service { padding: 32px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.service-num { margin: 0; font-family: var(--font-mono); font-size: 13px; color: var(--faint); }
.service h3 { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.service p { margin: 0; color: var(--muted); font-size: 15px; }
.service .stack { margin-top: auto; padding-top: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--text-2); }
.studio .grid-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }

/* More from the studio */
.more { display: flex; flex-direction: column; gap: 32px; padding-top: clamp(72px, 9vw, 96px); padding-bottom: clamp(72px, 9vw, 96px); }
.outline-card { border-radius: 20px; border: 1px solid var(--line); }
.beehive { padding: 36px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.beehive-copy { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.title-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.more-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 32px; letter-spacing: -0.02em; }
.features { flex: 1 1 420px; min-width: 0; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px 28px; font-size: 15px; }
.features li { display: flex; gap: 12px; align-items: flex-start; }
.features svg { flex-shrink: 0; margin-top: 2px; }
.features strong { font-weight: 600; display: block; }
.features span { color: var(--muted); }
.omapa { overflow: hidden; display: flex; flex-wrap: wrap; align-items: stretch; }
.omapa-copy { flex: 1 1 380px; min-width: 0; padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.omapa-note { margin: 0; color: var(--faint); font-size: 14px; }
.omapa-shot { flex: 1 1 440px; min-width: 0; padding: 28px 0 0 28px; background: var(--bg-tint); display: flex; align-items: flex-end; }
.omapa-shot .browser { width: 100%; border-radius: 12px 0 0 0; border-right: 0; }

/* Contact */
.contact .wrap { display: flex; flex-wrap: wrap; gap: 56px; }
.contact-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-form { flex: 1 1 460px; min-width: 0; padding: 32px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 20px; }
.form-row { display: flex; flex-wrap: wrap; gap: 20px; }
.field { flex: 1 1 200px; display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; color: var(--text-2); }
.field input, .field textarea {
    width: 100%; padding: 12px 14px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit;
}
.field input { min-height: 48px; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 210, 63, 0.2); }
.field-error { margin: 0; font-size: 14px; color: #FF8A80; }
.field-error:empty { display: none; }
.notice { margin: 0; padding: 12px 16px; border-radius: 10px; font-size: 15px; }
.notice:empty { display: none; }
.notice.is-success { background: #1E2B22; color: var(--green); }
.notice.is-error { background: #3A1F1F; color: #FF8A80; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 32px; font-size: 14px; color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-mark { width: 28px; height: 28px; border-radius: 7px; }
.footer-brand .brand-mark img { width: 22px; height: 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-links a { padding: 10px 12px; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 560px) {
    .nav { justify-content: center; }
    .nav-links a { padding: 10px 10px; }
    .card-body, .beehive, .omapa-copy, .contact-form { padding: 24px; }
    .shot { padding: 16px 16px 0; }
    .omapa-shot { padding: 20px 0 0 20px; }
}
