/* ============================================================
   mrguru.com — Laravel-inspired: spacious, card-based, rounded,
   red accent #FF2D20. Raw CSS, custom properties for theming.
   ============================================================ */

:root {
  --bg:      #ffffff;
  --surface: #f8fafc;
  --fg:      #1e293b;
  --fg-2:    #64748b;
  --accent:  #FF2D20;
  --line:    #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(15,23,42,.08);
  --shadow-md: 0 8px 24px rgba(15,23,42,.10);
  --r-lg: 12px;
  --r-xl: 18px;
  --up:   #16a34a;
  --down: #dc2626;
}

html[data-theme='dark'] {
  --bg:      #0f172a;
  --surface: #1e293b;
  --fg:      #f1f5f9;
  --fg-2:    #94a3b8;
  --line:    #334155;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[x-cloak] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Figtree', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  font-size: 16px;
  transition: background .3s ease, color .3s ease;
  overflow-x: hidden;
}

h1 { font-size: clamp(44px, 8vw, 84px);  font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
h2 { font-size: clamp(28px, 4.5vw, 44px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 34px; }
h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }

p { color: var(--fg-2); }
a { color: var(--accent); text-decoration: none; }
.dim { color: var(--fg-2); }
.dotAcc { color: var(--accent); }

::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 110px 0; }
section.alt { background: var(--surface); transition: background .3s; }

.eyebrow {
  color: var(--accent); font-weight: 700; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px;
}

/* ---------- cards ---------- */
.card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, background .3s, border-color .3s;
}
section.alt .card { background: var(--bg); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.cards2 .card { padding: 28px; }
@media (max-width: 720px) { .cards2 { grid-template-columns: 1fr; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 10px;
  font-weight: 600; font-size: 15px; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s, filter .2s, border-color .2s;
}
.btn:hover { transform: scale(1.02); filter: brightness(1.05); }
.btnAcc   { background: var(--accent); color: #fff; }
.btnGhost { border-color: var(--line); color: var(--fg); background: transparent; }
.btnGhost:hover { border-color: var(--accent); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.navIn { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { font-weight: 800; font-size: 19px; color: var(--fg); }
.links { display: flex; gap: 30px; }
.links a { color: var(--fg-2); font-weight: 500; font-size: 15px; transition: color .2s; }
.links a:hover { color: var(--fg); }
.navBtns { display: flex; gap: 10px; align-items: center; }
.iconBtn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--fg); cursor: pointer; font-size: 16px;
  transition: border-color .2s, transform .2s;
}
.iconBtn:hover { border-color: var(--accent); transform: scale(1.05); }
.burger { display: none; }

@media (max-width: 800px) {
  .burger { display: block; }
  .links {
    position: fixed; inset: 66px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .links.open { max-height: 320px; }
  .links a { padding: 15px 24px; border-top: 1px solid var(--line); }
}

/* ---------- hero ---------- */
.hero {
  min-height: 100vh; display: flex; align-items: center; position: relative;
  overflow: hidden; padding: 90px 0 60px;
}
.heroGeo {
  position: absolute; inset: -20%;
  background:
    radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--accent) 7%, transparent) 0 340px, transparent 340px),
    radial-gradient(circle at 80% 70%, color-mix(in srgb, var(--accent) 5%, transparent) 0 420px, transparent 420px);
  animation: geoFloat 24s ease-in-out infinite alternate;
}
@keyframes geoFloat { to { transform: translate(4%, 3%) scale(1.05); } }

/* subtle grain overlay — dark mode only */
.heroGrain { display: none; }
html[data-theme='dark'] .heroGrain {
  display: block; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0,0,0,.18) 2px 3px);
}

