@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap');

:root {
  --teal: #13b4af;
  --teal-bright: #1cc9c3;
  --teal-deep: #0e8f8b;
  --navy: #12192c;
  --navy-deep: #070b14;
  --ink: #12192c;
  --muted: #5c6b7a;
  --line: rgba(19, 180, 175, 0.35);
  --line-soft: rgba(18, 25, 44, 0.12);
  --white: #ffffff;
  --fog: #e8eef3;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', sans-serif;
  color: var(--ink);
  background: var(--navy-deep);
  line-height: 1.7;
}

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

button, input, select, textarea {
  font: inherit;
}

.page { overflow: hidden; }

.shell {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.ornament {
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  margin: 18px auto;
  position: relative;
}

.ornament::before,
.ornament::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid var(--teal);
  transform: translateY(-50%) rotate(45deg);
}

.ornament::before { inset-inline-end: 44px; inset-inline-start: auto; }
.ornament::after { inset-inline-start: 44px; inset-inline-end: auto; }

.topbar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.96), rgba(7, 11, 20, 0.7), transparent);
  color: var(--fog);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-mark strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--teal-bright);
}

.brand-mark .brand-text > span {
  font-size: 11px;
  color: rgba(232, 238, 243, 0.7);
  font-weight: 600;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(232, 238, 243, 0.78);
}

.topnav a:hover { color: var(--teal-bright); }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fog);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease;
}

.lang-btn:hover {
  border-color: var(--teal-bright);
  color: var(--teal-bright);
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  color: var(--fog);
  background:
    radial-gradient(ellipse at center top, rgba(19, 180, 175, 0.22), transparent 52%),
    radial-gradient(ellipse at 80% 90%, rgba(19, 180, 175, 0.08), transparent 40%),
    linear-gradient(165deg, #05070d 0%, #12192c 48%, #070b14 100%);
  padding: 120px 0 80px;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40 Z' fill='none' stroke='%2313b4af' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  pointer-events: none;
}

.hero-frame {
  position: relative;
  width: min(920px, calc(100% - 48px));
  padding: 52px 40px 44px;
  border: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.45);
  box-shadow: 0 0 0 12px rgba(7, 11, 20, 0.28);
}

.hero-frame::before,
.hero-frame::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1px solid var(--teal);
}

.hero-frame::before {
  top: -1px;
  inset-inline-end: -1px;
  inset-inline-start: auto;
  border-inline-start: 0;
  border-bottom: 0;
}

.hero-frame::after {
  bottom: -1px;
  inset-inline-start: -1px;
  inset-inline-end: auto;
  border-inline-end: 0;
  border-top: 0;
}

.hero-logo {
  width: min(200px, 52vw);
  height: auto;
  margin: 0 auto 18px;
  display: block;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--teal-bright);
  margin-bottom: 8px;
}

.hero h1 {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--white);
  margin-bottom: 10px;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(232, 238, 243, 0.86);
  max-width: 40ch;
  margin: 0 auto 28px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
}

.btn-gold {
  background: linear-gradient(180deg, #1cc9c3, #13b4af);
  color: var(--navy-deep);
}

.btn-gold:hover {
  background: linear-gradient(180deg, #35d6d0, #1cc9c3);
}

.btn-outline {
  background: transparent;
  color: var(--fog);
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: var(--teal-bright);
  color: var(--teal-bright);
}

.strip {
  background: #0b101c;
  border-block: 1px solid rgba(19, 180, 175, 0.18);
  padding: 28px 0;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.strip-item {
  border: 1px solid rgba(19, 180, 175, 0.18);
  background: rgba(255, 255, 255, 0.03);
  padding: 18px 16px;
}

.strip-item strong {
  display: block;
  color: var(--teal-bright);
  font-size: 14px;
  margin-bottom: 4px;
}

.strip-item span {
  font-size: 13px;
  color: rgba(232, 238, 243, 0.7);
}

.chapter {
  position: relative;
  padding: 100px 0;
}

.chapter-dark {
  color: var(--fog);
  background:
    radial-gradient(circle at 10% 20%, rgba(19, 180, 175, 0.1), transparent 30%),
    linear-gradient(180deg, #070b14, #12192c 55%, #070b14);
}

.chapter-light {
  color: var(--ink);
  background: linear-gradient(180deg, #f5f8fb, #eef3f6 50%, #f5f8fb);
}

.chapter-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 4 L56 30 L30 56 L4 30 Z' fill='none' stroke='%2312192c' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  pointer-events: none;
}

.chapter-dark .chapter-pattern {
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 4 L56 30 L30 56 L4 30 Z' fill='none' stroke='%2313b4af' stroke-width='1'/%3E%3C/svg%3E");
}

.chapter-inner { position: relative; z-index: 1; }

.chapter-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 44px;
}

.chapter-no {
  display: inline-block;
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  color: var(--teal-deep);
  margin-bottom: 8px;
  letter-spacing: 0.12em;
}

.chapter-dark .chapter-no { color: var(--teal-bright); }

.chapter-head h2 {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}

.chapter-head p {
  font-size: 17px;
  color: var(--muted);
}

.chapter-dark .chapter-head p {
  color: rgba(232, 238, 243, 0.78);
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.service {
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.76);
  padding: 24px 22px;
  min-height: 260px;
  transition: border-color 180ms ease, transform 180ms ease;
}

.service:hover {
  border-color: rgba(19, 180, 175, 0.45);
  transform: translateY(-2px);
}

.service-no {
  display: block;
  font-family: 'Cairo', sans-serif;
  font-size: 18px;
  color: var(--teal);
  margin-bottom: 10px;
}

.service h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.service p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
}

.service ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.service li {
  position: relative;
  padding-inline-start: 14px;
  font-size: 13px;
  color: var(--ink);
}

.service li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--teal);
  transform: rotate(45deg);
}

