/* ===== CSS Variables (Dark-first) ===== */
:root{
  --bg: #0b0d12;
  --surface: #121212;
  --raise: #1a1a1a;
  --text: #e7ecf3;
  --muted: #b7c1d1;
  --border: #2e2e2e;
  --teal: #20c997; /* kept for links only */
  --gold: #ffd700; /* dots highlight */
  --danger: #ff6464;
  --chip: #a6f5e1;

  /* Neutral button palette */
  --btn-bg: #1b1b1b;
  --btn-bg-hover: #232323;
  --btn-text: #e7ecf3;
  --btn-border: #2b2b2b;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Utilities: reduce side space (wider content) */
.wrapper { width: min(1280px, 96vw); margin-inline: auto; } /* was 1152/92 */
.section-pad { padding: clamp(40px, 5vw, 80px) 0; }
.section-title { font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.25rem); margin: 0 0 1rem 0; text-align: center;}
.muted { color: var(--muted); }

/* Links (keep teal only for article/post CTAs) */
.link-cta {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed color-mix(in oklab, var(--teal) 40%, transparent);
}
.link-cta:hover { color: #19b58b; }

/* ===== HERO ===== */
.hero { position: relative; }
.hero-slider { position: relative; overflow: hidden; background: radial-gradient(
  1200px 600px at 80% -20%,
  rgba(32, 201, 151, 0.45),   /* brighter teal glow */
  transparent 60%
),
radial-gradient(
  800px 400px at 20% 120%,
  rgba(255, 215, 0, 0.25),    /* subtle gold highlight */
  transparent 70%
),
linear-gradient(
  180deg,
  var(--surface),
  var(--bg)
);}

/* Seam under the header: blur + gradient */
.hero-header-fade{
  position: absolute;
  top: 0; left: 0; right: 0; height: 72px;
  background: linear-gradient(to bottom, rgba(0,0,0,.65), rgba(0,0,0,0));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 3;
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
}
.hero-slide.is-active { opacity: 1; position: relative; }

.hero-media {
  width: 100%;
  height: clamp(420px, 58vw, 640px);
  object-fit: cover;
  display: block;
  filter: saturate(1.02);
}

/* Stronger black overlay for readability */
.hero-overlay{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
  to top,
  rgba(0,0,0,0.1625) 0%,
  rgba(0,0,0,0.10) 35%,
  rgba(0,0,0,0.14725) 60%,
  rgba(0,0,0,0.166) 100%
);
  z-index: 1;
}

.hero-content{
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 1rem;
  z-index: 2;
}
.hero-title{ font-size: clamp(1.75rem, 1.4rem + 2.2vw, 3rem); margin: 0 0 .5rem 0; }
.hero-subtitle{ font-size: clamp(1rem, .9rem + .6vw, 1.25rem); color: var(--muted); margin: 0 0 1.25rem 0; }

/* Centered controls (no bottom dock) */
.hero-controls{
  position: absolute;
  z-index: 3;
  display: flex;
  gap: .75rem;
  align-items: center;
}
.hero-controls--center{
  top: 95%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,.35);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .35rem .5rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-prev, .hero-next{
  background: transparent;
  color: var(--text);
  border: 0;
  border-radius: 10px;
  padding: .5rem .65rem;
  cursor: pointer;
}
.hero-prev:hover, .hero-next:hover{ background: rgba(255,255,255,.08); }

.hero-dots{ display: flex; gap: .35rem; padding: 0 .25rem; }
.hero-dot{
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.35);
  border: 0; cursor: pointer;
}
.hero-dot.is-active{ background: var(--teal); }

/* ===== WHY ===== */
.grid-3{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
@media (max-width: 880px){ .grid-3{ grid-template-columns: 1fr; } }

.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(16px, 2.2vw, 22px);
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
.feature{ text-align: center; }
.feature-icon{ font-size: 2rem; color: var(--gold); display: inline-block; margin-bottom: .5rem; }
.feature-title{ font-size: 1.25rem; margin: .25rem 0 .35rem; color: var(--teal); }
.feature-copy{ color: var(--muted); }

/* ===== ABOUT SPLIT ===== */
h2#about-title {
    text-align: left;
}
.about-wrap{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
}
@media (max-width: 980px){ .about-wrap{ grid-template-columns: 1fr; } }
.about-copy p{ color: var(--muted); max-width: 60ch; }

.about-media img{ width: 100%; height: auto; display: block; }
.soft-edge{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  mask-image: radial-gradient(circle at 30% 20%, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: radial-gradient(circle at 30% 20%, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
}
.soft-edge::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,.04), rgba(0,0,0,0));
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ===== BLOG ===== */
.blog-mag .wrapper{ position: relative; }
.featured-post{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(16px, 2.5vw, 28px);
  align-items: stretch;
  margin-bottom: clamp(24px, 3.5vw, 40px);
}
@media (max-width: 980px){ .featured-post{ grid-template-columns: 1fr; } }

.featured-thumb, .blog-thumb{ display: block; border-radius: 16px; overflow: hidden; }
.featured-img, .blog-img{ width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.001); }

.featured-content .post-title{ margin: .35rem 0 .5rem; font-size: clamp(1.25rem, 1.1rem + .8vw, 1.65rem); }
.meta-date{
  display: inline-block;
  font-size: .9rem;
  color: var(--chip);
  background: rgba(32,201,151,.12);
  padding: .25rem .5rem;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--teal) 30%, transparent);
}
.post-excerpt{ color: var(--muted); }

.blog-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 880px){ .blog-grid{ grid-template-columns: 1fr; } }

.blog-card .post-title{ margin: .35rem 0 .25rem; font-size: 1.1rem; }

/* ===== Buttons: scoped to front-page only so the header keeps its own theme ===== */
body.home .site-main .btn{
  display: inline-block;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--btn-border);
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  will-change: transform;
  max-width: 200px;
  margin:0 auto;
}

body.home .site-main .btn:hover { transform: translateY(-1px); }
body.home .site-main .btn:active { transform: translateY(0); }

body.home .site-main .btn-neutral{
  background: var(--btn-bg);
  color: var(--btn-text);
}
body.home .site-main .btn-neutral:hover{
  background: var(--btn-bg-hover);
}


/* ===== Focus ===== */
a, button { outline: none; }
a:focus-visible, button:focus-visible {
  box-shadow: 0 0 0 3px rgba(255,255,255,.18);
  border-radius: 10px;
}
img { border: 0; }


section.why.section-pad {
    background: radial-gradient(70% 70% at 50% 20%,
 color-mix(in oklab, var(--teal) 20%, transparent), transparent 60%), linear-gradient(to bottom, #0b0d12, #1a1a1a);
}

section.about-split.section-pad {
    background: radial-gradient(60% 80% at 90% 10%,
 color-mix(in oklab, var(--teal) 15%, transparent), transparent 70%), linear-gradient(to bottom, #0b0d12, #121212);
}

section.blog-mag.section-pad {
    background: radial-gradient(80% 100% at 50% 50%,
 color-mix(in oklab, var(--teal) 18%, transparent), transparent 70%), radial-gradient(70% 80% at 100% 0%,
 color-mix(in oklab, var(--gold) 15%, transparent), transparent 70%), #121212;
}