@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  color-scheme: dark;
  --ink: #eef4f8;
  --muted: #afbcc7;
  --deep: #111a22;
  --teal: #4fc3c7;
  --mint: #8ed8bd;
  --gold: #d98945;
  --rose: #de6b82;
  --paper: #17212b;
  --surface: #1c2934;
  --line: rgba(221, 234, 240, 0.14);
  --shadow: 0 24px 58px rgba(0, 0, 0, 0.24);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(135deg, #101922 0%, #17222c 52%, #1d2427 100%);
  color: var(--ink);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(217, 137, 69, 0.045) 42% 43%, transparent 43% 100%),
    linear-gradient(70deg, transparent 0 60%, rgba(79, 195, 199, 0.04) 60% 61%, transparent 61% 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(238, 244, 248, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 244, 248, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

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

.btn,
button,
input,
select,
textarea {
  letter-spacing: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 10px;
  border: 1px solid rgba(221, 234, 240, 0.16);
  border-radius: var(--radius);
  background: rgba(23, 33, 43, 0.9);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: max-content;
}

.brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.brand span {
  display: grid;
  gap: 0.08rem;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.1;
}

.brand small {
  color: var(--gold);
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.55rem 0.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.065);
  color: var(--ink);
}

.language-toggle,
.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 40px;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--gold), #ff9c4a);
  color: #101820;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.hero {
  display: grid;
  position: relative;
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.74fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 92px);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6.8rem) 0 clamp(2.5rem, 6vw, 4.2rem);
}

.hero::before {
  position: absolute;
  inset-inline-start: -5%;
  top: 16%;
  width: min(44vw, 520px);
  height: 220px;
  content: "";
  border: 1px solid rgba(228, 111, 39, 0.2);
  border-radius: 999px;
  background: rgba(228, 111, 39, 0.06);
  filter: blur(4px);
  transform: rotate(-12deg);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 13ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(3.25rem, 7.3vw, 7.4rem);
  line-height: 0.96;
}

.hero-name {
  margin: 0.45rem 0 1.35rem;
  color: var(--gold);
  font-size: clamp(2.1rem, 5vw, 5.2rem);
  font-weight: 950;
  line-height: 1;
}

.hero-text {
  max-width: 620px;
  margin: 0;
  color: #b6c2cf;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.85;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 900;
}

.primary-action {
  background: linear-gradient(135deg, var(--gold), #ff9c4a);
  color: white;
  box-shadow: 0 18px 42px rgba(228, 111, 39, 0.34);
}

.secondary-action {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
}

.visual-ring {
  position: absolute;
  width: min(96%, 470px);
  aspect-ratio: 1;
  border: 1px solid rgba(228, 111, 39, 0.32);
  border-radius: 999px;
  background:
    conic-gradient(from 120deg, rgba(228, 111, 39, 0.42), rgba(57, 208, 212, 0.18), rgba(255, 89, 119, 0.16), rgba(228, 111, 39, 0.42)),
    rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
}

.hero-visual img {
  position: relative;
  width: min(62%, 285px);
  height: auto;
  filter: drop-shadow(0 30px 42px rgba(228, 111, 39, 0.34));
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.orbit-one {
  width: min(78%, 360px);
  aspect-ratio: 1;
  transform: rotate(18deg) scaleY(0.58);
}

.orbit-two {
  width: min(64%, 300px);
  aspect-ratio: 1;
  transform: rotate(-28deg) scaleY(0.48);
  border-color: rgba(228, 111, 39, 0.28);
}

.metric-card {
  position: absolute;
  display: grid;
  gap: 0.15rem;
  min-width: 128px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(13, 20, 28, 0.78);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.metric-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.metric-card strong {
  color: var(--ink);
  font-size: 1.55rem;
}

.metric-main {
  inset-inline-start: 0;
  top: 19%;
}

.metric-side {
  inset-inline-end: 0;
  bottom: 18%;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(228, 111, 39, 0.22);
  border-radius: var(--radius);
  background: var(--line);
}

.trust-strip div {
  display: grid;
  gap: 0.25rem;
  padding: 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
}

.trust-strip strong {
  color: var(--ink);
  font-size: 1.15rem;
}

.trust-strip span {
  color: var(--muted);
}

.section,
.work-band,
.contact-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: stretch;
}

.section-heading {
  display: grid;
  gap: 0.7rem;
  max-width: 660px;
  margin-bottom: 1.5rem;
}

.split-section .section-heading {
  margin-bottom: 0;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.12;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.about-panel {
  display: grid;
  gap: 1rem;
}

.about-panel div {
  display: grid;
  align-content: center;
  gap: 0.55rem;
  min-height: 150px;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: var(--shadow);
}

.about-panel span,
.portfolio-card span {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.about-panel strong {
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.55;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.service-card {
  display: grid;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
}

.service-card::after {
  position: absolute;
  inset-inline-end: -34px;
  bottom: -34px;
  width: 108px;
  height: 108px;
  content: "";
  border: 1px solid rgba(228, 111, 39, 0.16);
  border-radius: 999px;
  background: rgba(228, 111, 39, 0.06);
}

.icon-box {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(228, 111, 39, 0.14);
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 900;
}

.service-card:nth-child(2) .icon-box {
  background: rgba(57, 208, 212, 0.13);
  color: var(--teal);
}

.service-card:nth-child(3) .icon-box {
  background: rgba(255, 89, 119, 0.13);
  color: var(--rose);
}

.service-card:nth-child(4) .icon-box {
  background: rgba(148, 242, 208, 0.13);
  color: var(--mint);
}

.service-card:nth-child(5) .icon-box {
  background: rgba(255, 255, 255, 0.1);
  color: #d6def0;
}

.service-card:nth-child(6) .icon-box {
  background: rgba(228, 111, 39, 0.16);
  color: #ffb17a;
}

.service-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.25rem;
}

.service-card p,
.work-copy p,
.contact-section p,
.portfolio-card p,
.why-grid p,
.systems-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.systems-section {
  position: relative;
}

.systems-section::before {
  position: absolute;
  inset-inline: calc((100vw - min(1180px, calc(100vw - 32px))) / -2);
  top: 2rem;
  bottom: 2rem;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(228, 111, 39, 0.12), transparent 28%, rgba(57, 208, 212, 0.1)),
    rgba(255, 255, 255, 0.025);
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.systems-grid article {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  min-height: 360px;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at 50% 0%, rgba(228, 111, 39, 0.16), transparent 9rem);
  box-shadow: var(--shadow);
}

.system-visual {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: #0b1118;
}

.systems-grid article:nth-child(2n) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at 50% 0%, rgba(57, 208, 212, 0.14), transparent 9rem);
}

.system-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(228, 111, 39, 0.3);
  border-radius: var(--radius);
  background: rgba(228, 111, 39, 0.12);
  color: #ffb17a;
  font-size: 1.35rem;
  font-weight: 900;
}

.systems-grid article:nth-child(2n) .system-icon {
  border-color: rgba(57, 208, 212, 0.28);
  background: rgba(57, 208, 212, 0.1);
  color: var(--teal);
}

.systems-grid h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.35;
}

.portfolio-grid,
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.portfolio-card {
  position: relative;
  display: grid;
  align-content: end;
  gap: 0.85rem;
  min-height: 340px;
  overflow: hidden;
  padding: 1.25rem;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(8, 13, 18, 0.08), rgba(8, 13, 18, 0.88)),
    linear-gradient(135deg, rgba(228, 111, 39, 0.5), rgba(57, 208, 212, 0.2));
  color: white;
  box-shadow: var(--shadow);
}