.industries {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.industry {
  border: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.45);
  padding: 24px 18px;
  text-align: center;
}

.industry strong {
  display: block;
  color: var(--teal-bright);
  font-size: 15px;
  margin-bottom: 6px;
}

.industry span {
  font-size: 13px;
  color: rgba(232, 238, 243, 0.72);
}

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.step {
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.76);
  padding: 24px 18px;
  min-height: 180px;
}

.step-no {
  display: block;
  font-family: 'Cairo', sans-serif;
  font-size: 28px;
  color: var(--teal);
  margin-bottom: 8px;
}

.step h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--muted);
}

.portfolio {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 14px;
  margin-bottom: 14px;
}

.portfolio-main,
.side-stat {
  border: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.45);
  padding: 28px 24px;
}

.portfolio-kicker {
  font-size: 12px;
  font-weight: 800;
  color: var(--teal-bright);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.portfolio-main h3 {
  font-family: 'Cairo', sans-serif;
  font-size: 28px;
  color: var(--white);
  margin-bottom: 10px;
}

.portfolio-main p {
  font-size: 15px;
  color: rgba(232, 238, 243, 0.78);
  margin-bottom: 16px;
  max-width: 54ch;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tags span {
  border: 1px solid var(--line);
  color: var(--teal-bright);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
}

.portfolio-side {
  display: grid;
  gap: 12px;
}

.side-stat strong {
  display: block;
  color: var(--teal-bright);
  font-size: 14px;
  margin-bottom: 4px;
}

.side-stat span {
  font-size: 13px;
  color: rgba(232, 238, 243, 0.7);
}

.portfolio-details {
  margin-top: 8px;
}

.portfolio-details[hidden] {
  display: none;
}

.units {
  display: grid;
  gap: 10px;
}

.unit {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.45);
  padding: 18px 20px;
}

.unit-index {
  font-family: 'Cairo', sans-serif;
  font-size: 20px;
  color: var(--teal);
  min-width: 32px;
}

.unit h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 2px;
}

.unit p {
  font-size: 13px;
  color: rgba(232, 238, 243, 0.7);
}

.badge {
  font-size: 12px;
  font-weight: 800;
  padding: 6px 11px;
  border: 1px solid var(--line);
  color: var(--teal-bright);
  white-space: nowrap;
}

.badge.soon {
  color: rgba(232, 238, 243, 0.7);
  border-color: rgba(232, 238, 243, 0.2);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.why-item {
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.76);
  padding: 24px 18px;
  text-align: center;
  min-height: 140px;
}

.why-item strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}

.why-item span {
  font-size: 13px;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 14px;
}

.contact-form,
.contact-aside {
  border: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.45);
  padding: 28px 24px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 6px;
}

.contact-form label.full {
  grid-column: 1 / -1;
}

.contact-form span {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-bright);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(19, 180, 175, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  padding: 12px 14px;
  border-radius: 10px;
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(232, 238, 243, 0.4);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--teal-bright);
}

.contact-form select option {
  color: #111;
}

.contact-form .btn {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 4px;
}

html[dir='ltr'] .contact-form .btn,
html[dir='ltr'] .contact-ltr {
  justify-self: start;
  text-align: left;
}

.contact-aside h3 {
  font-family: 'Cairo', sans-serif;
  font-size: 24px;
  color: var(--white);
  margin-bottom: 10px;
}

.contact-aside p {
  font-size: 14px;
  color: rgba(232, 238, 243, 0.75);
  margin-bottom: 16px;
}

.contact-link {
  display: block;
  border: 1px solid var(--line);
  padding: 14px 16px;
  margin-bottom: 10px;
  color: var(--teal-bright);
  font-weight: 700;
  transition: border-color 180ms ease;
}

.contact-link:hover {
  border-color: var(--teal-bright);
}

.contact-ltr {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}

.contact-note {
  font-size: 12px !important;
  color: rgba(232, 238, 243, 0.5) !important;
  margin-top: 18px !important;
  margin-bottom: 0 !important;
}

.site-footer {
  text-align: center;
  padding: 28px 16px 36px;
  background: #04060c;
  color: rgba(232, 238, 243, 0.65);
  border-top: 1px solid var(--line);
}

.footer-logo {
  width: 78px;
  height: auto;
  margin: 0 auto 12px;
  display: block;
}

.site-footer strong {
  display: block;
  color: var(--teal-bright);
  margin-bottom: 4px;
  font-size: 14px;
}

.site-footer span { font-size: 12px; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1000px) {
  .services,
  .industries,
  .process,
  .why-grid,
  .strip-grid {
    grid-template-columns: 1fr 1fr;
  }

  .portfolio,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topnav,
  .topbar .btn-sm { display: none; }
  .shell { width: min(var(--max), calc(100% - 28px)); }
  .hero-frame { padding: 36px 20px; }
  .services,
  .industries,
  .process,
  .why-grid,
  .strip-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }
  .unit {
    grid-template-columns: auto 1fr;
  }
  .unit .badge {
    grid-column: 2;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
