@import url("./font-faces.css");

:root {
  color-scheme: dark;
  --bg: #071017;
  --surface: rgba(13, 27, 38, 0.8);
  --text: #eef7fb;
  --muted: #9db2bd;
  --cyan: #21d7ff;
  --lime: #b9f26a;
  --rose: #ff6f91;
  --amber: #ffd166;
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.2);
  --panel: rgba(7, 18, 28, 0.74);
  --panel-soft: rgba(255, 255, 255, 0.06);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 18px 46px rgba(0, 0, 0, 0.24);
  --font-latin: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-rtl-random: "Bahij TheSansArabic-Plain";
  --font-rtl: var(--font-rtl-random), "Bahij TheSansArabic-Plain", "Bahij Janna-Regular", "Bahij Droid Naskh-Regular", Tahoma, sans-serif;
  font-family: var(--font-latin);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    radial-gradient(circle at 80% 12%, rgba(33, 215, 255, 0.18), transparent 26rem),
    radial-gradient(circle at 14% 22%, rgba(185, 242, 106, 0.1), transparent 22rem),
    linear-gradient(135deg, #050d12 0%, #091519 46%, #151222 100%);
  background-size: 64px 64px, 64px 64px, auto, auto, auto;
  color: var(--text);
  min-height: 100vh;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 28%, rgba(33, 215, 255, 0.07) 28% 29%, transparent 29% 62%, rgba(185, 242, 106, 0.06) 62% 63%, transparent 63%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 18%, rgba(0, 0, 0, 0.18));
}

html[lang="ps"] body,
html[lang="ar"] body,
html[lang="ur"] body {
  font-family: var(--font-rtl);
}

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

canvas {
  display: block;
  max-inline-size: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  background: linear-gradient(180deg, rgba(7, 16, 23, 0.92), rgba(7, 16, 23, 0.72));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-logo {
  width: clamp(3rem, 5vw, 4.25rem);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset, 0 0 34px rgba(33, 215, 255, 0.24);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
}

.build-stamp {
  margin-block-start: 0.18rem;
  color: rgba(238, 247, 251, 0.72);
  font-size: 0.68rem;
  font-weight: 800;
}

.menu-wrap,
.footer-menu-wrap,
.nav,
.language-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.nav,
.footer-nav {
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav li,
.footer-nav li {
  position: relative;
}

.language-more {
  position: relative;
}

.nav a,
.language-switcher button {
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 0.62rem 0.78rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.nav a:hover,
.language-switcher button.active,
.language-switcher button:hover {
  color: #041017;
  background: linear-gradient(135deg, var(--cyan), var(--lime));
  border-color: transparent;
  transform: translateY(-1px);
}

.language-menu {
  position: absolute;
  inset-block-start: calc(100% + 0.45rem);
  inset-inline-end: 0;
  z-index: 35;
  display: grid;
  min-width: 10rem;
  gap: 0.35rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0.45rem;
  background: rgba(7, 18, 28, 0.96);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.language-menu[hidden] {
  display: none;
}

.language-menu button {
  width: 100%;
  text-align: start;
}

.nav .sub-menu,
.footer-nav .sub-menu {
  position: absolute;
  inset-block-start: calc(100% + 0.45rem);
  inset-inline-start: 0;
  z-index: 30;
  min-width: 13rem;
  margin: 0;
  padding: 0.45rem;
  list-style: none;
  background: rgba(7, 18, 28, 0.94);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.4rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav li:hover > .sub-menu,
.nav li:focus-within > .sub-menu,
.footer-nav li:hover > .sub-menu,
.footer-nav li:focus-within > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav .sub-menu a,
.footer-nav .sub-menu a {
  display: block;
  width: 100%;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  min-height: calc(100vh - 78px);
  padding: clamp(3rem, 8vw, 6.5rem) clamp(1rem, 5vw, 5rem) 2rem;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto clamp(1rem, 5vw, 5rem) 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(33, 215, 255, 0.5), rgba(185, 242, 106, 0.4), transparent);
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 0 24px rgba(185, 242, 106, 0.22);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(3.3rem, 8vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

h1 span {
  display: block;
  white-space: nowrap;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.1rem);
  line-height: 1.07;
}

h3 {
  margin: 0 0 0.75rem;
  font-size: 1.18rem;
}

.hero-copy p:not(.eyebrow),
.section-heading p:not(.eyebrow),
.domain-copy p:not(.eyebrow),
.contact-section p {
  color: #c8d6dc;
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  line-height: 1.9;
}

.hero-actions,
.blockchain-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.button,
.contact-form button,
.chat-form button {
  min-height: 2.8rem;
  border: 0;
  border-radius: 8px;
  padding: 0.82rem 1.1rem;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button.primary,
.contact-form button {
  background: linear-gradient(135deg, var(--cyan), var(--lime));
  color: #041017;
  box-shadow: 0 16px 36px rgba(33, 215, 255, 0.22);
}

.button.secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
}

.button:hover,
.contact-form button:hover,
.chat-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(33, 215, 255, 0.22);
}

.hero-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.orbital {
  position: absolute;
  width: min(88vw, 560px);
  aspect-ratio: 1;
  border: 1px solid rgba(33, 215, 255, 0.32);
  border-radius: 50%;
  animation: spin 24s linear infinite;
  box-shadow: 0 0 60px rgba(33, 215, 255, 0.12);
}

.orbital::before,
.orbital::after {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px dashed rgba(185, 242, 106, 0.32);
  border-radius: 50%;
}

.orbital::after {
  inset: 29%;
  border-color: rgba(255, 111, 145, 0.3);
}

.orbital span {
  position: absolute;
  width: 0.8rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 22px var(--cyan);
}

.orbital span:nth-child(1) { top: 8%; left: 22%; }
.orbital span:nth-child(2) { right: 7%; top: 52%; background: var(--lime); box-shadow: 0 0 22px var(--lime); }
.orbital span:nth-child(3) { bottom: 10%; left: 42%; background: var(--rose); box-shadow: 0 0 22px var(--rose); }

.glass-console,
.service-card,
.shop-card,
.founder-card,
.chain-visual,
.blockchain-copy article,
.payment-card,
.backend-steps article,
.domain-card,
.contact-form {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.glass-console {
  position: relative;
  z-index: 2;
  width: min(100%, 580px);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48), 0 0 80px rgba(33, 215, 255, 0.12);
}

.console-top {
  display: flex;
  gap: 0.45rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.console-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.85rem 1rem 0;
  color: var(--lime);
  font-weight: 900;
}

.console-title::after {
  content: "";
  inline-size: min(42%, 12rem);
  block-size: 0.35rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  opacity: 0.78;
}

.console-top span {
  width: 0.7rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--rose);
}

.console-top span:nth-child(2) { background: var(--amber); }
.console-top span:nth-child(3) { background: var(--lime); }

.console-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 1rem;
  padding: 1rem;
}

.metric,
.signal-bars,
#heroChart,
#blockchainChart {
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(4, 11, 18, 0.66), rgba(4, 11, 18, 0.42));
  border: 1px solid var(--line);
}

