/* ========== Beit Lahia Tech — design tokens (from the brand identity) ========== */
:root {
  --night: #0B1220;
  --night-2: #111a2e;
  --night-deep: #070B14;
  --emerald: #34D399;
  --emerald-500: #10B981;
  --emerald-deep: #047857;
  --emerald-deeper: #065F46;
  --strawberry: #F43F5E;
  --strawberry-soft: #FDA4AF;
  --sand: #F5F3EE;
  --slate: #475569;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --line: #E2E8F0;
  --white: #FFFFFF;

  --font-head: 'Readex Pro', Tahoma, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', Tahoma, sans-serif;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(11, 18, 32, .06), 0 8px 24px rgba(11, 18, 32, .06);
  --container: 1180px;
}

*, *::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;
  background: var(--white);
  color: var(--night);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.3; margin: 0; }
p { margin: 0; }
a { color: var(--emerald-deep); }
a:hover { color: var(--emerald-deeper); }
:focus-visible { outline: 3px solid var(--emerald); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 68px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--emerald); color: var(--night); padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ========== Buttons ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border-radius: 12px; border: 1px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: 16px; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--emerald); color: var(--night); }
.btn-primary:hover { background: #4ade9f; color: var(--night); box-shadow: 0 6px 20px rgba(52, 211, 153, .28); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { color: var(--white); border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.04); }
.btn-ghost-dark { background: transparent; color: var(--night); border-color: var(--line); }
.btn-ghost-dark:hover { border-color: var(--slate-400); }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* ========== Header ========== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-kicker { font-family: var(--font-head); font-size: 11px; color: var(--slate-400); }
.brand-name { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--white); }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--slate-300); text-decoration: none; font-size: 15px; padding: 8px 0; }
.nav a:hover { color: var(--white); }
.nav a[hidden] { display: none; }

/* mobile menu (☰) */
.menu-btn {
  display: none; place-items: center; width: 44px; height: 44px; margin-inline-start: auto;
  border-radius: 12px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04);
  color: var(--white); cursor: pointer;
}
.menu-btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-btn svg path { transition: transform .25s var(--ease-out, ease), opacity .2s ease; transform-origin: 12px 12px; }
.menu-btn[aria-expanded="true"] .l1 { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .l2 { opacity: 0; }
.menu-btn[aria-expanded="true"] .l3 { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .header-row { position: relative; }
  .nav {
    display: none; position: absolute; top: calc(100% + 1px); inset-inline: 0; z-index: 40;
    flex-direction: column; gap: 0; padding: 8px 20px 16px;
    background: rgba(11, 18, 32, .98); border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 18px 30px rgba(0,0,0,.35);
  }
  .nav.is-open { display: flex; animation: fade .2s ease; }
  .nav a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,.06); min-height: 44px; }
  .nav a:last-child { border-bottom: 0; }
}

/* ========== Hero ========== */
.hero {
  position: relative; overflow: hidden;
  background: var(--night); color: var(--white);
  padding: 72px 0 88px;
}
.hero::before { /* faint pixel grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 70% 70% at 30% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 30% 50%, #000 30%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 15px; font-weight: 600; color: var(--emerald);
  margin-bottom: 18px;
}
.pixels { display: inline-flex; gap: 3px; }
.pixels i { width: 10px; height: 10px; border-radius: 2px; background: var(--emerald); }
.pixels i.r { background: var(--strawberry); }
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 700; letter-spacing: -.3px; text-wrap: balance; }
.hero h1 .accent { color: var(--emerald); }
.lead { margin-top: 20px; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.85; color: var(--slate-300); max-width: 600px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--slate-400); font-size: 15px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--emerald); }

.hero-art { display: flex; justify-content: center; }
.art-frame { position: relative; width: min(100%, 380px); display: flex; flex-direction: column; align-items: center; gap: 18px; }

/* hint above the strawberry */
.pixel-hint {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  padding: 7px 16px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  font-size: 14px; color: var(--slate-300);
}
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 2px; background: var(--emerald); flex: none; }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 4px; border: 2px solid var(--emerald); animation: ping 1.6s ease-out infinite; }