.heroIn { display: flex; align-items: center; gap: 64px; position: relative; z-index: 2; }
.heroTxt { flex: 1; }
.pill {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--fg-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; margin-bottom: 22px;
  background: var(--surface);
}
.tagline { font-size: clamp(18px, 2.6vw, 24px); margin-top: 14px; color: var(--fg-2); }
.cursor { color: var(--accent); animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.heroCta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.heroPhotoWrap { position: relative; width: min(360px, 36vw); aspect-ratio: 4/5; flex-shrink: 0; }
.heroPhotoBg {
  position: absolute; inset: 0; border-radius: var(--r-xl);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  transform: translate(18px, 18px); will-change: transform;
}
.heroPhoto {
  position: absolute; inset: 0; border-radius: var(--r-xl);
  background: var(--surface) center/cover no-repeat;
  background-image: url('img/hero.jpg'), url('https://placehold.co/720x900/1e293b/94a3b8?text=Christopher');
  box-shadow: var(--shadow-md); will-change: transform;
  user-select: none; -webkit-user-drag: none;
}
@media (max-width: 800px) {
  .heroIn { flex-direction: column-reverse; text-align: center; }
  .heroPhotoWrap { width: min(260px, 66vw); }
  .heroCta { justify-content: center; }
  section { padding: 80px 0; }
}

/* ---------- scroll-driven section reveals (native CSS, no JS lib) ---------- */
@supports (animation-timeline: view()) {
  section .wrap {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 38%;
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  section .wrap { animation: none !important; }
  .heroGeo, .cursor { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- trading ---------- */
.mkStatus {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; font-size: 14px; color: var(--fg-2); margin-bottom: 26px;
}
.mkStatus .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--fg-2); }
.mkStatus .dot.live { background: var(--up); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); gap: 16px; }
.chart { padding: 16px; }
.chart .sym { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.chart .sym b { color: var(--fg); }
.chart .sym span { color: var(--fg-2); }
.chart svg { width: 100%; height: 58px; display: block; }
.chart .px { font-size: 14px; margin-top: 10px; color: var(--fg); font-weight: 600; }
.chart .up   { color: var(--up); font-weight: 500; }
.chart .down { color: var(--down); font-weight: 500; }

/* ---------- development ---------- */
.prose p { margin-bottom: 14px; max-width: 68ch; }
.devGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-top: 36px; }
.shot { aspect-ratio: 16/10; background-position: center; background-size: cover; }
.noncom {
  margin-top: 28px; font-size: 14px; color: var(--fg-2);
  border-left: 3px solid var(--accent); padding-left: 14px;
}

/* ---------- music ---------- */
.player { max-width: 640px; padding: 28px; }
.pRow { display: flex; align-items: center; gap: 16px; }
.ppBtn {
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--accent); color: #fff; font-size: 18px;
  transition: transform .2s, filter .2s;
}
.ppBtn:hover { transform: scale(1.06); filter: brightness(1.08); }
.pName { font-weight: 600; }
.pTime { font-size: 13px; color: var(--fg-2); }
#eq { width: 100%; margin: 18px 0 8px; display: block; }
#seek { width: 100%; accent-color: var(--accent); }
.tList { list-style: none; margin-top: 16px; border-top: 1px solid var(--line); }
.tList button {
  display: flex; justify-content: space-between; width: 100%; text-align: left;
  background: none; border: none; font: inherit; color: var(--fg-2);
  padding: 11px 8px; cursor: pointer; border-radius: 8px; transition: background .2s, color .2s;
}
.tList button:hover { background: var(--surface); color: var(--fg); }
.tList button.on { color: var(--accent); font-weight: 600; }

/* ---------- photos ---------- */
.carousel { position: relative; max-width: 820px; margin: 0 auto; }
.frame {
  aspect-ratio: 3/2; background-position: center; background-size: contain;
  background-repeat: no-repeat; cursor: zoom-in;
  user-select: none; -webkit-user-drag: none;
}
.arr {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--bg); color: var(--fg); cursor: pointer; font-size: 18px;
  box-shadow: var(--shadow-sm); transition: border-color .2s, transform .2s;
}
.arr:hover { border-color: var(--accent); transform: translateY(-50%) scale(1.06); }
.arr.l { left: -22px; } .arr.r { right: -22px; }
.phCnt { text-align: center; margin-top: 14px; font-size: 13px; color: var(--fg-2); }

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(2,6,23,.95);
  display: grid; place-items: center; cursor: zoom-out;
}
.lbImg {
  width: 93vw; height: 88vh; background: center/contain no-repeat;
  user-select: none; -webkit-user-drag: none;
}

/* ---------- contact ---------- */
.cForm { max-width: 560px; padding: 30px; display: grid; gap: 16px; }
.cForm label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.cForm input, .cForm textarea {
  font: inherit; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--fg);
  transition: border-color .2s;
}
.cForm input:focus, .cForm textarea:focus { border-color: var(--accent); outline: none; }
.formNote { font-size: 14px; min-height: 1.2em; }
.formNote.err { color: var(--down); }
.formNote.ok  { color: var(--up); }
.reveal { margin-top: 26px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
#revealVal { font-weight: 600; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 30px 0; font-size: 14px; }
.footIn { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--fg-2); }
footer a { color: var(--fg-2); }
