/* Base: Dark, minimal, Apple-inspired */
:root {
  --bg: #0b0b0d;
  --surface: #111115;
  --bg-strip-a: #111115; /* dark grey */
  --bg-strip-b: #0a0a0c; /* near black */
  --muted: #9aa0a6;
  --text: #f5f7fa;
  --accent: #4da3ff;
  --ring: rgba(77,163,255,.35);
  --container: 1200px;
  --header-h: 72px; /* dynamic */
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body.theme-dark {
  margin: 0;
  color: var(--text);
  background: radial-gradient(1200px 800px at 80% -10%, #1b1b20, transparent 55%), var(--bg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

/* Header */
.site-header { position: fixed; left: 0; right: 0; top: 0; z-index: 200; background: rgba(10,10,12,.7); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid rgba(255,255,255,.06); }
.header-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; padding: .8rem 0; transition: padding .2s ease; }
.logo { display: grid; place-items: center; }
.logo img { display: inline-block; vertical-align: middle; transition: height .2s ease, opacity .2s ease, transform .2s ease; }
.site-header.is-scrolled .header-inner { padding: .5rem 0; }
.brand-link { color: var(--text); text-decoration: none; font-weight: 600; letter-spacing: .2px; }
.primary-nav .nav-list { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; justify-content: center; flex-wrap: wrap; }
.primary-nav a { color: var(--muted); text-decoration: none; padding: .4rem .6rem; border-radius: 8px; transition: color .2s, background .2s; }
.primary-nav a:hover { color: var(--text); background: rgba(255,255,255,.06); }

/* Hero slider */
.hero { position: relative; }
.hero-slider { position: relative; overflow: hidden; height: clamp(420px, 64vh, 720px); background: #0f0f12; }
.hero-slider .slides { display: flex; width: 100%; height: 100%; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.hero-slider .slide { position: relative; flex: 0 0 100%; background-size: cover; background-position: center; }
.hero-slider .slide .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,12,.8), rgba(10,10,12,.3)); }
.hero-slider .slide .content { position: relative; z-index: 1; height: 100%; display: grid; align-content: end; padding: 3rem 0; }
.slide-title { font-size: clamp(1.8rem, 3.8vw, 3rem); margin: 0 0 .6rem; letter-spacing: -.02em; }
.slide-text { color: var(--muted); max-width: 70ch; }
.hero-slider .nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: var(--text); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .2s; }
.hero-slider .nav:hover { background: rgba(255,255,255,.12); transform: translateY(-50%) scale(1.04); }
.hero-slider .nav.prev { left: 12px; }
.hero-slider .nav.next { right: 12px; }
.hero-slider .dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.hero-slider .dots button { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.28); border: none; padding: 0; cursor: pointer; }
.hero-slider .dots button[aria-current="true"] { background: var(--text); }

/* Sections */
.content-section { padding: clamp(48px, 8vw, 96px) 0; border-top: 1px solid rgba(255,255,255,.06); scroll-margin-top: var(--header-h); }
.content-section.bg-a { background: var(--bg-strip-a); }
.content-section.bg-b { background: var(--bg-strip-b); }
.section-inner { display: block; }
.content-section .text h2 { margin: 0 0 .6rem; font-size: clamp(1.4rem, 2.8vw, 2rem); letter-spacing: -.01em; }
.content-section .text .entry { color: var(--muted); }
.content-section .text .entry a { color: var(--accent); }

/* Footer */
.site-footer { padding: 32px 0; border-top: 1px solid rgba(255,255,255,.06); background: var(--surface); color: var(--muted); text-align: center; }
.site-footer .footer-inner { display: flex; justify-content: center; align-items: center; }
.site-footer a { color: #cfd5db; text-decoration: none; transition: color .2s ease; }
.site-footer a:hover { color: #e7ebf0; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); }
.wk-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.wk-modal[aria-hidden="false"] { display: block; }
.wk-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(2px); }
.wk-modal__dialog { position: relative; margin: 6vh auto; max-width: min(720px, calc(100% - 2rem)); background: #121216; color: var(--text); border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.06); overflow: hidden; }
.wk-modal__header { padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.wk-modal__body { padding: 20px; color: var(--muted); }
.wk-modal__close { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); color: var(--text); cursor: pointer; }
.wk-modal__close:hover { background: rgba(255,255,255,.1); }

/* Prevent background scroll when modal open */
html.wk-modal-open, body.wk-modal-open { overflow: hidden; }
.site-footer .heart::before { content: "\2665"; /* ♥ */ color: #ff5a7a; margin: 0 2px; }

/* Focus & smooth anchors */
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 8px; }
html { scroll-behavior: smooth; }
body { padding-top: var(--header-h); }