.logo-stage { position: relative; width: 260px; }
.logo-stage::before {
  content: ""; position: absolute; inset: -18% -22%; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(52, 211, 153, .15), transparent 62%);
}
.logo-stage.is-floating { animation: float 6s ease-in-out infinite; }
.art-logo { position: relative; display: block; width: 100%; height: auto; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 18px 40px rgba(244, 63, 94, .22)); }
.art-logo.is-pixels { animation: none; overflow: visible; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* a ghost cursor that shows the visitor what to do (removed after their first try) */
.ghost-cursor {
  position: absolute; top: 0; left: 0; z-index: 3; pointer-events: none;
  opacity: 0; transform: translate(var(--x, 130px), var(--y, 300px));
  transition: transform .95s cubic-bezier(.65, .05, .3, 1), opacity .4s ease;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.45));
}
.ghost-cursor.is-on { opacity: 1; }
.ghost-cursor svg { display: block; fill: #FFFFFF; stroke: var(--night); stroke-width: 1.4; stroke-linejoin: round; transition: transform .15s ease; transform-origin: 4px 2px; }
.ghost-cursor.is-click svg { transform: scale(.82); }
.ghost-cursor::before {
  content: ""; position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -14px 0 0 -12px;
  border-radius: 50%; border: 2px solid rgba(255,255,255,.85); opacity: 0;
}
.ghost-cursor.is-click::before { animation: ping .6s ease-out 1; }
.ghost-cursor.is-gone { opacity: 0 !important; transition: opacity .3s ease; }
/* touch screens: a fingertip taps instead of a mouse arrow clicking */
.ghost-cursor .gc-finger { display: none; }
@media (hover: none) {
  .ghost-cursor .gc-arrow { display: none; }
  .ghost-cursor .gc-finger { display: block; transform-origin: 10px 1px; }
  .ghost-cursor::before { margin: -16px 0 0 -7px; } /* ring centred on the fingertip (≈ 10px, 1px) */
}

.code-card {
  position: relative; z-index: 2;
  width: 100%; max-width: 360px; box-sizing: border-box;
  direction: ltr; text-align: left;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; line-height: 1.7;
  background: rgba(17, 26, 46, .9); color: var(--slate-300);
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius);
  padding: 12px 16px; box-shadow: 0 12px 30px rgba(0,0,0,.35);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.code-card.is-typing { border-color: rgba(52, 211, 153, .35); box-shadow: 0 12px 30px rgba(0,0,0,.35), 0 0 0 3px rgba(52, 211, 153, .08); }
.code-body { margin: 0; min-height: 5.1em; white-space: pre-wrap; word-break: break-word; font: inherit; color: inherit; }
.code-body code { font: inherit; unicode-bidi: plaintext; }
.caret {
  display: inline-block; width: 7px; height: 1.15em; margin-left: 2px; vertical-align: -0.2em;
  background: var(--emerald); border-radius: 1px; animation: caret 1s steps(1) infinite;
}
.is-typing .caret { animation: none; }
@keyframes caret { 50% { opacity: 0; } }
.c-k { color: var(--strawberry-soft); } .c-v { color: #E2E8F0; } .c-s { color: var(--emerald); } .c-f { color: #93C5FD; }
.c-c { color: #8B9AB0; font-style: italic; } .c-n { color: #FCD34D; }

/* pixels are interactive: each one types its own line */
.is-pixels rect { cursor: pointer; }
.is-pixels.is-floating rect { transition: transform .25s var(--ease-back, ease), filter .25s ease; }
.is-pixels.is-floating rect:hover { transform: scale(1.14); filter: brightness(1.12); }
.is-pixels rect.is-active { stroke: #FFFFFF; stroke-width: 3; paint-order: stroke; }

@media (max-width: 860px) {
  /* phones: message + "register" button first, the interactive strawberry right after */
  .hero { padding: 32px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .eyebrow { margin-bottom: 12px; }
  .lead { margin-top: 14px; }
  .cta-row { margin-top: 22px; }
  .hero-points { margin-top: 18px; }
  .art-frame { width: 100%; gap: 14px; }
  .logo-stage { width: 190px; }
}

/* ========== Sections ========== */
.section { padding: 88px 0; }
.section-dark { background: var(--night); color: var(--white); }
.section-sand { background: var(--sand); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; }
.section-head p { margin-top: 10px; color: var(--slate); font-size: 17px; }
.section-dark .section-head p { color: var(--slate-300); }
@media (max-width: 640px) { .section { padding: 64px 0; } }

/* Cards */
.cards { display: grid; gap: 18px; }
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover { border-color: #cbd5e1; box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { font-size: 20px; font-weight: 600; }
.card p { color: var(--slate); font-size: 16px; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: #ECFDF5; color: var(--emerald-deep); margin-bottom: 4px;
}
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.cards-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards-3 { grid-template-columns: 1fr; } }

.stage { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--emerald); letter-spacing: 1px; }

/* Field chips */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
}
.chips li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--emerald-500); }
.chips li:nth-child(3n)::before { background: var(--strawberry); }
.chips li:last-child { color: var(--slate); border-style: dashed; }
.chips li:last-child::before { display: none; }

/* CTA band */
.section-tight { padding: 0 0 88px; }
.cta-band {
  border-radius: 24px; background: var(--emerald); padding: clamp(24px, 4vw, 40px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.cta-band h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; color: var(--night); }
.cta-band p { margin-top: 6px; color: #064E3B; font-size: 16px; }
.btn-dark { background: var(--night); color: var(--white); }
.btn-dark:hover { background: #1a253c; color: var(--white); }
@media (max-width: 640px) { .section-tight { padding-bottom: 64px; } }

/* ========== Join page ========== */
.back-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 18px;
  border-radius: 12px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04);
  color: var(--slate-300); text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 15px;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.back-btn:hover { color: var(--white); background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .45); }
.back-btn svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease-out, ease); }
.back-btn:hover svg { transform: translateX(4px); } /* RTL: "back" points right */
@media (max-width: 420px) { .back-btn span { display: none; } .back-btn { padding: 0 12px; } .back-btn::after { content: "الرئيسية"; } }
.page-hero { background: var(--night); color: var(--white); padding: 56px 0 64px; }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 46px); font-weight: 700; }
.page-hero .lead { margin-top: 12px; }
.join-section { padding-top: 56px; }
.btn-whatsapp { background: #25D366; color: #052E16; margin-top: 6px; }
.btn-whatsapp:hover { background: #3BE07A; color: #052E16; }
.btn-whatsapp svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }

/* ========== Register ========== */
.register-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.register-intro { position: sticky; top: 100px; }
.register-intro h2 { font-size: 22px; }
.checks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--night); font-size: 16px; }
.checks li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 4px; border-radius: 6px;
  background: var(--emerald) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1220' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