.portfolio-card::before {
  position: absolute;
  inset: 1rem;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
}

.portfolio-card > * {
  position: relative;
}

.portfolio-card span {
  color: var(--mint);
}

.portfolio-card h3 {
  margin: 0;
  color: white;
  font-size: 1.35rem;
  line-height: 1.25;
}

.portfolio-card p {
  color: rgba(255, 255, 255, 0.8);
}

.portfolio-card:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(8, 13, 18, 0.04), rgba(8, 13, 18, 0.84)),
    linear-gradient(135deg, rgba(255, 89, 119, 0.36), rgba(57, 208, 212, 0.32));
}

.portfolio-card:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(8, 13, 18, 0.05), rgba(8, 13, 18, 0.86)),
    linear-gradient(135deg, rgba(228, 111, 39, 0.48), rgba(148, 242, 208, 0.2));
}

.industries-section {
  padding-top: 1rem;
}

.industry-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.industry-list span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
  font-weight: 850;
}

.work-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.work-copy {
  display: grid;
  gap: 1rem;
}

.work-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.5rem;
}

.work-metrics span {
  display: grid;
  gap: 0.18rem;
  min-height: 76px;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.work-metrics strong {
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
}

.work-shell {
  display: grid;
  gap: 1rem;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.3rem 0.8rem;
  min-height: 118px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  color: inherit;
  text-align: start;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.process-step:hover,
.process-step:focus-visible,
.process-step.is-active {
  border-color: rgba(79, 195, 199, 0.55);
  background: linear-gradient(135deg, rgba(79, 195, 199, 0.16), rgba(217, 137, 69, 0.08));
}

.process-step:focus-visible {
  outline: 3px solid rgba(79, 195, 199, 0.22);
  outline-offset: 2px;
}

.process-step:hover {
  transform: translateY(-2px);
}

.process-step span {
  display: grid;
  place-items: center;
  grid-row: span 2;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--gold);
  color: white;
  font-weight: 900;
}

.process-step strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.3;
}

.process-step small {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.process-detail {
  display: grid;
  gap: 0.8rem;
  min-height: 285px;
  padding: 1.25rem;
  border: 1px solid rgba(79, 195, 199, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(79, 195, 199, 0.13), rgba(217, 137, 69, 0.08)),
    rgba(255, 255, 255, 0.055);
  box-shadow: var(--shadow);
}

.process-phase {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
}

.process-detail h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.2;
}

.process-detail p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.process-outcomes {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-outcomes li {
  position: relative;
  padding-inline-start: 1.4rem;
  color: var(--ink);
  font-weight: 750;
  line-height: 1.5;
}

.process-outcomes li::before {
  position: absolute;
  inset-inline-start: 0;
  top: 0.58em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--teal);
  content: "";
}

.work-action {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  background: var(--gold);
  color: white;
  font-weight: 900;
}

.process-list {
  display: grid;
  gap: 0.8rem;
}

.process-list div {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 76px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(228, 111, 39, 0.13), rgba(255, 255, 255, 0.055));
}

.process-list span {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--gold);
  color: white;
  font-weight: 900;
}

.process-list strong {
  color: var(--ink);
  font-size: 1.1rem;
}

.why-section {
  padding-top: 1rem;
}

.why-grid div {
  display: grid;
  gap: 0.7rem;
  padding: 1.25rem;
  border-inline-start: 4px solid var(--teal);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.why-grid div:nth-child(2) {
  border-inline-start-color: var(--gold);
}

.why-grid div:nth-child(3) {
  border-inline-start-color: var(--rose);
}

.why-grid strong {
  color: var(--ink);
  font-size: 1.15rem;
}

.values-section {
  padding-top: 1rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.values-grid article {
  display: grid;
  gap: 0.75rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.052);
}

.values-grid strong {
  color: var(--ink);
  font-size: 1.1rem;
}

.values-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: end;
  border-top: 1px solid var(--line);
}

.contact-section > div:first-child {
  display: grid;
  gap: 1rem;
  max-width: 720px;
}

.contact-actions {
  display: grid;
  gap: 0.7rem;
}

.contact-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.78rem 1rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--gold), #ff9c4a);
  color: white;
  font-weight: 900;
  white-space: nowrap;
}

.contact-actions a:last-child {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--line);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 1.4rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

html[dir="ltr"] .process-list div {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.055), rgba(228, 111, 39, 0.13));
}

@media (max-width: 860px) {
  .site-header {
    width: min(100% - 20px, 720px);
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding-top: 0.7rem;
    border-top: 1px solid var(--line);
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    justify-content: center;
    background: rgba(255, 255, 255, 0.055);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 3rem;
  }

  .header-action {
    min-width: auto;
    padding: 0 0.75rem;
  }

  h1 {
    max-width: 11ch;
  }

  .hero-visual {
    min-height: 360px;
  }

  .trust-strip,
  .service-grid,
  .systems-grid,
  .portfolio-grid,
  .why-grid,
  .values-grid,
  .work-metrics,
  .split-section,
  .work-band,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .contact-section {
    align-items: start;
  }

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

  .process-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    margin-top: 10px;
  }

  .brand {
    gap: 0.5rem;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 0.86rem;
  }

  .brand small {
    font-size: 0.78rem;
  }

  .hero,
  .trust-strip,
  .section,
  .work-band,
  .contact-section,
  .site-footer {
    width: min(100% - 20px, 520px);
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
  }

  .primary-action,
  .secondary-action,
  .header-action,
  .contact-actions a {
    width: 100%;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-action {
    grid-column: 1 / -1;
    order: 3;
  }

  .nav-toggle {
    order: 2;
  }

  .metric-card {
    min-width: 112px;
    padding: 0.72rem 0.8rem;
  }

  .metric-main {
    top: 10%;
  }

  .metric-side {
    bottom: 10%;
  }

  .systems-grid {
    grid-template-columns: 1fr;
  }
}

/* Comfort palette pass: softer contrast, calmer surfaces, clearer controls. */
.site-header,
.service-card,
.system-card,
.value-card,
.timeline,
.timeline-item,
.project-card,
.contact-card,
.footer-card,
.trust-strip,
.metric-card,
.section-card {
  border-color: rgba(221, 234, 240, 0.14);
  background: rgba(28, 41, 52, 0.76);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

.primary-action,
.language-toggle,
.header-action,
.contact-actions a:first-child {
  background: linear-gradient(135deg, #d98945, #e3a668);
  color: #101820;
  box-shadow: 0 14px 30px rgba(217, 137, 69, 0.22);
}

.secondary-action,
.contact-actions a:last-child,
.nav-toggle {
  border-color: rgba(221, 234, 240, 0.16);
  background: rgba(28, 41, 52, 0.78);
  color: var(--ink);
}

.hero-text,
.section-heading p,
.service-card p,
.system-card p,
.value-card p,
.project-card p,
.timeline-item p,
.contact-card p,
.site-footer p {
  color: #bcc8d2;
}

.eyebrow,
.service-icon,
.timeline-item span {
  color: #6fd4d0;
}

.hero-name,
.stat strong,
.material-preview span,
.price-summary strong {
  color: #e3a668;
}

.hero::before,
.visual-shell,
.work-band,
.contact-section {
  border-color: rgba(217, 137, 69, 0.18);
  background-color: rgba(28, 41, 52, 0.45);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(221, 234, 240, 0.075);
}

.language-menu {
  position: relative;
  display: inline-flex;
}

.language-menu .language-toggle {
  min-width: 86px;
}

.language-options {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 40;
  display: none;
  min-width: 150px;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 28, 37, 0.98);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.language-menu:hover .language-options,
.language-menu:focus-within .language-options {
  display: grid;
  gap: 0.2rem;
}

.language-options a {
  display: block;
  padding: 0.62rem 0.72rem;
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 800;
}

.language-options a:hover,
.language-options a:focus-visible {
  background: rgba(221, 234, 240, 0.08);
}

.user-menu {
  position: relative;
  display: inline-flex;
}

.user-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  height: 40px;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(28, 41, 52, 0.78);
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.user-options {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 40;
  display: none;
  min-width: 170px;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 28, 37, 0.98);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.user-menu:hover .user-options,
.user-menu:focus-within .user-options {
  display: grid;
  gap: 0.2rem;
}

.user-options a {
  display: block;
  padding: 0.62rem 0.72rem;
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 800;
}

.user-options a:hover,
.user-options a:focus-visible {
  background: rgba(221, 234, 240, 0.08);
}

.tech-showcase {
  width: min(1180px, calc(100% - 32px));
  margin: 22px auto 0;
}

.showcase-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
  gap: clamp(1rem, 3vw, 2rem);
  min-height: 430px;
  overflow: hidden;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid rgba(221, 234, 240, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(28, 41, 52, 0.92), rgba(20, 31, 41, 0.82)),
    linear-gradient(135deg, rgba(217, 137, 69, 0.1), rgba(79, 195, 199, 0.08));
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.22);
}

