@import "tailwindcss";
@plugin "daisyui" {
  themes: qaws --default;
}

@plugin "daisyui/theme" {
  name: "qaws";
  default: true;
  color-scheme: light;

  --color-base-100: #ffffff;
  --color-base-200: #eef3f4;
  --color-base-300: #d5e0e3;
  --color-base-content: #143038;

  --color-primary: #1b434d;
  --color-primary-content: #f2faf7;

  --color-secondary: #5a7278;
  --color-secondary-content: #f2faf7;

  --color-accent: #a8e6cf;
  --color-accent-content: #143038;

  --color-neutral: #12343c;
  --color-neutral-content: #eef6f3;

  --color-info: #6eb8c4;
  --color-success: #7bc9a6;
  --color-warning: #e2c48a;
  --color-error: #c45c5c;

  --radius-selector: 1rem;
  --radius-field: 1rem;
  --radius-box: 1.75rem;
}

@theme {
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-arabic: "IBM Plex Sans Arabic", "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: #eef3f4;
  color: #143038;
  overflow-x: hidden;
}

html[dir="rtl"] body {
  font-family: var(--font-arabic);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid #d5e0e3;
  background: #fff;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: #5a7278;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  min-height: 2.5rem;
  min-width: 2.75rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
}

.lang-btn.lang-active {
  background: #1b434d;
  color: #f2faf7;
}

.nav-menu-btn {
  min-width: 2.75rem;
  min-height: 2.75rem;
}

html[dir="rtl"] .section-label {
  letter-spacing: 0.06em;
  text-transform: none;
}

html[dir="rtl"] .eyebrow-track,
html[dir="rtl"] .tracking-wide,
html[dir="rtl"] [class*="tracking-["] {
  letter-spacing: 0.04em !important;
}

html[dir="rtl"] .hub-label {
  font-family: var(--font-arabic);
}

html[dir="rtl"] .flip-rtl {
  display: inline-block;
  transform: scaleX(-1);
}

.section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6a858c;
}

.nav-logo {
  height: 2.5rem;
  width: auto;
  border-radius: 0.65rem;
  display: block;
}

/* Floating curved nav on scroll */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0;
  transition: padding 0.35s ease;
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 4rem;
  padding: 0.55rem 0.85rem;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #d5e0e3;
  backdrop-filter: blur(12px);
  transition:
    border-radius 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease,
    border 0.35s ease,
    max-width 0.35s ease,
    margin 0.35s ease,
    padding 0.35s ease;
}

@media (min-width: 1024px) {
  .site-nav-inner {
    padding: 0.65rem 1.75rem;
    gap: 1rem;
  }
}

.site-nav.is-floating {
  padding: 0.55rem 0.75rem 0;
  pointer-events: none;
}

