/* byehab.com: modern and futuristic. Deep space background with a faint blueprint grid, two slow glowing orbs,
   glass cards, a cyan-to-violet accent. Arabic first (Readex Pro), English in Space Grotesk, numbers in JetBrains Mono. */
:root {
  --bg: #07080C; --text: #EEF1F7; --dim: #9AA3B5; --line: rgba(255, 255, 255, .08); --glass: rgba(255, 255, 255, .035);
  --cyan: #22D3EE; --violet: #8B5CF6; --accent: linear-gradient(90deg, #22D3EE, #8B5CF6);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--bg);
  font: 300 1.05rem/1.85 "Readex Pro", system-ui, sans-serif; }
html[lang="en"] body { font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 400; line-height: 1.7; }
.mono { font-family: "JetBrains Mono", "Readex Pro", ui-monospace, monospace; }

/* Background: blueprint grid fading out, two blurred orbs drifting slowly. */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.grid { position: absolute; inset: -2px; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 20%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 0%, transparent 70%); }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35; }
.o1 { width: 520px; height: 520px; background: var(--cyan); top: -180px; inset-inline-end: -120px; }
.o2 { width: 460px; height: 460px; background: var(--violet); top: 35%; inset-inline-start: -200px; opacity: .25; }
.top, main, .foot { position: relative; z-index: 1; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 1rem clamp(1.2rem, 5vw, 3rem); }
.mark { display: flex; align-items: center; gap: .65rem; color: var(--text); text-decoration: none; }
.logo { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--accent); color: #07080C;
  font: 700 1.05rem "Space Grotesk", sans-serif; box-shadow: 0 0 24px rgba(34, 211, 238, .35); }
.word { font: 500 1.2rem "Space Grotesk", sans-serif; direction: ltr; letter-spacing: -.01em; }
.word b { font-weight: 700; background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lang { min-width: 44px; min-height: 40px; padding: 0 .9rem; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); color: var(--dim);
  font: 500 .85rem "JetBrains Mono", "Readex Pro", monospace; cursor: pointer; backdrop-filter: blur(8px); transition: color .2s, border-color .2s; }
.lang:hover { color: var(--text); border-color: rgba(34, 211, 238, .5); }

main { max-width: 1080px; margin: 0 auto; padding: 0 clamp(1.2rem, 5vw, 2rem) 3rem; }
.hero { min-height: calc(100vh - 76px); min-height: calc(100svh - 76px); display: flex; flex-direction: column; justify-content: center; padding: 2rem 0 5rem; }
.tag { display: inline-flex; align-self: flex-start; align-items: center; gap: .55rem; padding: .35rem .9rem; border-radius: 2rem; border: 1px solid var(--line);
  background: var(--glass); color: var(--dim); font-size: .85rem; margin: 0 0 1.6rem; backdrop-filter: blur(8px); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
h1 { margin: 0 0 1.4rem; font-weight: 700; font-size: clamp(2.4rem, 7.5vw, 5rem); line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
html[lang="en"] h1 { font-family: "Space Grotesk", sans-serif; letter-spacing: -.035em; line-height: 1.05; }
.grad { display: inline-block; padding-bottom: .14em; background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--dim); max-width: 36rem; font-size: clamp(1.05rem, 2.2vw, 1.25rem); margin: 0 0 2.4rem; }
.cta { align-self: flex-start; display: inline-flex; align-items: center; gap: .7rem; min-height: 52px; padding: 0 1.5rem; border-radius: 14px;
  background: var(--text); color: var(--bg); font-weight: 600; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.cta:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(34, 211, 238, .25); }

.principles h2 { color: var(--cyan); font-size: .9rem; font-weight: 500; margin: 0 0 1.6rem; direction: ltr; text-align: start; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.card { position: relative; padding: 1.6rem 1.5rem; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px);
  transition: transform .25s, border-color .25s, background .25s; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--accent); opacity: 0; transition: opacity .25s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.card:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .05); }
.card:hover::before { opacity: 1; }
.n { font-size: .8rem; color: var(--violet); }
.card h3 { margin: .5rem 0 .4rem; font-size: 1.2rem; font-weight: 600; }
.card p { margin: 0; color: var(--dim); }

.closing { padding: 5rem 0 2rem; text-align: center; }
.big { margin: 0 auto; max-width: 44rem; font-weight: 700; font-size: clamp(1.6rem, 4.5vw, 2.8rem); line-height: 1.35; text-wrap: balance;
  background: linear-gradient(90deg, var(--text), var(--dim)); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[lang="en"] .big { letter-spacing: -.025em; }

.foot { max-width: 1080px; margin: 0 auto; padding: 1.5rem clamp(1.2rem, 5vw, 2rem) 2.5rem; display: flex; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; color: #5F6778; font-size: .8rem; border-top: 1px solid var(--line); }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
::selection { background: var(--violet); color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .o1 { animation: drift 18s ease-in-out infinite alternate; }
  .o2 { animation: drift 22s ease-in-out infinite alternate-reverse; }
  .dot { animation: ping 2.4s ease-in-out infinite; }
  .hero > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero > :nth-child(2) { animation-delay: .08s; } .hero > :nth-child(3) { animation-delay: .16s; } .hero > :nth-child(4) { animation-delay: .24s; }
  .arrow { animation: nudge 1.8s ease-in-out infinite; }
}
@keyframes drift { to { transform: translate(-60px, 80px) scale(1.1); } }
@keyframes ping { 50% { box-shadow: 0 0 0 6px rgba(34, 211, 238, 0); opacity: .6; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes nudge { 50% { transform: translateY(3px); } }
