* { box-sizing: border-box }
[hidden] { display: none !important }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body {
  min-height: 100svh; display: flex; flex-direction: column;
  font-family: Inter, ui-sans-serif, "Segoe UI", system-ui, sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 520px at 85% 15%, color-mix(in srgb, var(--text) 5%, transparent), transparent 70%),
    radial-gradient(700px 480px at 10% 90%, color-mix(in srgb, var(--text) 4%, transparent), transparent 70%),
    var(--bg);
}
html[lang="ar"] body, html[lang="ar"] button { font-family: 'Cairo', sans-serif; line-height: 1.75; letter-spacing: 0 }
button { font: inherit; color: inherit }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none }
* { scrollbar-width: thin; scrollbar-color: var(--scrollbar) transparent }

.top { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--border); background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 5 }
.top-start, .top-actions { display: flex; align-items: center; gap: 12px; min-width: 0 }
.top-actions { gap: 6px }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0 }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--selected-bg); border: 1px solid var(--selected-border); color: var(--text) }
.brand-mark svg { width: 19px; height: 19px }
.brand-text { display: flex; flex-direction: column; line-height: 1.2 }
.brand-text b { font-size: 15px; font-weight: 800; white-space: nowrap }
.brand-text small { font-size: 11px; color: var(--text-3); white-space: nowrap }
html[lang="ar"] .brand-text b { font-size: 17px }
.head-signin { height: 38px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; border: 1px solid var(--border-control); background: var(--surface); color: var(--text); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: border-color .15s, background .15s }
.head-signin:hover { background: var(--surface-hover); border-color: var(--text-3) }
.head-signin svg { width: 17px; height: 17px }
html[dir="rtl"] .head-signin svg { transform: scaleX(-1) }
.icon-btn { min-width: 38px; height: 38px; padding: 0 8px; border: 1px solid transparent; background: transparent; border-radius: 10px; display: grid; place-items: center; cursor: pointer; font-weight: 700; font-size: 13px; color: var(--text-2) }
.icon-btn:hover { background: var(--surface-hover); color: var(--text) }
.icon-btn:focus-visible, .discord-btn:focus-visible, .invite:focus-visible, .head-signin:focus-visible { outline:none;box-shadow:inset 0 0 0 2px rgba(255,255,255,.5) }

.stage { flex: 1; width: min(1120px, calc(100% - 2 * clamp(16px, 4vw, 40px))); margin: 0 auto; padding: clamp(32px, 6vh, 72px) 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 88px); align-items: center }
.intro { justify-self: center; width: 100%; max-width: 500px }
.hero-art { display: block; width: 200px; height: auto; margin-bottom: 22px; color: var(--text-2) }
.hero-art .art-shadow { fill: color-mix(in srgb, var(--text) 7%, transparent); stroke: none }
.hero-art .art-page { fill: var(--surface); stroke: var(--border-strong); stroke-width: 2 }
.hero-art .art-line { stroke: var(--border-strong); stroke-width: 2 }
.hero-art .art-text { stroke: var(--border-strong); stroke-width: 3; opacity: .7 }
.hero-art .art-mark { fill: var(--selected-bg); stroke: var(--text-2); stroke-width: 2 }
.hero-art .art-pen { fill: var(--surface); stroke: var(--text-2); stroke-width: 2 }
.eyebrow { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--selected-border); background: var(--selected-bg); color: var(--selected-text); font-size: 13px; font-weight: 700; margin-bottom: 14px }
h1 { margin: 0; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.15; font-weight: 800; letter-spacing: -.03em; text-wrap: balance }
html[lang="ar"] h1 { line-height: 1.45; letter-spacing: 0; font-size: clamp(30px, 3.3vw, 42px) }
.lead { margin: 14px 0 0; color: var(--text-2); font-size: 16px; max-width: 480px; line-height: 1.8 }
.features { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px }
.features li { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--text-2); font-size: 13px; font-weight: 600 }
.features svg { width: 16px; height: 16px; color: var(--text-3) }

