:root {
  color-scheme: dark;
  --bg: #05070d;
  --bg-soft: #0b111c;
  --panel: rgba(14, 22, 35, 0.72);
  --panel-strong: rgba(18, 29, 47, 0.92);
  --text: #f6f8fb;
  --muted: #9eabbc;
  --line: rgba(255, 255, 255, 0.1);
  --cyan: #40e8ff;
  --green: #74f7b2;
  --violet: #9d7cff;
  --blue: #2d7dff;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(64, 232, 255, 0.18), transparent 26rem),
    radial-gradient(circle at 86% 4%, rgba(157, 124, 255, 0.15), transparent 30rem),
    linear-gradient(180deg, #05070d 0%, #07101a 45%, #05070d 100%);
  color: var(--text);
  letter-spacing: 0;
}

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

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

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
}

.brand-logo {
  display: block;
  width: 88px;
  height: auto;
}

.nav-links {
  display: flex;
  gap: 1.6rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a:hover,
.footer-actions a:hover {
  color: var(--cyan);
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-cta {
  padding: 0 16px;
  border: 1px solid rgba(116, 247, 178, 0.28);
  color: var(--green);
}

.btn {
  padding: 0 20px;
  border: 1px solid transparent;
}

.btn:hover,
.nav-cta:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: #031014;
  box-shadow: 0 18px 50px rgba(64, 232, 255, 0.22);
}

.btn-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.section-pad {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  align-items: center;
  gap: 42px;
  min-height: calc(100vh - 72px);
  padding-top: 24px;
  padding-bottom: 48px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(2.45rem, 3.92vw, 3.72rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 625px;
  color: #c5cfdb;
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.hero-visual {
  position: relative;
}

.dashboard-frame {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(15, 25, 40, 0.82), rgba(6, 12, 22, 0.86));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.frame-top {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}

.frame-top span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #293343;
}

.frame-top strong {
  margin-left: auto;
  font-weight: 700;
}

.architecture-map {
  position: relative;
  min-height: 460px;
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 38px 38px;
}

#networkCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.node-card,
.code-panel {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(7, 13, 23, 0.75);
  backdrop-filter: blur(14px);
}

.node-card {
  display: grid;
  gap: 5px;
  width: 148px;
  padding: 14px;
}

.node-card small,
.node-card span {
  color: var(--muted);
  font-size: 0.72rem;
}

.node-card strong {
  color: var(--text);
  font-size: 1.4rem;
}

.node-api { top: 15%; left: 9%; }
.node-mobile { top: 43%; right: 9%; }
.node-cloud { bottom: 14%; left: 17%; }

.code-panel {
  right: 7%;
  bottom: 8%;
  display: grid;
  gap: 9px;
  width: 252px;
  padding: 16px;
  color: #bfeff7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
}

.authority {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(100deg, rgba(64, 232, 255, 0.08), transparent 32%),
    linear-gradient(280deg, rgba(157, 124, 255, 0.12), transparent 36%),
    rgba(8, 14, 24, 0.55);
  overflow: hidden;
}

.authority::after {
  content: "";
  position: absolute;
  inset: 1px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 13px;
  pointer-events: none;
}

#clientAuraCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.58;
}

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

.authority-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.authority p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.authority-heading span {
  color: rgba(116, 247, 178, 0.72);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

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

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 40px rgba(0, 0, 0, 0.18);
  transform: translateY(0) rotateX(0);
  transition: border-color 180ms ease, transform 240ms ease, filter 180ms ease, background 180ms ease;
  animation: logoFloat 7s ease-in-out infinite;
}

.logo:nth-child(2) { animation-delay: -1.1s; }
.logo:nth-child(3) { animation-delay: -2.2s; }
.logo:nth-child(4) { animation-delay: -3.3s; }
.logo:nth-child(5) { animation-delay: -4.4s; }
.logo:nth-child(6) { animation-delay: -5.5s; }

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0) rotateX(0);
  }
  50% {
    transform: translateY(-5px) rotateX(2deg);
  }
}

.logo:hover {
  transform: translateY(-7px) rotateX(5deg);
  border-color: rgba(64, 232, 255, 0.42);
  background: linear-gradient(180deg, rgba(64, 232, 255, 0.11), rgba(255, 255, 255, 0.035));
}

