/* ==========================================================================
   PentaSkills — base styles
   System-font, dependency-free stylesheet. No external requests.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f7f7;
  --bg-dark: #0a1a22;
  --bg-dark-alt: #0f2530;
  --ink: #0c1f27;
  --ink-soft: #4a5c63;
  --ink-on-dark: #eef5f4;
  --ink-on-dark-soft: #a9c0bd;
  --line: #e2e8e8;
  --line-dark: #1c3540;
  --primary: #0f7a63;
  --primary-dark: #0b5c4b;
  --primary-tint: #e5f3ef;
  --accent: #d9a441;
  --radius: 14px;
  --max-w: 1120px;
  --shadow: 0 8px 30px rgba(10, 26, 34, 0.08);
  --glow-dark:
    radial-gradient(500px circle at 20% 25%, rgba(127, 217, 193, 0.18), transparent 60%),
    radial-gradient(420px circle at 80% 75%, rgba(15, 122, 99, 0.14), transparent 65%);
  --glow-light: radial-gradient(500px circle at 85% 0%, rgba(15, 122, 99, 0.08), transparent 65%);
  --danger: #c0392b;
  --font-display: ui-serif, Georgia, "Times New Roman", serif;
  --header-bg: rgba(255, 255, 255, 0.9);
  font-size: 16px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--bg-dark);
    --bg-alt: var(--bg-dark-alt);
    --ink: var(--ink-on-dark);
    --ink-soft: var(--ink-on-dark-soft);
    --line: var(--line-dark);
    --header-bg: rgba(10, 26, 34, 0.85);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1, h2 { font-family: var(--font-display); letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4vw + 1rem, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 2.4vw + 1rem, 2.3rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; color: var(--ink-soft); }
.lede { font-size: 1.15rem; color: var(--ink-soft); }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }
section.tight { padding: 56px 0; }
.bg-alt { background: var(--bg-alt); }
.bg-dark { background: var(--bg-dark); color: var(--ink-on-dark); }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-dark p { color: var(--ink-on-dark-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.bg-dark .eyebrow { color: #7fd9c1; }
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.96rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.bg-dark .btn-ghost { border-color: rgba(255,255,255,0.25); color: #fff; }
.bg-dark .btn-ghost:hover { border-color: #7fd9c1; color: #7fd9c1; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { height: 26px; width: auto; }
.bg-dark .brand-logo { filter: brightness(0) invert(1); }
.footer-brand .brand-logo { height: 24px; filter: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); border-color: var(--primary); }
.nav-cta { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px 22px;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; box-shadow: var(--shadow); }
  .nav-links a { width: 100%; padding: 10px 0; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--glow-dark);
  background-size: 140% 140%;
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

/* Glow horizon — layered blurred arcs peeking in from the top of the hero. */
.glow-horizon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.glow-horizon .arc {
  position: absolute;
  left: 50%;
  border-radius: 50%;
  transform: translateX(-50%);
}
.glow-horizon .arc-1 {
  width: 720px;
  height: 720px;
  top: -640px;
  background: radial-gradient(circle, rgba(127, 217, 193, 0.9), transparent 70%);
  filter: blur(40px);
}
.glow-horizon .arc-2 {
  width: 1000px;
  height: 1000px;
  top: -860px;
  background: radial-gradient(circle, rgba(15, 122, 99, 0.65), transparent 70%);
  filter: blur(55px);
}
.glow-horizon .arc-3 {
  width: 1400px;
  height: 1400px;
  top: -1180px;
  background: radial-gradient(circle, rgba(15, 37, 48, 0.75), transparent 70%);
  filter: blur(25px);
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes glow-horizon-in {
    from { opacity: 0; filter: blur(15px); transform: scaleY(1.4); }
    to   { opacity: 1; filter: blur(0); transform: scaleY(1); }
  }
  @keyframes arc-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  .glow-horizon {
    animation: glow-horizon-in 2s cubic-bezier(0.16, 1, 0.3, 1) both;
    transform-origin: top center;
  }
  .glow-horizon .arc { animation: arc-fade 1.4s ease-out both; }
  .glow-horizon .arc-1 { animation-delay: 1s; }
  .glow-horizon .arc-2 { animation-delay: 0.5s; }
  .glow-horizon .arc-3 { animation-delay: 0s; }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes blob-drift {
    0%   { background-position: 0% 0%; }
    50%  { background-position: 30% 20%; }
    100% { background-position: 0% 0%; }
  }
  .hero::before, .cta-band::before {
    animation: blob-drift 16s ease-in-out infinite;
  }
}