.metric {
  min-height: 8.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
}

.metric b {
  direction: ltr;
  font-size: 2rem;
}

.metric.big b {
  font-size: 2.8rem;
}

.metric small,
.service-card p,
.payment-card p,
.backend-steps p,
.blockchain-copy p,
.domain-card span,
.domain-card small {
  color: var(--muted);
}

.signal-bars {
  min-height: 8.2rem;
  display: flex;
  align-items: end;
  gap: 0.55rem;
  padding: 1rem;
}

.signal-bars span {
  flex: 1;
  min-height: 34%;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--cyan), rgba(33, 215, 255, 0.1));
  box-shadow: 0 -10px 24px rgba(33, 215, 255, 0.16);
}

.signal-bars span:nth-child(2) { min-height: 62%; }
.signal-bars span:nth-child(3) { min-height: 46%; }
.signal-bars span:nth-child(4) { min-height: 82%; }
.signal-bars span:nth-child(5) { min-height: 55%; }

#heroChart {
  grid-column: span 2;
  width: 100%;
  min-height: 170px;
}

.stats-band,
.service-grid,
.payment-grid,
.backend-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-inline: clamp(1rem, 5vw, 5rem);
}

.stats-band {
  margin-top: 1rem;
}

.stats-band div {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow-soft);
}

.stats-band div::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 0.22rem;
  background: linear-gradient(90deg, var(--cyan), var(--lime), var(--rose));
}

.stats-band strong,
.stats-band span {
  display: block;
}

.stats-band strong {
  direction: ltr;
  font-size: clamp(1.7rem, 4vw, 3rem);
}

.stats-band span {
  color: var(--muted);
}

.section,
.about-section,
.blockchain-lab,
.shop-section,
.payment-section,
.backend-section,
.domain-section,
.contact-section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem);
}

.section .service-grid,
.payment-section .payment-grid,
.backend-section .backend-steps {
  padding-inline: 0;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 2rem;
}

.editable-page-content {
  color: #c8d6dc;
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  line-height: 1.9;
}

.editable-page-content > :first-child {
  margin-block-start: 0;
}

.editable-page-content > :last-child {
  margin-block-end: 0;
}

