/* ══════════════════════════════════════════════
   DESIGN TOKENS  — warm terracotta / sand / slate
══════════════════════════════════════════════ */
:root {
  --sand:      #f8f4ed;
  --sand2:     #f0ead8;
  --sand3:     #e6ddc8;
  --white:     #ffffff;
  --border:    #e0d8c8;
  --border2:   #cec5b0;

  --ink:       #1a1410;
  --ink2:      #4a3f35;
  --ink3:      #9c8f82;

  --terra:     #c75c3e;    /* terracotta primary */
  --terra2:    #a8472b;
  --terra-l:   #fdf0ec;
  --terra-m:   rgba(199,92,62,.15);

  --forest:    #2d5a3d;   /* forest green secondary */
  --forest-l:  #eaf2ed;

  --gold:      #c49a2e;
  --gold-l:    #fdf7e6;

  --navy:      #1e3a5f;
  --navy-l:    #e8eef6;

  --plum:      #6b3d6b;
  --plum-l:    #f5edf5;

  --fd: 'Playfair Display', 'Zodiak', Georgia, serif;
  --fb: 'Raleway', 'Cabinet Grotesk', sans-serif;

  --r:   8px;
  --rl:  14px;
  --rxl: 20px;
  --sh1: 0 1px 3px rgba(26,20,16,.06), 0 4px 14px rgba(26,20,16,.06);
  --sh2: 0 6px 24px rgba(26,20,16,.1),  0 2px 8px rgba(26,20,16,.06);
  --sh3: 0 20px 60px rgba(26,20,16,.16);
  --tr:  all .22s cubic-bezier(.4,0,.2,1);
}

*,*::before,*::after { box-sizing:border-box; margin:0; padding:0 }
html { scroll-behavior:smooth }
body {
  font-family: var(--fb);
  background: var(--sand);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration:none; color:inherit }
::selection { background:var(--terra); color:#fff }
::-webkit-scrollbar { width:5px }
::-webkit-scrollbar-thumb { background:var(--border2); border-radius:4px }

/* ══════════════════════════════════════════════
   TOPBAR — thin announcement strip
══════════════════════════════════════════════ */
.topbar {
  background: var(--terra);
  color: #fff;
  text-align: center;
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}
.topbar span { opacity:.8 }
.topbar strong { opacity:1 }

/* ══════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════ */
.site-nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(248,244,237,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-in {
  max-width: 1320px; margin: 0 auto;
  height: 60px; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
}
.logo-sq {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--terra); color: #fff;
  display: grid; place-items: center;
  font-family: var(--fb); font-size: 12px; font-weight: 900;
  letter-spacing: -.02em;
}
.logo-text {
  font-family: var(--fd); font-size: 18px; font-weight: 700;
  color: var(--ink); letter-spacing: -.01em;
}
.logo-text span { color: var(--terra); }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nl {
  font-size: 13px; font-weight: 600; color: var(--ink2);
  padding: 6px 14px; border-radius: var(--r); transition: var(--tr);
}
.nl:hover { color: var(--ink); background: var(--sand2); }

.btn-nl {
  font-size: 13px; font-weight: 700; color: var(--terra);
  border: 1.5px solid rgba(199,92,62,.35); background: transparent;
  padding: 7px 18px; border-radius: var(--r); cursor: pointer; transition: var(--tr);
}
.btn-nl:hover { background: var(--terra-l); border-color: var(--terra); }

.btn-nl-solid {
  font-size: 13px; font-weight: 800; color: #fff;
  background: var(--terra); border: none;
  padding: 8px 20px; border-radius: var(--r);
  cursor: pointer; transition: var(--tr); margin-left: 6px;
}
.btn-nl-solid:hover { background: var(--terra2); transform: translateY(-1px); }

.nav-tog {
  display: none; background: none; border: 1.5px solid var(--border2);
  color: var(--ink2); padding: 5px 9px; border-radius: var(--r);
  cursor: pointer; font-size: 18px;
}
.mob-nav {
  display: none; flex-direction: column; gap: 4px;
  position: fixed; top: 0; left: 0; right: 0; z-index: 1100;
  background: var(--white); padding: 20px;
  box-shadow: var(--sh3); border-bottom: 1px solid var(--border);
}
.mob-nav.open { display: flex; }
.mob-nav-close {
  align-self: flex-end; background: none; border: none;
  font-size: 20px; cursor: pointer; color: var(--ink2); margin-bottom: 8px;
}
.mob-nav .nl { padding: 10px 12px; }

/* ══════════════════════════════════════════════
   HERO  — compact split layout
══════════════════════════════════════════════ */
.hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero-grid {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 420px;
  min-height: 400px;
}

/* Left: content */
.hero-left {
  padding: 52px 56px 52px 28px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
}
/* vertical accent line */
.hero-left::after {
  content: '';
  position: absolute; right: 0; top: 15%; bottom: 15%;
  width: 1px; background: var(--border);
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--terra-l); border: 1px solid rgba(199,92,62,.22);
  color: var(--terra); font-size: 11px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 99px; margin-bottom: 22px;
  width: fit-content;
}
.hero-tag .live {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--terra); animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }

