:root {
  --bg: #121212;
  --surface: #1b1b1a;
  --text: #f3eee6;
  --muted: #a8a399;
  --accent: #c8f31d;
  --accent-2: #a6d60f;
  --border: #2b2a27;
  --tag: #23281a;
  --on-accent: #121212;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f3ee;
    --surface: #ffffff;
    --text: #141414;
    --muted: #5f5b54;
    --accent: #5f7d00;
    --accent-2: #7a9f00;
    --border: #e4dfd6;
    --tag: #eef5d6;
    --on-accent: #ffffff;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
a { color: var(--accent); }

header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
header .bar { padding-top: 14px; padding-bottom: 14px; }
.brand { font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.brand span { color: var(--accent); }
nav { display: flex; gap: 20px; }
nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
nav a:hover { color: var(--accent); }

.hero { padding: 72px 0 56px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: .9rem; letter-spacing: .02em; margin: 0 0 12px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.15; margin: 0 0 16px; }
.hero h1 span { color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin: 0 0 24px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--on-accent); text-decoration: none; padding: 12px 22px; border-radius: 12px; font-weight: 700; }
.btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn:hover { filter: brightness(1.06); }
.stats { display: flex; gap: 36px; flex-wrap: wrap; margin-top: 40px; }
.stats b { display: block; font-size: 1.8rem; line-height: 1.1; }
.stats span { color: var(--muted); font-size: .9rem; }

main section { padding: 40px 16px; }
h2 { font-size: 1.7rem; margin: 0 0 20px; }

.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.app { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px; }
.app img { width: 72px; height: 72px; border-radius: 18px; flex-shrink: 0; }
.app h3 { margin: 4px 0 6px; font-size: 1.1rem; }
.app p { margin: 0 0 12px; color: var(--muted); font-size: .95rem; }
.app.featured { grid-column: 1 / -1; }
.app.featured img { width: 88px; height: 88px; border-radius: 22px; }
.app.featured h3 { font-size: 1.35rem; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tags span { background: var(--tag); color: var(--accent); font-size: .75rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.links { display: flex; gap: 16px; flex-wrap: wrap; }
.links a { font-weight: 600; text-decoration: none; font-size: .95rem; }
.links a:hover { text-decoration: underline; }
@media (max-width: 480px) { .app { flex-direction: column; } }

.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.about p { margin: 0 0 14px; }
.skills { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.skills li { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; }
.skills span { color: var(--muted); font-size: .9rem; }
@media (max-width: 720px) { .about { grid-template-columns: 1fr; } }

.contact { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 36px 24px; text-align: center; }
.contact h2 { margin-bottom: 8px; }
.contact p { color: var(--muted); margin: 0 0 18px; }
.social { margin-top: 18px; display: flex; gap: 20px; justify-content: center; }
.social a { color: var(--muted); }

footer { border-top: 1px solid var(--border); padding: 22px 0; color: var(--muted); font-size: .9rem; margin-top: 24px; }

/* RabApps logo */
.brand { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; gap: 3px; }
.logo { font-family: "Outfit", system-ui, sans-serif; font-weight: 600; letter-spacing: -.02em; color: var(--text); position: relative; }
.logo i { display: inline-block; width: .3em; height: .13em; background: #c8f31d; transform: skewX(40deg); margin: 0 .02em 0 -.3em; vertical-align: baseline; }
.brand .logo { font-size: 1.45rem; }
.brand small, .hero-logo small { font-family: "Outfit", system-ui, sans-serif; letter-spacing: .5em; padding-left: .5em; color: var(--text); font-weight: 400; }
.brand small { font-size: .55rem; }
.hero-logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; gap: 10px; margin-bottom: 28px; }
.hero-logo .logo { font-size: clamp(3rem, 9vw, 5rem); }
.hero-logo small { font-size: clamp(.9rem, 2vw, 1.2rem); }
.tags span { color: var(--accent); }