/* COREX landing */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(8,8,10,.7); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); font-weight: 800; letter-spacing: .14em; font-size: 19px; }
.brand img { width: 38px; height: 38px; }
.brand b { color: var(--c1); }
.nav-links { display: flex; gap: 22px; margin-inline-start: 12px; }
.nav-links a { color: var(--mut); font-weight: 600; font-size: 15px; letter-spacing: .04em; }
.nav-links a:hover { color: var(--text); }
.nav-right { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.user-pill { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 4px; border-radius: 99px; border: 1px solid var(--line2); color: var(--text); font-weight: 700; }
.user-pill img { width: 32px; height: 32px; border-radius: 50%; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 68px; inset-inline: 0; flex-direction: column; gap: 0; background: var(--bg2); border-bottom: 1px solid var(--line); padding: 8px 16px; margin: 0; }
  .nav-links.open { display: flex; } .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu-btn { display: inline-flex; } .nav .status-pill { display: none; }
}

.hero { padding: 80px 0 40px; text-align: center; position: relative; }
.hero .tag { margin-bottom: 26px; display: block; }
.hero h1 { font-family: var(--display); font-weight: 900; font-size: clamp(54px, 12vw, 136px); letter-spacing: .08em; line-height: 1; }
.hero h1 { background: linear-gradient(180deg, #fff 35%, #a9b8c7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 b { -webkit-text-fill-color: var(--c1); color: var(--c1); text-shadow: 0 0 30px rgba(43,184,255,.55), 0 0 90px rgba(43,184,255,.35); }
.hero::before { content: ''; position: absolute; left: 50%; top: 30px; width: min(900px, 90vw); height: 420px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(43,184,255,.2), transparent); pointer-events: none; }
.hero .sub { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 18px 0 8px; color: var(--mut); font-family: var(--display); letter-spacing: .6em; font-size: 15px; }
.hero .sub i { width: 70px; height: 2px; background: var(--c1); display: block; }
.hero p.lead { max-width: 640px; margin: 22px auto 30px; color: var(--mut); font-size: 19px; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line2); background: var(--bg2); font-weight: 700; font-size: 14px; letter-spacing: .05em; }
.status-pill.online { color: #8ff0b3; border-color: rgba(34,197,94,.35); } .status-pill.maintenance { color: #ffd591; border-color: rgba(245,158,11,.35); } .status-pill.offline { color: #ffb4b4; border-color: rgba(239,68,68,.35); }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.hero-cta .btn { height: 48px; padding: 0 26px; font-size: 16px; }
.stats { display: flex; justify-content: center; gap: 46px; margin-top: 44px; flex-wrap: wrap; }
.stats div { text-align: center; } .stats b { display: block; font-family: var(--display); font-size: 30px; color: var(--text); } .stats span { color: var(--mut); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.announce { background: var(--c1a); border-bottom: 1px solid var(--c1b); text-align: center; padding: 9px 16px; font-weight: 600; color: #bfe6ff; }

/* Apple-style browser window */
.browser { margin: 40px auto 0; max-width: 1080px; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); background: #0b0b0d; box-shadow: 0 40px 120px rgba(0,0,0,.6), 0 0 0 1px rgba(43,184,255,.06), 0 0 80px rgba(43,184,255,.08); }
.browser-bar { height: 44px; display: flex; align-items: center; gap: 14px; padding: 0 16px; background: linear-gradient(#1b2028, #15191f); border-bottom: 1px solid #0a0c0f; direction: ltr; }
.lights { display: flex; gap: 8px; } .lights i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.lights i:nth-child(1) { background: #ff5f57; } .lights i:nth-child(2) { background: #febc2e; } .lights i:nth-child(3) { background: #28c840; }
.urlbar { flex: 1; max-width: 520px; margin: 0 auto; height: 28px; border-radius: 7px; background: #0d1015; border: 1px solid #262c35; display: flex; align-items: center; justify-content: center; gap: 8px; color: #aab6c3; font-size: 13.5px; font-family: -apple-system, 'SF Pro Text', 'Segoe UI', sans-serif; }
.urlbar svg { width: 12px; height: 12px; color: #6f7a87; }
.browser-actions { width: 52px; display: flex; gap: 10px; justify-content: flex-end; color: #6f7a87; }
.browser img { display: block; width: 100%; }

section.s { padding: 100px 0; }
.s-head { text-align: center; margin-bottom: 50px; }
.s-head .tag { display: block; margin-bottom: 14px; color: var(--c1); }
.s-head h2 { font-family: var(--display); font-size: clamp(28px, 4vw, 42px); letter-spacing: .05em; }
.s-head p { color: var(--mut); max-width: 620px; margin: 14px auto 0; font-size: 17px; }

.support-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 860px) { .support-grid { grid-template-columns: repeat(2, 1fr); } }
.sup { padding: 22px; border: 1px solid var(--line); border-radius: var(--r2); background: var(--bg2); display: flex; gap: 14px; align-items: center; }
.sup .ic { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; background: var(--c1a); color: var(--c1); font-family: var(--display); font-weight: 800; font-size: 13px; flex: none; border: 1px solid var(--c1b); }
.sup b { display: block; font-size: 17px; } .sup span { color: var(--mut); font-size: 14px; }

.feat { padding: 26px; border: 1px solid var(--line); border-radius: var(--r2); background: linear-gradient(180deg, var(--panel), var(--bg2)); transition: border-color .2s; }
.feat:hover { border-color: var(--c1b); }
.feat .ic { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--c1b); background: var(--c1a); display: grid; place-items: center; color: var(--c1); margin-bottom: 16px; }
.feat .ic svg { width: 22px; height: 22px; }
.feat h3 { font-size: 20px; margin-bottom: 8px; } .feat p { color: var(--mut); margin: 0; font-size: 15.5px; }
.feat ul { margin: 12px 0 0; padding-inline-start: 18px; color: var(--mut); font-size: 14.5px; } .feat li::marker { color: var(--c1); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.plan { padding: 30px; border-radius: var(--r2); border: 1px solid var(--line); background: var(--bg2); display: flex; flex-direction: column; position: relative; }
.plan.pop { border-color: var(--c1); background: linear-gradient(180deg, rgba(43,184,255,.08), var(--bg2) 40%); }
.plan .pop-tag { position: absolute; top: -12px; inset-inline-start: 50%; transform: translateX(-50%); background: var(--c1); color: #001522; font-weight: 800; font-size: 12px; letter-spacing: .14em; padding: 4px 12px; border-radius: 99px; }
[dir="rtl"] .plan .pop-tag { transform: translateX(50%); }
.plan h3 { font-family: var(--display); letter-spacing: .1em; font-size: 20px; }
.price { margin: 18px 0 4px; font-family: var(--display); font-size: 44px; font-weight: 800; } .price small { font-size: 16px; color: var(--mut); font-family: var(--font); font-weight: 600; }
.plan .dur { color: var(--mut); margin-bottom: 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; } .plan li::before { content: ''; width: 16px; height: 16px; flex: none; margin-top: 4px; border-radius: 4px; background: var(--c1a); border: 1px solid var(--c1); box-shadow: inset 0 0 0 3px var(--bg2); background-color: var(--c1); }

.spot { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center; padding: 36px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(120deg, var(--panel), var(--bg2)); }
@media (max-width: 860px) { .spot { grid-template-columns: 1fr; } }
.spot-tabs { display: grid; gap: 8px; }
.spot-tab { text-align: start; padding: 14px 16px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--mut); font: 600 16px var(--font); cursor: pointer; position: relative; overflow: hidden; }
.spot-tab.on { color: var(--text); border-color: var(--line2); background: var(--bg2); }
.spot-tab .bar { position: absolute; bottom: 0; inset-inline-start: 0; height: 2px; background: var(--c1); width: 0; }
.spot-tab.on .bar { width: 100%; transition: width 5s linear; }
.spot-view { min-height: 260px; padding: 26px; border-radius: 14px; border: 1px solid var(--line2); background: var(--bg); }
.spot-view h3 { font-family: var(--display); font-size: 22px; margin-bottom: 12px; letter-spacing: .04em; }
.spot-view p { color: var(--mut); } .spot-view .kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.spot-view .kv div { padding: 12px; border: 1px solid var(--line); border-radius: 10px; } .spot-view .kv b { display: block; font-family: var(--display); color: var(--c1); font-size: 20px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: st; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } } @media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 24px; border: 1px solid var(--line); border-radius: var(--r2); background: var(--bg2); position: relative; }
.step::before { counter-increment: st; content: '0' counter(st); font-family: var(--display); font-size: 34px; font-weight: 800; color: transparent; -webkit-text-stroke: 1px var(--c1); display: block; margin-bottom: 12px; }
.step h3 { font-size: 19px; margin-bottom: 6px; } .step p { color: var(--mut); margin: 0; font-size: 15px; }

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--c1); font-family: var(--display); font-size: 20px; }
.faq details[open] summary::after { content: '–'; }
.faq details[open] { border-color: var(--line2); }
.faq .a { padding: 0 20px 18px; color: var(--mut); }

.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }
.contact a { display: flex; align-items: center; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r2); background: var(--bg2); color: var(--text); transition: border-color .2s; }
.contact a:hover { border-color: var(--c1); }
.contact .ic { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; background: var(--c1a); color: var(--c1); border: 1px solid var(--c1b); flex: none; }
.contact .ic svg { width: 24px; height: 24px; } .contact b { display: block; font-size: 17px; } .contact span { color: var(--mut); font-size: 14.5px; word-break: break-all; }

footer.foot { border-top: 1px solid var(--line); padding: 56px 0 28px; margin-top: 40px; background: linear-gradient(180deg, rgba(255,255,255,.025), transparent), #09090b; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot h4 { font-size: 13px; letter-spacing: .2em; color: var(--mut); margin-bottom: 14px; font-family: var(--display); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; } .foot ul a { color: var(--text); opacity: .8; } .foot ul a:hover { opacity: 1; color: var(--c1); }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
.side-deco { position: absolute; top: 120px; width: 2px; height: 60px; display: flex; gap: 6px; opacity: .35; }

/* =========================================================
   LANDING POLISH — calmer, more premium, still light to render
   ========================================================= */
.hero { padding: 96px 0 30px; overflow: hidden; }
.hero::after { /* perspective light floor behind the hero (static) */
  content: ''; position: absolute; left: 50%; bottom: 38%; width: 1600px; height: 420px; transform: translateX(-50%) perspective(600px) rotateX(62deg);
  background-image: linear-gradient(rgba(43,184,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(43,184,255,.16) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse at center, #000 10%, transparent 65%); pointer-events: none; z-index: -1; }
.hero .tag { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 99px; border: 1px solid rgba(43,184,255,.25); background: rgba(43,184,255,.06); color: #9fdcff; }
.hero p.lead { font-size: 20px; line-height: 1.7; }
.hero-cta .btn { height: 52px; padding: 0 30px; border-radius: 12px; font-size: 16.5px; }
.stats { gap: 0; margin: 46px auto 0; width: fit-content; max-width: 100%; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); overflow: hidden; }
.stats div { padding: 18px 34px; border-inline-end: 1px solid var(--line); }
.stats div:last-child { border-inline-end: 0; }
.stats b { background: linear-gradient(180deg, #fff, #9fb6cc); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 640px) { .stats { display: grid; grid-template-columns: 1fr 1fr; } .stats div { border-bottom: 1px solid var(--line); } }
.browser { position: relative; margin-top: 56px; }
.browser::after { content: ''; position: absolute; left: 10%; right: 10%; bottom: -60px; height: 120px; background: radial-gradient(closest-side, rgba(43,184,255,.25), transparent); filter: blur(10px); z-index: -1; }

section.s { padding: 110px 0; position: relative; }
.s-head h2 { background: linear-gradient(180deg, #fff 40%, #a9b8c7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.s-head .tag { display: inline-flex; align-items: center; gap: 10px; }
.s-head .tag::before, .s-head .tag::after { content: ''; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--c1)); }
.s-head .tag::after { transform: scaleX(-1); }

.sup { transition: border-color .2s, transform .2s; } .sup:hover { transform: translateY(-2px); }
.sup .ic { background: linear-gradient(160deg, rgba(43,184,255,.22), rgba(43,184,255,.05)); }
.feat { position: relative; overflow: hidden; transition: border-color .2s, transform .2s; }
.feat::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(43,184,255,.6), transparent); opacity: .6; }
.feat:hover { transform: translateY(-3px); }
.feat .ic { background: linear-gradient(160deg, rgba(43,184,255,.25), rgba(43,184,255,.05)); box-shadow: 0 8px 24px -10px rgba(43,184,255,.6); }

.plan { transition: transform .2s, border-color .2s; } .plan:hover { transform: translateY(-4px); }
.plan.pop { border: 1px solid transparent; background: linear-gradient(var(--panel), var(--panel)) padding-box, linear-gradient(160deg, var(--c1), rgba(43,184,255,.1) 45%, var(--c2)) border-box; box-shadow: 0 30px 80px -30px rgba(43,184,255,.45); }
.price { background: linear-gradient(180deg, #fff, #9fb6cc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan.pop .price { background: linear-gradient(180deg, #bfeaff, var(--c1)); -webkit-background-clip: text; background-clip: text; }
.plan .btn { height: 48px; border-radius: 12px; }

.spot { box-shadow: 0 40px 100px -40px rgba(0,0,0,.9); }
.step::before { -webkit-text-stroke: 0; background: linear-gradient(180deg, var(--c1), rgba(43,184,255,.15)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.faq details { transition: border-color .2s; } .faq details[open] { border-color: rgba(43,184,255,.3); }
.contact a { transition: border-color .2s, transform .2s; } .contact a:hover { transform: translateY(-2px); }
footer.foot { position: relative; }
footer.foot::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(43,184,255,.5), transparent); }
@media (prefers-reduced-motion: reduce) { .sup, .feat, .plan, .contact a { transition: none; } .sup:hover, .feat:hover, .plan:hover, .contact a:hover { transform: none; } }

/* COREX rules page */
.nav-links a.on { color: var(--text); }
.rules-hero { padding: 80px 0 40px; text-align: center; }
.rules-hero h1 { font-size: clamp(36px, 6vw, 64px); margin: 18px 0 12px; background: linear-gradient(180deg, #fff 40%, #a9b8c7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rules-hero p { font-size: 18px; max-width: 620px; margin: 0 auto 8px; }
.rules-upd { font-size: 13px; }
.rules-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; padding-bottom: 80px; }
.rules-toc { position: sticky; top: 90px; display: grid; gap: 2px; padding: 16px; }
.rules-toc a { display: flex; gap: 10px; padding: 8px 6px; color: var(--mut); font-weight: 700; }
.rules-toc a span { font-family: var(--display); color: var(--c1); font-size: 12px; }
.rules-toc a:hover { color: var(--text); }
.rule-sec { display: flex; gap: 20px; margin-bottom: 14px; padding: 26px; scroll-margin-top: 90px; }
.rule-num { font-family: var(--display); font-size: 34px; font-weight: 900; line-height: 1; background: linear-gradient(180deg, var(--c1), rgba(43,184,255,.15)); -webkit-background-clip: text; background-clip: text; color: transparent; flex: none; }
.rule-sec h2 { font-size: 22px; margin-bottom: 12px; }
.rule-sec ol { margin: 0; padding-inline-start: 20px; display: grid; gap: 10px; color: #c9d3de; line-height: 1.75; }
.rule-sec li::marker { color: var(--c1); font-weight: 800; }
.rule-cta { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
@media (max-width: 860px) { .rules-wrap { grid-template-columns: 1fr; } .rules-toc { position: static; } }