.section-edit-link {
  position: relative;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-block-end: 1rem;
  border: 1px solid rgba(33, 215, 255, 0.35);
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  color: #071017;
  background: linear-gradient(135deg, var(--cyan), var(--lime));
  box-shadow: 0 12px 30px rgba(33, 215, 255, 0.18);
  font-size: 0.85rem;
  font-weight: 900;
}

.single-page-shell {
  min-height: calc(100vh - 84px);
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem);
}

.single-page-card {
  max-width: 980px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1.2rem, 4vw, 3rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.single-page-card h1 {
  margin-block-end: 1.2rem;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
}

.page-edit-wrap {
  margin-block-start: 1.5rem;
}

.service-card,
.shop-card,
.payment-card,
.backend-steps article {
  position: relative;
  min-height: 16rem;
  padding: 1.2rem;
  border-radius: 8px;
  line-height: 1.75;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.service-card::after,
.payment-card::after,
.backend-steps article::after,
.blockchain-copy article::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 0.2rem;
  background: linear-gradient(90deg, var(--cyan), var(--lime), var(--rose));
  opacity: 0.82;
}

.service-card:hover,
.shop-card:hover,
.payment-card:hover,
.backend-steps article:hover,
.blockchain-copy article:hover,
.domain-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 34px 88px rgba(0, 0, 0, 0.36), 0 0 42px rgba(33, 215, 255, 0.1);
}

.icon-chip,
.payment-mark {
  display: grid;
  place-items: center;
  width: 3.1rem;
  aspect-ratio: 1;
  margin-bottom: 1.25rem;
  border-radius: 8px;
  background: rgba(33, 215, 255, 0.13);
  color: var(--cyan);
  font-weight: 900;
  box-shadow: 0 0 28px rgba(33, 215, 255, 0.14);
}

.code-chip span {
  direction: ltr;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  color: var(--lime);
}

.about-section,
.blockchain-lab,
.backend-section {
  border-block: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 42%),
    rgba(255, 255, 255, 0.025);
}

.founder-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.35fr);
  gap: 1rem;
  border-radius: 8px;
  padding: 1.25rem;
  background:
    linear-gradient(135deg, rgba(185, 242, 106, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045));
}

.founder-signals {
  display: grid;
  gap: 0.65rem;
  align-content: center;
}

.founder-signals span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem;
  color: var(--lime);
  background: rgba(185, 242, 106, 0.08);
  font-weight: 900;
}

.blockchain-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.75fr);
  gap: 1rem;
}

.chain-visual {
  position: relative;
  display: grid;
  grid-template-rows: minmax(18rem, 1fr) auto;
  gap: 1rem;
  min-height: 36rem;
  border-radius: 8px;
  padding: 1rem;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  background-size: 44px 44px, 44px 44px, auto;
}

.chain-stage {
  position: relative;
  z-index: 1;
  min-height: 18rem;
}

.chain-line {
  position: absolute;
  inset: 50% 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--lime), var(--rose), var(--amber));
  box-shadow: 0 0 30px rgba(33, 215, 255, 0.46);
}

.block-node {
  position: absolute;
  display: grid;
  place-items: center;
  width: clamp(5.4rem, 11vw, 8rem);
  aspect-ratio: 1;
  border: 1px solid rgba(33, 215, 255, 0.32);
  border-radius: 8px;
  background: rgba(4, 11, 18, 0.78);
  animation: floatNode 4.8s ease-in-out infinite;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), 0 0 34px rgba(33, 215, 255, 0.14);
}

.block-node span,
.block-node b {
  display: block;
}

.block-node span {
  direction: ltr;
  color: var(--cyan);
  font-weight: 900;
}

.node-one { top: 18%; right: 5%; }
.node-two { bottom: 12%; right: 31%; animation-delay: -1.2s; }
.node-three { top: 14%; left: 31%; animation-delay: -2.4s; }
.node-four { bottom: 16%; left: 5%; animation-delay: -3.5s; }

#blockchainChart {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 260px;
}

.blockchain-copy {
  display: grid;
  gap: 1rem;
}

.blockchain-copy article {
  min-height: 11rem;
  border-radius: 8px;
  padding: 1.15rem;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.blockchain-copy span {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  aspect-ratio: 1;
  margin-bottom: 1rem;
  border-radius: 8px;
  color: #041017;
  background: var(--lime);
  font-weight: 900;
}

.blockchain-cta {
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(185, 242, 106, 0.24);
  border-radius: 8px;
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(185, 242, 106, 0.16), rgba(33, 215, 255, 0.06)),
    rgba(185, 242, 106, 0.08);
  box-shadow: var(--shadow-soft);
}