.card {
  justify-self: center; width: 100%; max-width: 440px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong); border-radius: 20px; padding: 30px;
  box-shadow: inset 0 1px 0 var(--card-glow), 0 0 0 6px color-mix(in srgb, var(--text) 3%, transparent), var(--shadow-lg);
  display: grid; gap: 18px
}
.card-head { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start }
.card-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--selected-bg); border: 1px solid var(--selected-border); color: var(--text) }
.card-icon svg { width: 20px; height: 20px }
.card h2 { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.35 }
.muted { margin: 4px 0 0; color: var(--text-2); font-size: 14px; line-height: 1.8 }
.notice { display: grid; gap: 2px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--border); border-inline-start: 3px solid var(--danger); border-radius: 10px; font-size: 14px }
.notice strong { color: var(--text); font-weight: 700 }
.notice span { color: var(--text-2); font-size: 13px }
.discord-btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; border-radius: 13px; background: #4752c4; color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; box-shadow: 0 8px 24px rgba(71, 82, 196, .28); transition: transform .18s var(--ease, ease), background .18s }
.discord-btn:hover { background: #3c45a5; transform: translateY(-1px) }
.discord-mark { width: 21px; height: 21px }
.invite { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 12px; border: 1px solid var(--border-control); color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; transition: background .15s, border-color .15s }
.invite:hover { background: var(--surface-hover); border-color: var(--text-3) }
.invite svg { width: 17px; height: 17px; color: var(--text-2) }
.privacy { margin: 0; padding-top: 18px; border-top: 1px solid var(--border); display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; color: var(--text-2); font-size: 13px; line-height: 1.9 }
.privacy svg { margin-top: 4px; width: 15px; height: 15px; color: var(--text-3) }

@media (max-width: 880px) {
  .stage { grid-template-columns: 1fr; gap: 28px; padding-top: 28px }
  .intro { order: 2; max-width: 440px } .card { order: 1 }
  .hero-art { width: 150px; margin-bottom: 14px }
}
@media (max-width: 520px) {
  .card { padding: 22px; border-radius: 16px }
  .brand-text small { display: none }
  .head-signin span { display: none } .head-signin { width: 38px; padding: 0; justify-content: center }
  .top { padding: 0 12px }
  .features li { height: auto; min-height: 34px; padding: 4px 10px }
}

body { background:radial-gradient(ellipse at 15% 20%,color-mix(in srgb,var(--accent) 12%,transparent),transparent 55%),var(--bg); font-weight:650; }
.brand-mark { width:64px; height:44px; border:0; background:transparent; }
.brand-mark img { width:100%; height:100%; object-fit:contain; }
.brand-text small,#headSignin { display:none; }
.stage { max-width:1180px; gap:80px; }
.hero-logo { width:min(100%,440px); display:block; margin:0 0 28px; filter:drop-shadow(0 18px 30px #6229ba25); }
.card { border:1px solid var(--border); border-radius:28px; padding:36px; backdrop-filter:none; box-shadow:var(--shadow-md); gap:24px; }
.discord-btn { background:var(--accent); color:var(--on-accent); border-radius:14px; height:58px; }
.discord-btn:hover { background:var(--accent-hover); }
.login-privacy { margin:0; font-size:12px; line-height:1.8; color:var(--text-3); }
.features { gap:12px; }.eyebrow { border:0; }.card-icon { color:var(--accent); }
html[lang="ar"] body,html[lang="ar"] button { font-family:Cairo,sans-serif; font-weight:700; }
html[lang="ar"] h1 { font-weight:900; font-size:clamp(30px,4vw,50px); }
@media(max-width:760px){ .stage { display:flex; flex-direction:column; gap:28px; padding:28px 0; }.intro { text-align:center; }.hero-logo { width:230px; margin:0 auto 18px; }.features { justify-content:center; }.card { padding:26px; }.top { padding:16px; } }

body { background:var(--bg); }
.top { background:transparent; border-bottom:1px solid var(--border); }
.stage { max-width:980px; gap:100px; padding-block:60px; align-items:center; }
.intro { text-align:center; }
.hero-logo { width:min(100%,380px); margin:0 auto 20px; filter:none; }
.intro h1,html[lang="ar"] .intro h1 { font-size:26px; line-height:1.5; letter-spacing:0; }
.card { background:transparent; border:0; border-inline-start:1px solid var(--border); border-radius:0; padding:18px 0; padding-inline-start:48px; box-shadow:none; backdrop-filter:none; gap:22px; max-width:360px; }
.card-head { display:block; }.card h2 { font-size:24px; }
.discord-btn { border-radius:6px; height:50px; font-size:15px; box-shadow:none; }
.discord-btn:hover { transform:none; }
.invite { border:0; padding:0; height:auto; min-height:36px; border-radius:0; justify-content:flex-start; font-size:13px; }
.notice { border-radius:4px; }
@media(max-width:760px){ .stage { gap:34px; padding-block:40px; }.intro { order:0; }.card { order:1; border:0; padding:24px 0 0; border-top:1px solid var(--border); width:100%; }.hero-logo { width:240px; }.intro h1,html[lang="ar"] .intro h1 { font-size:22px; }.card h2 { font-size:21px; } }
.top .brand { min-height:54px; gap:8px; align-items:center; }
.top .brand-mark { width:58px; height:54px; display:flex; align-items:center; justify-content:center; flex:none; }
.top .brand-mark img { width:100%; height:100%; object-fit:contain; transform:translateY(-5px); }
.top .brand-text { display:block; }.top .brand-text b { display:block; font-size:16px; line-height:1.3; }
.hero-logo { object-position:center; }
.hero-logo { width:min(100%,380px); height:230px; object-fit:cover; object-position:center; margin-bottom:6px; }
@media(max-width:760px) { .hero-logo { width:240px; height:160px; margin-bottom:0; } }

/* Centered card layout */
body{justify-content:center;align-items:center;background:var(--bg)}
.top{position:fixed;inset:16px 16px auto auto;height:auto;padding:0;border:0;background:none;backdrop-filter:none;-webkit-backdrop-filter:none}
html[dir="rtl"] .top{inset:16px auto auto 16px}
.top-start,#themeButton{display:none}
.icon-btn.lang{height:36px;min-width:48px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--text-2)}
.stage{flex:none;display:flex;flex-direction:column;align-items:center;gap:26px;width:min(420px,calc(100% - 32px));margin:0;padding:44px 36px 36px;background:var(--surface);border:1px solid var(--border);border-radius:28px;box-shadow:none}
.intro{display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center;max-width:none}
.hero-logo{width:200px;height:auto;display:block}
h1{font-size:24px;letter-spacing:0}
html[lang="ar"] h1{font-size:26px}
.card{background:none;border:0;box-shadow:none;padding:0;max-width:none;backdrop-filter:none;-webkit-backdrop-filter:none;gap:14px;justify-items:stretch}
.card-head{display:block;text-align:center}
.card h2{font-size:15px;font-weight:700;color:var(--text-2)}
.discord-btn{justify-content:center;min-height:50px;border-radius:999px;background:var(--text);color:var(--on-accent);border:0;font-weight:800}
.invite{justify-self:center;font-size:13.5px;color:var(--text-2)}.hero-logo{width:200px;height:96px;object-fit:contain;min-height:0;margin:0}
.stage{gap:20px}
.hero-logo{width:auto;height:120px;max-width:100%}

/* same site background as the app: faint grid and the 102 logo watermark */
html{background:#09090b!important}
body{background:transparent!important}
body::before,body::after{content:'';position:fixed;pointer-events:none;z-index:-1}
body::before{inset:0;background:
  radial-gradient(50% 45% at 0% 100%,rgba(255,255,255,.07),transparent 70%),
  linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px) 0 0/56px 56px,
  linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px) 0 0/56px 56px}
body::after{inset-block-end:-70px;inset-inline-end:-50px;width:min(640px,70vw);aspect-ratio:1;background:url('/assets/class-logo-mono.png') center/contain no-repeat;opacity:.07;transform:rotate(-8deg)}