.hero h1 {
  font-family: var(--fd);
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 700; line-height: 1.12; letter-spacing: -.02em;
  color: var(--ink); margin-bottom: 16px;
}
.hero h1 em { font-style: italic; color: var(--terra); }

.hero-body {
  font-size: 15px; font-weight: 400; color: var(--ink2);
  line-height: 1.75; max-width: 460px; margin-bottom: 30px;
}

.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }

.btn-hero {
  font-size: 13px; font-weight: 800;
  background: var(--terra); color: #fff;
  padding: 12px 26px; border-radius: var(--r); border: none;
  cursor: pointer; transition: var(--tr);
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 14px rgba(199,92,62,.3);
}
.btn-hero:hover { background: var(--terra2); transform: translateY(-2px); }

.btn-hero-out {
  font-size: 13px; font-weight: 700;
  background: transparent; color: var(--ink);
  padding: 11px 22px; border-radius: var(--r);
  border: 1.5px solid var(--border2); cursor: pointer; transition: var(--tr);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-hero-out:hover { border-color: var(--terra); color: var(--terra); }

/* hero stat row */
.hero-nums {
  display: flex; gap: 0;
  border: 1px solid var(--border); border-radius: var(--rl);
  overflow: hidden; background: var(--sand);
  max-width: 400px;
}
.hn {
  flex: 1; padding: 14px 12px; text-align: center;
  border-right: 1px solid var(--border); transition: var(--tr);
}
.hn:last-child { border-right: none; }
.hn:hover { background: var(--terra-l); }
.hn-v {
  font-family: var(--fd); font-size: 24px; font-weight: 700;
  font-style: italic; color: var(--terra); line-height: 1;
  margin-bottom: 3px;
}
.hn-l {
  font-size: 10px; font-weight: 700; color: var(--ink3);
  letter-spacing: .08em; text-transform: uppercase;
}

/* Right: image */
.hero-right {
  position: relative; overflow: hidden;
}
.hero-right img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* overlay gradient */
.hero-right::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right, rgba(255,255,255,.18) 0%, transparent 40%);
}
/* floating card on image */
.hero-float {
  position: absolute; bottom: 24px; left: -18px; z-index: 2;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--rl); padding: 14px 18px;
  box-shadow: var(--sh2);
  display: flex; align-items: center; gap: 12px;
}
.hf-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--terra-l); display: grid; place-items: center;
  font-size: 18px; flex-shrink: 0;
}
.hf-lbl { font-size: 10px; font-weight: 700; color: var(--ink3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.hf-val { font-family: var(--fd); font-size: 16px; font-weight: 700; font-style: italic; color: var(--terra); line-height: 1; }

/* ══════════════════════════════════════════════
   COURSES SECTION
══════════════════════════════════════════════ */
#cursussen {
  padding: 64px 0 80px;
  background: var(--sand);
}
.sec-max { max-width: 1320px; margin: 0 auto; padding: 0 28px; }

/* section intro */
.sec-intro {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 16px; margin-bottom: 32px;
}
.sec-ey {
  font-size: 11px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--terra); margin-bottom: 6px;
}
.sec-h {
  font-family: var(--fd); font-size: clamp(24px, 3vw, 36px);
  font-weight: 700; font-style: italic; color: var(--ink);
  letter-spacing: -.01em; margin-bottom: 4px;
}
.sec-sub { font-size: 13px; font-weight: 500; color: var(--ink3); }

