/* ==========================================================================
   Rataal Solutions — design tokens
   ========================================================================== */
:root {
  /* color */
  --bg: #0a1420;
  --bg-elevated: #0f1d2e;
  --bg-elevated-2: #142338;
  --line: #1e2f42;
  --line-soft: #16232f;
  --text: #e8eef3;
  --text-muted: #8ca3b8;
  --text-dim: #5c7186;
  --blue: #0495d6;
  --blue-bright: #3dbbf0;
  --blue-dim: #063a54;
  --gold: #f6ae38;
  --gold-dim: #4a3416;

  /* type */
  --font-display: "Sora", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;

  /* layout */
  --content-width: 1160px;
  --gutter: clamp(24px, 5vw, 64px);
  --section-space: clamp(64px, 10vw, 128px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

.wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-space) 0;
  border-bottom: 1px solid var(--line-soft);
}

.section:last-of-type { border-bottom: none; }

.eyebrow-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}

.eyebrow-mark svg { flex-shrink: 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--text);
}

.section-head p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 17px;
  max-width: 56ch;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: #ffffff;
}
.btn-primary:hover { background: var(--blue-bright); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--blue-bright); color: var(--blue-bright); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 20, 32, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 24px;
  height: 96px;
}

.brand img { height: 56px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.main-nav ul {
  display: flex;
  gap: 52px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
}

.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); }

.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -30px;
  height: 2px;
  background: var(--gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 900px) {
  .site-header .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .main-nav ul { display: none; }
  .nav-actions .btn-glow { display: none; }
  .nav-toggle { display: block; }

  .main-nav.open ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 96px;
    left: 0; right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
  }
  .main-nav.open ul a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .main-nav.open ul a[aria-current="page"]::after {
    display: none;
  }
  .main-nav.open ul a[aria-current="page"] {
    color: var(--gold);
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: clamp(56px, 9vw, 108px) 0 var(--section-space);
  border-bottom: 1px solid var(--line-soft);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(36px, 5vw, 58px);
  color: var(--text);
}

.hero-copy h1 .accent { color: var(--blue-bright); }

.hero-copy p {
  margin-top: 24px;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.hero-stat .num {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--text);
  font-weight: 600;
}
.hero-stat .label {
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 4px;
}

.hero-graphic { position: relative; align-self: flex-start; margin-top: -32px; }
.hero-graphic svg { width: 100%; height: auto; }

.facet-anim {
  transform-box: fill-box;
  transform-origin: center;
  animation: facet-settle 1.1s cubic-bezier(.2,.8,.2,1) both;
}
.facet-anim.f2 { animation-delay: 0.08s; }
.facet-anim.f3 { animation-delay: 0.16s; }
.facet-anim.f4 { animation-delay: 0.24s; }

@keyframes facet-settle {
  from { opacity: 0; transform: scale(0.85) translateY(14px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-graphic { order: -1; max-width: 320px; margin: 0 auto 16px; }
}

/* ==========================================================================
   Services / asymmetric list
   ========================================================================== */
.service-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  padding: 36px 0;
  border-top: 1px solid var(--line-soft);
}
.service-row:last-child { border-bottom: 1px solid var(--line-soft); }

.service-row .diamond-bullet { margin-bottom: 14px; }

.service-row h3 {
  font-size: 22px;
  color: var(--text);
}

.service-row .service-desc p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 62ch;
}

.service-row .service-desc ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px 24px;
}

.service-row .service-desc li {
  font-size: 14.5px;
  color: var(--text-dim);
  padding-left: 16px;
  position: relative;
}
.service-row .service-desc li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

