/* =========================================================
   DAMAN ACADEMY — shared styles
   Palette: deep navy ground, brass/gold for trust & credentials,
   teal reserved strictly for "AI / live data" moments.
   Type: Almarai (display) + IBM Plex Sans Arabic (body/UI)
   ========================================================= */

:root {
  --bg: #0A0F1C;
  --bg-alt: #0D1526;
  --surface: #121B2E;
  --surface-2: #16213A;
  --hairline: rgba(201, 161, 90, 0.16);
  --hairline-strong: rgba(201, 161, 90, 0.3);

  --text: #EEF1F7;
  --text-muted: #8D97AC;
  --text-faint: #626D85;

  --gold: #C9A15A;
  --gold-bright: #E4C07E;
  --gold-ink: #2A2109;

  --teal: #3FD0C9;
  --teal-soft: rgba(63, 208, 201, 0.12);
  --teal-line: rgba(63, 208, 201, 0.35);

  --danger: #E2685A;
  --danger-soft: rgba(226, 104, 90, 0.12);

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 18px;

  --container: 1180px;
  --shadow-deep: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans Arabic", "Tahoma", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 500px at 85% -10%, rgba(201,161,90,0.10), transparent 60%),
    radial-gradient(ellipse 700px 500px at 10% 10%, rgba(63,208,201,0.06), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4 {
  font-family: "Almarai", "IBM Plex Sans Arabic", sans-serif;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
  color: #fff;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gold-bright);
  font-weight: 600;
  padding-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.section {
  padding: 108px 0;
  position: relative;
  border-top: 1px solid var(--hairline);
}
.section-head {
  max-width: 620px;
  margin-bottom: 56px;
}
.section-head p.lede {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 17px;
  max-width: 60ch;
}

/* ---------------- Header ---------------- */
.site-header {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 100;
  background: rgba(10, 15, 28, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 40px; height: 40px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-s);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  background: linear-gradient(160deg, rgba(201,161,90,0.14), transparent);
}
.brand-mark span {
  font-family: "Almarai", sans-serif;
  font-weight: 800;
  color: var(--gold-bright);
  font-size: 18px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text b { font-family: "Almarai", sans-serif; font-weight: 800; font-size: 17px; color: #fff; }
.brand-text small { font-size: 11.5px; letter-spacing: 0.3px; color: var(--text-faint); }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  font-size: 14.5px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--text); }

.header-cta { display: flex; align-items: center; gap: 18px; }
.nav-toggle { display: none; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-s);
  font-size: 14.5px;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1C1608;
}
.btn-gold:hover { transform: translateY(-1px); }
.btn-ghost {
  border-color: var(--hairline-strong);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: default; transform: none; }

/* ---------------- Hero ---------------- */
.hero {
  padding: 168px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: 46px;
  letter-spacing: -0.5px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-bright);
}
.hero .lede {
  margin-top: 22px;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 52ch;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}
.hero-badges .badge {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.hero-badges .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* Hero AI panel visual */
.hero-visual {
  position: relative;
}
.panel {
  background: linear-gradient(180deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-l);
  padding: 26px 26px 22px;
  box-shadow: var(--shadow-deep);
  position: relative;
}
.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.panel-top .live {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--teal);
  font-weight: 600;
}
.panel-top .live i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}
.panel-top .pair { font-size: 13px; color: var(--text-muted); }
.panel-callout {
  position: absolute;
  top: 92px;
  left: 40px;
  background: var(--surface-2);
  border: 1px solid var(--teal-line);
  border-radius: var(--radius-s);
  padding: 9px 13px;
  font-size: 12px;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,0.7);
}
.panel-callout b { color: #fff; font-weight: 700; }
.panel-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.panel-stats div {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-s);
  padding: 12px 14px;
}
.panel-stats span {
  display: block;
  font-size: 11.5px;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.panel-stats b {
  font-family: "Almarai", sans-serif;
  font-size: 16px;
  color: #fff;
}
.panel-stats b.pos { color: var(--teal); }

/* ---------------- Feature / AI tools grid ---------------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.tool-card, .feature-card, .course-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-m);
  padding: 28px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.tool-card:hover, .course-card:hover {
  border-color: var(--hairline-strong);
  transform: translateY(-3px);
}
.tool-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-s);
  background: var(--teal-soft);
  border: 1px solid var(--teal-line);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.tool-card h3, .feature-card h3 {
  font-size: 17.5px;
  margin-bottom: 10px;
}
.tool-card p, .feature-card p {
  color: var(--text-muted);
  font-size: 14.5px;
}
.tool-tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 11.5px;
  color: var(--gold-bright);
  border: 1px solid var(--hairline-strong);
  border-radius: 20px;
  padding: 4px 12px;
}

.feature-card { display: flex; gap: 18px; padding: 26px; }
.feature-card .num {
  font-family: "Almarai", sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--gold);
  flex-shrink: 0;
  width: 34px;
}

/* ---------------- Courses ---------------- */
.course-card { display: flex; flex-direction: column; height: 100%; }
.course-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.level-badge {
  font-size: 11.5px;
  padding: 4px 11px;
  border-radius: 20px;
  border: 1px solid var(--hairline-strong);
  color: var(--gold-bright);
}
.duration {
  font-size: 12.5px;
  color: var(--text-faint);
}
.course-card h3 { font-size: 18px; margin-bottom: 10px; }
.course-card p { color: var(--text-muted); font-size: 14.5px; flex-grow: 1; }
.course-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.course-foot a { font-size: 14px; font-weight: 700; color: var(--gold-bright); }
.course-foot .fmt { font-size: 12.5px; color: var(--text-faint); }

/* ---------------- Process ---------------- */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.process-list li {
  padding: 30px 24px;
  background: var(--surface);
  position: relative;
}
.process-list li + li { border-right: 1px solid var(--hairline); }
.process-list .num {
  font-family: "Almarai", sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}
.process-list h4 { font-size: 15.5px; margin-bottom: 8px; }
.process-list p { font-size: 13.5px; color: var(--text-muted); }

/* ---------------- Registration form ---------------- */
.register-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-l);
  overflow: hidden;
}
.register-side {
  background: linear-gradient(165deg, var(--surface-2), var(--bg-alt));
  padding: 48px 40px;
  border-left: 1px solid var(--hairline);
}
.register-side h3 { font-size: 22px; margin-bottom: 16px; }
.register-side p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 30px; }
.register-side ul { display: flex; flex-direction: column; gap: 14px; }
.register-side li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--text-muted);
}
.register-side li i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); margin-top: 8px; flex-shrink: 0;
}
.register-form { padding: 48px 44px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-s);
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 90px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238D97AC' stroke-width='1.5' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; }
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.consent input { margin-top: 4px; accent-color: var(--gold); flex-shrink: 0; }
.consent a { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; }
.form-note {
  font-size: 12.5px;
  color: var(--text-faint);
  margin-top: 14px;
}
#form-success {
  display: none;
  text-align: center;
  padding: 40px 10px;
}
#form-success .check {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--teal-line);
  background: var(--teal-soft);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