/* controls: search + sort */
.sec-ctrl { display: flex; align-items: center; gap: 10px; }
.s-wrap { position: relative; }
.s-wrap i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink3); font-size: 13px; pointer-events: none; }
.s-inp {
  font-family: var(--fb); font-size: 13px; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--border2);
  padding: 9px 14px 9px 34px; border-radius: 99px; width: 200px;
  outline: none; transition: var(--tr);
}
.s-inp::placeholder { color: var(--ink3); }
.s-inp:focus { border-color: var(--terra); box-shadow: 0 0 0 3px var(--terra-l); }
.s-sel {
  font-family: var(--fb); font-size: 13px; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--border2);
  padding: 9px 14px; border-radius: 99px; outline: none; cursor: pointer;
}

/* category pills */
.cat-pills {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding-bottom: 24px; border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.cpill {
  font-size: 12px; font-weight: 700;
  padding: 7px 16px; border-radius: 99px;
  border: 1.5px solid var(--border2); color: var(--ink2);
  background: var(--white); cursor: pointer; transition: var(--tr);
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
}
.cpill:hover { border-color: var(--terra); color: var(--terra); }
.cpill.active { background: var(--terra); color: #fff; border-color: var(--terra); }
.cpill .pn {
  font-size: 10px; padding: 1px 6px; border-radius: 99px;
  background: rgba(255,255,255,.22); color: inherit;
}
.cpill:not(.active) .pn { background: var(--sand2); color: var(--ink3); }

.c-count { font-size: 12px; font-weight: 600; color: var(--ink3); margin-bottom: 20px; }

/* ══════════════════════════════════════════════
   COURSE CARDS  — unique stacked-info design
══════════════════════════════════════════════ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
  gap: 20px;
}

.cc {
  background: var(--white);
  border-radius: var(--rxl);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: var(--tr);
  box-shadow: var(--sh1);
  display: flex; flex-direction: column;
  position: relative;
}
.cc:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh3);
  border-color: transparent;
}

/* Left accent bar (coloured per category) */
.cc-accent {
  position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
}

/* Card body with left padding to clear accent bar */
.cc-inner { padding: 22px 20px 20px 24px; flex: 1; display: flex; flex-direction: column; }

/* emoji circle */
.cc-em-wrap {
  /* width: 56px;  */
  height: 86px; 
  border-radius: 14px;
  display: grid; place-items: center; font-size: 28px;
  margin-bottom: 16px; flex-shrink: 0;
  position: relative;
}
.cc-em-wrap::after {
  content: attr(data-cat);
  position: absolute; bottom: -8px; right: -8px;
  font-size: 9px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; padding: 2px 7px; border-radius: 99px;
  background: var(--white); border: 1px solid var(--border);
  color: var(--ink3); white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.cc-title {
  font-family: var(--fd); font-size: 17px; font-weight: 700;
  font-style: italic; color: var(--ink); line-height: 1.3;
  margin-bottom: 6px;
}
.cc-sub {
  font-size: 11px; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink3); margin-bottom: 12px;
}
.cc-desc {
  font-size: 13px; color: var(--ink2); line-height: 1.6; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 16px;
}

/* info pills row */
.cc-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.cc-pill {
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--sand); border: 1px solid var(--border);
  color: var(--ink2);
}
.cc-pill i { font-size: 11px; color: var(--ink3); }

/* Card footer */
.cc-footer {
  border-top: 1px solid var(--border);
  padding: 14px 20px 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
.cc-mentor {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: var(--ink3);
}
.btn-cc {
  font-size: 12px; font-weight: 800;
  padding: 9px 18px; border-radius: 99px; border: none;
  cursor: pointer; transition: var(--tr); color: #fff;
  display: inline-flex; align-items: center; gap: 6px;
  flex-shrink: 0;
}
.btn-cc:hover { transform: translateY(-1px); filter: brightness(1.08); }

.c-empty {
  grid-column: 1/-1; text-align: center;
  padding: 64px 20px; color: var(--ink3);
}
.c-empty i { font-size: 40px; display: block; margin-bottom: 12px; color: var(--border2); }

/* ══════════════════════════════════════════════
   COURSE MODAL  — completely different design
   Full-height right-side drawer feel inside modal
══════════════════════════════════════════════ */
#cModal .modal-dialog {
  max-width: 900px;
  margin: 1.5rem auto;
}
#cModal .modal-content {
  border: none;
  border-radius: var(--rxl);
  box-shadow: var(--sh3);
  overflow: hidden;
  background: var(--white);
}
#cModal .modal-header,
#cModal .modal-footer { display: none; }
#cModal .modal-body   { padding: 0; }