@media (max-width: 720px) {
  .service-row { grid-template-columns: 1fr; gap: 16px; }
  .service-row .service-desc ul { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Vision
   ========================================================================== */
.vision-section {
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.vision-statement h2 {
  font-size: clamp(26px, 3vw, 34px);
  color: var(--text);
}

.vision-statement p {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 17px;
  max-width: 48ch;
}

.vision-pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.vision-pillars li {
  padding-left: 26px;
  position: relative;
  color: var(--text);
  font-size: 16px;
}

.vision-pillars li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 10px; height: 10px;
  background: var(--gold);
  transform: rotate(45deg);
}

.vision-pillars span {
  display: block;
  color: var(--text-dim);
  font-size: 14.5px;
  margin-top: 4px;
}

@media (max-width: 800px) {
  .vision-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ==========================================================================
   Cards used sparingly (industries)
   ========================================================================== */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.industry-cell {
  background: var(--bg);
  padding: 0;
  display: flex;
  flex-direction: column;
}

.industry-photo-wrap {
  position: relative;
  height: 148px;
  overflow: hidden;
}
.industry-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) saturate(1.05);
  transition: transform 0.4s ease, filter 0.4s ease;
  display: block;
}
.industry-cell:hover .industry-photo {
  transform: scale(1.06);
  filter: brightness(0.8) saturate(1.1);
}

.industry-cell-body {
  padding: 0 24px 28px;
  position: relative;
  flex: 1;
}

.icon-badge {
  width: 52px;
  height: 52px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -26px;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}
.icon-badge .icon {
  width: 26px;
  height: 26px;
  margin: 0;
}

.industry-cell h4 {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 10px;
}
.industry-cell p {
  color: var(--text-muted);
  font-size: 14.5px;
}

/* ==========================================================================
   Partners strip
   ========================================================================== */
.partner-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.partner-chip {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  height: 108px;
  transition: border-color 0.2s ease;
}
.partner-chip:hover {
  border-color: var(--blue-bright);
}

.partner-chip img {
  max-height: 42px;
  width: auto;
  max-width: 100%;
}

@media (max-width: 720px) {
  .partner-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--section-space) 0;
}
.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-size: clamp(26px, 3vw, 34px);
  max-width: 520px;
}
.cta-band p {
  color: var(--text-muted);
  margin-top: 12px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-soft);
}
.footer-brand img { height: 34px; margin-bottom: 16px; }
.footer-brand p {
  color: var(--text-dim);
  font-size: 14px;
  max-width: 30ch;
}
.footer-col h5 {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--text-dim);
  font-size: 14.5px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--blue-bright); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  color: var(--text-dim);
  font-size: 13.5px;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Interior page header band
   ========================================================================== */
.page-hero {
  padding: clamp(48px, 7vw, 80px) 0 56px;
  border-bottom: 1px solid var(--line-soft);
}
.page-hero h1 {
  font-size: clamp(32px, 4.4vw, 48px);
  max-width: 20ch;
}
.page-hero p {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 17px;
  max-width: 56ch;
}

/* ==========================================================================
   Story / about layout
   ========================================================================== */
.story-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}
.story-grid .story-facts {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.story-fact .num {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--blue-bright);
  font-weight: 600;
}
.story-fact .label {
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 2px;
}
.story-copy p {
  color: var(--text-muted);
  font-size: 16.5px;
  max-width: 62ch;
}
.story-copy p + p { margin-top: 18px; }

@media (max-width: 800px) {
  .story-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ==========================================================================
   Process steps (genuine sequence — numbered)
   ========================================================================== */
.process-list {
  display: flex;
  flex-direction: column;
}
.process-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line-soft);
}
.process-step:last-child { border-bottom: 1px solid var(--line-soft); }
.process-step .step-num {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold);
  font-weight: 600;
}
.process-step h4 {
  font-size: 18px;
  color: var(--text);
}
.process-step p {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 15px;
  max-width: 60ch;
}

@media (max-width: 600px) {
  .process-step { grid-template-columns: 40px 1fr; }
}

/* ==========================================================================
   Services page — platform detail blocks
   ========================================================================== */