.showcase-shell::before {
  position: absolute;
  inset: auto -10% -40% auto;
  width: 52%;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(79, 195, 199, 0.18);
  border-radius: 50%;
  opacity: .8;
  transform: rotate(18deg);
}

.showcase-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: clamp(.5rem, 2vw, 1.2rem);
}

.showcase-copy h2 {
  max-width: 12ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4.4vw, 4.25rem);
  line-height: 1.02;
}

.showcase-copy p:not(.eyebrow) {
  max-width: 46ch;
  margin: 0;
  color: #bcc8d2;
  line-height: 1.8;
}

.showcase-controls {
  display: flex;
  gap: .55rem;
  margin-top: .4rem;
}

.showcase-controls button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(221, 234, 240, 0.07);
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1;
}

.showcase-stage {
  position: relative;
  min-height: 390px;
}

.showcase-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(180px, .95fr) minmax(220px, 1.05fr);
  align-items: stretch;
  gap: 1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(.985);
  transition: opacity .65s ease, transform .65s ease;
}

.showcase-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.slide-media,
.slide-content {
  overflow: hidden;
  border: 1px solid rgba(221, 234, 240, 0.14);
  border-radius: var(--radius);
  background: rgba(18, 28, 37, 0.78);
}

.slide-media {
  display: grid;
  place-items: center;
  min-height: 310px;
}

.slide-media img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  filter: drop-shadow(0 22px 32px rgba(0, 0, 0, .22));
  transform: translateY(8px) scale(.96);
  transition: transform .75s ease;
}

.showcase-slide.is-active .slide-media img {
  transform: translateY(0) scale(1);
}

.slide-content {
  display: grid;
  align-content: end;
  gap: .8rem;
  padding: clamp(1rem, 2.5vw, 1.4rem);
}

.slide-content span {
  color: #6fd4d0;
  font-weight: 950;
}

.slide-content h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2.6rem);
}

.slide-content p {
  margin: 0;
  color: #bcc8d2;
  line-height: 1.7;
}

.slide-content a {
  justify-self: start;
  min-height: 42px;
  padding: .7rem 1rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #d98945, #e3a668);
  color: #101820;
  font-weight: 900;
}

.showcase-dots {
  position: absolute;
  inset-inline-end: 1rem;
  bottom: 1rem;
  z-index: 4;
  display: flex;
  gap: .45rem;
}

.showcase-dots button {
  width: 10px;
  height: 10px;
  min-height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(221, 234, 240, .34);
}

.showcase-dots button.is-active {
  width: 28px;
  background: #d98945;
}

@media (max-width: 900px) {
  .showcase-shell,
  .showcase-slide {
    grid-template-columns: 1fr;
  }

  .showcase-stage {
    min-height: 580px;
  }

  .slide-media {
    min-height: 240px;
  }
}

@media (max-width: 560px) {
  .tech-showcase {
    width: min(100% - 20px, 520px);
  }

  .showcase-stage {
    min-height: 540px;
  }
}

.contact-links-grid {
  min-width: min(390px, 100%);
}

.contact-link {
  justify-content: flex-start !important;
  gap: .75rem;
  text-align: start;
}

.contact-link .contact-icon {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: rgba(16, 24, 32, .28);
  color: #101820;
  font-size: .92rem;
  font-weight: 950;
}

.contact-link span:last-child {
  display: grid;
  gap: .08rem;
}

.contact-link strong,
.contact-link small {
  display: block;
}

.contact-link small {
  color: rgba(16, 24, 32, .72);
  font-weight: 800;
}

