/* Cinematic opening, flags, taller frames, Elementor reset */

body.kaytos-landing .e-con,
body.kaytos-landing .elementor-element,
body.kaytos-landing .elementor-widget-container {
  --padding-top: 0px;
  --padding-right: 0px;
  --padding-bottom: 0px;
  --padding-left: 0px;
  --margin-top: 0px;
  --margin-bottom: 0px;
  --gap: 0px;
}
body.kaytos-landing .elementor-widget-container { padding: 0; margin: 0; }
body.kaytos-landing .e-con { padding: 0 !important; margin: 0 !important; }

.site-header.over-dark { color: #fff; background: linear-gradient(180deg, rgba(7, 20, 28, .55), transparent); box-shadow: none; }
.site-header.over-dark .nav-links a { color: rgba(255, 255, 255, .74); }
.site-header.over-dark .nav-links a:hover { color: #fff; }
.site-header.over-dark .lang { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08); }
.site-header.over-dark .lang:before { background: rgba(255, 255, 255, .94); }
.site-header.over-dark .logo-link { background: #fff; border-radius: 12px; padding: .28rem .5rem; }

.stage { position: relative; z-index: 1; height: 100svh; color: #f4fbff; background: #07141c; }
.stage-pin { position: relative; height: 100%; overflow: hidden; }
.stage-bg { position: absolute; inset: 0; }
.stage-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .42; transform: scale(1.08); filter: saturate(.55) contrast(1.08) brightness(.72); }
.stage-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 46% 58% at 74% 46%, rgba(32, 168, 224, .42), transparent 70%),
    linear-gradient(90deg, rgba(7, 20, 28, .94) 0%, rgba(7, 20, 28, .62) 42%, rgba(7, 20, 28, .28) 100%),
    linear-gradient(180deg, rgba(7, 20, 28, .5) 0%, transparent 24%, transparent 82%, rgba(16, 47, 62, .28) 100%);
}
html[dir="rtl"] .stage-veil {
  background:
    radial-gradient(ellipse 46% 58% at 26% 46%, rgba(32, 168, 224, .42), transparent 70%),
    linear-gradient(270deg, rgba(7, 20, 28, .94) 0%, rgba(7, 20, 28, .62) 42%, rgba(7, 20, 28, .28) 100%),
    linear-gradient(180deg, rgba(7, 20, 28, .5) 0%, transparent 24%, transparent 82%, rgba(16, 47, 62, .28) 100%);
}
.stage-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
}
.stage-copy {
  position: absolute; z-index: 3; top: 50%; transform: translateY(-52%);
  inset-inline-start: clamp(1.4rem, 5vw, 5.5rem); max-width: min(18em, 46vw);
}
.stage-brand {
  margin: 0 0 1rem; color: #7fd4f4; font-size: .78rem; font-weight: 600;
  letter-spacing: .42em; text-transform: uppercase;
}
html[lang="ar"] .stage-brand { letter-spacing: .18em; }
.stage-title {
  margin: 0; color: #fff; font-family: var(--font-display); font-weight: 560;
  font-size: clamp(4.4rem, 8.6vw, 8.4rem); line-height: .84; letter-spacing: -.05em;
}
html[lang="ar"] .stage-title { letter-spacing: 0; line-height: 1.12; font-weight: 500; }
.stage-line { display: block; }
.stage-line + .stage-line { color: #d7f3ff; }
.stage-motto { max-width: 36ch; margin: 1.35rem 0 0; color: rgba(244, 251, 255, .82); font-size: 1.05rem; font-weight: 300; }
.stage-more {
  display: inline-flex; align-items: center; margin-top: 1.5rem; min-height: 48px; padding: .7rem 1.25rem;
  border-radius: 999px; background: var(--cyan); color: #06202c; font-weight: 600;
  box-shadow: 0 12px 30px rgba(32, 168, 224, .28);
}
.stage-more:hover { background: #49c0ef; }
.stage-center {
  position: absolute; z-index: 2; top: 50%; transform: translateY(-50%);
  inset-inline-end: clamp(1rem, 7vw, 8vw);
  width: min(460px, 36vw); height: min(640px, 78vh);
  display: grid; place-items: center;
}
.stage-halo {
  position: absolute; width: 128%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(32, 168, 224, .78) 0%, rgba(32, 168, 224, .18) 42%, transparent 70%);
  filter: blur(2px);
}
.stage-ring {
  position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .32);
  box-shadow: inset 0 0 40px rgba(32, 168, 224, .18), 0 0 0 18px rgba(255, 255, 255, .04);
}
.stage-float { position: relative; z-index: 1; display: grid; place-items: center; }
body.kaytos-landing .stage-book {
  width: min(var(--book, 500px), 36vw); height: auto;
  filter: drop-shadow(0 36px 40px rgba(0, 0, 0, .5));
  animation: kaytos-float 5.6s ease-in-out infinite;
}
@keyframes kaytos-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}
.mission::before { content: ""; position: absolute; z-index: 0; left: -8%; right: -8%; top: -48px; height: 300px; pointer-events: none; background: linear-gradient(180deg, rgba(7, 20, 28, .0) 0, #07141c 16%, #1a5870 48%, rgba(247, 244, 238, 0) 100%); filter: blur(16px); }
.mission-waves { position: absolute; z-index: 4; left: 0; right: 0; top: -86px; height: 210px; pointer-events: none; overflow: hidden; -webkit-mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, .55) 30%, transparent 78%); mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, .55) 30%, transparent 78%); }
.mission-wave { position: absolute; left: 0; width: 200%; height: 100%; animation: kaytos-wave 18s linear infinite; }
.mission-wave-a { top: 0; height: 100%; fill: rgba(32, 168, 224, .3); }
.mission-wave-b { top: 18px; height: 84%; fill: rgba(186, 228, 240, .4); animation-duration: 26s; animation-direction: reverse; }
@keyframes kaytos-wave { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.stage-meta {
  position: absolute; z-index: 3; inset-inline: 0; bottom: 6.2rem;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding-inline: clamp(1.4rem, 6vw, 6.5rem); color: rgba(255, 255, 255, .78);
}
.stage-place { font-weight: 500; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; }
html[lang="ar"] .stage-place { letter-spacing: 0; text-transform: none; font-size: 1rem; }
.stage-scroll { display: inline-flex; align-items: center; gap: .7rem; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
html[lang="ar"] .stage-scroll { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.stage-scroll i { display: block; width: 1px; height: 46px; background: linear-gradient(#fff, transparent); }

.flag { width: 36px; height: 24px; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px rgba(23, 48, 58, .14), 0 6px 14px rgba(12, 40, 60, .12); }
.lang-card { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; min-height: 132px; transition: transform .35s ease, box-shadow .35s ease; }
.lang-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(12, 60, 90, .08); }
.country-btn .flag { width: 30px; height: 20px; flex: none; }
.country-btn span { min-width: 0; }

.form-visuals img { min-height: var(--photo-h, 480px); }
.partner-media { min-height: var(--card-h, 440px); }
.method-media-frame { min-height: var(--frame-h, 70vh); }
.path-card img { min-height: var(--photo-h, 260px); }
.partner-index { top: .9rem; bottom: auto; inset-inline-start: .9rem; inset-inline-end: auto; z-index: 2; padding: .12rem .55rem; border-radius: 999px; background: rgba(7, 20, 28, .42); font-size: 1rem; letter-spacing: .06em; }
.partner-overlay { position: absolute; z-index: 2; inset: auto 0 0; padding: 5.2rem 1.15rem 1.15rem; color: #fff; }
body.kaytos-landing .e-con.e-parent .partner-media > .partner-overlay { background-image: linear-gradient(to top, rgba(6, 18, 28, .82) 0%, rgba(6, 18, 28, .38) 46%, transparent 100%) !important; }
.partner-overlay .partner-title { color: #fff; font-size: clamp(1.25rem, 1.55vw, 1.7rem); line-height: 1.2; font-weight: 560; text-shadow: 0 1px 10px rgba(0, 0, 0, .28); }
.country-pick { display: flex; align-items: center; gap: .75rem; padding: .45rem .7rem .45rem .55rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.country-pick select { flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--ink); }
.country-pick .flag { width: 32px; height: 22px; }
.mission { position: relative; }

@media (max-width: 820px) {
  .stage { height: auto; min-height: 100svh; }
  .stage-pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--nav) + .4rem) 1.15rem 1.3rem; }
  .stage-copy, .stage-center, .stage-meta { position: relative; inset: auto; transform: none; width: auto; max-width: none; height: auto; }
  .stage-center { order: -1; height: 300px; margin-top: .4rem; }
  body.kaytos-landing .stage-book { width: min(var(--book, 500px), 46vw); animation: none; }
  .stage-title { font-size: clamp(3.4rem, 16vw, 5rem); }
  .stage-line { display: block; }
  .stage-motto { white-space: normal; max-width: 28ch; }
  .stage-meta { padding: 1.1rem 0 0; bottom: auto; }
  .mission-waves { top: -42px; height: 120px; }
  .form-visuals img { min-height: 280px; }
  .partner-media { min-height: 240px; }
  .method-media-frame { min-height: 0; height: auto; }
  .path-card img { min-height: 200px; }
}
@media (min-width: 821px) {
  .stage-copy { max-width: calc(100% - var(--book, 250px) - 11vw); }
  .stage-title { font-size: clamp(2.15rem, 3.5vw, 4.4rem); line-height: 1.08; white-space: nowrap; }
  html[lang="ar"] .stage-title { line-height: 1.35; }
  .stage-line { display: inline; color: #fff; }
  .stage-line + .stage-line::before { content: " "; }
  .stage-motto { max-width: none; white-space: nowrap; font-size: clamp(.84rem, 1.15vw, 1.2rem); }
  .method-stage { min-height: 0; grid-template-rows: minmax(0, 1fr); }
  .method-media, .method-steps { height: auto; min-height: 0; align-self: stretch; }
  .method-media { position: relative; }
  .method-media-frame { position: absolute; inset: 0; height: auto; min-height: 0; }
  .method-steps { overflow: hidden; }
  .partner, .partner-link, .partner-media { min-height: 0; height: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .stage-book, .mission-wave { animation: none; }
  .stage { height: auto; min-height: 100svh; }
  .stage-pin { height: auto; min-height: 100svh; }
}
