/* APPWARE visual system — deep navy, logo cyan, gold CTA */

:root {
  --ink: #f4fbff;
  --ink-soft: #d5e6f4;
  --brand: #14d7ff;
  --brand-bright: #8af6ff;
  --accent: #ffc53d;
  --cta: #ffc53d;
  --cta-ink: #081018;
  --ok: #3ddc97;
  --page: #070b12;
  --surface: #101826;
  --surface-alt: #162033;
  --surface-blue: #123044;
  --border: rgba(140, 220, 255, 0.18);
  --bg: #070b12;
  --bg-2: #101826;
  --panel: #101826;
  --panel-2: #162033;
  --cyan: #14d7ff;
  --cyan-soft: #8af6ff;
  --blue: #7c5cff;
  --purple: #7c5cff;
  --text: #f4fbff;
  --muted: #b7c9da;
  --line: rgba(140, 220, 255, 0.16);
  --line-strong: rgba(20, 215, 255, 0.45);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
  --radius: 22px;
  --font-body: "Manrope", "Cairo", ui-sans-serif, system-ui, sans-serif;
  --font-head: "Sora", "Cairo", ui-sans-serif, system-ui, sans-serif;
}

html { color-scheme: dark; }
html[lang="ar"] {
  --font-body: "Cairo", ui-sans-serif, system-ui, sans-serif;
  --font-head: "Cairo", ui-sans-serif, system-ui, sans-serif;
}

::selection { background: #14d7ff; color: #061018; }

body {
  background:
    radial-gradient(900px 520px at 0% -10%, rgba(20, 215, 255, 0.16), transparent 58%),
    radial-gradient(760px 480px at 100% 0%, rgba(124, 92, 255, 0.22), transparent 55%),
    radial-gradient(680px 420px at 80% 100%, rgba(255, 197, 61, 0.08), transparent 50%),
    #070b12;
  color: var(--text);
}
body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  opacity: 0.45;
}
body::after {
  background: radial-gradient(circle at 50% 0%, transparent 0 30%, rgba(0, 0, 0, 0.45) 100%);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #14d7ff, #7c5cff 58%, #ffc53d);
  box-shadow: 0 0 16px rgba(20, 215, 255, 0.7);
  pointer-events: none;
}
html[dir="rtl"] .scroll-progress { left: auto; right: 0; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #ffc53d;
  outline-offset: 3px;
}