.contact-link.whatsapp { background: linear-gradient(135deg, #4fc37a, #9be0b2); }
.contact-link.phone { background: linear-gradient(135deg, #4fc3c7, #9de1e2); }
.contact-link.email { background: linear-gradient(135deg, #d98945, #e3bc83); }
.contact-link.facebook { background: linear-gradient(135deg, #4b82d8, #9ab8ec); }
.contact-link.instagram { background: linear-gradient(135deg, #d86ba5, #e6a05f); }
.contact-link.linkedin { background: linear-gradient(135deg, #3278b8, #91c0e4); }
.contact-link.x,
.contact-link.telegram,
.contact-link.youtube,
.contact-link.link {
  background: rgba(28, 41, 52, .86);
  color: var(--ink);
  border: 1px solid var(--line);
}

.contact-link.x small,
.contact-link.telegram small,
.contact-link.youtube small,
.contact-link.link small {
  color: #bcc8d2;
}

/* Stripe-inspired Fortify refresh: clean global SaaS look without copying Stripe. */
:root {
  color-scheme: light;
  --ink: #102033;
  --muted: #5f6f82;
  --deep: #0a2540;
  --paper: #ffffff;
  --surface: #f6f9fc;
  --teal: #00a6b8;
  --mint: #00a87e;
  --gold: #f59f4b;
  --rose: #e15d75;
  --line: rgba(10, 37, 64, 0.12);
  --shadow: 0 24px 70px rgba(10, 37, 64, 0.14);
}

body {
  background:
    linear-gradient(180deg, #f7fbff 0%, #ffffff 36%, #f6f9fc 100%);
  color: var(--ink);
}

body::before {
  opacity: .38;
  background-image:
    linear-gradient(rgba(10, 37, 64, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 37, 64, 0.035) 1px, transparent 1px);
}

body::after {
  background:
    linear-gradient(116deg, transparent 0 16%, rgba(0, 166, 184, .18) 16% 26%, transparent 26% 100%),
    linear-gradient(106deg, transparent 0 56%, rgba(245, 159, 75, .18) 56% 68%, transparent 68% 100%);
  opacity: .65;
}

.site-header {
  border-color: rgba(10, 37, 64, 0.1);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 16px 45px rgba(10, 37, 64, .1);
}

.brand strong,
.nav-links a,
.user-toggle,
.language-toggle,
.secondary-action,
.header-action {
  color: var(--deep);
}

.brand small,
.eyebrow,
.service-icon,
.timeline-item span {
  color: var(--teal);
}

.nav-links {
  color: #53677c;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.user-toggle,
.language-toggle,
.secondary-action,
.nav-toggle {
  border-color: rgba(10, 37, 64, .1);
  background: rgba(10, 37, 64, .045);
}

.language-options,
.user-options {
  border-color: rgba(10, 37, 64, .1);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 20px 50px rgba(10, 37, 64, .16);
}

.language-options a,
.user-options a {
  color: var(--deep);
}

.hero {
  min-height: calc(100vh - 124px);
  padding-top: clamp(3rem, 7vw, 5.6rem);
}

.hero::before {
  border: 0;
  background: linear-gradient(135deg, rgba(0, 166, 184, .16), rgba(245, 159, 75, .14));
  filter: blur(0);
  opacity: .75;
}

h1,
h2,
h3,
.hero-name,
.service-card h3,
.systems-grid h3,
.values-grid strong,
.process-list strong,
.slide-content h3,
.showcase-copy h2 {
  color: var(--deep);
}

.hero-name {
  background: linear-gradient(90deg, #00a6b8, #00a87e, #f59f4b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text,
.section-heading p,
.service-card p,
.system-card p,
.value-card p,
.project-card p,
.timeline-item p,
.contact-card p,
.site-footer p,
.values-grid p,
.showcase-copy p:not(.eyebrow),
.slide-content p {
  color: var(--muted);
}

.primary-action,
.header-action,
.contact-actions a:first-child,
.slide-content a {
  background: linear-gradient(135deg, #0a2540, #00a6b8);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(0, 166, 184, .22);
}

.tech-showcase,
.hero,
.section,
.work-band,
.contact-section,
.site-footer,
.trust-strip {
  position: relative;
  z-index: 1;
}

.showcase-shell,
.service-card,
.system-card,
.value-card,
.timeline,
.timeline-item,
.project-card,
.contact-card,
.footer-card,
.trust-strip,
.metric-card,
.section-card,
.about-panel,
.values-grid article,
.why-grid div,
.process-list div,
.request-form,
.material-preview,
.price-summary {
  border-color: rgba(10, 37, 64, .1);
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 18px 50px rgba(10, 37, 64, .1);
}

.showcase-shell {
  background:
    linear-gradient(120deg, rgba(255,255,255,.92), rgba(246,249,252,.9)),
    linear-gradient(135deg, rgba(0,166,184,.14), rgba(245,159,75,.12));
}

.slide-media,
.slide-content {
  border-color: rgba(10, 37, 64, .1);
  background: #ffffff;
}

.showcase-dots button {
  background: rgba(10, 37, 64, .2);
}

.showcase-dots button.is-active {
  background: #00a6b8;
}

.trust-strip strong,
.stat strong,
.material-preview span,
.price-summary strong {
  color: #00a6b8;
}

.request-form input,
.request-form select,
.request-form textarea,
.request-form .form-control,
.request-form .form-select {
  border-color: rgba(10, 37, 64, .14);
  background: #ffffff;
  color: var(--deep);
}

.request-form label,
.request-page h1 {
  color: var(--deep);
}

.request-form .form-text,
.price-summary span,
.price-summary small {
  color: var(--muted);
}

.site-footer {
  color: var(--muted);
}

.contact-link.x,
.contact-link.telegram,
.contact-link.youtube,
.contact-link.link,
.contact-actions a:last-child {
  background: #ffffff;
  color: var(--deep);
  border: 1px solid rgba(10, 37, 64, .1);
}

.contact-link.x small,
.contact-link.telegram small,
.contact-link.youtube small,
.contact-link.link small {
  color: var(--muted);
}

/* Fortify global polish: Stripe-inspired rhythm, Fortify-owned identity. */
:root {
  --radius: 8px;
  --accent-blue: #0066ff;
  --accent-cyan: #00b8c8;
  --accent-green: #18a979;
  --accent-amber: #f5a33d;
  --soft-blue: rgba(0, 102, 255, 0.08);
  --soft-cyan: rgba(0, 184, 200, 0.11);
  --soft-amber: rgba(245, 163, 61, 0.13);
}

body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fbff 42%, #f4f8fb 100%);
}

body::after {
  background:
    linear-gradient(112deg, transparent 0 10%, rgba(0, 184, 200, 0.2) 10% 19%, rgba(24, 169, 121, 0.14) 19% 26%, transparent 26% 100%),
    linear-gradient(104deg, transparent 0 58%, rgba(245, 163, 61, 0.2) 58% 68%, rgba(0, 102, 255, 0.08) 68% 75%, transparent 75% 100%);
  opacity: 0.72;
}

.site-header {
  width: min(1220px, calc(100% - 32px));
  margin-top: 14px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(10, 37, 64, 0.08);
  box-shadow: 0 16px 42px rgba(10, 37, 64, 0.09);
}

.brand img {
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(10, 37, 64, 0.1);
}

.nav-links a,
.language-toggle,
.user-toggle,
.header-action,
.primary-action,
.secondary-action,
.slide-content a,
.showcase-controls button,
.contact-actions a,
.industry-list span {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.nav-links a:hover,
.language-toggle:hover,
.user-toggle:hover,
.secondary-action:hover,
.showcase-controls button:hover,
.contact-actions a:hover,
.industry-list span:hover {
  transform: translateY(-1px);
}

.primary-action,
.header-action,
.slide-content a,
.contact-actions a:first-child {
  background: linear-gradient(135deg, var(--deep), var(--accent-blue) 48%, var(--accent-cyan));
  color: #fff;
  box-shadow: 0 16px 34px rgba(0, 102, 255, 0.18);
}

.primary-action:hover,
.header-action:hover,
.slide-content a:hover,
.contact-actions a:first-child:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(0, 102, 255, 0.24);
}

.secondary-action,
.language-toggle,
.user-toggle,
.contact-actions a:last-child {
  border: 1px solid rgba(10, 37, 64, 0.1);
  background: rgba(255, 255, 255, 0.78);
  color: var(--deep);
}

.hero {
  width: min(1220px, calc(100% - 32px));
  min-height: calc(100vh - 150px);
  padding-top: clamp(3.5rem, 7vw, 6rem);
}

.hero::before {
  inset-inline-start: -8%;
  top: 8%;
  width: min(62vw, 780px);
  height: 320px;
  background:
    linear-gradient(90deg, rgba(0, 102, 255, 0.12), rgba(0, 184, 200, 0.14), rgba(245, 163, 61, 0.12));
  clip-path: polygon(8% 0, 100% 0, 88% 100%, 0 100%);
  border-radius: 0;
  transform: rotate(-7deg);
}

h1 {
  max-width: 12ch;
  color: #0a2540;
  letter-spacing: 0;
}

.hero-text {
  color: #4e6278;
}

.visual-ring {
  border: 0;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.42) 26%, transparent 27%),
    conic-gradient(from 145deg, rgba(0, 102, 255, 0.28), rgba(0, 184, 200, 0.3), rgba(24, 169, 121, 0.2), rgba(245, 163, 61, 0.28), rgba(0, 102, 255, 0.28));
  box-shadow: 0 32px 90px rgba(10, 37, 64, 0.13);
}

.hero-visual img {
  filter: drop-shadow(0 24px 34px rgba(10, 37, 64, 0.2));
}

.metric-card {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 44px rgba(10, 37, 64, 0.12);
}

.metric-card span {
  color: #5b7087;
}

.tech-showcase {
  width: min(1220px, calc(100% - 32px));
  margin-top: 24px;
}

.showcase-shell {
  min-height: 455px;
  padding: clamp(1rem, 2.2vw, 1.6rem);
  border-color: rgba(10, 37, 64, 0.08);
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.91)),
    linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 184, 200, 0.13), rgba(245, 163, 61, 0.11));
  box-shadow: 0 30px 80px rgba(10, 37, 64, 0.12);
}

.showcase-shell::before {
  inset: auto -18% -48% auto;
  width: 58%;
  border-color: rgba(0, 184, 200, 0.2);
  background: radial-gradient(circle, rgba(0, 184, 200, 0.13), transparent 64%);
}

.showcase-copy h2 {
  max-width: 13ch;
  color: var(--deep);
}

.showcase-controls button {
  background: #fff;
  color: var(--deep);
  box-shadow: 0 12px 24px rgba(10, 37, 64, 0.08);
}

.showcase-slide {
  gap: 1.1rem;
}

.slide-media,
.slide-content {
  border-color: rgba(10, 37, 64, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(10, 37, 64, 0.1);
}

.slide-media {
  background:
    linear-gradient(180deg, rgba(10, 37, 64, 0.03), rgba(0, 184, 200, 0.06)),
    #fff;
}

.slide-media img {
  filter: saturate(1.03) contrast(1.02);
}

.slide-content span {
  color: var(--accent-cyan);
}

.slide-content p {
  color: #526a80;
}

.showcase-dots {
  bottom: 1.15rem;
}

.showcase-dots button {
  background: rgba(10, 37, 64, 0.22);
}

.showcase-dots button.is-active {
  background: var(--accent-cyan);
}

.trust-strip {
  width: min(1220px, calc(100% - 32px));
  border: 0;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 50px rgba(10, 37, 64, 0.08);
}

.trust-strip div {
  background: transparent;
}

.about-panel div,
.service-card,
.systems-grid article,
.values-grid article,
.portfolio-card,
.process-list div,
.why-grid div {
  border-color: rgba(10, 37, 64, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 46px rgba(10, 37, 64, 0.09);
}

.service-card {
  min-height: 235px;
}

.service-card::after {
  border-color: rgba(0, 184, 200, 0.14);
  background: radial-gradient(circle, rgba(0, 184, 200, 0.13), transparent 68%);
}

.icon-box,
.system-icon,
.process-list span {
  background: linear-gradient(135deg, var(--soft-blue), var(--soft-cyan));
  color: var(--accent-blue);
  border: 1px solid rgba(0, 102, 255, 0.1);
}

.service-card:nth-child(2) .icon-box,
.systems-grid article:nth-child(2n) .system-icon {
  background: linear-gradient(135deg, rgba(0, 184, 200, 0.12), rgba(24, 169, 121, 0.1));
  color: var(--accent-cyan);
}

.service-card:nth-child(3) .icon-box,
.service-card:nth-child(6) .icon-box {
  background: linear-gradient(135deg, rgba(245, 163, 61, 0.14), rgba(225, 93, 117, 0.09));
  color: #c87117;
}

.systems-section::before {
  background:
    linear-gradient(112deg, rgba(0, 184, 200, 0.11), transparent 34%, rgba(245, 163, 61, 0.1)),
    #f6f9fc;
}

.system-visual {
  border-color: rgba(10, 37, 64, 0.08);
  background: #f6f9fc;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.portfolio-card {
  background:
    linear-gradient(180deg, rgba(10, 37, 64, 0.1), rgba(10, 37, 64, 0.9)),
    linear-gradient(135deg, #0a2540, #00b8c8 58%, #18a979);
}

.portfolio-card:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(10, 37, 64, 0.08), rgba(10, 37, 64, 0.88)),
    linear-gradient(135deg, #0a2540, #0066ff 52%, #f5a33d);
}

.portfolio-card:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(10, 37, 64, 0.08), rgba(10, 37, 64, 0.88)),
    linear-gradient(135deg, #0a2540, #18a979 55%, #f5a33d);
}

.process-list div {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(0, 184, 200, 0.08));
}

.work-metrics span,
.process-step,
.process-detail {
  border-color: rgba(10, 37, 64, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 46px rgba(10, 37, 64, 0.08);
}

.process-step span {
  background: linear-gradient(135deg, var(--soft-blue), var(--soft-cyan));
  color: var(--accent-blue);
  border: 1px solid rgba(0, 102, 255, 0.1);
}

.process-step:hover,
.process-step:focus-visible,
.process-step.is-active {
  border-color: rgba(0, 184, 200, 0.3);
  background: linear-gradient(135deg, rgba(0, 184, 200, 0.12), rgba(245, 163, 61, 0.08));
}

.process-detail {
  background:
    linear-gradient(135deg, rgba(0, 184, 200, 0.12), rgba(245, 163, 61, 0.09)),
    #ffffff;
}

.process-phase {
  color: var(--accent-cyan);
}

.process-outcomes li::before {
  background: var(--accent-cyan);
}

.work-action {
  background: linear-gradient(135deg, var(--deep), var(--accent-blue) 52%, var(--accent-cyan));
  box-shadow: 0 16px 34px rgba(0, 102, 255, 0.18);
}

html[dir="ltr"] .process-list div {
  background: linear-gradient(90deg, rgba(0, 184, 200, 0.08), rgba(255, 255, 255, 0.94));
}

.contact-section {
  border-top-color: rgba(10, 37, 64, 0.08);
}

.contact-link {
  border: 1px solid rgba(10, 37, 64, 0.08);
  box-shadow: 0 16px 34px rgba(10, 37, 64, 0.1);
}

.contact-link small {
  color: rgba(255, 255, 255, 0.82);
}

.site-footer {
  width: min(1220px, calc(100% - 32px));
  border-top-color: rgba(10, 37, 64, 0.08);
}

@media (max-width: 900px) {
  .showcase-stage {
    min-height: 600px;
  }
}

@media (max-width: 560px) {
  .site-header {
    width: min(100% - 20px, 520px);
  }

  .hero,
  .tech-showcase,
  .trust-strip,
  .section,
  .work-band,
  .contact-section,
  .site-footer {
    width: min(100% - 20px, 520px);
  }

  .language-toggle,
  .user-toggle {
    min-width: 0;
    padding-inline: 0.72rem;
  }
}

/* Premium Arabic typography and modern language switcher. */
html[dir="rtl"] body,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea {
  font-family: "IBM Plex Sans Arabic", "Noto Sans Arabic", "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
}

html[dir="ltr"] body,
html[dir="ltr"] button,
html[dir="ltr"] input,
html[dir="ltr"] select,
html[dir="ltr"] textarea {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[dir="rtl"] body {
  font-weight: 500;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] .hero-name,
html[dir="rtl"] .brand strong,
html[dir="rtl"] .slide-content h3,
html[dir="rtl"] .showcase-copy h2 {
  font-weight: 800;
  line-height: 1.16;
}

html[dir="rtl"] h1 {
  max-width: 12.5ch;
  line-height: 1.04;
}

html[dir="rtl"] h2 {
  line-height: 1.2;
}

html[dir="rtl"] p,
html[dir="rtl"] .hero-text,
html[dir="rtl"] .section-heading p,
html[dir="rtl"] .service-card p,
html[dir="rtl"] .systems-grid p,
html[dir="rtl"] .slide-content p,
html[dir="rtl"] .showcase-copy p:not(.eyebrow) {
  line-height: 1.95;
}

html[dir="rtl"] .eyebrow {
  letter-spacing: 0;
  font-weight: 800;
}

html[dir="rtl"] .nav-links,
html[dir="rtl"] .primary-action,
html[dir="rtl"] .secondary-action,
html[dir="rtl"] .header-action,
html[dir="rtl"] .contact-actions a,
html[dir="rtl"] .btn {
  font-weight: 800;
}

.language-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 42px;
  padding: 4px;
  border: 1px solid rgba(10, 37, 64, 0.1);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 251, 255, 0.9)),
    linear-gradient(135deg, rgba(0, 184, 200, 0.12), rgba(245, 163, 61, 0.1));
  box-shadow: 0 14px 32px rgba(10, 37, 64, 0.1);
  white-space: nowrap;
}

.language-globe {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 184, 200, 0.14), rgba(0, 102, 255, 0.1));
  color: var(--accent-cyan);
  font-size: 1rem;
  font-weight: 900;
}

.language-choice {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 32px;
  padding: 0 0.72rem;
  border-radius: 999px;
  color: #50657a;
  font-size: 0.88rem;
  font-weight: 900;
}

.language-choice:hover,
.language-choice:focus-visible {
  color: var(--deep);
  outline: 0;
}

.language-choice.is-active {
  background: linear-gradient(135deg, var(--deep), var(--accent-blue) 52%, var(--accent-cyan));
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 102, 255, 0.2);
}

.language-switch .language-toggle,
.language-switch .language-options {
  display: none;
}

html[dir="rtl"] .language-choice {
  font-family: "IBM Plex Sans Arabic", "Noto Sans Arabic", Tahoma, sans-serif;
}

html[dir="ltr"] .language-choice {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

@media (max-width: 720px) {
  .language-switch {
    grid-column: auto;
    height: 40px;
  }

  .language-globe {
    display: none;
  }

  .language-choice {
    min-width: 42px;
    height: 30px;
    padding-inline: 0.62rem;
  }
}

@media (max-width: 560px) {
  .language-switch {
    justify-self: stretch;
    justify-content: center;
    width: 100%;
    grid-column: 1 / -1;
  }
}

/* Header crowding fix for English labels and logged-in user menus. */
.site-header {
  overflow: visible;
}

.brand {
  min-width: 0;
}

.brand strong {
  overflow: hidden;
  max-width: 260px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-links {
  min-width: 0;
}

.header-action,
.user-menu,
.language-switch,
.nav-toggle {
  flex-shrink: 0;
}

@media (max-width: 980px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) auto auto auto auto;
    align-items: center;
    gap: 0.55rem;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 0.5rem;
    padding-top: 0.72rem;
    border-top: 1px solid rgba(10, 37, 64, 0.08);
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    justify-content: center;
    min-height: 42px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 8px 18px rgba(10, 37, 64, 0.05);
  }

  .header-action {
    min-width: max-content;
    padding-inline: 0.95rem;
  }

  .language-switch {
    height: 40px;
    padding: 4px;
  }

  .language-globe {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .language-choice {
    min-width: 42px;
    height: 30px;
    padding-inline: 0.62rem;
  }
}

@media (min-width: 981px) {
  .site-header {
    display: flex;
    flex-wrap: nowrap;
    width: min(1320px, calc(100% - 20px));
    gap: 0.38rem;
    padding: 8px;
  }

  .brand {
    flex: 0 1 205px;
    gap: 0.55rem;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .brand strong {
    max-width: 150px;
    font-size: 0.92rem;
    line-height: 1.12;
  }

  .brand small {
    font-size: 0.78rem;
  }

  .nav-toggle {
    display: none !important;
  }

  .nav-links {
    display: flex !important;
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.08rem;
    padding: 0;
    border: 0;
  }

  .nav-links a {
    min-height: 36px;
    padding: 0.42rem 0.48rem;
    font-size: clamp(0.78rem, 0.72vw, 0.9rem);
    line-height: 1.14;
    text-align: center;
    white-space: normal;
  }

  .language-switch {
    height: 38px;
    padding: 3px;
    margin-inline-start: 0.1rem;
  }

  .language-globe {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
    font-size: 0.9rem;
  }

  .language-choice {
    min-width: 38px;
    height: 30px;
    padding-inline: 0.54rem;
    font-size: 0.82rem;
  }

  .user-toggle {
    min-width: 104px;
    height: 38px;
    padding-inline: 0.72rem;
    font-size: 0.88rem;
  }

  .header-action {
    min-height: 38px;
    height: 38px;
    padding-inline: 0.78rem;
    font-size: 0.88rem;
    white-space: nowrap;
  }
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .brand strong {
    max-width: 190px;
  }

  .user-menu,
  .header-action {
    justify-self: stretch;
    grid-column: span 1;
  }

  .user-toggle,
  .header-action {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .language-switch,
  .user-menu,
  .header-action,
  .nav-links {
    grid-column: 1 / -1;
  }
}

/* Solar calculator experience */
.solar-page .section {
  width: min(1280px, calc(100% - 32px));
}

.solar-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1.25rem;
  align-items: stretch;
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.solar-hero-copy,
.solar-hero-card,
.solar-panel {
  border: 1px solid rgba(10, 37, 64, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 54px rgba(10, 37, 64, 0.09);
}

.solar-hero-copy {
  display: grid;
  gap: 1rem;
  padding: clamp(1.4rem, 3vw, 2rem);
}

.solar-hero-copy h1 {
  max-width: 12ch;
}

.solar-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.solar-kpis article {
  display: grid;
  gap: 0.3rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(10, 37, 64, 0.08);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 184, 200, 0.09), rgba(0, 102, 255, 0.05)),
    #fff;
}

.solar-kpis span,
.solar-result-card span,
.solar-loads-labels span,
.solar-summary-note {
  color: var(--muted);
  font-size: 0.88rem;
}

.solar-kpis strong {
  color: var(--deep);
  font-size: 1rem;
  line-height: 1.45;
}

.solar-hero-side {
  display: grid;
}

.solar-hero-card {
  display: grid;
  align-content: center;
  gap: 0.75rem;
  min-height: 100%;
  padding: 1.6rem;
  background:
    linear-gradient(135deg, rgba(10, 37, 64, 0.96), rgba(0, 102, 255, 0.82), rgba(0, 184, 200, 0.72));
  color: #fff;
}

.solar-hero-card span,
.solar-hero-card p {
  color: rgba(255, 255, 255, 0.82);
}

.solar-hero-card strong {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.25;
}

.solar-shell {
  padding-top: 0.5rem;
}

.solar-calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  gap: 1rem;
  align-items: start;
}

.solar-panel {
  padding: 1.2rem;
}

.solar-form-panel {
  display: grid;
  gap: 1.2rem;
}

.solar-results-panel {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 1rem;
}

.solar-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
}

.solar-panel-head h2,
.solar-loads h3,
.solar-summary-card h3 {
  margin: 0;
  color: var(--deep);
}

.solar-actions,
.solar-loads-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.solar-inline-btn {
  min-height: 40px;
  padding-inline: 0.9rem;
}

.solar-loads {
  display: grid;
  gap: 0.85rem;
}

.solar-mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: max-content;
  padding: 0.3rem;
  border: 1px solid rgba(10, 37, 64, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(10, 37, 64, 0.06);
}

.solar-mode-btn {
  min-height: 38px;
  padding: 0.62rem 0.95rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
}

.solar-mode-btn.is-active {
  background: linear-gradient(135deg, var(--deep), var(--accent-blue) 52%, var(--accent-cyan));
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 102, 255, 0.2);
}

.solar-direct-panel {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid rgba(10, 37, 64, 0.08);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 184, 200, 0.06), rgba(0, 102, 255, 0.04)),
    #fff;
}

.solar-direct-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.solar-direct-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.solar-loads-table {
  display: grid;
  gap: 0.55rem;
}

.solar-loads-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.3fr) 86px 100px 112px 112px 120px 48px;
  gap: 0.55rem;
  align-items: center;
}

.solar-loads-row input,
.solar-loads-row select {
  width: 100%;
  min-height: 42px;
  padding: 0.7rem 0.78rem;
  border: 1px solid rgba(10, 37, 64, 0.12);
  border-radius: var(--radius);
  background: #fff;
  color: var(--deep);
  font: inherit;
}

.solar-loads-labels {
  padding-inline: 0.15rem;
}

.solar-loads-labels span:last-child {
  visibility: hidden;
}

.solar-load-total {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.75rem;
  border: 1px solid rgba(10, 37, 64, 0.08);
  border-radius: var(--radius);
  background: rgba(0, 184, 200, 0.06);
  color: var(--deep);
}

.solar-load-remove {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(225, 93, 117, 0.18);
  border-radius: var(--radius);
  background: rgba(225, 93, 117, 0.08);
  color: #b22d49;
  font-size: 1.4rem;
  line-height: 1;
}

.solar-settings-grid,
.solar-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.solar-input-card,
.solar-result-card,
.solar-summary-card {
  display: grid;
  gap: 0.45rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(10, 37, 64, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
}

.solar-input-card label {
  margin: 0;
  color: var(--deep);
  font-weight: 800;
}

.solar-input-card input,
.solar-input-card select {
  min-height: 44px;
  padding: 0.72rem 0.78rem;
  border: 1px solid rgba(10, 37, 64, 0.12);
  border-radius: var(--radius);
  background: #fff;
  color: var(--deep);
  font: inherit;
}

.solar-input-card small {
  color: var(--muted);
  line-height: 1.75;
}

.solar-result-card strong {
  color: var(--deep);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.2;
}

.solar-summary-list,
.solar-note-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-inline-start: 1.15rem;
  color: var(--deep);
}

.solar-summary-list strong {
  color: var(--accent-blue);
}

.solar-summary-note {
  margin: 0;
  line-height: 1.8;
}

@media print {
  .site-header,
  .site-footer,
  .contact-section,
  .solar-actions,
  .nav-toggle {
    display: none !important;
  }

  body,
  .solar-page {
    background: #fff !important;
  }

  .solar-results-panel {
    position: static;
  }

  .solar-panel,
  .solar-hero-copy,
  .solar-hero-card {
    box-shadow: none;
  }
}

@media (max-width: 1100px) {
  .solar-hero,
  .solar-calc-grid {
    grid-template-columns: 1fr;
  }

  .solar-results-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .solar-kpis,
  .solar-direct-grid,
  .solar-settings-grid,
  .solar-results-grid {
    grid-template-columns: 1fr;
  }

  .solar-loads-row {
    grid-template-columns: 1fr 1fr;
  }

  .solar-loads-labels {
    display: none;
  }

  .solar-loads-row .solar-load-total,
  .solar-loads-row .solar-load-remove {
    grid-column: span 1;
  }
}

@media (max-width: 560px) {
  .solar-page .section {
    width: min(100% - 20px, 520px);
  }

  .solar-mode-switch {
    width: 100%;
    justify-content: stretch;
  }

  .solar-mode-btn {
    flex: 1 1 0;
  }

  .solar-loads-row {
    grid-template-columns: 1fr;
  }

  .solar-inline-btn {
    width: 100%;
  }
}

/* Final responsive header pass: keep the full company name visible. */
.site-header {
  width: min(1380px, calc(100% - 20px));
}

.brand {
  flex: 0 0 clamp(235px, 22vw, 330px);
  min-width: 0;
}

.brand img {
  flex: 0 0 auto;
}

.brand strong {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  line-height: 1.18;
}

.brand small {
  line-height: 1;
}

@media (min-width: 1181px) {
  .site-header {
    display: flex;
    flex-wrap: nowrap;
  }

  .brand strong {
    font-size: clamp(0.88rem, 0.86vw, 1rem);
  }

  .nav-links {
    display: flex !important;
  }

  .nav-toggle {
    display: none !important;
  }
}

@media (max-width: 1180px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    align-items: center;
  }

  .brand {
    width: 100%;
    flex-basis: auto;
  }

  .brand strong {
    font-size: 0.94rem;
  }

  .nav-toggle {
    display: inline-grid !important;
    place-items: center;
  }

  .nav-links {
    display: none !important;
    grid-column: 1 / -1;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem;
    padding-top: 0.72rem;
    border-top: 1px solid rgba(10, 37, 64, 0.08);
  }

  .nav-links.is-open {
    display: grid !important;
  }
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .language-switch,
  .user-menu,
  .header-action,
  .nav-links {
    grid-column: 1 / -1;
  }

  .user-menu,
  .header-action {
    justify-self: stretch;
  }

  .user-toggle,
  .header-action {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .brand {
    gap: 0.45rem;
  }

  .brand strong {
    font-size: 0.84rem;
    line-height: 1.2;
  }
}

/* Clean work-process section: no tinted backdrop or heavy shadow behind it. */
.work-band {
  border-color: transparent !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.work-band .work-metrics span,
.work-band .process-step,
.work-band .process-detail {
  background: #ffffff !important;
  box-shadow: none !important;
}

.work-band .process-step:hover,
.work-band .process-step:focus-visible,
.work-band .process-step.is-active {
  background: #ffffff !important;
  transform: none;
}

/* Remove decorative backdrops that read like shadows behind page sections. */
body {
  background: #f7fbff !important;
}

body::before,
body::after {
  display: none !important;
  background: none !important;
  content: none !important;
}

.section,
.work-band,
.contact-section,
.site-footer {
  background: transparent !important;
  box-shadow: none !important;
}

.section::before,
.section::after,
.work-band::before,
.work-band::after,
.contact-section::before,
.contact-section::after {
  display: none !important;
  background: none !important;
  box-shadow: none !important;
  content: none !important;
}

.contact-link {
  box-shadow: none !important;
}

.contact-section {
  align-items: start !important;
  padding-top: clamp(2rem, 4vw, 3rem) !important;
  padding-bottom: clamp(2rem, 4vw, 3rem) !important;
}

.tech-showcase,
.section,
.work-band,
.contact-section {
  scroll-margin-top: 120px;
}

@media (max-width: 1180px) {
  .tech-showcase,
  .section,
  .work-band,
  .contact-section {
    scroll-margin-top: 160px;
  }
}

@media (max-width: 720px) {
  .tech-showcase,
  .section,
  .work-band,
  .contact-section {
    scroll-margin-top: 285px;
  }
}

.contact-section {
  scroll-margin-top: 84px;
}

@media (max-width: 1180px) {
  .contact-section {
    scroll-margin-top: 135px;
  }
}

@media (max-width: 720px) {
  .contact-section {
    scroll-margin-top: 285px;
  }
}

/* Contact page overhaul: turn the empty page into a useful entry point. */
.contact-page {
  padding-top: clamp(1rem, 3vw, 2.5rem);
}

.contact-hero,
.contact-flow-section,
.contact-channels-section {
  width: min(1180px, calc(100% - 32px));
}

.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .42fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: stretch;
  min-height: min(620px, calc(100vh - 150px));
  padding-top: clamp(3rem, 7vw, 6rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.contact-hero-copy {
  display: grid;
  align-content: center;
  gap: 1.1rem;
}

.contact-overline {
  color: var(--teal);
  font-size: .9rem;
  font-weight: 950;
}

.contact-hero h1 {
  max-width: 9ch;
  margin: 0;
  color: var(--deep);
  font-size: clamp(4rem, 12vw, 8.8rem);
  line-height: .92;
}

.contact-hero p,
.contact-flow-grid p,
.contact-response-card span,
.contact-channels-section .section-heading p {
  color: var(--muted);
  line-height: 1.85;
}

.contact-hero-copy > p {
  max-width: 720px;
  margin: 0;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
}

.contact-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}

.ghost-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .78rem 1rem;
  border: 1px solid rgba(10, 37, 64, .12);
  border-radius: var(--radius);
  background: #fff;
  color: var(--deep);
  font-weight: 900;
}

.contact-response-card {
  display: grid;
  align-content: center;
  gap: .8rem;
  padding: 1rem;
  border: 1px solid rgba(10, 37, 64, .08);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 184, 200, .08), rgba(245, 163, 61, .08)),
    #fff;
}

