/* Agenterage — EXACT Notion design language, light theme.
   Tokens copied from awesome-design-md/notion (colors, type, radii, spacing,
   components). Purple primary #5645d4, warm neutrals, pastel feature cards, Inter.
   Only deviation from notion.so: the hero stays light (user: no dark theme) instead
   of Notion's navy hero band. */
:root {
  /* colors — exact Notion */
  --primary: #5645d4;
  --primary-pressed: #4534b3;
  --primary-deep: #3a2a99;
  --on-primary: #ffffff;
  --link-blue: #0075de;
  --brand-orange: #dd5b00;
  --brand-orange-deep: #793400;
  --brand-pink: #ff64c8;
  --brand-purple: #7b3ff2;
  --brand-purple-800: #391c57;
  --brand-teal: #2a9d99;
  --brand-green: #1aae39;
  --brand-yellow: #f5d75e;
  /* card tints */
  --tint-peach: #ffe8d4;
  --tint-rose: #fde0ec;
  --tint-mint: #d9f3e1;
  --tint-lavender: #e6e0f5;
  --tint-sky: #dcecfa;
  --tint-yellow: #fef7d6;
  --tint-cream: #f8f5e8;
  /* neutrals */
  --canvas: #ffffff;
  --surface: #f6f5f4;
  --surface-soft: #fafaf9;
  --hairline: #e5e3df;
  --hairline-soft: #ede9e4;
  --hairline-strong: #c8c4be;
  --brand-navy: #0a1530;
  --brand-navy-deep: #070f24;
  --brand-navy-mid: #1a2a52;
  --on-dark: #ffffff;
  --on-dark-muted: #a4a097;
  --ink-deep: #000000;
  --ink: #1a1a1a;
  --charcoal: #37352f;
  --slate: #5d5b54;
  --steel: #787671;
  --stone: #a4a097;
  --muted: #bbb8b1;
  /* community */
  --wa: #25d366;
  --dc: #5865f2;
  /* radii (exact) */
  --r-xs: 4px; --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-xxl: 20px; --r-full: 9999px;
  /* shadow */
  --shadow-sm: 0 1px 2px rgba(15,15,15,.06);
  --shadow-md: 0 6px 20px -6px rgba(15,15,15,.12);
  --shadow-lg: rgba(15,15,15,.2) 0 24px 48px -8px;
  --wrap: 1100px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--canvas);
  color: var(--ink);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }
