/* JobSouq Coming Soon — tokens and patterns from the existing JobSouq app. */

:root {
  --background: #ffffff;
  --foreground: #1e2a5a;
  --secondary-background: #f5f7fa;
  --jsq-app-bg: #f8fafc;
  --jsq-app-text: #0f172a;
  --jsq-surface: #ffffff;
  --jsq-surface-muted: #f8fafc;
  --jsq-border: #e2e8f0;
  --jsq-navbar-bg: rgba(255, 255, 255, 0.95);
  --jsq-nav-height: 4rem;
  --jsq-primary: #2563eb;
  --jsq-primary-hover: #1d4ed8;
  --jsq-primary-soft: #dbeafe;
  --jsq-text-muted: #475569;
  --jsq-text-subtle: #64748b;
  --jsq-radius-md: 0.5rem;
  --jsq-radius-lg: 0.75rem;
  --jsq-radius-xl: 1rem;
  --jsq-shadow-sm: 0 1px 2px rgb(15 23 42 / 0.08);
  --jsq-shadow-md: 0 6px 20px rgb(15 23 42 / 0.08);
  --jsq-space-page-x: 1rem;
  --font-sans: "Geist", "IBM Plex Sans Arabic", Arial, Helvetica, sans-serif;
  color-scheme: light;
}

html[lang="ar"] {
  --font-sans: "IBM Plex Sans Arabic", "Geist", Arial, Helvetica, sans-serif;
}

html.dark {
  --background: #0f172a;
  --foreground: #e2e8f0;
  --secondary-background: #1e293b;
  --jsq-app-bg: #0f172a;
  --jsq-app-text: #e2e8f0;
  --jsq-surface: #1e293b;
  --jsq-surface-muted: #0f172a;
  --jsq-border: #334155;
  --jsq-navbar-bg: rgba(15, 23, 42, 0.95);
  --jsq-primary: #3b82f6;
  --jsq-primary-hover: #60a5fa;
  --jsq-primary-soft: rgb(59 130 246 / 0.16);
  --jsq-text-muted: #94a3b8;
  --jsq-text-subtle: #94a3b8;
  --jsq-shadow-sm: 0 1px 2px rgb(2 6 23 / 0.45);
  --jsq-shadow-md: 0 8px 28px rgb(2 6 23 / 0.35);
  color-scheme: dark;
}

@media (min-width: 640px) {
  :root {
    --jsq-space-page-x: 1.5rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --jsq-space-page-x: 2.5rem;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  background-color: var(--jsq-app-bg);
  color: var(--jsq-app-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--jsq-primary);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -3rem;
  z-index: 100;
  border-radius: var(--jsq-radius-md);
  background: var(--jsq-primary);
  color: #fff;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.app-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background-color: var(--jsq-app-bg);
  color: var(--jsq-app-text);
}

.nav-shell {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--jsq-nav-height);
  border-bottom: 1px solid var(--jsq-border);
  background-color: var(--jsq-navbar-bg);
  box-shadow: var(--jsq-shadow-sm);
  backdrop-filter: blur(10px);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-inner {
  display: flex;
  height: 100%;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-inline: var(--jsq-space-page-x);
}

.brand {
  flex-shrink: 0;
  color: #0f172a;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

html.dark .brand {
  color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  display: inline-flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--jsq-radius-md);
  background: transparent;
  color: #334155;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.icon-btn:hover {
  background: #f1f5f9;
  color: var(--jsq-primary);
}

html.dark .icon-btn {
  color: #e2e8f0;
}

html.dark .icon-btn:hover {
  background: #1e293b;
  color: #93c5fd;
}

.icon-btn svg {
  height: 1rem;
  width: 1rem;
}

.lang-btn {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.lang-btn [data-lang-label] {
  line-height: 1;
}

.lang-btn [data-lang-label][lang="ar"] {
  font-family: "IBM Plex Sans Arabic", "Geist", sans-serif;
  font-size: 1.05rem;
}

.lang-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

body.is-lang-switching {
  overflow: hidden;
}

.lang-switch-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgb(248 250 252 / 0.95);
  backdrop-filter: blur(10px);
}

html.dark .lang-switch-overlay {
  background: rgb(15 23 42 / 0.95);
}

.lang-switch-overlay[hidden] {
  display: none;
}

.lang-switch-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding-inline: 1.5rem;
}