.contact-response-card div {
  display: grid;
  gap: .25rem;
  min-height: 88px;
  padding: .9rem;
  border: 1px solid rgba(10, 37, 64, .08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .86);
}

.contact-response-card strong,
.contact-flow-grid strong {
  color: var(--deep);
}

.contact-flow-section,
.contact-channels-section {
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.contact-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
}

.contact-flow-grid article {
  display: grid;
  gap: .5rem;
  min-height: 180px;
  padding: 1rem;
  border: 1px solid rgba(10, 37, 64, .08);
  border-radius: var(--radius);
  background: #fff;
}

.contact-flow-grid span {
  color: var(--teal);
  font-weight: 950;
}

.contact-channels-section .contact-links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  min-width: 0;
}

.contact-channels-section .contact-link {
  min-height: 96px;
  border: 1px solid rgba(10, 37, 64, .08);
  background: #fff;
  color: var(--deep);
}

.contact-link.request-channel {
  background:
    linear-gradient(135deg, rgba(0, 102, 255, .12), rgba(0, 184, 200, .09)),
    #fff;
}

.contact-channels-section .contact-link small {
  color: #5f6f82;
}

@media (max-width: 900px) {
  .contact-hero,
  .contact-flow-grid,
  .contact-channels-section .contact-links-grid {
    grid-template-columns: 1fr;
  }

  .contact-hero {
    min-height: 0;
  }

  .contact-hero h1 {
    max-width: none;
    font-size: clamp(3.4rem, 18vw, 6.4rem);
  }
}