@media (max-width: 960px) {
  .register-grid { grid-template-columns: 1fr; gap: 28px; }
  .register-intro { position: static; }
}

.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow);
}
#join-form { display: grid; gap: 18px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.row-2:has(> [hidden]) { grid-template-columns: 1fr; }
@media (max-width: 600px) { .row-2 { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--night); padding: 0; }
.req { color: #BE123C; }
.optional { font-family: var(--font-body); font-weight: 400; color: var(--slate); font-size: 14px; }

.field input[type="text"], .field input[type="number"], .field input[type="email"], .field input[type="password"], .field input[type="search"], .field input[type="date"], .field input[type="url"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 50px;
  padding: 12px 14px;
  font: inherit; font-size: 16px; color: var(--night);
  background-color: #FBFBF9; border: 1.5px solid #D5DCE5; border-radius: 12px;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
  appearance: none; -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.7; }
.field select {
  padding-inline-start: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 18px; background-position: left 14px center;
  cursor: pointer;
}
.field select:invalid { color: #64748B; }
.field input[type="number"]::-webkit-inner-spin-button { opacity: .5; }
.field input::placeholder, .field textarea::placeholder { color: #8A96A8; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #B8C2CF; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background-color: var(--white);
  border-color: var(--emerald-deep); box-shadow: 0 0 0 4px rgba(52, 211, 153, .22);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #E11D48; background-color: #FFF7F8; }
.field.has-error input:focus, .field.has-error select:focus { box-shadow: 0 0 0 4px rgba(244, 63, 94, .18); }
.error { color: #BE123C; font-size: 14px; min-height: 0; }
.error:empty { display: none; }
.hint { color: var(--slate); font-size: 13px; text-align: left; direction: ltr; }
.hint-rtl { color: var(--slate); font-size: 13px; line-height: 1.5; }
/* Segmented radio */
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.segmented-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 420px) { .segmented-3 { grid-template-columns: 1fr; } }
.seg { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px;
  border: 1.5px solid #D5DCE5; border-radius: 12px; background: #FBFBF9;
  font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--slate);
  transition: all .15s ease;
}
.seg span::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #B8C2CF; transition: all .15s ease;
}
.seg:hover span { border-color: #B8C2CF; }
.seg input:checked + span { border-color: var(--emerald-deep); background: #ECFDF5; color: var(--night); }
.seg input:checked + span::before { border-color: var(--emerald-deep); background: var(--emerald-deep); box-shadow: inset 0 0 0 3px #ECFDF5; }
.seg input:focus-visible + span { box-shadow: 0 0 0 4px rgba(52, 211, 153, .3); }
.field.has-error .seg span { border-color: #E11D48; }

/* Honeypot */
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Submit state */
.spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(11, 18, 32, .25); border-top-color: var(--night);
  animation: spin .8s linear infinite;
}
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { font-size: 15px; text-align: center; }
.form-status:empty { display: none; }
.form-status.err { color: #BE123C; }

.success { text-align: center; padding: 28px 8px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.success:focus { outline: none; }
.success h2 { font-size: 24px; font-weight: 700; margin-top: 8px; }
.success p { color: var(--slate); max-width: 420px; }

/* ========== FAQ ========== */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: border-color .15s ease; }
.faq details[open] { border-color: #CBD5E1; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 22px; min-height: 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-head); font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; border-radius: 3px; background: var(--emerald);
  transition: transform .2s ease, background-color .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--strawberry); }
.faq details p { padding: 0 22px 20px; color: var(--slate); }

/* ========== Footer ========== */
.site-footer { background: var(--night-deep); padding: 48px 0 18px; border-top: 1px solid rgba(255, 255, 255, .06); }
.footer-top {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 28px 48px;
  padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.footer-about { max-width: 440px; display: grid; gap: 14px; justify-items: start; }
.footer-tagline { color: var(--slate-400); font-size: 15px; line-height: 1.85; }
.footer-connect { display: grid; gap: 12px; }
.footer-title { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--white); }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; }
.social-btn {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  color: var(--slate-300); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.social-btn svg { width: 20px; height: 20px; display: block; }
.social-btn:hover, .social-btn:focus-visible { color: var(--night); background: var(--emerald); border-color: var(--emerald); transform: translateY(-2px); }
.social-btn.social-whatsapp { color: var(--emerald); border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .08); }
.social-btn.social-whatsapp:hover, .social-btn.social-whatsapp:focus-visible { color: var(--night); background: var(--emerald); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; padding-top: 12px; }
.footer-meta { color: var(--slate-400); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.footer-links a { color: var(--slate-300); font-size: 14px; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--white); }
@media (max-width: 640px) {
  .site-footer { padding-top: 40px; }
  .footer-top { flex-direction: column; gap: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .social-btn:hover, .social-btn:focus-visible { transform: none; } }
.footer-links a[hidden] { display: none; }
.contact-btns { display: flex; flex-wrap: wrap; gap: 10px; }
img.brand-mark { display: block; }

/* eyebrow when registration is closed */
.eyebrow.is-closed { color: var(--strawberry-soft); }

/* consent + under-18 note */
.consent { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-family: var(--font-body) !important; font-weight: 400 !important; font-size: 15px !important; line-height: 1.7; color: var(--night); }
.consent input { flex: none; width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--emerald-deep); cursor: pointer; }
.field.has-error .consent input { outline: 2px solid #E11D48; outline-offset: 2px; }
.minor-note { margin-top: 4px; padding: 8px 12px; border-radius: 10px; background: #FFFBEB; color: #92400E; font-size: 14px; line-height: 1.6; }

/* privacy page */
.prose { font-size: 17px; line-height: 1.9; }
.prose h2 { font-size: 22px; margin: 32px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 10px; }
.prose ul { margin: 8px 0 0; padding-inline-start: 22px; }
.prose li + li { margin-top: 6px; }
.muted-note { margin-top: 32px !important; color: var(--slate); font-size: 14px; }

/* =====================================================================
   Motion — transform/opacity only; everything is switched off by the
   prefers-reduced-motion rule at the top of this file.
   ===================================================================== */
:root { --ease-out: cubic-bezier(.2, .7, .2, 1); --ease-back: cubic-bezier(.2, .9, .25, 1.15); }

/* Header gets solid once you scroll */
.site-header { transition: background-color .3s ease, box-shadow .3s ease; }
.site-header.is-scrolled { background: rgba(11, 18, 32, .97); box-shadow: 0 8px 28px rgba(0, 0, 0, .28); }

/* Hero: text rises in, grid drifts slowly */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.hero-copy > * { animation: rise .9s var(--ease-out) both; }
.hero-copy > :nth-child(1) { animation-delay: .05s; }
.hero-copy > :nth-child(2) { animation-delay: .15s; }
.hero-copy > :nth-child(3) { animation-delay: .28s; }
.hero-copy > :nth-child(4) { animation-delay: .4s; }
.hero-copy > :nth-child(5) { animation-delay: .52s; }
.hero-art { animation: fade 1s ease .2s both; }
.code-card { animation: rise .9s var(--ease-out) 1.3s both; }
.hero::before { animation: grid-pan 28s linear infinite; }
@keyframes grid-pan { to { background-position: 30px 30px, 30px 30px; } }

/* Hero: pixel strawberry assembles, then a pixel catches the light now and then */
.is-pixels rect {
  transform-box: fill-box; transform-origin: center;
  animation: px-in .75s var(--ease-back) var(--delay, 0ms) both;
}
@keyframes px-in {
  from { opacity: 0; transform: translateY(var(--from, -80px)) rotate(var(--rot, 0deg)) scale(.4); }
  to { opacity: 1; transform: none; }
}
.is-pixels.is-floating rect { animation: none; }
.is-pixels.is-floating rect.tw { animation: twinkle 1.3s ease-in-out; }
@keyframes twinkle { 45% { fill: #FDA4AF; transform: scale(.86); } }

/* Scroll reveal */
.js .reveal:not(.is-done) {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-in:not(.is-done) { opacity: 1; transform: none; }
.js .chips > .reveal:not(.is-done) { transform: translateY(12px) scale(.92); transition-delay: calc(var(--d, 0) * 55ms); }
.js .chips > .reveal.is-in:not(.is-done) { transform: none; }

/* Cards: icon tilts on hover */
.card-icon { transition: transform .35s var(--ease-back), background-color .25s ease; }
.card:hover .card-icon { transform: translateY(-2px) rotate(-8deg); background: #D1FAE5; }

/* Primary buttons: a light sweep on hover */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-130%);
}
.btn-primary:hover::after { transform: translateX(130%); transition: transform .8s var(--ease-out); }

/* Journey */
.journey { position: relative; overflow: hidden; }
.journey-glow {
  position: absolute; width: 620px; height: 620px; border-radius: 50%; pointer-events: none;
  inset-inline-start: -220px; top: -260px;
  background: radial-gradient(circle, rgba(52, 211, 153, .12), transparent 65%);
  animation: glow-drift 14s ease-in-out infinite alternate;
}
@keyframes glow-drift { to { transform: translate(-120px, 160px); } }
.journey .container { position: relative; }
.journey-wrap { --p: 0; position: relative; margin-top: 12px; }
.journey-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.journey-track {
  position: absolute; top: 15px; height: 2px; inset-inline: 12.5%;
  background: rgba(255,255,255,.12); border-radius: 2px;
}
.journey-fill {
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(to left, var(--emerald), var(--emerald) 70%, var(--strawberry));
  transform: scaleX(var(--p)); transform-origin: right center;
  box-shadow: 0 0 14px rgba(52, 211, 153, .55);
}
.jstep { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.jnode {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 9px; margin-bottom: 14px;
  background: var(--night); border: 2px solid rgba(255,255,255,.18);
  transition: border-color .5s ease, background-color .5s ease, transform .5s var(--ease-back);
}
.jnode i { width: 10px; height: 10px; border-radius: 3px; background: var(--slate); transition: background-color .5s ease, transform .5s var(--ease-back); }
.jnode::after {
  content: ""; position: absolute; inset: -2px; border-radius: 11px; border: 2px solid var(--emerald); opacity: 0;
}
.jstep .stage, .jstep h3, .jstep p { opacity: .4; transform: translateY(8px); transition: opacity .6s ease, transform .6s var(--ease-out); }
.jstep h3 { font-size: 21px; font-weight: 600; color: var(--white); }
.jstep p { color: var(--slate-300); font-size: 16px; max-width: 260px; transition-delay: .08s; }
.jstep.is-on .stage, .jstep.is-on h3, .jstep.is-on p { opacity: 1; transform: none; }
.jstep.is-on .jnode { border-color: var(--emerald); background: rgba(52, 211, 153, .14); transform: rotate(45deg); }
.jstep.is-on .jnode i { background: var(--emerald); transform: rotate(-45deg) scale(1.15); }
.jstep.is-on .jnode::after { animation: ping 1.1s ease-out 1; }
.jstep-last.is-on .jnode { border-color: var(--strawberry); background: rgba(244, 63, 94, .14); }
.jstep-last.is-on .jnode i { background: var(--strawberry); }
.jstep-last .jnode::after { border-color: var(--strawberry); }
.jstep-last .stage { color: var(--strawberry-soft); }
@keyframes ping { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(2.1); } }

@media (max-width: 860px) {
  .journey-steps { grid-template-columns: 1fr; gap: 34px; }
  .journey-track { inset-inline: auto; inset-inline-start: 15px; top: 0; width: 2px; height: 0; }
  .journey-fill { background: linear-gradient(to bottom, var(--emerald), var(--emerald) 70%, var(--strawberry)); transform: scaleY(var(--p)); transform-origin: center top; }
  .jstep { text-align: start; align-items: flex-start; padding-inline-start: 56px; gap: 6px; }
  .jnode { position: absolute; inset-inline-start: 0; top: 0; margin: 0; }
  .jstep p { max-width: none; }
}

/* CTA band: pixels float up behind the text */
.cta-band { position: relative; overflow: hidden; isolation: isolate; }
.cta-pixels { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cta-pixels i {
  position: absolute; bottom: -20px; width: 14px; height: 14px; border-radius: 3px;
  background: rgba(11, 18, 32, .13);
  animation: float-up 9s linear infinite;
}
.cta-pixels i:nth-child(1) { inset-inline-start: 8%;  animation-delay: 0s;   }
.cta-pixels i:nth-child(2) { inset-inline-start: 22%; animation-delay: -3s;  width: 10px; height: 10px; }
.cta-pixels i:nth-child(3) { inset-inline-start: 38%; animation-delay: -6s;  }
.cta-pixels i:nth-child(4) { inset-inline-start: 55%; animation-delay: -1.5s; width: 18px; height: 18px; background: rgba(244, 63, 94, .22); }
.cta-pixels i:nth-child(5) { inset-inline-start: 70%; animation-delay: -4.5s; width: 10px; height: 10px; }
.cta-pixels i:nth-child(6) { inset-inline-start: 84%; animation-delay: -7.5s; }
.cta-pixels i:nth-child(7) { inset-inline-start: 94%; animation-delay: -2.2s; width: 8px; height: 8px; }
@keyframes float-up {
  0%   { transform: translateY(0) rotate(0); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateY(-240px) rotate(90deg); opacity: 0; }
}


/* Events */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.event-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; display: flex; flex-direction: column; gap: 8px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.event-card:hover { border-color: #cbd5e1; box-shadow: var(--shadow); transform: translateY(-2px); }
.event-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.event-type {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  font-family: var(--font-head); font-size: 13px; font-weight: 600;
  background: #ECFDF5; color: var(--emerald-deeper);
}
.type-announcement .event-type { background: #FFF1F2; color: #9F1239; }
.type-course .event-type { background: #EFF6FF; color: #1E40AF; }
.event-meta time { font-size: 14px; color: var(--slate); }
.event-card h3 { font-size: 20px; font-weight: 600; }
.event-place { font-size: 15px; color: var(--emerald-deep); font-weight: 500; }
.event-desc { font-size: 16px; color: var(--slate); white-space: pre-line; }
.event-link { margin-top: auto; padding-top: 8px; font-family: var(--font-head); font-weight: 600; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery-item {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; background: #E2E8F0;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out, ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-cap {
  position: absolute; inset: auto 0 0 0; padding: 22px 14px 10px; text-align: start;
  background: linear-gradient(to top, rgba(11,18,32,.82), transparent);
  color: var(--white); font-size: 14px; font-weight: 500;
  opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease;
}
.gallery-item:hover .gallery-cap, .gallery-item:focus-visible .gallery-cap { opacity: 1; transform: none; }
@media (hover: none) { .gallery-cap { opacity: 1; transform: none; } }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(7, 11, 20, .94); color: var(--white);
}
.lightbox::backdrop { background: rgba(7, 11, 20, .6); }
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; animation: fade .25s ease; }
.lb-figure { margin: 0; grid-column: 2; display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 10px; }
.lb-figure figcaption { font-size: 16px; color: var(--slate-300); text-align: center; }
.lb-close, .lb-nav {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: var(--white);
  transition: background-color .2s ease;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.18); }
.lb-close svg, .lb-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { position: absolute; top: 16px; inset-inline-end: 16px; z-index: 2; }
.lb-prev { grid-column: 1; grid-row: 1; justify-self: center; }
.lb-next { grid-column: 3; grid-row: 1; justify-self: center; }
.lb-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); margin: 0; font-size: 14px; color: var(--slate-400); }
.lightbox.is-single .lb-nav, .lightbox.is-single .lb-count { display: none; }
@media (max-width: 640px) {
  .lightbox[open] { grid-template-columns: 1fr; }
  .lb-figure { grid-column: 1; padding: 0 12px; }
  .lb-nav { position: absolute; bottom: 12px; }
  .lb-prev { inset-inline-start: 16px; } .lb-next { inset-inline-end: 16px; }
}

/* FAQ answers ease in */
.faq details[open] > p { animation: rise .45s var(--ease-out) both; }

.noscript { background: #FFF1F2; color: #9F1239; text-align: center; padding: 12px; margin: 0; }

/* ========== About ========== */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px 64px; align-items: center; }
.about-kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--emerald-deep); margin-bottom: 12px; }
.about-copy h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; margin-bottom: 16px; }
.about-copy p { color: var(--slate); font-size: 17px; line-height: 1.9; }
.about-copy .about-kicker { color: var(--emerald-deep); font-size: 15px; line-height: 1.4; }
.about-copy p + p { margin-top: 14px; }
.about-copy .about-lead { color: var(--night); font-size: 19px; }
.about-side { display: grid; gap: 14px; }
.about-stat {
  display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: var(--radius-lg);
  background: var(--sand); border: 1px solid #ECE7DC;
}
.about-stat-num { font-family: var(--font-head); font-weight: 700; font-size: 60px; line-height: 1; color: var(--emerald-deep); }
.about-stat-label { font-family: var(--font-head); font-weight: 600; font-size: 20px; color: var(--night); }
.about-vision {
  position: relative; overflow: hidden; padding: 26px 24px; border-radius: var(--radius-lg);
  background: var(--night); color: var(--white);
}
.about-vision::after {
  content: ""; position: absolute; inset-inline-start: -40px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, .22), transparent 70%); pointer-events: none;
}
.about-vision-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--emerald); margin-bottom: 10px; }
.about-vision-text { position: relative; font-family: var(--font-head); font-weight: 600; font-size: 19px; line-height: 1.75; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ========== Members ========== */
.members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.member-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 20px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.member-card:hover { border-color: #cbd5e1; box-shadow: var(--shadow); transform: translateY(-2px); }
.member-photo {
  width: 96px; height: 96px; border-radius: 22px; object-fit: cover; margin-bottom: 8px;
  background: var(--night); display: grid; place-items: center; color: var(--emerald);
  font-family: var(--font-head); font-weight: 700; font-size: 32px; box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--line);
}
.member-card h3 { font-size: 18px; font-weight: 600; }
.member-role { color: var(--emerald-deep); font-size: 15px; font-weight: 500; }
.member-bio { color: var(--slate); font-size: 15px; line-height: 1.7; }
.member-link {
  margin-top: 8px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  color: var(--slate); border: 1px solid var(--line); transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.member-link svg { width: 18px; height: 18px; display: block; }
.member-link:hover, .member-link:focus-visible { color: var(--white); background: var(--night); border-color: var(--night); }
@media (prefers-reduced-motion: reduce) { .member-card:hover { transform: none; } }