.md-outer { display: flex; flex-direction: column; max-height: 90vh; }

/* ── TOP: Split header ── */
.md-head {
  display: grid;
  grid-template-columns: 1fr 240px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.md-head-left {
  padding: 28px 28px 24px;
  position: relative; overflow: hidden;
}
.md-head-left::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 160px; height: 160px; border-radius: 50%;
  opacity: .07; pointer-events: none;
}
.md-close {
  position: absolute; top: 16px; right: 16px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0,0,0,.07); border: none;
  color: var(--ink2); font-size: 14px; cursor: pointer;
  display: grid; place-items: center; transition: var(--tr);
}
.md-close:hover { background: rgba(0,0,0,.14); }

.md-em-badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.md-em { font-size: 36px; line-height: 1; }
.md-cat-tag {
  font-size: 10px; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; padding: 4px 12px; border-radius: 99px;
  color: #fff;
}
.md-title {
  font-family: var(--fd); font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 700; font-style: italic; color: var(--ink);
  line-height: 1.2; margin-bottom: 8px;
}
.md-sub {
  font-size: 11px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink3);
}

/* head right: coloured stat block */
.md-head-right {
  padding: 24px 20px;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  border-left: 1px solid var(--border);
}
.md-stat {
  display: flex; align-items: center; gap: 12px;
}
.md-stat-ic {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center; font-size: 15px; flex-shrink: 0;
  background: var(--sand2); border: 1px solid var(--border);
}
.md-stat-lbl { font-size: 9px; font-weight: 800; color: var(--ink3); letter-spacing: .09em; text-transform: uppercase; margin-bottom: 2px; }
.md-stat-val { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.1; }

/* ── SCROLL BODY ── */
.md-scroll { overflow-y: auto; flex: 1; }

/* video */
.md-vid { background: #000; flex-shrink: 0; }
.md-vid iframe { width: 100%; display: block; border: none; }

/* 3-column content grid */
.md-content {
  display: grid;
  grid-template-columns: 1fr 1fr 200px;
  gap: 0;
}

.md-col {
  padding: 24px 22px;
  border-right: 1px solid var(--border);
}
.md-col:last-child { border-right: none; background: var(--sand); }

.md-col-h {
  font-size: 10px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--terra);
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.md-col-h::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* leerdoelen */
.md-ld { list-style: none; padding: 0; }
.md-ld li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--ink2); padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.md-ld li:last-child { border-bottom: none; }
.md-ld-dot {
  width: 20px; height: 20px; border-radius: 5px;
  display: grid; place-items: center; font-size: 11px;
  color: #fff; flex-shrink: 0; margin-top: 1px;
}