.site-header {
  background: rgba(7, 11, 18, 0.78);
  border-bottom: 1px solid rgba(20, 215, 255, 0.14);
}
.site-header.scrolled {
  background: rgba(7, 11, 18, 0.92);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.brand img { width: auto; height: 64px; filter: none; }
.brand .logo-lockup { width: auto; height: 64px; }
.brand .logo-for-light,
.brand .logo-mark { display: none; }
html[data-theme="light"] .brand .logo-for-dark { display: none; }
html[data-theme="light"] .brand .logo-lockup.logo-for-light { display: block; }

.nav-links {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}
.nav-glider {
  background: linear-gradient(135deg, rgba(20, 215, 255, 0.22), rgba(124, 92, 255, 0.32));
  border-color: rgba(20, 215, 255, 0.45);
  box-shadow: 0 0 22px rgba(20, 215, 255, 0.18);
}
.nav-links a { color: #c5d6e6; }
.nav-links a:hover { color: #8af6ff; }
.nav-links a.active { color: #ffffff; }

.language-toggle {
  border-color: rgba(20, 215, 255, 0.35);
  background: rgba(20, 215, 255, 0.08);
  color: #f4fbff;
}
.language-toggle:hover {
  background: rgba(255, 197, 61, 0.16);
  border-color: #ffc53d;
  color: #ffc53d;
}
.menu-toggle {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}
.menu-toggle span { background: #f4fbff; }

.btn-primary {
  color: #081018;
  background: linear-gradient(180deg, #ffe07a, #ffc53d);
  box-shadow: 0 10px 28px rgba(255, 197, 61, 0.28);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #fff1b0, #ffd35c);
  box-shadow: 0 14px 34px rgba(255, 197, 61, 0.38);
}
.btn-secondary {
  color: #f4fbff;
  border-color: rgba(20, 215, 255, 0.45);
  background: rgba(20, 215, 255, 0.06);
}
.btn-secondary:hover {
  background: rgba(20, 215, 255, 0.14);
  border-color: #14d7ff;
  box-shadow: 0 12px 30px rgba(20, 215, 255, 0.16);
}

h1, h2, h3, h4 { color: #f7fcff; }
.hero h1 {
  color: #f7fcff;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 {
    background: linear-gradient(115deg, #ffffff 10%, #bff8ff 42%, #14d7ff 68%, #ffc53d 130%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
.lead, .section-head p, .cta-card p, .process-card p, .faq-answer p,
.service-card p, .simple p, .model p, .project-info p, .testimonial p,
.footer-grid p, .contact-form p, .contact-box p, .team-card p {
  color: #c5d5e4;
}
.kicker, .eyebrow { color: #8af6ff; }
.kicker {
  border-color: rgba(20, 215, 255, 0.35);
  background: rgba(20, 215, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 197, 61, 0.12);
}
.kicker::before, .eyebrow::before { color: #ffc53d; }
.section-head.center h2::after {
  content: "";
  display: block;
  width: 84px;
  height: 4px;
  margin: 16px auto 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #14d7ff, #7c5cff 55%, #ffc53d);
}

.hero-points span, .trust-strip {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #e7f4ff;
}
.trust-strip b { color: #ffc53d; }
.trust-strip span { color: #d5e4f2; }

.phone {
  background: linear-gradient(160deg, #1a2740, #0c1422 55%, #24324d);
  border-color: rgba(20, 215, 255, 0.28);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45), 0 0 40px rgba(20, 215, 255, 0.12);
}
.phone-screen {
  background:
    radial-gradient(circle at 80% 0%, rgba(20, 215, 255, 0.2), transparent 32%),
    linear-gradient(180deg, #121c2e, #0c1422);
  border-color: rgba(255, 255, 255, 0.08);
}
.phone-screen.muted { background: linear-gradient(160deg, #18263c, #0e1626); }
.screen-head small, .floating-card small { color: #9fb4c8; }
.screen-head strong, .floating-card span { color: #14d7ff; }
.chart-bars { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.06); }
.chart-bars i { background: linear-gradient(180deg, #8af6ff, #7c5cff); }
.app-mini-grid span {
  background: rgba(20, 215, 255, 0.08);
  border-color: rgba(20, 215, 255, 0.18);
  color: #f4fbff;
}
.screen-list i { background: linear-gradient(90deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.05)); }
.floating-card {
  background: rgba(12, 20, 34, 0.82);
  border-color: rgba(20, 215, 255, 0.28);
  color: #f4fbff;
}
.ambient-orbit { border-color: rgba(20, 215, 255, 0.28); box-shadow: 0 0 42px rgba(20, 215, 255, 0.08); }

.glass-card {
  background: linear-gradient(180deg, rgba(18, 28, 46, 0.94), rgba(10, 16, 28, 0.94));
  border: 1px solid rgba(140, 220, 255, 0.16);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  border-radius: 22px;
}
.glass-card::before {
  background: radial-gradient(circle at var(--mx, 20%) var(--my, 0%), rgba(20, 215, 255, 0.16), transparent 36%);
}
.glass-card:hover {
  border-color: rgba(20, 215, 255, 0.48);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 197, 61, 0.12);
}
.icon-badge {
  color: #14d7ff;
  border-color: rgba(20, 215, 255, 0.32);
  background: radial-gradient(circle at 30% 20%, rgba(20, 215, 255, 0.28), rgba(124, 92, 255, 0.12));
}
.card-number, .phase { color: #ffc53d; }
.card-meta span, .pill {
  border-color: rgba(20, 215, 255, 0.24);
  background: rgba(20, 215, 255, 0.08);
  color: #d9f8ff;
}
.service-card a, .project-info a { color: #ffc53d; }
.project-info strong { color: #8af6ff; }

.stats-grid {
  background: linear-gradient(90deg, rgba(20, 215, 255, 0.08), rgba(124, 92, 255, 0.1), rgba(255, 197, 61, 0.08));
  border-color: rgba(140, 220, 255, 0.18);
}
.stats-grid div { border-right-color: rgba(255, 255, 255, 0.08); }
.stats-grid b { color: #14d7ff; }
.stats-grid div:nth-child(even) b { color: #ffc53d; }
.stats-grid span { color: #c5d5e4; }

.marquee-section {
  border-color: rgba(20, 215, 255, 0.12);
  background: linear-gradient(180deg, rgba(20, 215, 255, 0.04), rgba(124, 92, 255, 0.05));
}
.marquee, .marquee-track, .work-rail, .work-rail-track { direction: ltr; }
.marquee-track span {
  color: #f4fbff;
  border-color: rgba(20, 215, 255, 0.22);
  background: linear-gradient(145deg, rgba(16, 28, 48, 0.92), rgba(10, 16, 28, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.marquee-track span:hover {
  border-color: #ffc53d;
  box-shadow: 0 0 22px rgba(255, 197, 61, 0.16);
}

.work-rail { margin-top: 34px; }
.work-rail-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 18px;
  margin-bottom: 14px;
}
.work-rail-copy b { color: #ffc53d; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.work-rail-copy span { color: #c5d5e4; font-size: 14px; }
.work-rail-mask {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.work-rail-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marqueeMove 70s linear infinite;
}
.work-rail:hover .work-rail-track { animation-play-state: paused; }
.work-rail a {
  display: block;
  width: min(420px, 78vw);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.work-rail img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease);
}
.work-rail a:hover img { transform: scale(1.05); }

.process-line { background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)); }
.process-line span {
  background: linear-gradient(180deg, #14d7ff, #7c5cff, #ffc53d);
  box-shadow: 0 0 18px rgba(20, 215, 255, 0.8);
}
.process-dot {
  background: radial-gradient(circle at 35% 30%, #fff6d2, #ffc53d 28%, #14d7ff 70%, #0c1422 100%);
  border-color: rgba(255, 197, 61, 0.8);
}
.process-dot span { color: #081018; }
.process-card li, .model li {
  color: #d5e6f4;
  border-color: rgba(20, 215, 255, 0.2);
  background: rgba(20, 215, 255, 0.06);
}

.filters { margin-top: 8px; }
.filter-btn {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e7f3fb;
}
.filter-btn.active, .filter-btn:hover {
  background: #ffc53d;
  border-color: #ffc53d;
  color: #081018;
}

.project-card.glass-card { padding: 0; }
.project-banner {
  position: relative;
  aspect-ratio: 1024 / 500;
  overflow: hidden;
  background: #0c1422;
}
.project-feature {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.55s var(--ease);
}
.project-card:hover .project-feature { transform: scale(1.07); }
.project-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(6, 10, 18, 0.55));
  pointer-events: none;
}
.project-mark {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 1;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}
html[dir="rtl"] .project-mark { left: auto; right: 14px; }
.project-info { padding: 18px 18px 20px; }
.project-stats span {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.project-stats b { color: #ffc53d; }
.project-stats small { color: #b7c9da; }

.cta-card {
  border-color: rgba(20, 215, 255, 0.28);
  background:
    radial-gradient(circle at 0% 0%, rgba(20, 215, 255, 0.2), transparent 42%),
    radial-gradient(circle at 100% 100%, rgba(255, 197, 61, 0.16), transparent 40%),
    linear-gradient(135deg, #121c33, #1a1440);
}
.faq-item {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.faq-question { color: #f4fbff; text-align: start; }
.faq-question:hover { background: rgba(20, 215, 255, 0.06); }
.faq-question b { color: #ffc53d; }

.contact-form label, .footer-grid h4 { color: #f4fbff; }
.contact-form input, .contact-form textarea, .contact-form select, .newsletter input {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(5, 10, 18, 0.55);
  color: #f4fbff;
}
.contact-form input::placeholder, .contact-form textarea::placeholder, .newsletter input::placeholder { color: #8ea3b8; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus, .newsletter input:focus {
  border-color: #14d7ff;
  box-shadow: 0 0 0 4px rgba(20, 215, 255, 0.12);
}
select option { background: #101826; color: #f4fbff; }
.map-card {
  background:
    linear-gradient(135deg, rgba(20, 215, 255, 0.14), transparent),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 18px),
    #101826;
  border-color: rgba(20, 215, 255, 0.24);
}
.map-pin {
  background: #081018;
  border: 1px solid #14d7ff;
  box-shadow: 0 0 24px rgba(20, 215, 255, 0.45);
}
.map-card span, .map-card b, .contact-box small { color: #d5e4f2; }
.map-card .map-card-logo.logo-for-light { display: none; }
html[data-theme="light"] .map-card .map-card-logo.logo-for-dark { display: none; }
html[data-theme="light"] .map-card .map-card-logo.logo-for-light { display: block; }
.role-apply {
  color: #081018;
  border-color: transparent;
  background: linear-gradient(180deg, #ffe07a, #ffc53d);
}
.role-apply:hover { background: #ffe59a; }

.timeline-row div, .chip-card {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #f4fbff;
}
.timeline-row span { color: #c5d5e4; }
.avatar {
  background: linear-gradient(135deg, rgba(20, 215, 255, 0.35), rgba(255, 197, 61, 0.28));
  border-color: rgba(255, 197, 61, 0.35);
  color: #081018;
}
.team-linkedin {
  border-color: rgba(20, 215, 255, 0.35);
  background: rgba(20, 215, 255, 0.08);
}
html[data-theme="light"] .team-linkedin {
  border-color: rgba(14, 148, 168, 0.35);
  background: rgba(14, 165, 196, 0.08);
}
.stars { color: #ffc53d; }
.testimonial b { color: #8af6ff; }

.site-footer {
  background: #060910;
  border-top: 1px solid rgba(20, 215, 255, 0.14);
}
.footer-brand > img {
  width: 148px;
  height: auto;
  display: block;
}
.footer-grid a, .footer-bottom, .footer-bottom a { color: #b7c9da; }
.footer-grid a:hover, .footer-bottom a:hover { color: #ffc53d; }
.social-row a {
  border-color: rgba(20, 215, 255, 0.24);
  background: rgba(20, 215, 255, 0.05);
}
.social-row a:hover { border-color: #ffc53d; background: rgba(255, 197, 61, 0.1); }
.newsletter button {
  background: linear-gradient(180deg, #ffe07a, #ffc53d);
  color: #081018;
}
.footer-bottom { border-top-color: rgba(255, 255, 255, 0.08); }

@media (max-width: 1120px) {
  .stats-grid div { border-color: rgba(255, 255, 255, 0.08); }
}
@media (max-width: 860px) {
  .nav-links {
    background: rgba(8, 14, 24, 0.97);
    border-color: rgba(20, 215, 255, 0.22);
  }
  .nav-links a { color: #e7f3fb; }
  .nav-links a.active {
    color: #081018;
    background: #ffc53d;
    border-color: #ffc53d;
  }
  html[dir="rtl"] .process-line { left: auto; right: 27px; }
}
@media (max-width: 560px) {
  .project-card.glass-card { padding: 0; }
  .work-rail img { height: 150px; }
  .hero h1 { font-size: clamp(34px, 10vw, 46px); }
}

/* Phone showcase, theme switch, and buttons that keep their label */

.phone-screen,
.phone-screen b,
.phone-screen strong { color: #f7fcff; }

.theme-toggle {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(20, 215, 255, 0.35);
  background: rgba(20, 215, 255, 0.08);
  color: #f4fbff;
  cursor: pointer;
  line-height: 0;
  flex: 0 0 auto;
}
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle .theme-moon { display: none; }
html[data-theme="light"] .theme-toggle .theme-sun { display: none; }
html[data-theme="light"] .theme-toggle .theme-moon { display: block; }
.theme-toggle:hover {
  border-color: #ffc53d;
  color: #ffc53d;
}

.nav-bar { min-width: 0; }
.brand { flex: 0 1 auto; min-width: 0; }
.brand img { max-width: 100%; height: auto; }
.nav-actions { flex: 0 0 auto; }

.btn,
.language-toggle,
.theme-toggle,
.filter-btn,
.role-apply,
.newsletter button,
.menu-toggle,
.social-row a {
  flex-shrink: 0;
  overflow: visible;
}
.btn {
  height: auto;
  min-height: 50px;
  padding: 12px 18px;
  line-height: 1.25;
  white-space: nowrap;
}
.btn-sm { min-height: 42px; padding: 10px 16px; }
.btn span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 1;
  overflow: visible;
}
.language-toggle {
  height: auto;
  min-height: 42px;
  padding: 8px 14px;
  line-height: 1.2;
  white-space: nowrap;
}
.filter-btn {
  min-height: 42px;
  padding: 10px 16px;
  line-height: 1.25;
  white-space: nowrap;
}
.faq-question span {
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
  overflow: visible;
  text-align: start;
}
.faq-question b {
  flex: 0 0 auto;
  min-width: 1.1em;
  line-height: 1;
  text-align: center;
}
.role-apply {
  height: auto;
  min-height: 44px;
  padding: 10px 16px;
  line-height: 1.25;
  white-space: nowrap;
}
.newsletter button {
  width: 46px;
  min-width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
  font-size: 20px;
}
.hero-actions,
.cta-actions { align-items: center; }
.hero-actions .btn,
.cta-actions .btn,
.contact-form .btn { max-width: 100%; }
.contact-form .btn { width: 100%; white-space: normal; }
.hero-points span {
  max-width: 100%;
  line-height: 1.35;
  white-space: normal;
}
body.nav-tight .nav-actions .btn-sm { display: none; }

.home-hero .hero-visual { min-height: 640px; }
.home-hero .phone-scene { width: 370px; height: 530px; }
.home-hero .phone {
  width: 246px;
  height: 500px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.22), transparent 26%),
    linear-gradient(160deg, #2a3d5c, #0b1220 46%, #1b2942);
  border: 1px solid rgba(138, 246, 255, 0.42);
  box-shadow:
    0 34px 70px rgba(0, 0, 0, 0.46),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 42px rgba(20, 215, 255, 0.16);
}
.home-hero .phone-front { left: 58px; top: 12px; }
.home-hero .phone-screen {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 12px 14px;
}
.home-hero .phone-screen::before {
  content: "";
  width: 86px;
  height: 18px;
  margin: 1px auto 0;
  border-radius: 999px;
  background: #05080f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  flex: 0 0 auto;
}
.home-hero .screen-head b,
.home-hero .screen-head strong { color: #f7fcff; }
.home-hero .screen-head small { color: #b7c9da; }
.home-hero .ambient-orbit { border-width: 1.5px; }
.home-hero .orbit-a {
  border-color: rgba(20, 215, 255, 0.72);
  box-shadow: 0 0 34px rgba(20, 215, 255, 0.22);
}
.home-hero .orbit-b { border-color: rgba(255, 197, 61, 0.62); }
.home-hero .orbit-c { border-color: rgba(124, 92, 255, 0.62); }

.screen-stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 118px;
  flex: 0 0 118px;
  overflow: hidden;
  contain: inline-size;
  direction: ltr;
  border-radius: 16px;
  background: #0c1422;
  border: 1px solid rgba(20, 215, 255, 0.5);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.screen-reel {
  display: flex;
  height: 100%;
  width: max-content;
  max-width: none;
  animation: screenReel 42s linear infinite;
}
.screen-reel img {
  display: block;
  height: 100%;
  width: 190px;
  min-width: 190px;
  max-width: 190px;
  flex: 0 0 190px;
  object-fit: cover;
}
.screen-stage::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
}
.screen-stage::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 10px;
  bottom: 8px;
  width: 34%;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, #14d7ff, #ffc53d);
  animation: stageProgress 3s linear infinite;
}
.home-hero .app-mini-grid { gap: 8px; }
.home-hero .app-mini-grid span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 64px;
  padding: 8px 4px;
  overflow: visible;
  line-height: 1.15;
  font-size: 11px;
  white-space: nowrap;
}
.home-hero .app-mini-grid svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.home-hero .app-mini-grid span:nth-child(1) { color: #b8ffe4; }
.home-hero .app-mini-grid span:nth-child(1) svg { color: #3ddc97; }
.home-hero .app-mini-grid span:nth-child(2) { color: #dffbff; }
.home-hero .app-mini-grid span:nth-child(2) svg { color: #8af6ff; }
.home-hero .app-mini-grid span:nth-child(3) { color: #ffe7a8; }
.home-hero .app-mini-grid span:nth-child(3) svg { color: #ffc53d; }
.home-hero .app-mini-grid span:nth-child(4) { color: #efe7ff; }
.home-hero .app-mini-grid span:nth-child(4) svg { color: #c4b5fd; }
.home-hero .screen-list { margin-top: 0; gap: 8px; }
.home-hero .screen-list i { height: 8px; }
.home-hero .screen-list i:nth-child(1) { background: linear-gradient(90deg, rgba(20, 215, 255, 0.85), rgba(20, 215, 255, 0.08) 78%); }
.home-hero .screen-list i:nth-child(2) { background: linear-gradient(90deg, rgba(255, 197, 61, 0.9), rgba(255, 197, 61, 0.08) 70%); }
.home-hero .screen-list i:nth-child(3) {
  width: 64%;
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.9), rgba(167, 139, 250, 0.08) 80%);
}

@keyframes screenReel {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes stageProgress {
  from { transform: translateX(-120%); }
  to { transform: translateX(220%); }
}

body.nav-compact .menu-toggle { display: flex; }
body.nav-compact .nav-glider { display: none; }
body.nav-compact .nav-links {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 74px;
  z-index: 30;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(20, 215, 255, 0.22);
  border-radius: 20px;
  background: rgba(8, 14, 24, 0.98);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px) scale(0.98);
}
body.nav-compact.nav-open .nav-links,
body.nav-open.nav-compact .nav-links {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
body.nav-compact .nav-links a {
  text-align: center;
  border-radius: 14px;
  padding: 12px 16px;
  color: #e7f3fb;
  white-space: normal;
}
body.nav-compact .nav-links a.active {
  color: #081018;
  background: #ffc53d;
  border-color: #ffc53d;
}
html[data-theme="light"] body.nav-compact .nav-links {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(12, 48, 72, 0.12);
}
html[data-theme="light"] body.nav-compact .nav-links a { color: #163044; }
html[data-theme="light"] body.nav-compact .nav-links a.active {
  color: #081018;
  background: #ffc53d;
}

@media (max-width: 1240px) {
  .nav-bar { height: 68px; gap: 10px; }
  .brand .logo-lockup { width: auto; height: 46px; }
  .nav-links {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 74px;
    z-index: 30;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(20, 215, 255, 0.22);
    border-radius: 20px;
    background: rgba(8, 14, 24, 0.98);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
  }
  .nav-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .nav-links a {
    text-align: center;
    border-radius: 14px;
    padding: 12px 16px;
    color: #e7f3fb;
    white-space: normal;
  }
  .nav-links a.active,
  .nav-open .nav-links a.active {
    color: #081018;
    background: #ffc53d;
    border-color: #ffc53d;
  }
  .nav-glider { display: none; }
  .menu-toggle { display: flex; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn { display: inline-flex; }
}
@media (max-width: 860px) {
  .home-hero .hero-visual { min-height: 540px; }
  .home-hero .phone-scene { --phone-scale: 0.88; }
  .nav-bar { position: relative; padding-inline-start: 56px; }
  .brand {
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    flex: none;
    width: 46px;
    min-width: 46px;
  }
  .brand .logo-lockup,
  html[data-theme="light"] .brand .logo-lockup.logo-for-light { display: none; }
  .brand .logo-mark.logo-for-dark { display: block; width: 46px; height: auto; }
  html[data-theme="light"] .brand .logo-mark.logo-for-dark { display: none; }
  html[data-theme="light"] .brand .logo-mark.logo-for-light { display: block; width: 46px; height: auto; }
}
@media (max-width: 640px) {
  .hero-actions,
  .cta-actions { width: 100%; }
  .hero-actions .btn,
  .cta-actions .btn {
    flex: 1 1 auto;
    width: 100%;
    white-space: normal;
  }
}
@media (max-width: 560px) {
  .home-hero .hero-visual { min-height: 470px; }
  .home-hero .phone-scene { --phone-scale: 0.72; }
  .brand .logo-lockup { width: auto; height: 42px; }
}
@media (max-width: 420px) {
  .nav-actions .btn-sm { display: none; }
  .language-toggle { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .screen-reel,
  .screen-stage::before {
    animation: none !important;
    transform: none !important;
  }
}

/* Light mode */
html[data-theme="light"] {
  color-scheme: light;
  --ink: #07131f;
  --text: #102033;
  --muted: #3d5166;
  --bg: #f4f8fb;
  --surface: #ffffff;
  --border: rgba(12, 48, 72, 0.12);
  --line: rgba(12, 48, 72, 0.12);
}
html[data-theme="light"] body {
  background:
    radial-gradient(880px 460px at 0% -8%, rgba(14, 165, 196, 0.2), transparent 58%),
    radial-gradient(720px 420px at 100% 0%, rgba(255, 197, 61, 0.22), transparent 54%),
    radial-gradient(640px 360px at 70% 100%, rgba(124, 92, 255, 0.1), transparent 52%),
    #f5f8fb;
  color: #102033;
}
html[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(7, 19, 31, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 19, 31, 0.045) 1px, transparent 1px);
  opacity: 0.7;
}
html[data-theme="light"] body::after {
  background: radial-gradient(circle at 50% 0%, transparent 0 42%, rgba(255, 255, 255, 0.2) 100%);
}
html[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: rgba(12, 48, 72, 0.08);
}
html[data-theme="light"] .site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(16, 42, 67, 0.08);
}
html[data-theme="light"] .brand img {
  background: none;
  border-radius: 0;
  padding: 0;
  filter: none;
}
html[data-theme="light"] .nav-links {
  background: rgba(7, 19, 31, 0.04);
  border-color: rgba(12, 48, 72, 0.08);
}
html[data-theme="light"] .nav-links a { color: #1b3348; }
html[data-theme="light"] .nav-links a:hover { color: #0f6f86; }
html[data-theme="light"] .nav-links a.active { color: #07131f; }
html[data-theme="light"] .nav-glider {
  background: linear-gradient(135deg, rgba(14, 165, 196, 0.2), rgba(255, 197, 61, 0.38));
  border-color: rgba(14, 140, 168, 0.4);
  box-shadow: none;
}
html[data-theme="light"] .language-toggle,
html[data-theme="light"] .theme-toggle {
  color: #07131f;
  background: #ffffff;
  border-color: rgba(12, 48, 72, 0.16);
}
html[data-theme="light"] .theme-toggle:hover,
html[data-theme="light"] .language-toggle:hover {
  color: #0f6f86;
  border-color: #0f6f86;
  background: #f3fbfe;
}
html[data-theme="light"] .menu-toggle {
  background: #ffffff;
  border-color: rgba(12, 48, 72, 0.14);
}
html[data-theme="light"] .menu-toggle span { background: #07131f; }
html[data-theme="light"] .btn-secondary {
  color: #083044;
  background: #ffffff;
  border-color: rgba(14, 116, 144, 0.45);
}
html[data-theme="light"] .btn-secondary:hover {
  background: #eef9fc;
  border-color: #0e7490;
  color: #083044;
}
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4 { color: #07131f; }
html[data-theme="light"] .hero h1 {
  color: #07131f;
  background: none;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  html[data-theme="light"] .hero h1 {
    background: linear-gradient(115deg, #07131f 0%, #0c4a6e 40%, #0e7490 66%, #b45309 125%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
html[data-theme="light"] .lead,
html[data-theme="light"] .section-head p,
html[data-theme="light"] .cta-card p,
html[data-theme="light"] .process-card p,
html[data-theme="light"] .faq-answer p,
html[data-theme="light"] .service-card p,
html[data-theme="light"] .simple p,
html[data-theme="light"] .model p,
html[data-theme="light"] .project-info p,
html[data-theme="light"] .testimonial p,
html[data-theme="light"] .contact-form p,
html[data-theme="light"] .contact-box p,
html[data-theme="light"] .team-card p { color: #3d5166; }
html[data-theme="light"] .kicker,
html[data-theme="light"] .eyebrow { color: #0f6f86; }
html[data-theme="light"] .kicker {
  background: rgba(14, 165, 196, 0.1);
  border-color: rgba(14, 148, 168, 0.28);
  box-shadow: none;
}
html[data-theme="light"] .hero-points span {
  color: #163044;
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(12, 48, 72, 0.1);
}
html[data-theme="light"] .home-hero .phone {
  background:
    linear-gradient(165deg, #ffffff, #d7e0ea 46%, #f8fbfd);
  border-color: rgba(8, 30, 48, 0.16);
  box-shadow: 0 28px 60px rgba(16, 42, 67, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}
html[data-theme="light"] .floating-card {
  background: rgba(255, 255, 255, 0.92);
  color: #102033;
  border-color: rgba(14, 148, 168, 0.28);
}
html[data-theme="light"] .floating-card small { color: #3d5166; }
html[data-theme="light"] .floating-card b { color: #07131f; }
html[data-theme="light"] .floating-card span { color: #0f6f86; }
html[data-theme="light"] .ambient-orbit {
  border-color: rgba(14, 116, 144, 0.35);
  box-shadow: 0 0 24px rgba(14, 165, 196, 0.12);
}
html[data-theme="light"] .glass-card {
  background: linear-gradient(180deg, #ffffff, #f7fbfe);
  border-color: rgba(12, 48, 72, 0.12);
  box-shadow: 0 16px 36px rgba(16, 42, 67, 0.07);
}
html[data-theme="light"] .glass-card:hover {
  border-color: rgba(14, 148, 168, 0.45);
  box-shadow: 0 20px 44px rgba(16, 42, 67, 0.12);
}
html[data-theme="light"] .icon-badge {
  background: radial-gradient(circle at 30% 20%, rgba(14, 165, 196, 0.22), rgba(255, 255, 255, 0.9));
}
html[data-theme="light"] .card-number,
html[data-theme="light"] .phase,
html[data-theme="light"] .service-card a,
html[data-theme="light"] .project-info a,
html[data-theme="light"] .faq-question b,
html[data-theme="light"] .project-stats b { color: #9a6700; }
html[data-theme="light"] .card-meta span,
html[data-theme="light"] .pill {
  color: #0f6f86;
  background: rgba(14, 165, 196, 0.1);
  border-color: rgba(14, 148, 168, 0.22);
}
html[data-theme="light"] .project-info strong { color: #0f6f86; }
html[data-theme="light"] .stats-grid {
  background: linear-gradient(90deg, rgba(14, 165, 196, 0.1), rgba(255, 197, 61, 0.16), rgba(124, 92, 255, 0.08));
  border-color: rgba(12, 48, 72, 0.1);
}
html[data-theme="light"] .stats-grid div { border-right-color: rgba(12, 48, 72, 0.08); }
html[data-theme="light"] .stats-grid b { color: #0e7490; }
html[data-theme="light"] .stats-grid div:nth-child(even) b { color: #9a6700; }
html[data-theme="light"] .stats-grid span { color: #3d5166; }
html[data-theme="light"] .marquee-section {
  background: linear-gradient(180deg, rgba(14, 165, 196, 0.06), rgba(255, 197, 61, 0.05));
  border-color: rgba(12, 48, 72, 0.08);
}
html[data-theme="light"] .marquee-track span {
  color: #102033;
  background: #ffffff;
  border-color: rgba(12, 48, 72, 0.1);
}
html[data-theme="light"] .work-rail-copy b { color: #9a6700; }
html[data-theme="light"] .work-rail-copy span { color: #3d5166; }
html[data-theme="light"] .work-rail a {
  border-color: rgba(12, 48, 72, 0.12);
  box-shadow: 0 14px 30px rgba(16, 42, 67, 0.12);
}
html[data-theme="light"] .process-line {
  background: linear-gradient(180deg, rgba(12, 48, 72, 0.08), rgba(12, 48, 72, 0.03));
}
html[data-theme="light"] .process-card li,
html[data-theme="light"] .model li {
  color: #1b3348;
  background: rgba(14, 165, 196, 0.08);
  border-color: rgba(14, 148, 168, 0.16);
}
html[data-theme="light"] .filter-btn {
  color: #163044;
  background: #ffffff;
  border-color: rgba(12, 48, 72, 0.12);
}
html[data-theme="light"] .filter-btn.active,
html[data-theme="light"] .filter-btn:hover {
  background: #ffc53d;
  border-color: #ffc53d;
  color: #081018;
}
html[data-theme="light"] .project-stats span {
  background: #f4f8fb;
  border-color: rgba(12, 48, 72, 0.08);
}
html[data-theme="light"] .project-stats small { color: #3d5166; }
html[data-theme="light"] .cta-card {
  background:
    radial-gradient(circle at 0% 0%, rgba(14, 165, 196, 0.16), transparent 42%),
    radial-gradient(circle at 100% 100%, rgba(255, 197, 61, 0.2), transparent 42%),
    #ffffff;
  border-color: rgba(14, 148, 168, 0.24);
}
html[data-theme="light"] .faq-item {
  background: #ffffff;
  border-color: rgba(12, 48, 72, 0.1);
}
html[data-theme="light"] .faq-question { color: #102033; }
html[data-theme="light"] .faq-question:hover { background: rgba(14, 165, 196, 0.06); }
html[data-theme="light"] .contact-form label { color: #102033; }
html[data-theme="light"] .contact-form input,
html[data-theme="light"] .contact-form textarea,
html[data-theme="light"] .contact-form select {
  background: #ffffff;
  color: #102033;
  border-color: rgba(12, 48, 72, 0.16);
}
html[data-theme="light"] .contact-form input::placeholder,
html[data-theme="light"] .contact-form textarea::placeholder { color: #6d8194; }
html[data-theme="light"] select option { background: #ffffff; color: #102033; }
html[data-theme="light"] .map-card {
  background:
    linear-gradient(135deg, rgba(14, 165, 196, 0.12), transparent),
    repeating-linear-gradient(45deg, rgba(12, 48, 72, 0.05) 0 1px, transparent 1px 18px),
    #ffffff;
  border-color: rgba(14, 148, 168, 0.24);
}
html[data-theme="light"] .map-card span,
html[data-theme="light"] .map-card b,
html[data-theme="light"] .contact-box small { color: #3d5166; }
html[data-theme="light"] .timeline-row div,
html[data-theme="light"] .chip-card {
  background: #ffffff;
  color: #102033;
  border-color: rgba(12, 48, 72, 0.1);
}
html[data-theme="light"] .timeline-row span,
html[data-theme="light"] .testimonial small { color: #3d5166; }
html[data-theme="light"] .testimonial b { color: #0f6f86; }
@media (max-width: 1240px) {
  html[data-theme="light"] .nav-links {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(12, 48, 72, 0.12);
    box-shadow: 0 24px 60px rgba(16, 42, 67, 0.14);
  }
  html[data-theme="light"] .nav-links a { color: #163044; }
  html[data-theme="light"] .nav-links a.active,
  html[data-theme="light"] .nav-open .nav-links a.active {
    color: #081018;
    background: #ffc53d;
    border-color: #ffc53d;
  }
}
@media (max-width: 1120px) {
  html[data-theme="light"] .stats-grid div { border-color: rgba(12, 48, 72, 0.08); }
}