.lang-switch-logo-mark {
  position: relative;
  display: flex;
  height: 8rem;
  width: 8rem;
  align-items: center;
  justify-content: center;
}

.lang-switch-logo-img {
  position: relative;
  z-index: 1;
  width: 4.75rem;
  height: auto;
  object-fit: contain;
  animation: jsq-lang-logo-pulse 1.15s ease-in-out infinite;
}

.lang-switch-copy {
  text-align: center;
}

.lang-switch-brand {
  margin: 0;
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 600;
}

html.dark .lang-switch-brand {
  color: #fff;
}

.lang-switch-status {
  margin: 0.5rem 0 0;
  color: var(--jsq-text-muted);
  font-size: 0.875rem;
}

.lang-switch-status::after {
  content: "";
  display: inline-block;
  width: 1.15em;
  text-align: start;
  animation: jsq-lang-dots 1.1s steps(4, end) infinite;
}

@keyframes jsq-lang-logo-pulse {
  0%,
  100% {
    opacity: 0.88;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@keyframes jsq-lang-dots {
  0% {
    content: "";
  }
  25% {
    content: ".";
  }
  50% {
    content: "..";
  }
  75% {
    content: "...";
  }
}

.lang-switch-ring {
  position: absolute;
  box-sizing: border-box;
  border-radius: 9999px;
  transform-origin: 50% 50%;
  will-change: transform;
}

.lang-switch-ring-track {
  inset: 0;
  border: 3.5px solid rgb(37 99 235 / 0.12);
}

html.dark .lang-switch-ring-track {
  border-color: rgb(96 165 250 / 0.14);
}

.lang-switch-ring-outer {
  inset: 0;
  border: 3.5px solid transparent;
  border-top-color: #2563eb;
  border-right-color: #2563eb;
}

html.dark .lang-switch-ring-outer {
  border-top-color: #60a5fa;
  border-right-color: #60a5fa;
}

.lang-switch-ring-inner {
  inset: 0.7rem;
  border: 3.5px solid transparent;
  border-bottom-color: #34d399;
  border-left-color: #34d399;
}

@media (prefers-reduced-motion: reduce) {
  .lang-switch-logo-img,
  .lang-switch-status::after {
    animation: none;
  }
}

.page {
  flex: 1;
}

.container {
  margin-inline: auto;
  width: 100%;
  max-width: 80rem;
  padding-inline: var(--jsq-space-page-x);
}

.hero {
  border-bottom: 1px solid var(--jsq-border);
  background-color: var(--background);
  background-image:
    radial-gradient(circle at 1px 1px, rgb(148 163 184 / 0.22) 1px, transparent 0);
  background-size: 22px 22px;
}

html.dark .hero {
  background-image:
    radial-gradient(circle at 1px 1px, rgb(148 163 184 / 0.12) 1px, transparent 0);
}

.hero-grid {
  padding-block: 3rem;
}

@media (min-width: 640px) {
  .hero-grid {
    padding-block: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    padding-block: 4.5rem;
  }
}

.hero-main {
  display: grid;
  gap: 1.5rem;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hero-copy { order: 1; }
.hero-visual { order: 2; }
.hero-main > .badge-soon { order: 3; }
.hero-main > .signup-card { order: 4; }

@media (min-width: 640px) {
  .hero-main {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    grid-template-rows: auto auto;
    column-gap: 2.25rem;
    row-gap: 1.15rem;
    align-items: stretch;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 1;
    order: unset;
  }

  .hero-visual {
    grid-column: 2;
    grid-row: 1;
    order: unset;
  }

  .hero-main > .signup-card {
    grid-column: 1;
    grid-row: 2;
    order: unset;
    margin-top: 0;
  }

  .hero-main > .badge-soon {
    grid-column: 2;
    grid-row: 2;
    order: unset;
    width: 100%;
    height: 100%;
    margin-top: 0;
    align-self: stretch;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--jsq-border);
  border-radius: 999px;
  background: var(--jsq-surface);
  color: var(--jsq-primary);
  padding: 0.28rem 0.7rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.badge-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--jsq-primary);
  box-shadow: 0 0 0 4px var(--jsq-primary-soft);
}

.build-scene {
  color: var(--jsq-primary);
  width: 100%;
  margin: 0;
}

.build-scene-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.badge-soon {
  display: flex;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 4.1rem;
  gap: 0.55rem;
  border: 1px solid var(--jsq-border);
  border-radius: 0.9rem;
  background: var(--jsq-surface);
  color: var(--jsq-primary);
  padding: 1.15rem 1.5rem 1.25rem;
  font-size: clamp(1.35rem, 4.2vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: var(--jsq-shadow-sm);
}

.badge-soon::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(-45deg, var(--jsq-primary) 0 8px, #0f172a 8px 16px),
    repeating-linear-gradient(-45deg, var(--jsq-primary) 0 8px, #0f172a 8px 16px);
  background-repeat: repeat-x;
  background-size: 22px 0.48rem;
  background-position: 0 0, 0 100%;
  animation: jsq-tape 0.7s linear infinite;
}

.badge-soon::after,
.badge-soon .badge-dot {
  display: none;
}

.badge-soon > :not(.badge-dot) {
  position: relative;
  z-index: 1;
}

html.dark .badge-soon {
  background: var(--jsq-surface);
  border-color: var(--jsq-border);
  color: #93c5fd;
}

html[lang="ar"] .badge-soon {
  letter-spacing: 0.12em;
  text-transform: none;
}

@keyframes jsq-tape {
  to {
    background-position: 22px 0, 22px 100%;
  }
}

.hero h1 {
  margin: 1rem 0 0;
  color: #0f172a;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  text-wrap: balance;
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 1.875rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 2.25rem;
  }
}

html.dark .hero h1 {
  color: #fff;
}

.lede,
.aside {
  margin: 1rem 0 0;
  max-width: 36rem;
  color: #475569;
  font-size: 0.975rem;
}

html.dark .lede,
html.dark .aside {
  color: #94a3b8;
}

.aside {
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.intent-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.ui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  border-radius: 0.125rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ui-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.ui-btn-primary {
  border: 0;
  background: #2563eb;
  color: #fff;
}

.ui-btn-primary:hover:not(:disabled) {
  background: #3b82f6;
}

html.dark .ui-btn-primary {
  background: #2563eb;
}

html.dark .ui-btn-primary:hover:not(:disabled) {
  background: #3b82f6;
}

.ui-btn-outline {
  border: 1px solid var(--jsq-border);
  background: var(--jsq-surface);
  color: var(--jsq-app-text);
}

.ui-btn-outline:hover {
  background: color-mix(in srgb, var(--jsq-surface) 75%, var(--jsq-primary) 25%);
}

.ui-btn-outline.is-active {
  border-color: var(--jsq-primary);
  color: var(--jsq-primary);
  background: var(--jsq-primary-soft);
}

.signup-card {
  border: 1px solid var(--jsq-border);
  border-radius: 0.375rem;
  background: var(--secondary-background);
  padding: 1.5rem;
  box-shadow: var(--jsq-shadow-sm);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.signup-card h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 600;
}

html.dark .signup-card h2 {
  color: #fff;
}

.signup-card p {
  margin: 0.75rem 0 0;
  color: #475569;
  font-size: 0.875rem;
}

html.dark .signup-card p {
  color: #94a3b8;
}

.signup-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.signup-form .ui-btn-primary {
  width: 100%;
}

@media (min-width: 640px) {
  .signup-form {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .signup-form .field {
    grid-column: 1;
  }

  .signup-form .ui-btn-primary {
    grid-column: 2;
    width: auto;
    white-space: nowrap;
    margin-bottom: 0;
  }

  .signup-form .field-error,
  .signup-form .form-status {
    grid-column: 1 / -1;
  }
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  color: #334155;
  font-size: 0.8125rem;
  font-weight: 600;
}

html.dark .field label {
  color: #cbd5e1;
}

.ui-input,
.ui-textarea {
  width: 100%;
  border: 1px solid var(--jsq-border);
  border-radius: var(--jsq-radius-md);
  background: var(--jsq-surface);
  color: var(--jsq-app-text);
  padding: 0.5rem 0.75rem;
  min-height: 2.5rem;
}

html.dark .ui-input,
html.dark .ui-textarea {
  background: var(--jsq-app-bg);
}

.ui-textarea {
  min-height: 8rem;
  resize: vertical;
}

.ui-input:focus,
.ui-textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--jsq-primary) 28%, transparent);
}

.ui-input[aria-invalid="true"],
.ui-textarea[aria-invalid="true"] {
  border-color: #dc2626;
}

.field-error {
  margin: 0;
  color: #dc2626;
  font-size: 0.8125rem;
}

html.dark .field-error {
  color: #f87171;
}

.form-status {
  margin: 0;
  color: #166534;
  font-size: 0.875rem;
  font-weight: 500;
}

html.dark .form-status {
  color: #86efac;
}

.form-status[hidden],
.field-error[hidden] {
  display: none;
}

.value {
  border-top: 1px solid var(--jsq-border);
  background: var(--secondary-background);
}

.value-grid {
  display: grid;
  gap: 1rem;
  padding-block: 2.5rem;
}

@media (min-width: 768px) {
  .value-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    padding-block: 3rem;
  }
}

.value-card {
  border: 1px solid var(--jsq-border);
  border-radius: 0.375rem;
  background: var(--jsq-surface);
  padding: 1.25rem;
  box-shadow: var(--jsq-shadow-sm);
}

.value-icon {
  display: inline-flex;
  height: 2.25rem;
  width: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--jsq-radius-md);
  background: var(--jsq-primary-soft);
  color: var(--jsq-primary);
}