.site-nav.is-floating .site-nav-inner {
  pointer-events: auto;
  max-width: 72rem;
  margin: 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(27, 67, 77, 0.12);
  border-bottom: 1px solid rgba(27, 67, 77, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 18px 40px -20px rgba(18, 52, 60, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  padding-inline: 0.85rem;
}

@media (min-width: 1024px) {
  .site-nav.is-floating {
    padding: 0.85rem 1.5rem 0;
  }

  .site-nav.is-floating .site-nav-inner {
    padding-inline: 1.25rem;
  }
}

.hero-wash {
  background:
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(168, 230, 207, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 80%, rgba(110, 184, 196, 0.18), transparent 50%),
    linear-gradient(160deg, #12343c 0%, #1b434d 45%, #245560 100%);
}

/* Grid overlay only — never set on same element as hero-wash */
.vision-grid {
  background-image:
    linear-gradient(rgba(168, 230, 207, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 230, 207, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.phone-frame {
  border-radius: 2rem;
  background: #0f2a31;
  padding: 0.55rem;
  box-shadow:
    0 30px 60px -24px rgba(18, 52, 60, 0.55),
    0 0 0 1px rgba(168, 230, 207, 0.12);
}

.phone-frame img {
  display: block;
  width: 100%;
  border-radius: 1.55rem;
}

.device-glow {
  position: absolute;
  width: 70%;
  height: 40%;
  inset-inline-start: 15%;
  bottom: -8%;
  background: radial-gradient(ellipse, rgba(168, 230, 207, 0.35), transparent 70%);
  filter: blur(28px);
  pointer-events: none;
}

/* Hero command-center composition (not HR-only) */
.hero-stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  aspect-ratio: 1.05;
  padding-top: 1.25rem;
  overflow: visible;
}

.hero-stage-glow {
  position: absolute;
  inset: 18% 10% 8%;
  background: radial-gradient(ellipse, rgba(168, 230, 207, 0.35), transparent 70%);
  filter: blur(32px);
  pointer-events: none;
}

.hero-panel {
  position: absolute;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  color: #143038;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.hero-panel-main {
  inset: 14% 8% 20% 4%;
  z-index: 2;
}

.hero-panel-ai {
  inset-inline-end: 0;
  top: 6%;
  width: 46%;
  z-index: 4;
  background: linear-gradient(160deg, #1b434d, #245560);
  color: #f2faf7;
  border-color: rgba(168, 230, 207, 0.35);
}

.hero-panel-invoice {
  inset-inline-start: 0;
  bottom: 4%;
  width: 48%;
  z-index: 3;
}

.hero-panel-route {
  inset-inline-end: 2%;
  bottom: 6%;
  width: 44%;
  z-index: 5;
}

@media (max-width: 639px) {
  .hero-stage {
    aspect-ratio: auto;
    max-width: 100%;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-stage-glow {
    display: none;
  }

  .hero-panel {
    position: relative;
    inset: auto;
    width: 100% !important;
    top: auto;
    bottom: auto;
    inset-inline: auto;
    box-shadow: 0 16px 36px -24px rgba(0, 0, 0, 0.5);
  }

  .hero-panel-main {
    order: 1;
  }

  .hero-panel-ai {
    order: 2;
  }

  .hero-panel-invoice,
  .hero-panel-route {
    display: none;
  }

  .float-a,
  .float-b,
  .float-c {
    animation: none !important;
  }

  .hero-panel-main .grid.grid-cols-3 .text-\[9px\],
  .hero-panel-main [class*="text-\[9px\]"] {
    font-size: 0.6875rem;
  }
}

.hero-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, #a8e6cf, #3e8f7a);
  transform-origin: bottom;
  animation: barGrow 1.4s ease-out both;
}

@keyframes barGrow {
  from {
    transform: scaleY(0.2);
    opacity: 0.4;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.float-a {
  animation: floaty 5.5s ease-in-out infinite;
}
.float-b {
  animation: floaty 6.5s ease-in-out infinite;
  animation-delay: -1.5s;
}
.float-c {
  animation: floaty 7s ease-in-out infinite;
  animation-delay: -3s;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: normal;
  text-align: center;
}

.soft-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  background: #f3f6f7;
  border: 1px solid #d5e0e3;
  color: #143038;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: normal;
  max-width: 100%;
}

.module-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #dce7ea;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #143038;
  line-height: 1.3;
  white-space: normal;
  max-width: 100%;
}

.module-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

@media (max-width: 639px) {
  .module-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }

  .module-tile {
    padding: 0.85rem 0.5rem;
    gap: 0.5rem;
  }
}

.modal-tabs-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
}

.modal-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.modal-tabs-scroll .tab {
  flex: 0 0 auto;
  white-space: nowrap;
}

.modal-scroll {
  max-height: min(70vh, 36rem);
  overflow-y: auto;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
}

.modal-footer-safe {
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
}

.hub-mobile {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0 1rem;
}

.hub-mobile-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #dce7ea;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #143038;
}

.hub-mobile-core {
  width: 100%;
  text-align: center;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: #1b434d;
  letter-spacing: 0.08em;
}

@media (max-width: 767px) {
  .hub-wrap {
    aspect-ratio: auto;
    max-width: 100%;
  }

  .hub-wrap .hub-svg {
    display: none;
  }

  .hub-wrap .hub-mobile {
    display: flex;
  }
}

@media (min-width: 768px) {
  .hub-wrap .hub-mobile {
    display: none;
  }
}

.tablet-frame {
  margin: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #0f2a31;
  border: 1px solid #d5e0e3;
  box-shadow: 0 18px 40px -24px rgba(18, 52, 60, 0.35);
}

.tablet-cap {
  background: #fff;
  color: #5a7278;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0.65rem 0.5rem;
  border-top: 1px solid #e8ecf0;
}

.kiosk-hero {
  background:
    radial-gradient(circle at 20% 30%, rgba(168, 230, 207, 0.25), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12), transparent 40%),
    linear-gradient(160deg, #12343c 0%, #1b434d 55%, #2a6b5a 100%);
}

.pos-feature {
  border-radius: 1.15rem;
  background: #fff;
  border: 1px solid #dce7ea;
  padding: 1.1rem 0.75rem;
  text-align: center;
  transition: border-color 0.2s ease;
}

.pos-feature:hover {
  border-color: #1b434d;
}

.modules-cta {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modules-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -16px rgba(27, 67, 77, 0.55);
}

.module-tile {
  aspect-ratio: 1;
  border-radius: 1.5rem;
  background: #fff;
  border: 1px solid #dce7ea;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.15rem 0.85rem;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.module-tile:hover {
  border-color: #1b434d;
  transform: translateY(-2px);
}

.ai-card {
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 1.5rem 1.35rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.ai-card:hover {
  border-color: rgba(168, 230, 207, 0.55);
  background: rgba(255, 255, 255, 0.12);
}

.ai-card h3 {
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.ai-card p {
  color: rgba(242, 250, 247, 0.72);
  font-size: 0.875rem;
  line-height: 1.6;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-pop {
  animation: modalPop 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#modules-modal[open] .modal-box {
  animation: modalPop 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tab-active-qaws {
  background: #1b434d !important;
  color: #f2faf7 !important;
}

@media (prefers-reduced-motion: reduce) {
  .modal-pop,
  #modules-modal[open] .modal-box {
    animation: none !important;
  }
}

.card-quiet {
  transition: border-color 0.2s ease, background-color 0.2s ease;
  border: 1px solid transparent;
}

.card-quiet:hover {
  border-color: rgba(27, 67, 77, 0.25);
  background-color: #fff;
}

.clients-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
  justify-items: center;
}

@media (min-width: 640px) {
  .clients-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.clients-row li {
  width: 100%;
  max-width: 14rem;
  min-height: 6.5rem;
  display: grid;
  place-items: center;
  padding: 1.25rem 1.5rem;
  border-radius: 1.5rem;
  background: #fff;
  border: 1px solid #dce7ea;
}

.client-logo {
  display: block;
  width: auto;
  height: 3.75rem;
  max-width: 100%;
  object-fit: contain;
}

.client-logo--wide {
  height: 3.25rem;
}

/* Hub diagram — labels outside the ring */
.hub-wrap {
  position: relative;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  aspect-ratio: 1;
}

.hub-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.hub-orbit {
  fill: none;
  stroke: #c5d4d8;
  stroke-width: 1.25;
  stroke-dasharray: 2 6;
}

.hub-line {
  stroke: rgba(27, 67, 77, 0.22);
  stroke-width: 1.25;
  fill: none;
}

.hub-dot {
  fill: #3e8f7a;
  filter: drop-shadow(0 0 5px rgba(62, 143, 122, 0.65));
}

.hub-spoke-dot {
  fill: #1b434d;
}

.hub-core {
  fill: #1b434d;
  stroke: none;
}

.hub-core-pulse {
  fill: none;
  stroke: rgba(27, 67, 77, 0.28);
  stroke-width: 1.5;
  transform-origin: 430px 430px;
  animation: hubPulse 2.8s ease-out infinite;
}

.hub-label {
  fill: #143038;
  font-size: 13px;
  font-weight: 600;
  font-family: "Plus Jakarta Sans", sans-serif;
  dominant-baseline: middle;
}

.hub-core-text {
  fill: #ffffff;
  font-size: 12px;
  font-weight: 700;
  font-family: "Plus Jakarta Sans", sans-serif;
  text-anchor: middle;
  dominant-baseline: middle;
  letter-spacing: 0.06em;
}

@keyframes hubPulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="left"] {
  transform: translateX(-36px);
}
[data-reveal="left"].is-visible {
  transform: translateX(0);
}

[data-reveal="right"] {
  transform: translateX(36px);
}
[data-reveal="right"].is-visible {
  transform: translateX(0);
}

html[dir="rtl"] [data-reveal="left"] {
  transform: translateX(36px);
}
html[dir="rtl"] [data-reveal="left"].is-visible {
  transform: translateX(0);
}

html[dir="rtl"] [data-reveal="right"] {
  transform: translateX(-36px);
}
html[dir="rtl"] [data-reveal="right"].is-visible {
  transform: translateX(0);
}

[data-reveal="scale"] {
  transform: scale(0.94);
}
[data-reveal="scale"].is-visible {
  transform: scale(1);
}

[data-reveal-delay="1"] {
  transition-delay: 0.1s;
}
[data-reveal-delay="2"] {
  transition-delay: 0.2s;
}
[data-reveal-delay="3"] {
  transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hub-core-pulse,
  .hub-dot,
  .float-a,
  .float-b,
  .float-c,
  .hero-bar {
    animation: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  .module-tile:hover {
    transform: none;
  }
}
