:root {
  --bg-main: #050815;
  --bg-alt: #090f21;
  --bg-alt-soft: #0d1328;
  --accent: #3ee2ff;
  --accent-soft: rgba(62, 226, 255, 0.25);
  --accent-strong: #7c5cff;
  --text-main: #f5f7ff;
  --text-muted: #a4afcf;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(9, 15, 33, 0.9);
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
  --radius-lg: 18px;
  --radius-xl: 26px;
  --transition-fast: 0.18s ease-out;
  --transition-med: 0.3s ease;
  --max-width: 1180px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  color: var(--text-main);
  background: radial-gradient(circle at top, #151c3b 0, #050815 45%, #02040a 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
}

/* Background stars */
.stars-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.2) 0, transparent 20%),
    radial-gradient(circle at 80% 10%, rgba(124, 92, 255, 0.25) 0, transparent 35%),
    radial-gradient(circle at 20% 80%, rgba(62, 226, 255, 0.15) 0, transparent 40%);
  opacity: 0.7;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section-dark {
  background: radial-gradient(circle at top, #141a33 0, #050815 60%, #050815 100%);
}

.section-contact {
  background: linear-gradient(
      135deg,
      rgba(62, 226, 255, 0.1),
      rgba(124, 92, 255, 0.04)
    ),
    var(--bg-main);
}

.section-header {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-header h2 {
  font-size: 2.1rem;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(5, 8, 21, 0.96),
    rgba(5, 8, 21, 0.75),
    transparent
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  position: relative;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-mark {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.logo-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 999px;
  transition: color var(--transition-fast), background var(--transition-fast),
    transform var(--transition-fast);
}

.main-nav a:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

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

.lang-switch {
  font-size: 0.78rem;
  color: var(--text-muted);
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-switch a {
  color: var(--text-muted);
  text-decoration: none;
}

/* Nav toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #020309;
  box-shadow: 0 10px 28px rgba(62, 226, 255, 0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.primary-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 16px 40px rgba(62, 226, 255, 0.5);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.ghost-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text-main);
}

.small {
  padding: 6px 12px;
  font-size: 0.78rem;
}

.full-width {
  width: 100%;
}

/* Hero */
.hero-section {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.3rem, 3vw, 2.9rem);
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 520px;
}

.hero-ctas {
  margin-top: 22px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hero-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(5, 10, 35, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

/* Hero visual: orb */
.hero-visual {
  justify-self: center;
}

.orb-wrapper {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #ffffff, #3ee2ff 35%, #050815 80%);
  filter: drop-shadow(0 18px 45px rgba(0, 0, 0, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.orb {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #3ee2ff, #7c5cff 45%, #050815 80%);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transition: transform 0.15s linear;
}

.orb-core {
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #020208;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.orb-ring {
  position: absolute;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 18px rgba(62, 226, 255, 0.6);
}

.orb-ring-1 {
  width: 160px;
  height: 160px;
  transform: rotateX(60deg);
}

.orb-ring-2 {
  width: 190px;
  height: 190px;
  transform: rotateY(55deg);
}

.orb-ring-3 {
  width: 210px;
  height: 210px;
  transform: rotate(30deg);
}

.hero-visual-caption {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 260px;
  text-align: center;
}

.hero-scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.scroll-line {
  width: 28px;
  height: 1px;
  background: var(--text-muted);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 14px;
  height: 100%;
  background: var(--accent);
  animation: scrollPulse 1.4s infinite;
}

@keyframes scrollPulse {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Grid and cards */
.grid {
  display: grid;
  gap: 20px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: 18px 18px 20px;
  font-size: 0.92rem;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.card p {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--text-muted);
}

.card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

/* Tilt card hover 3D effect */
.tilt-card {
  transform-style: preserve-3d;
  transform: perspective(700px) rotateX(0) rotateY(0);
  transition: transform var(--transition-med), box-shadow var(--transition-med),
    border-color var(--transition-med), background var(--transition-med);
}

.tilt-card:hover {
  transform: perspective(700px) rotateX(6deg) rotateY(-6deg) translateY(-4px);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.85);
  border-color: rgba(62, 226, 255, 0.7);
  background: radial-gradient(circle at top, rgba(62, 226, 255, 0.12), #050815);
}

/* Special layouts */
.highlights-section {
  padding-top: 40px;
}

.service-card,
.media-card {
  position: relative;
}

.placeholder {
  display: inline-block;
  font-size: 0.78rem;
  color: #9fa9d4;
  opacity: 0.9;
}

.placeholder-list {
  padding-left: 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.section-cta {
  margin-top: 40px;
  text-align: center;
}

.section-cta h3 {
  margin-bottom: 8px;
}

.section-cta p {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--text-muted);
}

/* PROCESS row */
.process-row {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.process-step {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: rgba(8, 12, 28, 0.95);
  padding: 16px 16px 18px;
  font-size: 0.9rem;
}

.step-number {
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* COVERAGE layout */
.coverage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 30px;
  align-items: flex-start;
}

.coverage-text ul {
  list-style: none;
  padding-left: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.coverage-text li {
  margin-bottom: 8px;
}

.coverage-text .label {
  color: var(--text-main);
  font-weight: 500;
}

.coverage-map {
  text-align: center;
}

.coverage-map img {
  width: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.map-caption {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* About layout */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 30px;
}

.about-team {
  padding: 18px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.team-member h4 {
  margin: 6px 0 2px;
  font-size: 0.98rem;
}

.team-member p {
  margin: 2px 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.avatar-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: rgba(8, 12, 28, 0.9);
  padding: 12px 16px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "＋";
  float: right;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin-top: 10px;
  color: var(--text-muted);
}

/* Careers */
.careers-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 30px;
}

.careers-openings ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.news-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.news-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 30px;
  align-items: flex-start;
}

.contact-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-info ul {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Form */
.contact-form-wrapper {
  background: rgba(5, 9, 26, 0.98);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-soft);
}

.form-row {
  margin-bottom: 12px;
}

.form-row label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 11, 30, 0.96);
  color: var(--text-main);
  font-size: 0.86rem;
  outline: none;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(62, 226, 255, 0.4);
}

.checkbox-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
}

.checkbox-row input[type="checkbox"] {
  width: 14px;
  height: 14px;
}

.form-status {
  margin-top: 8px;
  font-size: 0.8rem;
}

/* Footer */
.site-footer {
  padding: 16px 0 20px;
  background: rgba(2, 4, 12, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-domain {
  margin-left: 10px;
  color: var(--text-main);
}

.footer-right a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-right a:hover {
  color: var(--accent);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Client login */
.client-login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #141a33 0, #050815 80%);
}

.login-container {
  background: rgba(5, 9, 26, 0.95);
  padding: 30px 30px 26px;
  border-radius: 20px;
  width: 100%;
  max-width: 380px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 1;
}

.login-container h1 {
  margin: 0 0 6px;
}

.login-sub {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 0.88rem;
}

.login-note {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* RTL tweaks */
.rtl-body {
  direction: rtl;
  text-align: right;
}

.rtl-body .header-inner {
  flex-direction: row-reverse;
}

.rtl-body .main-nav {
  flex-direction: row-reverse;
}

.rtl-body .footer-inner {
  flex-direction: row-reverse;
}

.rtl-body .footer-domain {
  margin-left: 0;
  margin-right: 10px;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner,
  .coverage-layout,
  .about-layout,
  .careers-layout,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-section {
    padding-top: 72px;
  }

  .hero-inner {
    gap: 32px;
  }

  .hero-visual {
    order: -1;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding: 10px 0;
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav.open,
  .header-actions.open {
    display: flex;
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 52px;
    flex-direction: column;
    background: rgba(5, 8, 21, 0.98);
    padding: 10px 20px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .header-actions {
    position: absolute;
    right: 16px;
    top: 52px;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }

  .hero-section {
    padding-bottom: 80px;
  }

  .hero-meta {
    gap: 8px;
  }

  .grid-3,
  .news-grid,
  .process-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 32px;
  }
}