.value-icon svg {
  height: 1rem;
  width: 1rem;
}

.value-card h2 {
  margin: 0.85rem 0 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 600;
}

html.dark .value-card h2 {
  color: #fff;
}

.value-card p {
  margin: 0.5rem 0 0;
  color: var(--jsq-text-muted);
  font-size: 0.875rem;
}

.site-footer {
  border-top: 1px solid var(--jsq-border);
  background: var(--secondary-background);
}

.footer-inner {
  padding-block: 2rem;
}

@media (min-width: 1024px) {
  .footer-inner {
    padding-block: 2.5rem;
  }
}

.footer-brand {
  display: inline-flex;
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
}

html.dark .footer-brand {
  color: #fff;
}

.footer-tagline {
  margin: 0.75rem 0 0;
  max-width: 20rem;
  color: #475569;
  font-size: 0.875rem;
}

html.dark .footer-tagline {
  color: #94a3b8;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--jsq-border);
}

.footer-copy,
.footer-links a {
  color: #64748b;
  font-size: 0.75rem;
}

html.dark .footer-copy,
html.dark .footer-links a {
  color: #94a3b8;
}

.footer-copy {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: #2563eb;
}

html.dark .footer-links a:hover,
html.dark .footer-links a[aria-current="page"] {
  color: #60a5fa;
}

