:root {
  --blue: #0b43a5;
  --blue-bright: #1768e5;
  --ink: #07172f;
  --ink-soft: #102947;
  --steel: #8f9aaa;
  --line: rgba(7, 23, 47, 0.16);
  --paper: #f5f7fa;
  --white: #ffffff;
  --header-h: 88px;
  --pad: clamp(1.25rem, 4vw, 4.5rem);
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

.scroll-progress { position: fixed; inset: 0 0 auto; z-index: 100; height: 3px; background: transparent; }
.scroll-progress span { display: block; width: 0; height: 100%; background: var(--blue-bright); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 0 var(--pad);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(7, 23, 47, 0.1);
  backdrop-filter: blur(18px);
  transition: height .35s ease, box-shadow .35s ease;
}
.site-header.compact { height: 72px; box-shadow: 0 10px 35px rgba(7,23,47,.08); }
.brand { width: min(300px, 100%); text-decoration: none; }
.brand img { width: 100%; height: 60px; object-fit: contain; object-position: left center; }
.desktop-nav { display: flex; justify-content: center; gap: clamp(1.25rem, 2.6vw, 2.75rem); }
.desktop-nav a { position: relative; font-size: .9rem; font-weight: 600; text-decoration: none; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--blue); transition: right .25s ease; }
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.language-picker { position: relative; }
.language-trigger { height: 44px; display: flex; align-items: center; gap: .55rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: #fff; padding: 0 .9rem; cursor: pointer; font-family: Consolas, "Courier New", monospace; font-size: .8rem; }
.language-trigger svg { width: 11px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.language-menu { position: absolute; top: calc(100% + 10px); right: 0; width: 180px; padding: .4rem; border-radius: 14px; background: #fff; box-shadow: 0 18px 50px rgba(7,23,47,.17); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .2s ease; }
.language-picker.open .language-menu { opacity: 1; visibility: visible; transform: none; }
.language-menu button { width: 100%; display: flex; justify-content: space-between; border: 0; padding: .75rem .8rem; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; text-align: left; }
.language-menu button:hover, .language-menu button[aria-selected="true"] { color: var(--blue); background: rgba(11,67,165,.08); }
.language-menu span { font-family: Consolas, "Courier New", monospace; font-size: .75rem; }
.header-call { height: 44px; display: inline-flex; align-items: center; gap: .55rem; padding: 0 1.1rem; border-radius: 999px; background: var(--ink); color: white; text-decoration: none; font-weight: 600; font-size: .86rem; }
.header-call svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--ink); cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 1.5px; margin: 5px auto; background: #fff; transition: .25s ease; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.mobile-panel { position: fixed; z-index: 45; inset: var(--header-h) 0 auto; padding: 2rem var(--pad); color: #fff; background: var(--ink); transform: translateY(-120%); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.mobile-panel.open { transform: none; }
.mobile-panel nav { display: grid; }
.mobile-panel nav a { padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 1.35rem; text-decoration: none; }
.mobile-panel > a { display: inline-block; margin-top: 1.5rem; color: #9fc3ff; text-decoration: none; }

.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 5rem) var(--pad) 5rem; overflow: hidden; color: #fff; background: var(--ink); }
.hero-media, .hero-overlay { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.04); animation: hero-in 1.5s ease forwards; }
.hero-overlay { background: linear-gradient(90deg, rgba(4,15,31,.96) 0%, rgba(4,15,31,.82) 38%, rgba(4,15,31,.16) 73%, rgba(4,15,31,.08) 100%), linear-gradient(0deg, rgba(4,15,31,.65), transparent 50%); }
.hero-content { position: relative; z-index: 2; width: min(760px, 62vw); }
.eyebrow, .kicker { margin: 0 0 1.25rem; font-family: Consolas, "Courier New", monospace; font-size: clamp(.72rem, 1vw, .9rem); letter-spacing: .13em; text-transform: uppercase; }
.eyebrow { color: #8bb9ff; }
.hero h1 { margin: 0; max-width: 850px; font-size: clamp(3rem, 6.8vw, 7rem); line-height: .94; letter-spacing: -.055em; font-weight: 500; }
.hero h1 span, .hero h1 strong { display: block; }
.hero h1 strong { color: #8cbaff; font-weight: 500; }
.hero-intro { max-width: 620px; margin: 2rem 0 0; color: rgba(255,255,255,.74); font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.hero-ctas { display: flex; align-items: stretch; gap: 1rem; margin-top: 2.2rem; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 4px; padding: .9rem 1.35rem; text-decoration: none; font-weight: 700; cursor: pointer; transition: transform .25s ease, background .25s ease, color .25s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--blue-bright); color: #fff; }
.button-primary:hover { background: #2b7cff; }
.button-ghost { display: grid; justify-items: start; border: 1px solid rgba(255,255,255,.3); color: #fff; background: rgba(255,255,255,.04); }
.button-ghost small { color: rgba(255,255,255,.58); font-weight: 500; }
.button-light { color: var(--ink); background: #fff; }
.hero-index { position: absolute; z-index: 3; right: var(--pad); bottom: 2.4rem; display: flex; align-items: center; gap: .75rem; font-family: Consolas, "Courier New", monospace; font-size: .68rem; letter-spacing: .08em; }
.hero-index i { width: 40px; height: 1px; background: rgba(255,255,255,.35); }
.hero-index b { color: #8bb9ff; }
.scroll-cue { position: absolute; z-index: 3; bottom: 2rem; left: var(--pad); width: 28px; height: 46px; border: 1px solid rgba(255,255,255,.35); border-radius: 20px; }
.scroll-cue span { position: absolute; top: 9px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 3px; background: #fff; animation: scroll-cue 1.8s ease infinite; }
.technical-orbit { position: absolute; z-index: 1; right: -15vw; top: 8%; width: 54vw; aspect-ratio: 1; opacity: .46; pointer-events: none; }
.orbit { position: absolute; inset: 12%; border: 1px solid rgba(139,185,255,.4); border-radius: 50%; animation: orbit-spin 24s linear infinite; }
.orbit::before, .orbit::after { content: ""; position: absolute; background: #8bb9ff; border-radius: 50%; }
.orbit::before { width: 7px; height: 7px; top: 10%; left: 20%; box-shadow: 0 0 18px #4c94ff; }
.orbit::after { width: 3px; height: 3px; bottom: 4%; right: 32%; }
.orbit-two { inset: 26%; border-style: dashed; animation-direction: reverse; animation-duration: 18s; }
.orbit-dot { position: absolute; inset: 40%; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; }
.orbit-axis { position: absolute; color: rgba(255,255,255,.6); font: 11px Consolas, "Courier New", monospace; }
.orbit-x { top: 50%; left: 4%; }
.orbit-z { right: 25%; bottom: 2%; }

.capability-rail { overflow: hidden; color: #fff; background: var(--blue); border-block: 1px solid rgba(255,255,255,.2); }
.rail-track { width: max-content; display: flex; align-items: center; gap: 2rem; padding: 1.05rem 0; animation: rail 30s linear infinite; }
.rail-track span { font-family: Consolas, "Courier New", monospace; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.rail-track i { width: 8px; height: 8px; border: 1px solid #fff; transform: rotate(45deg); }

.section { width: min(100%, var(--max)); margin-inline: auto; padding: clamp(5rem, 9vw, 9rem) var(--pad); }
.section-marker { display: flex; align-items: center; gap: .7rem; font-family: Consolas, "Courier New", monospace; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; }
.section-marker span { color: var(--blue); }
.section-marker b { font-weight: 400; }
.intro { display: grid; grid-template-columns: .65fr 2.2fr 1fr; gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.intro h2, .section-head h2, .blueprint h2, .request h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 5.4rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 500; }
.intro-note { padding-top: 2.7rem; border-top: 1px solid var(--line); }
.intro-note p { margin: 0 0 1.5rem; color: #4c5b6f; }
.text-link { display: inline-block; color: var(--blue); font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; }

.expertise { border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 3rem; align-items: end; margin-bottom: 4rem; }
.section-head p { margin: 0; color: #4c5b6f; }
.expertise-list { border-top: 1px solid var(--ink); }
.expertise-item { position: relative; min-height: 240px; display: grid; grid-template-columns: .6fr 1.6fr 1fr; gap: 3rem; align-items: center; padding: 2.25rem 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.service-code { align-self: start; font: .75rem Consolas, "Courier New", monospace; color: var(--blue); }
.expertise-item h3 { margin: 0 0 .75rem; font-size: clamp(1.8rem, 3.2vw, 3.4rem); line-height: 1; letter-spacing: -.035em; font-weight: 500; }
.expertise-item p { max-width: 680px; margin: 0; color: #58667a; }
.service-photo { position: relative; justify-self: end; width: min(320px, 100%); aspect-ratio: 3 / 2; margin: 0; overflow: hidden; background: #dfe6ef; box-shadow: 0 22px 50px rgba(7,23,47,.16); }
.service-photo::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(7,23,47,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); pointer-events: none; }
.service-photo img { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.88) contrast(1.05); transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .5s ease; }
.expertise-item:hover .service-photo img { transform: scale(1.045); filter: saturate(1) contrast(1.08); }

.blueprint { position: relative; width: 100%; max-width: none; min-height: 780px; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; color: #fff; background: var(--ink-soft); overflow: hidden; }
.blueprint-grid { position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, #000, transparent 70%); }
.method-photo { position: relative; z-index: 1; min-height: 520px; margin: 0; overflow: hidden; box-shadow: 0 32px 80px rgba(0,0,0,.32); }
.method-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(4,15,31,.08), rgba(4,15,31,.48)); border: 1px solid rgba(255,255,255,.16); pointer-events: none; }
.method-photo img { width: 100%; height: 520px; display: block; object-fit: cover; }
.blueprint-content { position: relative; z-index: 2; max-width: 720px; }
.blueprint .section-marker span { color: #81b4ff; }
.blueprint h2 { margin-top: 1.5rem; }
.method-steps { margin-top: 3.5rem; border-top: 1px solid rgba(255,255,255,.22); }
.method-steps article { display: grid; grid-template-columns: 60px 1fr 1.45fr; gap: 1.5rem; align-items: baseline; padding: 1.4rem 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.method-steps span { color: #81b4ff; font: .72rem Consolas, "Courier New", monospace; }
.method-steps h3 { margin: 0; font-size: 1.05rem; }
.method-steps p { margin: 0; color: rgba(255,255,255,.62); font-size: .92rem; }

.request { display: grid; grid-template-columns: .9fr 1.2fr; gap: clamp(3rem, 8vw, 9rem); }
.request-copy .kicker { margin-top: 3rem; color: var(--blue); }
.request-copy > p:not(.kicker) { max-width: 520px; color: #58667a; }
.direct-contact { margin-top: 3rem; display: grid; gap: 1.2rem; }
.direct-contact a { display: grid; text-decoration: none; }
.direct-contact small { color: #718096; }
.direct-contact strong { font-size: clamp(1rem, 1.5vw, 1.25rem); word-break: break-word; }
.request-form { padding: clamp(1.5rem, 3.5vw, 3.5rem); color: #fff; background: var(--ink); box-shadow: 18px 18px 0 rgba(11,67,165,.12); }
.request-form label { display: grid; gap: .55rem; margin-bottom: 1.4rem; color: #aab5c3; font-size: .84rem; }
.request-form input, .request-form textarea { width: 100%; border: 0; border-bottom: 1px solid rgba(255,255,255,.28); border-radius: 0; outline: 0; padding: .7rem 0; color: #fff; background: transparent; resize: vertical; }
.request-form input:focus, .request-form textarea:focus { border-color: #81b4ff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-meta { display: flex; gap: 1.5rem; justify-content: space-between; align-items: center; }
.form-meta p { max-width: 330px; margin: 0; color: rgba(255,255,255,.55); font-size: .8rem; }
.form-status { min-height: 1.5em; margin: 1rem 0 0; color: #8bb9ff; font-size: .86rem; }

footer { color: #fff; background: #030d1b; }
.footer-main { width: min(100%, var(--max)); margin: auto; display: grid; grid-template-columns: 1.1fr 1fr .8fr; gap: clamp(2rem, 6vw, 7rem); padding: 5rem var(--pad); }
.footer-brand img { width: min(300px, 100%); margin-bottom: 1.5rem; padding: .75rem; background: rgba(255,255,255,.96); }
.footer-brand p { color: rgba(255,255,255,.5); }
.footer-contact { display: grid; gap: 1rem; }
.footer-contact p { display: grid; margin: 0; }
.footer-contact span { color: rgba(255,255,255,.45); font-size: .78rem; }
.footer-contact a { text-decoration: none; word-break: break-word; }
.footer-cta p { margin-top: 0; font-size: 1.25rem; }
.footer-legal { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1rem var(--pad); border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.48); font: .7rem Consolas, "Courier New", monospace; }
.footer-legal a { color: #8bb9ff; text-decoration: none; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; }
.floating-actions { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 30; display: grid; gap: .65rem; }
.floating-actions a { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; text-decoration: none; box-shadow: 0 14px 36px rgba(7,23,47,.26); transition: transform .25s ease, box-shadow .25s ease; }
.floating-actions a:hover, .floating-actions a:focus-visible { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(7,23,47,.34); }
.floating-actions svg { width: 27px; height: 27px; fill: currentColor; }
.whatsapp-action { color: #fff; background: #1fa855; }
.top-action { color: #fff; background: var(--ink); font: 700 .63rem Consolas, "Courier New", monospace; letter-spacing: .06em; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

html[dir="rtl"] body { font-family: Tahoma, Arial, sans-serif; }
html[dir="rtl"] .brand img { object-position: right center; }
html[dir="rtl"] .language-menu { right: auto; left: 0; }
html[dir="rtl"] .language-menu button { text-align: right; }
html[dir="rtl"] .hero-overlay { background: linear-gradient(270deg, rgba(4,15,31,.96) 0%, rgba(4,15,31,.82) 38%, rgba(4,15,31,.16) 73%, rgba(4,15,31,.08) 100%), linear-gradient(0deg, rgba(4,15,31,.65), transparent 50%); }
html[dir="rtl"] .hero-media img { transform: scaleX(-1) scale(1.04); }
html[dir="rtl"] .technical-orbit { right: auto; left: -15vw; }
html[dir="rtl"] .hero-index { right: auto; left: var(--pad); }
html[dir="rtl"] .scroll-cue { left: auto; right: var(--pad); }

@keyframes hero-in { from { transform: scale(1.12); filter: blur(5px); } to { transform: scale(1.04); filter: none; } }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes rail { to { transform: translateX(-50%); } }
@keyframes scroll-cue { 0% { opacity: 0; transform: translateY(0); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

@media (max-width: 1080px) {
  :root { --header-h: 76px; }
  .site-header { grid-template-columns: 1fr auto; }
  .brand { width: 230px; }
  .desktop-nav, .header-call { display: none; }
  .menu-toggle { display: block; }
  .hero-content { width: min(760px, 78vw); }
  .technical-orbit { right: -25vw; width: 72vw; }
  .intro { grid-template-columns: 1fr 3fr; }
  .intro-note { grid-column: 2; }
  .section-head { grid-template-columns: 1fr 2fr; }
  .section-head > p { grid-column: 2; }
  .expertise-item { grid-template-columns: .45fr 1.5fr .8fr; gap: 1.5rem; }
  .blueprint { grid-template-columns: .8fr 1.2fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-cta { grid-column: 2; }
}

@media (max-width: 760px) {
  :root { --pad: 1.2rem; }
  .site-header { padding-inline: var(--pad); }
  .brand { width: 185px; }
  .brand img { height: 54px; }
  .hero { min-height: 920px; align-items: flex-start; padding-top: calc(var(--header-h) + 7rem); }
  .hero-media img { object-position: 64% center; }
  .hero-overlay { background: linear-gradient(180deg, rgba(4,15,31,.9) 0%, rgba(4,15,31,.78) 58%, rgba(4,15,31,.96) 100%); }
  .hero-content { width: 100%; }
  .hero h1 { font-size: clamp(3rem, 14vw, 5rem); }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .button-ghost { justify-items: center; }
  .technical-orbit { width: 110vw; right: -55vw; top: 43%; }
  .hero-index { left: var(--pad); right: auto; bottom: 2.25rem; }
  .hero-index span, .hero-index i { display: none; }
  .scroll-cue { display: none; }
  .section { padding-block: 5.5rem; }
  .intro, .section-head, .request, .footer-main { grid-template-columns: 1fr; }
  .intro-note, .section-head > p, .footer-cta { grid-column: auto; }
  .intro h2, .section-head h2, .blueprint h2, .request h2 { font-size: clamp(2.5rem, 11vw, 4rem); }
  .expertise-item { grid-template-columns: 1fr; min-height: 0; }
  .service-code { position: absolute; top: 1.8rem; right: 0; }
  .service-photo { justify-self: start; width: min(100%, 360px); }
  .blueprint { display: block; min-height: 0; }
  .method-photo { min-height: 340px; margin-bottom: 3rem; }
  .method-photo img { height: 340px; }
  .method-steps article { grid-template-columns: 42px 1fr; }
  .method-steps p { grid-column: 2; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-meta { align-items: stretch; flex-direction: column; }
  .footer-main { padding-block: 4rem; }
  .footer-legal { align-items: flex-start; flex-direction: column; }
  .floating-actions { right: .85rem; bottom: .85rem; }
  .floating-actions a { width: 49px; height: 49px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
