:root {
  --bg: #071316;
  --bg-deep: #050b0d;
  --panel: rgba(12, 29, 33, 0.72);
  --panel-strong: rgba(9, 23, 26, 0.92);
  --panel-soft: rgba(18, 44, 50, 0.55);
  --brand: #0ff0fc;
  --brand-soft: rgba(15, 240, 252, 0.18);
  --brand-line: rgba(15, 240, 252, 0.24);
  --text: #f6fbfd;
  --muted: #a7bdc3;
  --muted-strong: #d1e1e5;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.36);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 240, 252, 0.14), transparent 32%),
    radial-gradient(circle at 85% 20%, rgba(8, 157, 180, 0.16), transparent 24%),
    linear-gradient(145deg, #051012 0%, #0a1b1f 38%, #132127 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black 32%, transparent 92%);
  opacity: 0.28;
}

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

button {
  font: inherit;
}

#app {
  position: relative;
  z-index: 1;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(5, 17, 20, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 92px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-mark svg {
  width: min(230px, 46vw);
  height: auto;
  display: block;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.lang-switcher button {
  min-width: 54px;
  padding: 0.65rem 0.9rem;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.lang-switcher button.active {
  background: var(--brand);
  color: #021214;
  font-weight: 700;
}

.page-main {
  padding-bottom: 5rem;
}

.section {
  padding: 2rem 0 5.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand));
}

.hero-grid,
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 2rem;
  align-items: stretch;
}

.hero-copy {
  padding: 4rem 0 3rem;
}

.hero-title {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-title .accent {
  color: var(--brand);
}

.lead {
  margin: 1.5rem 0 0;
  max-width: 42rem;
  color: var(--muted-strong);
  font-size: 1.14rem;
  line-height: 1.8;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #021214;
  background: linear-gradient(90deg, #0ff0fc, #78f7ff);
  box-shadow: 0 18px 40px rgba(15, 240, 252, 0.22);
}

.button-secondary {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
}

.surface {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(15, 33, 38, 0.8), rgba(8, 18, 21, 0.95));
  box-shadow: var(--shadow);
}

.surface::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.hero-panel {
  padding: 1.75rem;
  min-height: 100%;
}

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

.metric-card,
.capability-card,
.blog-card,
.project-card,
.story-card,
.legal-card,
.contact-card {
  padding: 1.45rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(19, 42, 47, 0.72), rgba(7, 17, 20, 0.9));
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.metric-card:hover,
.capability-card:hover,
.blog-card:hover,
.project-card:hover,
.story-card:hover,
.legal-card:hover,
.contact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 240, 252, 0.18);
}

.metric-card strong,
.project-card strong {
  display: block;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.metric-card span,
.muted {
  color: var(--muted);
}

.metric-wide {
  grid-column: 1 / -1;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}

.section-title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.2rem);
  letter-spacing: -0.04em;
}

.section-desc {
  margin: 0.7rem 0 0;
  max-width: 44rem;
  color: var(--muted);
  line-height: 1.8;
}

.why-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
}

.why-primary {
  padding: 1.8rem;
}

.why-stack {
  display: grid;
  gap: 1rem;
}

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

.project-type,
.tag,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-links,
.meta-list,
.feature-list,
.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.feature-list {
  gap: 0.7rem;
}

.feature-list span,
.meta-list span {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted-strong);
  font-size: 0.88rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
}

.blog-list {
  display: grid;
  gap: 1rem;
}

.cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.8rem;
}

.footer {
  padding: 1.4rem 0 2.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer-brand {
  max-width: 30rem;
}

.footer-brand .brand-mark {
  margin-bottom: 1rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.story-list,
.capability-list,
.legal-list {
  display: grid;
  gap: 1rem;
}

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

.story-number {
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mini-title {
  margin: 0.85rem 0 0.4rem;
  font-size: 1.2rem;
}

.body-copy {
  color: var(--muted-strong);
  line-height: 1.9;
}

.contact-grid,
.tools-grid,
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.social-list a {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted-strong);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.social-list a:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 240, 252, 0.18);
  background: rgba(15, 240, 252, 0.08);
}

[dir="rtl"] body {
  font-family: "Inter", sans-serif;
}

[dir="rtl"] .header-inner,
[dir="rtl"] .section-header,
[dir="rtl"] .cta-strip,
[dir="rtl"] .footer-bottom,
[dir="rtl"] .footer-grid,
[dir="rtl"] .hero-grid,
[dir="rtl"] .two-column,
[dir="rtl"] .why-grid,
[dir="rtl"] .projects-grid,
[dir="rtl"] .blog-grid,
[dir="rtl"] .contact-grid,
[dir="rtl"] .tools-grid,
[dir="rtl"] .about-grid {
  direction: rtl;
}

[dir="rtl"] .site-nav,
[dir="rtl"] .header-right,
[dir="rtl"] .button-row,
[dir="rtl"] .hero-actions,
[dir="rtl"] .project-links,
[dir="rtl"] .social-list,
[dir="rtl"] .feature-list,
[dir="rtl"] .meta-list {
  justify-content: flex-start;
}

[dir="rtl"] .lead,
[dir="rtl"] .section-desc,
[dir="rtl"] .body-copy,
[dir="rtl"] .footer-brand,
[dir="rtl"] p,
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4 {
  text-align: right;
}

@media (max-width: 980px) {
  .hero-grid,
  .two-column,
  .why-grid,
  .projects-grid,
  .blog-grid,
  .contact-grid,
  .tools-grid,
  .about-grid,
  .legal-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    align-items: flex-start;
    padding: 1rem 0;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav {
    width: 100%;
  }

  .hero-copy {
    padding-top: 2.5rem;
  }

  .cta-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 1.2rem), var(--max));
  }

  .brand-mark svg {
    width: min(190px, 58vw);
  }

  .site-nav a,
  .lang-switcher button {
    width: calc(50% - 0.25rem);
    justify-content: center;
    text-align: center;
  }

  .site-nav {
    gap: 0.5rem;
  }

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

  .section {
    padding-bottom: 4.2rem;
  }
}