.legal {
  background: var(--background);
  border-bottom: 1px solid var(--jsq-border);
}

.legal-inner {
  padding-block: 2.5rem 4rem;
  max-width: 46rem;
}

.legal h1 {
  margin: 0;
  color: #0f172a;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

html.dark .legal h1 {
  color: #fff;
}

.legal .updated {
  margin: 0.75rem 0 0;
  color: var(--jsq-text-subtle);
  font-size: 0.875rem;
}

.legal h2 {
  margin: 2rem 0 0;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 600;
}

html.dark .legal h2 {
  color: #fff;
}

.legal p,
.legal li {
  color: #475569;
  font-size: 0.95rem;
}

html.dark .legal p,
html.dark .legal li {
  color: #94a3b8;
}

.legal ul {
  padding-inline-start: 1.2rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

@keyframes jsq-page-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.jsq-page-enter {
  animation: jsq-page-enter 340ms ease-out both;
}

.jsq-content-reveal {
  animation: jsq-page-enter 380ms ease-out both;
}

.jsq-content-reveal-delay {
  animation: jsq-page-enter 420ms ease-out 80ms both;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .jsq-page-enter,
  .jsq-content-reveal,
  .jsq-content-reveal-delay,
  .badge-soon::before {
    animation: none;
  }
}