.client-logo {
  width: 100%;
  max-width: 150px;
  max-height: 42px;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(0.98) contrast(1.08);
  opacity: 0.9;
  transition: filter 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.logo:hover .client-logo {
  filter: grayscale(0) brightness(1);
  opacity: 1;
  transform: scale(1.04);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

h2 {
  font-size: clamp(1.92rem, 3.68vw, 3.42rem);
  line-height: 1;
  letter-spacing: 0;
}

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

.service-card {
  min-height: 430px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(16, 26, 42, 0.84), rgba(9, 15, 25, 0.72));
  backdrop-filter: blur(18px);
}

.service-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 34px;
  place-items: center;
  border-radius: 8px;
  background: rgba(64, 232, 255, 0.11);
  color: var(--cyan);
  font-weight: 900;
}

h3 {
  margin-bottom: 16px;
  font-size: clamp(1.18rem, 2.05vw, 1.68rem);
  line-height: 1.12;
}

.service-card p,
.case-copy p,
.cta-panel p,
.footer p {
  color: var(--muted);
  line-height: 1.7;
}

.service-card ul {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  color: #d6deea;
  font-size: 0.93rem;
}

.service-card li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--green);
  vertical-align: middle;
}

.case-studies {
  padding-top: 74px;
}

.case-row {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 38px;
  align-items: stretch;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 14, 24, 0.68);
}

.case-row-alt {
  grid-template-columns: 1fr 1fr;
}

.case-tag {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.case-copy {
  padding: 34px 12px 34px 18px;
}

.case-copy h3 {
  font-size: clamp(1.72rem, 3.25vw, 2.85rem);
}

.case-points {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.case-points span {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #dfe6ef;
  background: rgba(255, 255, 255, 0.025);
}

.case-media {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(64, 232, 255, 0.13), transparent 38%),
    linear-gradient(315deg, rgba(116, 247, 178, 0.13), transparent 35%),
    #09111d;
}

.desktop-mock {
  position: absolute;
  top: 62px;
  right: 42px;
  width: 72%;
  height: 310px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: #101b2b;
  box-shadow: 0 34px 90px rgba(0,0,0,0.36);
}

.mock-sidebar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 23%;
  border-right: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}

.mock-content {
  position: absolute;
  inset: 28px 28px 28px 29%;
}

.mock-chart {
  height: 132px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(64,232,255,0.26), rgba(116,247,178,0.08));
}

.mock-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.mock-list span,
.event-lines span {
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.13);
}

.phone-mock,
.event-phone {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 28px;
  background: #07101a;
  box-shadow: 0 30px 90px rgba(0,0,0,0.42);
}

.phone-mock {
  left: 46px;
  bottom: 46px;
  width: 184px;
  height: 348px;
  padding: 18px;
}

.phone-notch {
  width: 58px;
  height: 5px;
  margin: 0 auto 30px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
}

.phone-status {
  padding: 16px;
  border-radius: 14px;
  background: rgba(116, 247, 178, 0.16);
  color: var(--green);
  font-weight: 800;
}