.platform-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  padding: 48px 0;
  border-top: 1px solid var(--line-soft);
}
.platform-block:last-child { border-bottom: 1px solid var(--line-soft); }
.platform-block h3 {
  font-size: 24px;
  color: var(--text);
}
.platform-block .platform-tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--gold);
}
.platform-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.platform-group h5 {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 10px;
}
.platform-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.platform-group li {
  font-size: 14.5px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  margin-bottom: 8px;
}
.platform-group li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 6px; height: 6px;
  background: var(--blue-bright);
  transform: rotate(45deg);
}
@media (max-width: 800px) {
  .platform-block { grid-template-columns: 1fr; gap: 20px; }
  .platform-groups { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}
.contact-info-item .label {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.contact-info-item .value {
  font-size: 16px;
  color: var(--text);
}
.contact-info-item a.value:hover { color: var(--blue-bright); }

.form-field {
  margin-bottom: 20px;
}
.form-field label {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 3px;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 2px solid var(--blue-bright);
  outline-offset: 1px;
  border-color: var(--blue-bright);
}
.form-field textarea { resize: vertical; min-height: 120px; }

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ==========================================================================
   Partners page detail
   ========================================================================== */
.partner-detail {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid var(--line-soft);
}
.partner-detail:last-child { border-bottom: 1px solid var(--line-soft); }
.partner-detail .partner-chip { height: 90px; }
.partner-detail p {
  color: var(--text-muted);
  font-size: 15.5px;
  max-width: 62ch;
}
@media (max-width: 700px) {
  .partner-detail { grid-template-columns: 1fr; gap: 16px; }
}

/* ==========================================================================
   Glow button (header CTA)
   ========================================================================== */
.btn-glow {
  position: relative;
  background: transparent;
  border: 1.5px solid transparent;
  border-image: linear-gradient(100deg, var(--blue-bright), var(--gold)) 1;
  border-radius: 0;
  color: var(--text);
  box-shadow: 0 0 0 rgba(61, 187, 240, 0);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.btn-glow:hover {
  box-shadow: 0 0 22px rgba(61, 187, 240, 0.35), 0 0 22px rgba(246, 174, 56, 0.2);
  transform: translateY(-1px);
}

/* ==========================================================================
   Vision v2 — bordered panel + pillar cards
   ========================================================================== */
.vision-panel {
  border: 1px solid var(--line);
  background: linear-gradient(155deg, var(--bg-elevated), var(--bg-elevated-2));
  padding: clamp(40px, 6vw, 64px);
  text-align: center;
}

.vision-panel > h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  margin-bottom: 32px;
}

.vision-statement-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10, 20, 32, 0.4);
  padding: clamp(28px, 4vw, 40px) clamp(24px, 5vw, 56px);
  max-width: 780px;
  margin: 0 auto;
}

.vision-statement-card p {
  color: var(--text-muted);
  font-size: 17.5px;
  line-height: 1.7;
}

.vision-pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 40px auto 0;
}

.vision-pillar-card {
  border: 1px solid var(--line);
  background: rgba(10, 20, 32, 0.35);
  padding: 24px 22px;
  text-align: left;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.vision-pillar-card:hover {
  border-color: var(--blue-bright);
  transform: translateY(-2px);
}

.vision-pillar-card .icon {
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
}

.vision-pillar-card h4 {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 8px;
}

.vision-pillar-card p {
  font-size: 14px;
  color: var(--text-dim);
}

@media (max-width: 800px) {
  .vision-pillar-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Industry icons
   ========================================================================== */
.industry-cell .icon,
.service-row .icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  display: block;
}

/* ==========================================================================
   Glowing gradient stat numbers
   ========================================================================== */
.hero-stat .num.stat-glow {
  background: linear-gradient(100deg, var(--blue-bright), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(61, 187, 240, 0.3));
}

/* ==========================================================================
   Hero graphic — continuous gentle drift (after entrance settles)
   ========================================================================== */
.hero-float {
  transform-box: fill-box;
  transform-origin: center;
  animation: hero-drift 7s ease-in-out infinite;
  animation-delay: 1.3s;
}
@keyframes hero-drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-9px) rotate(1.1deg); }
}

/* ==========================================================================
   Partners — scrolling marquee
   ========================================================================== */