.payment-grid,
.backend-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shop-section {
  background:
    linear-gradient(90deg, rgba(33, 215, 255, 0.05), transparent 44%),
    rgba(255, 255, 255, 0.018);
}

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

.shop-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  min-height: 28rem;
  padding: 0;
}

.shop-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
  background: #071017;
  border-bottom: 1px solid var(--line);
  filter: saturate(1.08) contrast(1.04);
  transition: transform 300ms ease, filter 300ms ease;
}

.shop-card:hover img {
  transform: scale(1.035);
  filter: saturate(1.2) contrast(1.08);
}

.shop-card div {
  padding: 1.2rem;
}

.shop-card span {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--lime);
  font-weight: 900;
}

.shop-card p {
  color: var(--muted);
  line-height: 1.75;
}

.domain-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  gap: 1.5rem;
  align-items: stretch;
}

.domain-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 15rem;
  border-radius: 8px;
  padding: 1.25rem;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  background:
    linear-gradient(135deg, rgba(33, 215, 255, 0.13), rgba(185, 242, 106, 0.06)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045));
}

.domain-card strong {
  direction: ltr;
  display: block;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 8px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 9, 14, 0.68);
  color: var(--text);
  font: inherit;
  padding: 0.9rem 1rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

input:focus,
textarea:focus {
  outline: 0;
  border-color: rgba(33, 215, 255, 0.56);
  box-shadow: 0 0 0 4px rgba(33, 215, 255, 0.11);
  background: rgba(3, 9, 14, 0.84);
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

.site-footer,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.2rem clamp(1rem, 5vw, 5rem);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
}

.site-footer > div,
footer > div {
  display: grid;
  gap: 0.2rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.footer-nav a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 800;
}

.footer-nav a:hover {
  color: #041017;
  background: linear-gradient(135deg, var(--cyan), var(--lime));
}

.ai-chat {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 40;
}

.chat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3rem;
  border: 1px solid rgba(185, 242, 106, 0.38);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, var(--cyan), var(--lime));
  color: #041017;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.chat-dot {
  width: 0.72rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #041017;
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 4rem;
  display: grid;
  grid-template-rows: auto minmax(12rem, 1fr) auto;
  width: min(92vw, 390px);
  max-height: min(72vh, 560px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 28%),
    rgba(8, 18, 26, 0.95);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.chat-panel[hidden] {
  display: none !important;
}

.chat-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.chat-head strong,
.chat-head small {
  display: block;
}

.chat-head small {
  color: var(--muted);
  line-height: 1.5;
}

.chat-close {
  display: grid;
  place-items: center;
  width: 2rem;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem;
  overflow-y: auto;
}

.chat-message {
  max-width: 88%;
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  line-height: 1.65;
  background: rgba(255, 255, 255, 0.08);
}

.chat-message.user {
  align-self: flex-end;
  color: #041017;
  background: linear-gradient(135deg, var(--cyan), var(--lime));
  font-weight: 800;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  padding: 0.85rem;
  border-top: 1px solid var(--line);
}

.chat-form button {
  background: var(--lime);
  color: #041017;
}

.is-ltr {
  direction: ltr;
}

.is-ltr h1,
.is-ltr .hero-copy,
.is-ltr .section-heading,
.is-ltr .contact-section {
  text-align: left;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes floatNode {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.7rem); }
}

@media (max-width: 980px) {
  .site-header,
  .hero,
  .blockchain-grid,
  .domain-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .service-grid,
  .shop-grid,
  .stats-band,
  .payment-grid,
  .backend-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 2rem;
  }

  h1 {
    font-size: clamp(2.7rem, 13.5vw, 4rem);
    text-align: center;
  }

  .hero-copy,
  .hero-copy p:not(.eyebrow) {
    text-align: center;
    margin-inline: auto;
  }

  .hero-visual {
    min-height: 360px;
  }

  .console-grid,
  .service-grid,
  .shop-grid,
  .stats-band,
  .payment-grid,
  .backend-steps {
    grid-template-columns: 1fr;
  }

  #heroChart {
    grid-column: auto;
  }

  .founder-card {
    grid-template-columns: 1fr;
  }

  .site-footer,
  footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  .nav .sub-menu,
  .footer-nav .sub-menu,
  .language-menu {
    position: static;
    min-width: 100%;
    margin-block-start: 0.35rem;
  }

  .nav .sub-menu,
  .footer-nav .sub-menu {
    display: none;
  }

  .nav li:hover > .sub-menu,
  .nav li:focus-within > .sub-menu,
  .footer-nav li:hover > .sub-menu,
  .footer-nav li:focus-within > .sub-menu {
    display: block;
  }
}