.qr-grid {
  height: 122px;
  margin-top: 36px;
  border-radius: 12px;
  background:
    linear-gradient(90deg, #fff 12px, transparent 12px) 0 0 / 24px 24px,
    linear-gradient(#fff 12px, transparent 12px) 0 0 / 24px 24px,
    #111;
  opacity: 0.9;
}

.metric-row {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-top: 18px;
}

.metric-row strong {
  color: var(--green);
  font-size: clamp(2.6rem, 5.9vw, 4.75rem);
  line-height: 0.9;
}

.metric-row span {
  max-width: 180px;
  padding-bottom: 8px;
  color: #dbe4ee;
  font-weight: 800;
}

.event-phone {
  width: 190px;
  height: 378px;
  padding: 22px;
}

.phone-one {
  left: 18%;
  top: 58px;
  transform: rotate(-6deg);
}

.phone-two {
  right: 18%;
  bottom: 42px;
  transform: rotate(5deg);
}

.event-header {
  height: 92px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.event-card {
  height: 88px;
  margin-top: 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.12);
}

.event-lines {
  display: grid;
  gap: 13px;
  margin-top: 24px;
}

.event-kpi {
  display: grid;
  height: 145px;
  place-items: center;
  border-radius: 20px;
  background: rgba(116, 247, 178, 0.16);
  color: var(--green);
  font-size: 3.2rem;
  font-weight: 900;
}

.store-badge {
  position: absolute;
  top: 38px;
  left: 36px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: #eaf0f7;
  font-weight: 800;
}

.badge-right {
  top: auto;
  right: 34px;
  bottom: 34px;
  left: auto;
}

.final-cta {
  padding-top: 64px;
}

.cta-panel {
  padding: clamp(34px, 7vw, 78px);
  border: 1px solid rgba(64, 232, 255, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(64,232,255,0.12), transparent 38%),
    linear-gradient(315deg, rgba(157,124,255,0.13), transparent 42%),
    rgba(12, 19, 31, 0.9);
  box-shadow: var(--shadow);
}

.cta-panel h2,
.cta-panel p {
  max-width: 850px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 54px;
  border-top: 1px solid var(--line);
}

.footer p {
  max-width: 440px;
  margin: 16px 0 0;
}

.footer .brand-logo {
  width: 98px;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  justify-content: flex-end;
  gap: 10px;
  color: var(--muted);
}

.footer-actions span {
  flex-basis: 100%;
  text-align: right;
}

.footer-actions a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #dfe7f1;
  font-weight: 800;
}

.store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 10px 12px;
}

.store-link img {
  display: block;
  width: 100%;
  max-width: 138px;
  height: auto;
}

.whatsapp-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 999px;
  background: #25d366;
  box-shadow: 0 18px 48px rgba(37, 211, 102, 0.28);
}

.whatsapp-fab img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

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

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

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero,
  .case-row,
  .case-row-alt {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 34px;
    min-height: auto;
  }

  .service-grid,
  .logo-strip {
    grid-template-columns: 1fr 1fr;
  }

  .authority-heading {
    align-items: start;
    flex-direction: column;
  }

  .hero-visual {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .section-pad {
    width: min(100% - 24px, 1180px);
    padding: 64px 0;
  }

  .nav {
    width: min(100% - 24px, 1180px);
  }

  .brand-logo {
    width: 78px;
  }

  .nav-cta {
    display: none;
  }

  h1 {
    font-size: clamp(2.02rem, 11.6vw, 2.68rem);
  }

  h2 {
    font-size: clamp(1.7rem, 8.8vw, 2.32rem);
  }

  .case-copy h3 {
    font-size: clamp(1.55rem, 8.2vw, 2.2rem);
  }

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

  .btn {
    width: 100%;
  }

  .architecture-map {
    min-height: 430px;
  }

  .node-card {
    width: 132px;
    padding: 12px;
  }

  .node-api { left: 5%; }
  .node-mobile { right: 5%; }
  .node-cloud { left: 8%; }

  .code-panel {
    right: 5%;
    bottom: 6%;
    width: min(230px, 70%);
  }

  .service-grid,
  .logo-strip {
    grid-template-columns: 1fr;
  }

  .authority {
    width: min(100% - 24px, 1180px);
    padding: 22px;
  }

  .logo {
    min-height: 66px;
  }

  .service-card {
    min-height: auto;
    padding: 24px;
  }

  .case-row {
    padding: 14px;
  }

  .case-copy {
    padding: 24px 8px;
  }

  .case-media {
    min-height: 450px;
  }

  .desktop-mock {
    right: 16px;
    width: 78%;
    height: 250px;
  }

  .phone-mock {
    left: 18px;
    width: 156px;
    height: 300px;
  }

  .event-phone {
    width: 158px;
    height: 320px;
  }

  .phone-one {
    left: 8%;
  }

  .phone-two {
    right: 7%;
  }

  .metric-row {
    display: grid;
    gap: 6px;
  }

  .footer-actions,
  .footer-actions span {
    justify-content: flex-start;
    text-align: left;
  }

  .whatsapp-fab {
    width: 52px;
    height: 52px;
  }
}