#form-success h3 { font-size: 19px; margin-bottom: 10px; }
#form-success p { color: var(--text-muted); font-size: 14.5px; }

/* ---------------- Risk banner ---------------- */
.risk-banner {
  background: var(--danger-soft);
  border: 1px solid rgba(226,104,90,0.3);
  border-radius: var(--radius-m);
  padding: 20px 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 13.5px;
  color: #E9AFA8;
  line-height: 1.8;
}
.risk-banner b { color: #fff; }

/* ---------------- Footer ---------------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 64px 0 30px;
  background: var(--bg-alt);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 13.5px;
  margin-top: 14px;
  max-width: 34ch;
}
.footer-col h5 {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14px; color: var(--text-muted); }
.footer-col a:hover { color: var(--gold-bright); }
.footer-legal {
  padding-top: 30px;
  border-top: 1px solid var(--hairline);
}
.footer-legal .risk-banner { margin-bottom: 24px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------------- Legal pages (privacy / terms) ---------------- */
.legal-hero {
  padding: 158px 0 60px;
  border-bottom: 1px solid var(--hairline);
}
.legal-hero .eyebrow { padding-bottom: 10px; }
.legal-hero h1 { font-size: 34px; }
.legal-hero .updated { margin-top: 14px; color: var(--text-faint); font-size: 13.5px; }

.legal-body {
  padding: 64px 0 100px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 110px;
  border-right: 1px solid var(--hairline);
  padding-right: 24px;
}
.legal-toc h5 { font-size: 12.5px; color: var(--text-faint); margin-bottom: 16px; }
.legal-toc ul { display: flex; flex-direction: column; gap: 12px; }
.legal-toc a { font-size: 13.5px; color: var(--text-muted); }
.legal-toc a:hover { color: var(--gold-bright); }

.legal-content section { margin-bottom: 40px; }
.legal-content h2 {
  font-size: 19px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}
.legal-content p, .legal-content li {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 12px;
}
.legal-content ul { padding-right: 20px; list-style: disc; }
.legal-content strong { color: var(--text); }
.legal-content a.inline-link { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; }
.contact-box {
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-m);
  padding: 24px 26px;
  margin-top: 8px;
}
.contact-box p { margin-bottom: 6px; font-size: 14.5px; }
.contact-box b { color: #fff; }

/* ---------------- Mobile nav ---------------- */
.mobile-panel {
  display: none;
  position: fixed;
  inset: 78px 0 0 0;
  background: var(--bg);
  z-index: 99;
  padding: 30px 28px;
  overflow-y: auto;
}
.mobile-panel.open { display: block; }
.mobile-panel a {
  display: block;
  padding: 16px 0;
  font-size: 16px;
  border-bottom: 1px solid var(--hairline);
  color: var(--text);
}
.mobile-panel .btn { margin-top: 24px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .process-list li:nth-child(2) { border-left: none; }
  .process-list li + li { border-right: none; border-top: 1px solid var(--hairline); }
  .register-wrap { grid-template-columns: 1fr; }
  .register-side { border-left: none; border-bottom: 1px solid var(--hairline); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .legal-body { grid-template-columns: 1fr; }
  .legal-toc { position: static; border-right: none; padding-right: 0; border-bottom: 1px solid var(--hairline); padding-bottom: 24px; }
}
@media (max-width: 680px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--hairline-strong); border-radius: var(--radius-s); background: transparent; }
  .header-cta .btn-gold { display: none; }
  .hero { padding: 140px 0 80px; }
  .hero h1 { font-size: 32px; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .process-list li + li { border-top: 1px solid var(--hairline); }
  .form-row { grid-template-columns: 1fr; }
  .register-form { padding: 34px 24px; }
  .register-side { padding: 34px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 72px 0; }
}
