/* michaelpalhidai.com — 2026 redesign. Plain CSS, no build step. */
:root {
  --bg: #090e0d;
  --bg-2: #0f1715;
  --surface: #131d1a;
  --surface-2: #18241f;
  --border: rgba(255, 255, 255, 0.09);
  --text: #ecf5f0;
  --muted: #a9bdb4;
  --accent: #34d399;     /* emerald */
  --accent-2: #fbbf24;   /* amber */
  --accent-ink: #052e1f;
  --radius: 18px;
  --max: 1120px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(52, 211, 153, 0.12), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(251, 191, 36, 0.06), transparent 60%),
    var(--bg);
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #6ee7b7; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 0.6rem 1rem; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(9, 14, 13, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); background: rgba(9, 14, 13, 0.9); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.brand img { width: 30px; height: 30px; }
.brand:hover { color: var(--text); }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 1.75rem; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 0.75rem; }
@media (min-width: 820px) { .nav-links { display: flex; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.25rem; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px -10px rgba(52, 211, 153, 0.7); }
.btn-primary:hover { background: #6ee7b7; color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.25); color: var(--text); background: rgba(255,255,255,0.04); }
.btn-donate {
  background: linear-gradient(135deg, var(--accent-2), #f59e0b); color: #2a1a00; padding: 0.6rem 1.1rem;
  box-shadow: 0 8px 24px -10px rgba(251, 191, 36, 0.75);
}
.btn-donate:hover { color: #2a1a00; filter: brightness(1.06); }
.btn-donate svg { width: 18px; height: 18px; }
.btn[aria-disabled="true"] { opacity: 0.75; cursor: not-allowed; transform: none; box-shadow: none; }

/* Hero */
.hero { padding: clamp(3.5rem, 9vw, 7.5rem) 0 clamp(3rem, 7vw, 5.5rem); overflow-x: clip; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.4fr 0.8fr; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem; color: var(--accent); font-weight: 600;
  font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(52,211,153,0.18); }
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.6rem); margin-bottom: 0.35em; }
.gradient-text { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 40ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; padding: 0; list-style: none; }
.hero-tags li { font-size: 0.85rem; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 0.3rem 0.8rem; }
.portrait { position: relative; justify-self: center; width: min(320px, 72vw); aspect-ratio: 4 / 5; }
.portrait::before {
  content: ""; position: absolute; inset: -14px; border-radius: 32px;
  background: conic-gradient(from 140deg, rgba(52,211,153,0.6), rgba(251,191,36,0.5), rgba(52,211,153,0.1), rgba(52,211,153,0.6));
  filter: blur(22px); opacity: 0.55; animation: spin 14s linear infinite;
}
.portrait img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; border-radius: 28px; border: 1px solid var(--border); box-shadow: var(--shadow); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Sections */
section { scroll-margin-top: 80px; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.9rem, 4.5vw, 2.75rem); }
.section-head p { color: var(--muted); }
.kicker { color: var(--accent-2); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem; display: block; }

/* Venture cards */
.cards { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative; display: flex; flex-direction: column; padding: 1.75rem;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--card-accent, var(--accent)), transparent);
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.18); box-shadow: var(--shadow); }
.card-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.25rem;
  background: color-mix(in srgb, var(--card-accent, var(--accent)) 16%, transparent); color: var(--card-accent, var(--accent));
}
.card-icon svg { width: 26px; height: 26px; }
.card .role { font-size: 0.82rem; color: var(--card-accent, var(--accent)); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.35rem; }
.card h3 { font-size: 1.45rem; margin-bottom: 0.15rem; }
.card .tagline { color: var(--text); font-weight: 500; margin-bottom: 0.75rem; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card ul { margin: 0 0 1.25rem; padding-left: 1.1rem; color: var(--muted); font-size: 0.95rem; }
.card ul li { margin-bottom: 0.25rem; }
.card-footer { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.card .note { font-size: 0.8rem; color: var(--muted); border-top: 1px dashed var(--border); padding-top: 0.75rem; margin: 0.25rem 0 1rem; }
.card--verdant { --card-accent: #34d399; }
.card--solace { --card-accent: #60a5fa; }
.card--trading { --card-accent: #f472b6; }
.pill { font-size: 0.8rem; padding: 0.25rem 0.7rem; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }

/* About */
.about-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.2fr 1fr; gap: 3.5rem; } }
.about-text p { color: var(--muted); }
.about-text strong { color: var(--text); font-weight: 600; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.facts li { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.facts svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.facts b { display: block; font-weight: 600; }
.facts span { color: var(--muted); font-size: 0.95rem; }

/* Contact / CTA band */
.cta-band {
  border: 1px solid var(--border); border-radius: 24px; padding: clamp(2rem, 5vw, 3.5rem);
  background: radial-gradient(600px 300px at 100% 0%, rgba(52,211,153,0.16), transparent 70%), var(--surface);
  display: grid; gap: 1.5rem; align-items: center;
}
@media (min-width: 820px) { .cta-band { grid-template-columns: 1.3fr 1fr; } }
.cta-band h2 { font-size: clamp(1.75rem, 4vw, 2.4rem); }
.cta-band p { color: var(--muted); margin: 0; }
.socials { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.socials a {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.65rem 1rem; border-radius: 12px;
  border: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 500; background: rgba(255,255,255,0.02);
  transition: border-color .2s, background .2s, transform .2s;
}
.socials a:hover { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.05); transform: translateY(-1px); }
.socials svg { width: 18px; height: 18px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0 2.5rem; color: var(--muted); font-size: 0.9rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.footer-row nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-row a { color: var(--muted); text-decoration: none; }
.footer-row a:hover { color: var(--text); }
.disclaimer { margin-top: 1rem; font-size: 0.8rem; color: #8fa59b; max-width: 80ch; }

/* Donate page */
.page-hero { padding: clamp(3rem, 8vw, 5.5rem) 0 1rem; }
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.donate-grid { display: grid; gap: 1.25rem; }
@media (min-width: 820px) { .donate-grid { grid-template-columns: repeat(2, 1fr); } }
.donate-card { padding: 2rem; }
.donate-card h2 { font-size: 1.6rem; margin-bottom: 0.25rem; }
.donate-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: auto; }
.coming-soon { font-size: 0.85rem; color: var(--muted); margin-top: 0.75rem; }
.callout {
  margin-top: 2rem; padding: 1.25rem 1.4rem; border-radius: 14px; border: 1px solid rgba(251,191,36,0.3);
  background: rgba(251,191,36,0.06); color: var(--muted); font-size: 0.95rem;
}
.callout strong { color: var(--text); }

/* Reveal-on-scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