.partner-marquee {
  position: relative;
  overflow: hidden;
}
.partner-marquee::before,
.partner-marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.partner-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}
.partner-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}
.partner-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee-scroll 24s linear infinite;
}
.partner-marquee:hover .partner-track {
  animation-play-state: paused;
}
.partner-track .partner-chip {
  flex: 0 0 auto;
  width: 220px;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Smaller header CTA
   ========================================================================== */
.main-nav .btn {
  padding: 9px 20px;
  font-size: 14px;
}

/* ==========================================================================
   Title glow (section headings)
   ========================================================================== */
.title-glow {
  background: linear-gradient(100deg, var(--blue-bright), var(--gold)) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 0 10px rgba(61, 187, 240, 0.25));
}

/* ==========================================================================
   Centered section headers (site-wide, matches vision section treatment)
   ========================================================================== */
.section-head {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-head p {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Services — card layout (matches reference: card + checklist + tags + CTA)
   ========================================================================== */
.service-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}

.service-card {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.service-card h3 {
  font-size: 20px;
  color: var(--text);
  margin-bottom: 10px;
}

.service-card .card-desc {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-bottom: 22px;
}

.service-card .start-here {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.service-card .checklist {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}
.service-card .checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.service-card .checklist li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.service-card .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.service-card .card-tag {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(61, 187, 240, 0.08);
  border: 1px solid var(--line);
  color: var(--text-dim);
}

.service-card .card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
}
.service-card .card-footer .link {
  font-size: 14px;
  color: var(--blue-bright);
  white-space: nowrap;
}
.service-card .card-footer .btn {
  padding: 10px 18px;
  font-size: 14px;
}

.services-cta-banner {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--bg-elevated), var(--blue-dim));
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.services-cta-banner h4 {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 6px;
}
.services-cta-banner p {
  color: var(--text-muted);
  font-size: 14.5px;
}

@media (max-width: 900px) {
  .service-card-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Homepage service tiles — lightweight, interactive, name-first
   ========================================================================== */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-tile {
  display: block;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
  position: relative;
  overflow: hidden;
}

.service-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(61,187,240,0.08), rgba(246,174,56,0.08));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.service-tile:hover {
  border-color: var(--blue-bright);
  transform: translateY(-4px);
}
.service-tile:hover::before { opacity: 1; }

.service-tile .tile-icon {
  width: 38px;
  height: 38px;
  margin: 0 auto 18px;
  transition: transform 0.3s ease;
  position: relative;
}
.service-tile:hover .tile-icon {
  transform: scale(1.12) rotate(-4deg);
}

.service-tile h3 {
  font-size: 16.5px;
  color: var(--text);
  position: relative;
}

.service-tile .tile-arrow {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-dim);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease;
  position: relative;
}
.service-tile:hover .tile-arrow {
  opacity: 1;
  transform: translateY(0);
  color: var(--gold);
}

@media (max-width: 800px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Odoo text wordmark (official logo files blocked from automated fetch —
   recreated as brand-accurate text mark instead of an image)
   ========================================================================== */
.odoo-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: #714B67;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   Hero particle network background
   ========================================================================== */
.hero, .page-hero {
  position: relative;
  overflow: hidden;
}
.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero .wrap, .page-hero .wrap {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
/* ==========================================================================
   Drifting ambient gradient glow (Vision panel + CTA band)
   ========================================================================== */
.vision-panel, .cta-band {
  position: relative;
  overflow: hidden;
}
.vision-panel::after, .cta-band::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61,187,240,0.16), transparent 70%);
  filter: blur(10px);
  top: -120px;
  left: -80px;
  z-index: 0;
  animation: drift-glow 16s ease-in-out infinite alternate;
  pointer-events: none;
}
.vision-panel::before, .cta-band::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246,174,56,0.13), transparent 70%);
  filter: blur(10px);
  bottom: -140px;
  right: -60px;
  z-index: 0;
  animation: drift-glow-2 19s ease-in-out infinite alternate;
  pointer-events: none;
}
.vision-panel > *, .cta-band > .wrap {
  position: relative;
  z-index: 1;
}
@keyframes drift-glow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 40px); }
}
@keyframes drift-glow-2 {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-50px, -30px); }
}