h1, h2, h3 { margin: 0 0 .4em; color: var(--ink); font-weight: 600; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--primary); font-weight: 600; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--hairline); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 20px; letter-spacing: -.4px; color: var(--ink); }
.brand-mark { width: 26px; height: 26px; display: block; flex: 0 0 auto; }
.brand-name { color: var(--ink); }
.brand-name b { color: #ff5a2b; font-weight: inherit; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--slate); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.lang-toggle { background: transparent; border: 1px solid var(--hairline-strong); color: var(--slate); border-radius: var(--r-full); padding: 6px 13px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .12s, color .12s; }
.lang-toggle:hover { background: var(--surface); color: var(--ink); }

/* Buttons — exact Notion: primary purple, rounded md, 10px 18px */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: var(--r-md); font-weight: 500; cursor: pointer; transition: background .15s, box-shadow .15s, transform .05s, border-color .15s; font-family: inherit; line-height: 1.3; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 12px 22px; font-size: 15px; }
.btn.full { width: 100%; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-pressed); }
.btn-ghost { background: transparent; border-color: var(--hairline-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--surface); }
/* on the navy hero, the secondary button flips to a light-on-dark treatment */
.hero .btn-ghost { border-color: rgba(255,255,255,.30); color: #fff; }
.hero .btn-ghost:hover { background: rgba(255,255,255,.10); }
.btn-wa { background: var(--wa); color: #04231a; }
.btn-wa:hover { filter: brightness(.96); }
.btn-dc { background: var(--dc); color: #fff; }
.btn-dc:hover { filter: brightness(1.05); }

/* Hero — Notion navy band (ditto) */
.hero { padding: 96px 0 100px; background: var(--brand-navy); color: var(--on-dark); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background:
    radial-gradient(420px 300px at 12% 18%, rgba(123,63,242,.28), transparent 70%),
    radial-gradient(460px 320px at 88% 78%, rgba(255,100,200,.18), transparent 72%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: flex; align-items: center; gap: 56px; }
.hero-copy { flex: 1 1 auto; min-width: 0; }
.hero-visual { flex: 0 0 340px; }

/* Opportunity card (hero visual) */
.opp-card { background: #fff; color: var(--ink); border-radius: 16px; padding: 22px; box-shadow: 0 34px 70px -24px rgba(0,0,0,.55); transform: rotate(-2deg); }
.opp-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.opp-tag { background: var(--tint-peach); color: var(--brand-orange-deep); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-full); }
.opp-id { color: var(--steel); font-size: 12px; font-weight: 600; }
.opp-title { font-size: 18px; font-weight: 600; margin: 0 0 10px; color: var(--charcoal); }
.opp-meta { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--slate); margin-bottom: 14px; }
.opp-status { background: var(--tint-mint); color: #147a2b; font-weight: 700; font-size: 11px; padding: 2px 9px; border-radius: var(--r-full); }
.opp-vals { display: flex; gap: 22px; padding: 12px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.opp-vals small { display: block; color: var(--steel); font-size: 11px; margin-bottom: 2px; }
.opp-vals b { font-size: 18px; color: var(--ink); }
.opp-rewards { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.opp-rewards small { color: var(--steel); font-size: 11px; margin-inline-end: 2px; }
.chip-r { background: var(--tint-lavender); color: var(--brand-purple-800); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-full); }
.opp-actions { display: flex; gap: 8px; }
.opp-actions .btn { cursor: default; }
.dots { display: flex; gap: 9px; margin-bottom: 24px; }
.dots span { width: 12px; height: 12px; border-radius: var(--r-full); }
.dots span:nth-child(1) { background: var(--primary); }
.dots span:nth-child(2) { background: var(--brand-pink); }
.dots span:nth-child(3) { background: var(--brand-orange); }
.dots span:nth-child(4) { background: var(--brand-green); }
.dots span:nth-child(5) { background: var(--brand-yellow); }
.pill { display: inline-block; padding: 5px 13px; border-radius: var(--r-full); background: rgba(255,255,255,.12); color: #fff; font-size: 13px; font-weight: 600; margin-bottom: 24px; }
.hero h1 { font-size: clamp(42px, 6.8vw, 80px); font-weight: 600; line-height: 1.05; letter-spacing: -2px; color: #fff; }
.grad { color: #c4b1f7; }
.lede { color: var(--on-dark-muted); font-size: clamp(16px, 2.1vw, 20px); max-width: 640px; margin: 22px 0 32px; line-height: 1.5; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
/* Quick-join (hero, on navy) */
.qj { display: flex; gap: 8px; margin-top: 22px; max-width: 440px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-full); padding: 6px; }
.qj input { flex: 1 1 auto; min-width: 0; background: transparent; border: none; color: #fff; font-family: inherit; font-size: 15px; padding: 0 8px 0 14px; height: 42px; }
.qj input::placeholder { color: rgba(255,255,255,.55); }
.qj input:focus { outline: none; }
.qj .btn { border-radius: var(--r-full); padding: 10px 20px; white-space: nowrap; }
.qj-hint { color: var(--on-dark-muted); font-size: 13px; margin: 12px 0 0; }
.qj-hint.err-state { color: #ffb3b3; }
.linkbtn { background: none; border: none; padding: 0; color: #c4b1f7; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.linkbtn:hover { color: #fff; }
.bce { display: flex; gap: 26px; margin-top: 52px; flex-wrap: wrap; font-weight: 700; font-size: clamp(17px, 2.6vw, 25px); letter-spacing: -.5px; }
.bce span:nth-child(1) { color: #ff9a4d; }
.bce span:nth-child(2) { color: #b9a8f5; }
.bce span:nth-child(3) { color: #5fa8ff; }
.bce span:nth-child(4) { color: #4fd06b; }

/* Bands */
.band { padding: 72px 0; }
.band.alt { background: var(--surface-soft); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.band h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 600; letter-spacing: -1px; line-height: 1.15; }
.sub { color: var(--slate); margin: -2px 0 30px; font-size: 18px; line-height: 1.5; max-width: 660px; }

/* Cards — Notion feature cards (pastel tints, radius 12, padding 32) */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); max-width: 680px; }
.card { position: relative; background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 30px; transition: box-shadow .15s, transform .08s; }
.badge-soon { position: absolute; top: 16px; right: 16px; background: var(--brand-orange); color: #fff; font-size: 10.5px; font-weight: 600; letter-spacing: .7px; text-transform: uppercase; padding: 4px 9px; border-radius: var(--r-full); }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card .ic { font-size: 28px; margin-bottom: 14px; line-height: 1; }
.card h3 { font-size: 19px; margin-bottom: 6px; color: var(--charcoal); font-weight: 600; }
.card p { color: var(--slate); font-size: 15px; margin: 0; line-height: 1.5; }
.card.tint-peach { background: var(--tint-peach); border-color: transparent; }
.card.tint-sky { background: var(--tint-sky); border-color: transparent; }
.card.tint-mint { background: var(--tint-mint); border-color: transparent; }
.card.tint-lavender { background: var(--tint-lavender); border-color: transparent; }
.card[class*="tint-"] h3 { color: var(--charcoal); }
.card[class*="tint-"] p { color: var(--charcoal); opacity: .8; }

/* Steps */
.steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { display: flex; gap: 13px; align-items: flex-start; }
.steps li span { flex: 0 0 auto; width: 30px; height: 30px; border-radius: var(--r-full); display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 600; font-size: 14px; }
.steps b { display: block; margin-bottom: 3px; color: var(--charcoal); font-weight: 600; }
.steps p { color: var(--slate); font-size: 14px; margin: 0; line-height: 1.45; }

.center { text-align: center; margin-top: 38px; }

/* Benefits — "We've got your back" */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 30px; margin-top: 32px; }
.benefit { display: flex; gap: 14px; align-items: flex-start; }
.bic { flex: 0 0 auto; width: 48px; height: 48px; border-radius: var(--r-lg); display: grid; place-items: center; font-size: 23px; line-height: 1; }
.bic.b-sky { background: var(--tint-sky); }
.bic.b-mint { background: var(--tint-mint); }
.bic.b-lavender { background: var(--tint-lavender); }
.bic.b-peach { background: var(--tint-peach); }
.bic.b-rose { background: var(--tint-rose); }
.bic.b-yellow { background: var(--tint-yellow); }
.benefit h3 { font-size: 17px; margin-bottom: 4px; color: var(--charcoal); font-weight: 600; }
.benefit p { font-size: 14px; color: var(--slate); margin: 0; line-height: 1.5; }
.more { text-align: center; margin: 36px 0 0; color: var(--slate); font-weight: 600; }

/* Join gate */
.gate { min-height: 100vh; padding: 48px 0 80px; display: flex; align-items: flex-start; background: var(--surface-soft); }
.gate-inner { width: 100%; max-width: 520px; margin: 0 auto; padding: 34px 30px 30px; background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-xl); box-shadow: var(--shadow-md); }
.back { background: none; border: none; color: var(--steel); cursor: pointer; font-size: 14px; padding: 0 0 16px; font-family: inherit; font-weight: 500; }
.back:hover { color: var(--ink); }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--charcoal); }
.field > span .opt { color: var(--steel); font-weight: 400; font-style: normal; font-size: 13px; }
.field input { width: 100%; height: 44px; background: var(--canvas); border: 1px solid var(--hairline-strong); border-radius: var(--r-md); color: var(--ink); padding: 0 14px; font-size: 15px; font-family: inherit; transition: border-color .15s, box-shadow .15s; }
.field input::placeholder { color: var(--muted); }
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(86,69,212,.15); }
.roles { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border: 1px solid var(--hairline-strong); border-radius: var(--r-full); background: var(--canvas); cursor: pointer; font-size: 14px; font-weight: 500; color: var(--charcoal); user-select: none; transition: background .12s, border-color .12s, color .12s; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.chip.on::before { content: "✓"; font-weight: 700; color: var(--primary); margin-inline-end: -2px; }
.chip.on { border-color: var(--primary); background: var(--tint-lavender); color: var(--brand-purple-800); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.hint { color: var(--steel); font-size: 12.5px; margin: -8px 0 16px; }
.err { color: #c92a2a; font-size: 14px; margin: 4px 0 14px; }
.fineprint { color: var(--steel); font-size: 12px; text-align: center; margin: 14px 0 0; }

/* Success */
.center-block { text-align: center; }
.check { width: 62px; height: 62px; border-radius: var(--r-full); background: var(--primary); color: #fff; font-size: 30px; display: grid; place-items: center; margin: 6px auto 18px; }
.join-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 24px 0; }
.qr-card { margin: 8px auto 22px; padding: 16px; background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-lg); max-width: 240px; box-shadow: var(--shadow-sm); }
.qr-card img { display: block; width: 180px; height: 180px; margin: 0 auto; border-radius: var(--r-sm); }
.qr-card figcaption { color: var(--steel); font-size: 12px; margin-top: 10px; line-height: 1.4; }
.soon { color: var(--slate); font-size: 14px; max-width: 420px; margin: 0 auto 22px; }
.mission { background: var(--tint-lavender); border-radius: var(--r-lg); padding: 18px; color: var(--charcoal); max-width: 460px; margin: 0 auto; }
.mission b { color: var(--brand-purple-800); }

/* Footer */
.foot { border-top: 1px solid var(--hairline); padding: 28px 0; background: var(--surface); }
.foot .wrap { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--slate); font-size: 13px; }
.muted { color: var(--steel); }
.foot-link { color: var(--primary); font-weight: 600; text-decoration: none; }
.foot-link:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Arabic / RTL */
html[lang="ar"] body { font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; }
[dir="rtl"] .badge-soon { right: auto; left: 16px; }
[dir="rtl"] .qj input { padding: 0 14px 0 8px; }
[dir="rtl"] .brand { direction: ltr; }

@media (max-width: 980px) {
  .hero-grid { display: block; }
  .hero-visual { display: none; }
}
@media (max-width: 900px) {
  .benefits { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .cards, .cards.three, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .cards, .cards.three, .cards.two, .steps, .benefits { grid-template-columns: 1fr; }
  .nav-links a { display: none; }
  .hero { padding: 56px 0 40px; }
}
