/* ==========================================================================
   AI Room Styles — modern dark-blue & white design
   ========================================================================== */

:root {
  --navy-900: #081227;
  --navy-800: #0b1f3f;
  --navy-700: #12294d;
  --navy-600: #1a3566;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --sky-300: #7cc7ff;
  --white: #ffffff;
  --off-white: #f5f7fb;
  --gray-500: #5b6472;
  --gray-400: #8a93a2;
  --border: #e5e9f0;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(11, 31, 63, 0.12);
  --shadow-lg: 0 24px 60px rgba(11, 31, 63, 0.22);
  --font-latin: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-arabic: 'Cairo', 'Inter', system-ui, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-latin);
  background: var(--white);
  color: var(--navy-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Arabic text (and RTL mode) */
body[dir="rtl"],
html[lang="ar"] body {
  font-family: var(--font-arabic);
  letter-spacing: 0;
}

.container {
  width: min(1080px, 92%);
  margin-inline: auto;
}

img {
  max-width: 100%;
  display: block;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1.05rem;
}

.btn-cta {
  background: linear-gradient(135deg, var(--blue-500), var(--navy-700));
  color: var(--white);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.45);
}

.btn-outline {
  background: var(--white);
  color: var(--navy-800);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--navy-700);
  background: var(--off-white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.btn-solid {
  background: var(--white);
  color: var(--navy-800);
}

.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.btn-arrow {
  font-size: 1.1rem;
  transition: transform 0.15s ease;
}

.btn-cta:hover .btn-arrow {
  transform: translateX(3px);
}

body[dir="rtl"] .btn-cta:hover .btn-arrow {
  transform: translateX(-3px) scaleX(-1);
}

body[dir="rtl"] .btn-arrow {
  transform: scaleX(-1);
}

.icon {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 31, 63, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}

.brand-logo {
  width: 96px;
  height: auto;
  /* Original logo is black; invert to white so it shows on the dark header */
  filter: brightness(0) invert(1) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(59, 130, 246, 0.25), transparent 60%),
    radial-gradient(800px 400px at 10% 110%, rgba(124, 199, 255, 0.15), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: var(--white);
  padding: 96px 0 72px;
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sky-300);
  backdrop-filter: blur(6px);
}

.badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.hero-title {
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: linear-gradient(120deg, #ffffff 40%, var(--sky-300) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
}

/* --------------------------------------------------------------------------
   Notice
   -------------------------------------------------------------------------- */

.notice {
  padding: 56px 0 16px;
}

.notice-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 6px solid var(--blue-500);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

body[dir="rtl"] .notice-card {
  border-left: 1px solid var(--border);
  border-right: 6px solid var(--blue-500);
}

.notice-icon {
  font-size: 2.2rem;
  line-height: 1;
  padding-top: 4px;
}

.notice-title {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.notice-text {
  color: var(--gray-500);
  font-size: 1.02rem;
  max-width: 68ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.cards {
  padding: 48px 0 64px;
  background: var(--off-white);
  border-block: 1px solid var(--border);
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--blue-400);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(11, 31, 63, 0.08));
  margin-bottom: 18px;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.card-text {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.link {
  display: inline-block;
  color: var(--blue-500);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   CTA banner
   -------------------------------------------------------------------------- */

.cta-banner {
  background:
    radial-gradient(700px 320px at 20% 0%, rgba(124, 199, 255, 0.25), transparent 60%),
    linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: var(--white);
  padding: 72px 0;
  text-align: center;
}

.cta-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cta-banner-title {
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cta-banner-text {
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.75);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.footer-logo {
  width: 84px;
  height: auto;
  /* Original logo is black; invert to white so it shows on the dark footer */
  filter: brightness(0) invert(1) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
}

.footer-links a {
  color: var(--sky-300);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  .brand-name {
    display: none;
  }

  .notice-card {
    grid-template-columns: 1fr;
    padding: 26px 22px;
  }

  .hero {
    padding: 68px 0 56px;
  }
}