/* ==========================================================================
   Hover-reveal service cards (services.html overview grid)
   ========================================================================== */
.hover-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.hover-card {
  background: var(--bg);
  padding: 40px 28px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}

.hover-card-full {
  grid-column: 1 / -1;
  min-height: 140px;
}

.hover-card-mark {
  color: var(--gold);
  font-size: 14px;
  margin-bottom: 14px;
  opacity: 0.7;
  transition: transform 0.3s ease;
}

.hover-card h4 {
  font-size: 18px;
  color: var(--text);
  transition: color 0.3s ease;
}

.hover-card p {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--text-muted);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.35s ease;
}

.hover-card:hover {
  background: var(--bg-elevated);
}
.hover-card:hover .hover-card-mark {
  transform: rotate(90deg);
}
.hover-card:hover h4 {
  background: linear-gradient(100deg, var(--blue-bright), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hover-card:hover p {
  max-height: 100px;
  opacity: 1;
  margin-top: 12px;
}

@media (max-width: 800px) {
  .hover-card-grid { grid-template-columns: repeat(2, 1fr); }
  .hover-card-full { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .hover-card-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   KAFD skyline illustration (About page)
   ========================================================================== */
.skyline-visual {
  border: 1px solid var(--line-soft);
  background: var(--bg);
  overflow: hidden;
}
.skyline-visual svg {
  display: block;
  width: 100%;
  height: auto;
}
.skyline-caption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
}

/* ==========================================================================
   Who we are — centered, organized layout
   ========================================================================== */
.who-we-are {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.story-facts-row {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line-soft);
}

.story-facts-row .story-fact .num {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--blue-bright);
  font-weight: 600;
}
.story-facts-row .story-fact .label {
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 6px;
}

.story-copy-centered p {
  color: var(--text-muted);
  font-size: 16.5px;
  line-height: 1.75;
}
.story-copy-centered p + p { margin-top: 18px; }

@media (max-width: 700px) {
  .story-facts-row { gap: 32px; }
}

/* ==========================================================================
   Contact page decorative graphic (fills empty space below contact info)
   ========================================================================== */
.contact-graphic {
  margin-top: 48px;
  max-width: 320px;
  opacity: 0.9;
}
.contact-graphic svg {
  width: 100%;
  height: auto;
}
@media (max-width: 800px) {
  .contact-graphic { display: none; }
}

/* ==========================================================================
   Language toggle
   ========================================================================== */
.lang-toggle {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 13px;
  font-family: var(--font-body);
  padding: 8px 14px;
  border-radius: 3px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.lang-toggle:hover {
  border-color: var(--blue-bright);
  color: var(--text);
}

/* ==========================================================================
   RTL support (Arabic)
   ========================================================================== */
html[dir="rtl"] body {
  direction: rtl;
  font-family: 'Tajawal', var(--font-body);
}
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4 {
  font-family: 'Tajawal', var(--font-display);
}
html[dir="rtl"] .main-nav a[aria-current="page"]::after {
  left: 0; right: 0;
}
html[dir="rtl"] .service-row .service-desc li,
html[dir="rtl"] .vision-pillars li,
html[dir="rtl"] .platform-group li {
  padding-left: 0;
  padding-right: 16px;
}
html[dir="rtl"] .service-row .service-desc li::before,
html[dir="rtl"] .platform-group li::before {
  left: auto;
  right: 0;
}

/* ==========================================================================
   Industry photo frame (industries.html detail rows)
   ========================================================================== */
.industry-photo-frame {
  width: 100%;
  height: 140px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.industry-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72) saturate(1.05);
  transition: transform 0.4s ease;
}
.service-row:hover .industry-photo-frame img {
  transform: scale(1.05);
}

/* ==========================================================================
   ERP banner image (services.html)
   ========================================================================== */
.erp-banner {
  width: 100%;
  height: 280px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 56px;
  position: relative;
}
.erp-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,20,32,0.15), rgba(10,20,32,0.55));
}
.erp-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85) saturate(1.05);
}
@media (max-width: 700px) {
  .erp-banner { height: 180px; }
}