/* Cursor-tracked spotlight: JS sets --spot-x/--spot-y in % on mousemove. */
.spotlight { position: relative; overflow: hidden; }
.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px circle at var(--spot-x, 50%) var(--spot-y, 0%), rgba(127, 217, 193, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.spotlight:hover::after { opacity: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 { margin-bottom: 20px; }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-art { position: relative; }

@media (prefers-reduced-motion: no-preference) {
  @keyframes node-drift {
    0%   { transform: translate3d(0, 0, 0); opacity: 0.85; }
    50%  { transform: translate3d(0, -6px, 0); opacity: 1; }
    100% { transform: translate3d(0, 0, 0); opacity: 0.85; }
  }
  @keyframes line-flow {
    to { stroke-dashoffset: -120; }
  }
  .hero-art svg circle {
    transform-box: fill-box;
    transform-origin: center;
    animation: node-drift 7s ease-in-out infinite;
  }
  .hero-art svg circle:nth-of-type(2) { animation-delay: -1.1s; animation-duration: 8s; }
  .hero-art svg circle:nth-of-type(3) { animation-delay: -2.3s; animation-duration: 6.4s; }
  .hero-art svg circle:nth-of-type(4) { animation-delay: -3.6s; animation-duration: 7.6s; }
  .hero-art svg circle:nth-of-type(5) { animation-delay: -0.6s; animation-duration: 6.8s; }
  .hero-art svg circle:nth-of-type(6) { animation-delay: -4.2s; animation-duration: 8.4s; }
  .hero-art svg circle:nth-of-type(7) { animation-delay: -1.8s; animation-duration: 7.2s; }
  .hero-art svg circle:nth-of-type(8) { animation-delay: -3s; animation-duration: 6.6s; }
  .hero-art svg g path {
    stroke-dasharray: 6 10;
    animation: line-flow 9s linear infinite;
  }
}

.stat-row {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
}
.stat-row .stat {
  font-size: 0.9rem;
  color: var(--ink-on-dark-soft);
  max-width: 220px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}
.stat strong { display: block; color: #fff; font-size: 1.05rem; margin-bottom: 2px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

/* Bento layout: asymmetric tile spans on wide screens only; falls back to the
   regular even grid below 901px. */
@media (min-width: 901px) {
  .grid-3.bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; }
  .grid-3.bento > .card:nth-child(1) { grid-column: span 2; }
  .grid-3.bento > .card:nth-child(3) { grid-column: span 3; display: flex; align-items: center; gap: 24px; }
  .grid-3.bento > .card:nth-child(3) .icon { margin-bottom: 0; flex-shrink: 0; }
  .grid-3.bento > .card:nth-child(3) p { margin-bottom: 0; }

  .grid-4.bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; }
  .grid-4.bento > .card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .grid-4.bento > .card:nth-child(4) { grid-column: span 2; }
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(280px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(15, 122, 99, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card:hover::after { opacity: 1; }
.card > * { position: relative; }
.card .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--primary-tint);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card ul { margin: 14px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 0.94rem; }
.card li { margin-bottom: 6px; }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Steps ---------- */
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 750;
}

/* ---------- Region / pills ---------- */
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--ink-soft);
  background: rgba(15, 122, 99, 0.06);
  backdrop-filter: blur(6px);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.pill:hover { transform: translateY(-1px); border-color: var(--primary); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--bg-dark);
  color: #fff;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--glow-dark);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: var(--ink-on-dark-soft); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  background: var(--bg-alt);
}
.footer-grid {
  display: flex;
  justify-content: flex-start;
  gap: 96px;
  flex-wrap: wrap;
}
.footer-brand p { max-width: 320px; font-size: 0.92rem; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-links h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin-bottom: 14px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { text-decoration: none; font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

/* ---------- Forms ---------- */
.form-card {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--glow-light);
  pointer-events: none;
}
.form-card > * { position: relative; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 650; font-size: 0.9rem; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) {
  border-color: var(--danger);
}
.field textarea { resize: vertical; min-height: 130px; }
.btn.is-loading { opacity: 0.7; cursor: wait; pointer-events: none; }
.h-captcha { margin-bottom: 18px; }
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 14px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 14px 0 0; }

/* ---------- Values / about page ---------- */
.value-item { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.value-item:last-child { border-bottom: 1px solid var(--line); }
.value-item .num { font-weight: 750; color: var(--primary); font-size: 1.1rem; width: 34px; flex-shrink: 0; }

/* ---------- Scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