/* info rows */
.md-info-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--border);
}
.md-info-row:last-child { border-bottom: none; }
.md-info-ic {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--sand2); display: grid; place-items: center;
  font-size: 13px; flex-shrink: 0; color: var(--terra);
  border: 1px solid var(--border);
}
.md-info-lbl { font-size: 9px; font-weight: 800; color: var(--ink3); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.md-info-val { font-size: 13px; font-weight: 500; color: var(--ink); line-height: 1.4; }

/* sidebar col */
.md-side-item { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.md-side-item:last-child { border-bottom: none; margin-bottom: 0; }
.md-side-lbl { font-size: 9px; font-weight: 800; color: var(--ink3); letter-spacing: .09em; text-transform: uppercase; margin-bottom: 5px; }
.md-side-val { font-family: var(--fd); font-size: 15px; font-weight: 700; font-style: italic; color: var(--ink); line-height: 1.25; }
.md-side-sub { font-size: 11px; color: var(--ink3); margin-top: 2px; }

/* ── MODAL FOOTER ── */
.md-foot {
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; flex-shrink: 0;
  background: var(--sand);
}
.btn-md-p {
  font-size: 13px; font-weight: 800; color: #fff;
  padding: 11px 24px; border-radius: 99px; border: none;
  cursor: pointer; transition: var(--tr);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-md-p:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-md-s {
  font-size: 13px; font-weight: 600; color: var(--ink2);
  background: transparent; border: 1.5px solid var(--border2);
  padding: 10px 22px; border-radius: 99px; cursor: pointer; transition: var(--tr);
}
.btn-md-s:hover { border-color: var(--ink); color: var(--ink); }

/* ══════════════════════════════════════════════
   CTA SECTION
══════════════════════════════════════════════ */
.cta-sec {
  padding: 88px 40px;
  position: relative; overflow: hidden; text-align: center;
}
.cta-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?w=1400&q=75');
  background-size: cover; background-position: center 30%;
}
.cta-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(199,92,62,.93) 0%, rgba(168,71,43,.9) 100%);
}
.cta-cnt { position: relative; z-index: 1; }
.cta-sec h2 {
  font-family: var(--fd); font-size: clamp(28px, 4.5vw, 50px);
  font-weight: 700; font-style: italic; color: #fff;
  letter-spacing: -.02em; margin-bottom: 12px;
}
.cta-sec p { font-size: 16px; font-weight: 400; color: rgba(255,255,255,.8); margin-bottom: 32px; max-width: 440px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-cw { font-size: 14px; font-weight: 800; background: #fff; color: var(--terra); padding: 13px 32px; border-radius: 99px; border: none; cursor: pointer; transition: var(--tr); display: inline-flex; align-items: center; gap: 9px; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.btn-cw:hover { background: var(--sand); transform: translateY(-2px); }
.btn-co { font-size: 14px; font-weight: 700; background: transparent; color: #fff; padding: 12px 28px; border-radius: 99px; border: 2px solid rgba(255,255,255,.5); cursor: pointer; transition: var(--tr); display: inline-flex; align-items: center; gap: 9px; }
.btn-co:hover { border-color: #fff; background: rgba(255,255,255,.12); }

/* ══════════════════════════════════════════════
   PLATFORM  — 3-column feature row + bento
══════════════════════════════════════════════ */
.platform {
  padding: 80px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.platform::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1400&q=60');
  background-size: cover; background-position: center;
  opacity: .03;
}
.plat-in { position: relative; z-index: 1; max-width: 1320px; margin: 0 auto; padding: 0 28px; }

.plat-hd { text-align: center; margin-bottom: 52px; }
.plat-ey { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--terra); margin-bottom: 8px; }
.plat-ttl { font-family: var(--fd); font-size: clamp(26px, 3.5vw, 40px); font-weight: 700; font-style: italic; color: var(--ink); margin-bottom: 10px; }
.plat-ttl span { color: var(--terra); }
.plat-sub { font-size: 15px; color: var(--ink2); max-width: 500px; margin: 0 auto; }

/* 4 feature cards */
.plat-feats {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 16px; margin-bottom: 40px;
}
.pf {
  background: var(--sand); border: 1px solid var(--border);
  border-radius: var(--rl); padding: 22px 18px;
  transition: var(--tr); box-shadow: var(--sh1);
}
.pf:hover { transform: translateY(-3px); box-shadow: var(--sh2); background: var(--white); }
.pf-ic {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-size: 20px;
  margin-bottom: 14px; border: 1px solid var(--border);
}
.pf-t { font-size: 14px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.pf-s { font-size: 12px; color: var(--ink3); line-height: 1.5; }

/* bento grid devices */
.dev-bento {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px; margin-bottom: 16px;
}
.dv {
  background: var(--sand); border: 1px solid var(--border);
  border-radius: var(--rl); padding: 20px 16px; text-align: center;
  transition: var(--tr); box-shadow: var(--sh1);
}
.dv:hover { transform: translateY(-3px); box-shadow: var(--sh2); background: var(--white); }
.dv.wide {
  grid-column: span 2; display: flex; align-items: center;
  gap: 18px; text-align: left;
  background: linear-gradient(135deg, var(--terra) 0%, var(--terra2) 100%);
  border-color: transparent; color: #fff;
}
.dv.wide:hover { filter: brightness(1.05); }
.dv .de { font-size: 26px; margin-bottom: 8px; }
.dv.wide .de { font-size: 32px; margin-bottom: 0; flex-shrink: 0; }
.dv .dn { font-size: 14px; font-weight: 800; color: var(--ink); margin-bottom: 2px; }
.dv .ds { font-size: 11px; color: var(--ink3); }
.dv.wide .dn { color: #fff; }
.dv.wide .ds { color: rgba(255,255,255,.75); }

/* QR panel */
.plat-qr {
  background: var(--sand); border: 1px solid var(--border);
  border-radius: var(--rl); padding: 24px 28px;
  display: grid; grid-template-columns: auto 1fr;
  gap: 24px; align-items: center;
}
.qr-img img { width: 100px; height: 100px; border-radius: 8px; border: 1px solid var(--border); display: block; }
.qr-t h4 { font-family: var(--fd); font-size: 20px; font-weight: 700; font-style: italic; color: var(--ink); margin-bottom: 5px; }
.qr-t p  { font-size: 13px; color: var(--ink3); margin-bottom: 14px; }
.store-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-st { font-size: 13px; font-weight: 700; background: var(--ink); color: #fff; border: none; padding: 10px 20px; border-radius: var(--r); cursor: pointer; transition: var(--tr); display: inline-flex; align-items: center; gap: 7px; }
.btn-st:hover { background: var(--terra); transform: translateY(-1px); }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.site-foot {
  background: var(--sand2); border-top: 1px solid var(--border);
  padding: 28px; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
}
.foot-logo { display: flex; align-items: center; gap: 10px; }
.foot-sq { width: 28px; height: 28px; border-radius: 7px; background: var(--terra); display: grid; place-items: center; font-family: var(--fb); font-size: 10px; font-weight: 900; color: #fff; }
.foot-nm { font-family: var(--fd); font-size: 16px; font-weight: 700; font-style: italic; color: var(--ink); }
.foot-nm span { color: var(--terra); font-style: normal; }
.foot-copy { font-size: 12px; font-weight: 500; color: var(--ink3); }
.foot-lnk { font-size: 12px; font-weight: 600; color: var(--ink2); transition: color .18s; }
.foot-lnk:hover { color: var(--terra); }

/* ══════════════════════════════════════════════
   LOGIN MODAL
══════════════════════════════════════════════ */
#lModal .modal-content {
  border: none; border-radius: var(--rxl);
  box-shadow: var(--sh3); max-width: 400px; margin: 0 auto;
  background: var(--white);
}
#lModal .modal-header { border-bottom: 1px solid var(--border); padding: 22px 26px 16px; }
#lModal .modal-title { font-family: var(--fd); font-size: 20px; font-weight: 700; font-style: italic; color: var(--ink); }
#lModal .modal-body { padding: 20px 26px 28px; }
.l-sub { font-size: 13px; color: var(--ink3); margin-bottom: 20px; }
.l-lbl { font-size: 10px; font-weight: 800; color: var(--ink3); letter-spacing: .07em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.l-inp {
  width: 100%; padding: 11px 14px; border-radius: var(--r);
  background: var(--sand); border: 1.5px solid var(--border2);
  color: var(--ink); font-family: var(--fb); font-size: 14px;
  outline: none; margin-bottom: 14px; transition: border-color .18s;
}
.l-inp::placeholder { color: var(--ink3); }
.l-inp:focus { border-color: var(--terra); box-shadow: 0 0 0 3px var(--terra-l); }
.l-go {
  width: 100%; padding: 13px; font-family: var(--fb); font-size: 14px; font-weight: 800;
  background: var(--terra); color: #fff; border: none; border-radius: 99px;
  cursor: pointer; transition: var(--tr);
}
.l-go:hover { background: var(--terra2); }

/* ══════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@keyframes fU { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:translateY(0)} }
.hero-tag   { animation: fU .45s ease both .1s; }
.hero h1    { animation: fU .45s ease both .2s; }
.hero-body  { animation: fU .45s ease both .28s; }
.hero-btns  { animation: fU .45s ease both .36s; }
.hero-nums  { animation: fU .45s ease both .44s; }
.hero-right { animation: fU .5s ease both .22s; }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width:1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { padding: 44px 28px 44px; }
  .hero-left::after { display: none; }
  .plat-feats { grid-template-columns: repeat(2,1fr); }
}
@media (max-width:900px) {
  .md-head { grid-template-columns: 1fr; }
  .md-head-right { border-left: none; border-top: 1px solid var(--border); flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .md-content { grid-template-columns: 1fr; }
  .md-col { border-right: none; border-bottom: 1px solid var(--border); }
  .md-col:last-child { border-bottom: none; }
  .dev-bento { grid-template-columns: 1fr 1fr; }
  .dv.wide { grid-column: span 2; }
  .plat-qr { grid-template-columns: 1fr; }
  .qr-img { display: none; }
}
@media (max-width:768px) {
  .nav-in { padding: 0 18px; }
  .nav-links { display: none; }
  .nav-tog { display: block; }
  .hero-left { padding: 36px 18px 36px; }
  .hero h1 { font-size: clamp(26px, 8vw, 38px); }
  .hero-nums { grid-template-columns: repeat(2,1fr); max-width: 100%; display: grid; }
  .hn { border-bottom: 1px solid var(--border); }
  .hero-btns { flex-direction: column; }
  .btn-hero, .btn-hero-out { width: 100%; justify-content: center; }
  .sec-max { padding: 0 16px; }
  .sec-intro { flex-direction: column; align-items: flex-start; }
  .cards-grid { grid-template-columns: 1fr; }
  .cta-sec { padding: 72px 24px; }
  .cta-btns { flex-direction: column; align-items: center; }
  .btn-cw, .btn-co { width: 100%; justify-content: center; }
  .plat-in { padding: 0 18px; }
  .plat-feats { grid-template-columns: 1fr 1fr; }
  .site-foot { flex-direction: column; align-items: flex-start; padding: 22px 18px; }
}
@media (max-width:480px) {
  .plat-feats { grid-template-columns: 1fr; }
  .dev-bento { grid-template-columns: 1fr 1fr; }
  .dv.wide { flex-direction: column; text-align: center; }
}