/* Solar calculator UX pass: make the tool visible first and keep inputs legible. */
.solar-page .section {
  width: min(1320px, calc(100% - 24px));
}

.solar-hero {
  grid-template-columns: 1fr;
  padding-top: clamp(1rem, 2.5vw, 1.8rem);
  padding-bottom: 0.35rem;
}

.solar-hero-side {
  display: none;
}

.solar-hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.48fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: end;
  padding: clamp(1rem, 2.2vw, 1.4rem) 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.solar-hero-copy .eyebrow,
.solar-hero-copy h1,
.solar-hero-copy .hero-text {
  grid-column: 1;
}

.solar-hero-copy h1 {
  max-width: 15ch;
  font-size: clamp(2.4rem, 5.2vw, 4.9rem);
  line-height: 1.04;
}

.solar-hero-copy .hero-text {
  max-width: 780px;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
}

.solar-kpis {
  grid-column: 2;
  grid-row: 1 / span 3;
  grid-template-columns: 1fr;
  align-self: stretch;
}

.solar-kpis article,
.solar-panel,
.solar-input-card,
.solar-result-card,
.solar-summary-card {
  box-shadow: none;
}

.solar-shell {
  padding-top: 0.75rem;
}

.solar-calc-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.62fr);
  gap: 1.1rem;
}

