/* ===========================================================================
   Ozzy — global styles
   Palette: cyan #18E0F0, dark #0A0C0F / #0E1116, light text.
   Mobile-first, responsive, RTL-aware (uses logical properties).
   =========================================================================== */

:root {
  --cyan: #18E0F0;
  --cyan-deep: #0aa6b4;
  --bg: #0A0C0F;
  --bg-2: #0E1116;
  --surface: #141a21;
  --surface-2: #1b2530;
  --border: #233040;
  --text: #F4F8FB;
  --muted: #9fb0bf;
  --muted-2: #6f8294;
  --maxw: 1120px;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial,
    "Noto Sans Arabic", "Segoe UI Arabic", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}

[dir="rtl"] body { line-height: 1.9; }

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(2rem, 6vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.55rem, 4vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); }

p { margin: 0 0 1rem; color: var(--muted); }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--text); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }

.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 0;
  background: var(--cyan); color: #00181b; padding: 10px 16px;
  border-radius: 0 0 10px 0; z-index: 200; font-weight: 600;
}
.skip-link:focus { inset-inline-start: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--cyan); color: #00181b; box-shadow: 0 8px 28px rgba(24, 224, 240, .35); }
.btn-primary:hover { background: #38e9f7; box-shadow: 0 12px 34px rgba(24, 224, 240, .5); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 12, 15, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand img { height: 38px; width: auto; }
.nav { display: none; gap: 6px; margin-inline-start: auto; align-items: center; }
.nav a {
  color: var(--muted); padding: 8px 12px; border-radius: 10px; font-size: .98rem; font-weight: 500;
}
.nav a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--cyan); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.nav + .header-actions { margin-inline-start: 0; }
.brand { margin-inline-end: auto; }
/* On small screens, the CTA lives in the mobile menu, not the cramped header bar */
.header-actions .btn-primary { display: none; }
@media (min-width: 920px) {
  .brand { margin-inline-end: 0; }
  .header-actions { margin-inline-start: 0; }
  .header-actions .btn-primary { display: inline-block; }
}

/* language switcher */
.lang-switch { display: flex; gap: 4px; border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.lang-switch a {
  font-size: .82rem; font-weight: 600; color: var(--muted-2);
  padding: 5px 10px; border-radius: 999px; line-height: 1;
}
.lang-switch a:hover { color: var(--text); text-decoration: none; }
.lang-switch a[aria-current="true"] { background: var(--cyan); color: #00181b; }

.menu-toggle {
  margin-inline-start: auto; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); border-radius: 10px; padding: 8px 12px; font-size: 1.1rem; cursor: pointer;
}
.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--bg-2); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 14px 20px; color: var(--text); border-bottom: 1px solid var(--border); }
.mobile-nav a:hover { background: var(--surface); text-decoration: none; }

@media (min-width: 920px) {
  .nav { display: flex; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---------- Sections ---------- */
section { padding-block: clamp(48px, 8vw, 88px); }
.section-tight { padding-block: clamp(32px, 5vw, 56px); }
.eyebrow {
  display: inline-block; color: var(--cyan); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; font-size: .78rem; margin-bottom: 12px;
}
.section-intro { max-width: 760px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(56px, 10vw, 110px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 60% at 75% 15%, rgba(24, 224, 240, .16), transparent 70%),
    radial-gradient(50% 50% at 10% 90%, rgba(24, 224, 240, .08), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: 32px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(24,224,240,.1);
  border: 1px solid rgba(24,224,240,.35); color: var(--cyan); border-radius: 999px;
  padding: 6px 14px; font-size: .85rem; font-weight: 600; margin-bottom: 18px;
}
.hero-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.hero h1 { margin: 0 0 18px; }
.hero .lead { margin: 0 0 28px; max-width: 620px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-visual { display: flex; justify-content: center; }
.hero-visual .mascot-wrap {
  position: relative; padding: 28px; border-radius: 28px;
  background: radial-gradient(70% 70% at 50% 35%, rgba(24,224,240,.16), transparent 70%);
}
.hero-visual img { width: min(280px, 70vw); filter: drop-shadow(0 18px 40px rgba(24,224,240,.25)); }

@media (min-width: 920px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 48px; }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 680px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
}
.card h3 { margin: 0 0 10px; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px;
  background: rgba(24,224,240,.12); border: 1px solid rgba(24,224,240,.3);
  display: grid; place-items: center; color: var(--cyan); font-size: 1.4rem; font-weight: 700;
}

.split { display: grid; gap: 22px; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; } }

.prose { max-width: 820px; }
.prose h2 { margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); }
.muted-band { background: var(--bg-2); border-block: 1px solid var(--border); }

/* ---------- Forms ---------- */
.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 7px; color: var(--text); font-size: .95rem; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-family: inherit; font-size: 1rem;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--cyan); border-color: var(--cyan); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted-2); margin-top: 12px; }
.todo-note {
  font-size: .82rem; color: #d8b24a; background: rgba(216,178,74,.08);
  border: 1px dashed rgba(216,178,74,.4); border-radius: 10px; padding: 10px 12px; margin-top: 14px;
}
.waitlist-form { display: flex; flex-wrap: wrap; gap: 12px; max-width: 520px; }
.waitlist-form input { flex: 1 1 240px; }

/* ---------- Contact email blocks ---------- */
.email-block { display: flex; flex-direction: column; gap: 4px; }
.email-block a { font-size: 1.15rem; font-weight: 600; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-bottom: 1px solid var(--border); }
.page-hero .eyebrow { margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding-block: 52px 28px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; } }
.footer-brand img { height: 40px; margin-bottom: 14px; }
.footer-brand p { max-width: 320px; font-size: .95rem; }
.footer-col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--muted); font-size: .96rem; }
.footer-col a:hover { color: var(--cyan); }
.footer-lang { display: flex; gap: 8px; margin-top: 6px; }
.footer-lang a { color: var(--muted); font-size: .9rem; font-weight: 600; }
.footer-bottom {
  margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between;
}
.footer-bottom p { margin: 0; font-size: .88rem; color: var(--muted-2); }
.footer-legal-line { font-size: .9rem; color: var(--muted); margin-top: 4px; }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
ul.checklist { list-style: none; padding: 0; margin: 18px 0 0; }
ul.checklist li { position: relative; padding-inline-start: 30px; margin-bottom: 12px; color: var(--muted); }
ul.checklist li::before {
  content: "✓"; position: absolute; inset-inline-start: 0; top: 0;
  color: var(--cyan); font-weight: 700;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