.solar-panel {
  background: #ffffff;
}

.solar-panel-head {
  padding-bottom: 0.95rem;
  border-bottom: 1px solid rgba(10, 37, 64, 0.08);
}

.solar-panel-head h2 {
  font-size: clamp(1.55rem, 2.35vw, 2.35rem);
  line-height: 1.16;
}

.solar-actions {
  gap: 0.55rem;
}

.solar-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  border-radius: var(--radius);
}

.solar-mode-btn {
  border-radius: 6px;
  white-space: normal;
}

.solar-loads-row {
  grid-template-columns: minmax(170px, 1.28fr) minmax(70px, 0.42fr) minmax(86px, 0.5fr) minmax(104px, 0.62fr) minmax(104px, 0.62fr) minmax(108px, 0.62fr) 42px;
}

.solar-load-field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  margin: 0;
}

.solar-load-field span {
  display: none;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.solar-load-total {
  gap: 0.2rem;
  font-weight: 950;
  text-align: center;
}

.solar-result-card {
  min-height: 88px;
  align-content: center;
}

.solar-result-card:nth-child(2),
.solar-result-card:nth-child(10),
.solar-result-card:nth-child(11),
.solar-result-card:nth-child(13) {
  border-color: rgba(0, 102, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(0, 102, 255, 0.08), rgba(0, 184, 200, 0.06)),
    #ffffff;
}

.solar-result-card strong {
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .solar-calc-grid {
    grid-template-columns: 1fr;
  }

  .solar-results-panel {
    position: static;
  }

  .solar-hero-copy {
    grid-template-columns: 1fr;
  }

  .solar-kpis {
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .solar-form-panel {
    grid-row: 1;
    order: -1 !important;
  }

  .solar-results-panel {
    grid-row: 2;
    order: 1 !important;
  }
}

@media (max-width: 820px) {
  .solar-hero {
    padding-top: 0.75rem;
  }

  .solar-hero-copy h1 {
    max-width: none;
    font-size: clamp(2.1rem, 10.5vw, 3.15rem);
  }

  .solar-kpis {
    grid-template-columns: 1fr;
  }

  .solar-panel {
    padding: 1rem;
  }

  .solar-panel-head {
    display: grid;
  }

  .solar-loads-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0.9rem;
    border: 1px solid rgba(10, 37, 64, 0.08);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
  }

  .solar-load-field span {
    display: block;
  }

  .solar-load-field-name {
    grid-column: 1 / -1;
  }

  .solar-load-total {
    align-items: flex-start;
    justify-content: center;
    text-align: start;
  }

  .solar-load-total::before {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    content: attr(data-label);
  }

  .solar-load-remove {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .solar-page .section {
    width: min(100% - 20px, 520px);
  }

  .solar-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .solar-loads-row {
    grid-template-columns: 1fr;
  }
}

.app-install-prompt[hidden] {
  display: none;
}

.app-install-prompt {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  left: max(16px, env(safe-area-inset-left));
  z-index: 80;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  width: min(620px, calc(100% - 32px));
  margin-inline: auto;
  padding: 0.85rem;
  border: 1px solid rgba(221, 234, 240, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(24, 35, 45, 0.98), rgba(9, 17, 27, 0.98));
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.32);
  color: #f7fbff;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  backdrop-filter: blur(16px);
}

.app-install-prompt.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.app-install-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(221, 234, 240, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.app-install-mark img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.app-install-copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.app-install-copy strong {
  color: #f7fbff;
  font-size: 0.98rem;
  line-height: 1.25;
}

.app-install-copy p {
  margin: 0;
  color: #d7e4ed;
  font-size: 0.86rem;
  line-height: 1.55;
}

.app-install-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.app-install-button,
.app-install-dismiss {
  height: 40px;
  border: 0;
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
}

.app-install-button {
  min-width: 92px;
  padding: 0 1rem;
  background: linear-gradient(135deg, #e07d3d, #4fc3c7);
  color: #071019;
}

.app-install-dismiss {
  width: 40px;
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #e9f2f7;
  font-size: 1.25rem;
}

@media (max-width: 620px) {
  .app-install-prompt {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .app-install-actions {
    grid-column: 1 / -1;
    width: 100%;
  }

  .app-install-button {
    flex: 1;
  }

  .app-install-dismiss {
    flex: 0 0 40px;
  }
}
