/* =============================================================
   STR Code — site styles
   Single-page site. No JavaScript, no build step.
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bg: #0a0d14;
  --bg-elev: #0f131c;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #eef1f7;
  --muted: #9aa4b8;
  --accent: #7c6cff;
  --accent-2: #22d3ee;
  --grad: linear-gradient(135deg, #7c6cff 0%, #22d3ee 100%);
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1140px;
  --gutter: 20px;
  --header-h: 76px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, ul, ol, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
svg { display: block; }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Typography ---------- */
h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 58ch;
}

.eyebrow {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px rgba(124, 108, 255, 0.2);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 25px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn .icon { width: 1.1em; height: 1.1em; }

.btn-primary {
  background: var(--grad);
  color: #0a0d14;
  box-shadow: 0 10px 30px rgba(124, 108, 255, 0.3);
}

.btn-primary:hover { box-shadow: 0 14px 36px rgba(34, 211, 238, 0.35); }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.btn-secondary:hover { background: var(--surface-hover); }

.btn-sm { padding: 12px 19px; font-size: 0.9rem; }
.btn-lg { padding: 19px 33px; font-size: 1.1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 13, 20, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--grad);
  color: #0a0d14;
  box-shadow: 0 8px 24px rgba(124, 108, 255, 0.35);
  flex: none;
}

.logo-mark .icon { width: 22px; height: 22px; stroke-width: 2.75; }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav a:hover { color: var(--text); }

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

/* Very narrow phones (320px): slightly smaller logo so the button fits */
@media (max-width: 374px) {
  .nav-bar { gap: 16px; }
  .site-header .logo { gap: 10px; font-size: 1.5rem; }
  .site-header .logo-mark { width: 36px; height: 36px; border-radius: 10px; }
  .site-header .logo-mark .icon { width: 20px; height: 20px; }
  .site-header .btn-sm { padding: 11px 15px; font-size: 0.85rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 80px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 40%, #000 15%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 65% at 50% 40%, #000 15%, transparent 70%);
  opacity: 0.6;
}

.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.glow-a {
  width: 760px;
  height: 760px;
  top: -340px;
  right: -220px;
  background: radial-gradient(closest-side, rgba(124, 108, 255, 0.28), transparent);
}

.glow-b {
  width: 600px;
  height: 600px;
  bottom: -300px;
  left: -220px;
  background: radial-gradient(closest-side, rgba(34, 211, 238, 0.16), transparent);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  gap: 64px;
  align-items: center;
}

.hero h1 { margin-bottom: 24px; }
.hero .lead { margin-bottom: 36px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.tech-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-list li {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 600;
}

@media (min-width: 960px) {
  .hero { padding: 96px 0 112px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 48px;
  }
}

/* ---------- Hero visual (CSS-only phone mockups) ---------- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.phone {
  position: relative;
  width: 272px;
  height: 560px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 46px;
  background: #0b0f18;
  box-shadow:
    0 0 0 5px #05070c,
    0 0 0 6px rgba(255, 255, 255, 0.08),
    0 40px 90px rgba(0, 0, 0, 0.55);
}

.phone::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  z-index: 2;
  width: 88px;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #05070c;
}

.screen {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 66px 16px 14px;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(180deg, #171c2d 0%, #0e1220 100%);
}

.phone-main {
  z-index: 2;
  transform: translateX(-36px);
  box-shadow:
    0 0 0 5px #05070c,
    0 0 0 6px rgba(255, 255, 255, 0.08),
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 0 120px rgba(124, 108, 255, 0.18);
}

.phone-game {
  position: absolute;
  top: 48px;
  right: 0;
  z-index: 1;
  width: 232px;
  height: 480px;
  transform: rotate(9deg);
}

.phone-game::before { top: 20px; width: 76px; height: 22px; }

/* app screen skeleton */
.s-row { display: flex; align-items: center; gap: 10px; }
.s-avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); }
.s-lines { display: flex; flex: 1; flex-direction: column; gap: 6px; }
.s-line { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.18); }
.s-line.dim { background: rgba(255, 255, 255, 0.09); }
.s-line.light { background: rgba(255, 255, 255, 0.75); }
.s-line.light.dim { background: rgba(255, 255, 255, 0.4); }
.w30 { width: 30%; }
.w40 { width: 40%; }
.w50 { width: 50%; }
.w60 { width: 60%; }
.w70 { width: 70%; }

.s-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: 112px;
  padding: 16px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--grad);
}

.s-banner::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.s-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(10, 13, 20, 0.55);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
}

.s-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.s-tiles span { height: 54px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255, 255, 255, 0.07); }

.s-list { display: flex; flex-direction: column; gap: 10px; }
.s-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); }
.s-dot { flex: none; width: 22px; height: 22px; border-radius: 8px; background: rgba(124, 108, 255, 0.55); }

.s-tabbar {
  display: flex;
  justify-content: space-around;
  margin-top: auto;
  padding: 12px 8px 4px;
  border-top: 1px solid var(--border);
}

.s-tabbar i { width: 18px; height: 18px; border-radius: 6px; background: rgba(255, 255, 255, 0.14); }
.s-tabbar i:first-child { background: var(--accent-2); }

/* game screen */
.screen-game {
  align-items: center;
  gap: 16px;
  padding: 58px 16px 18px;
  background: radial-gradient(circle at 50% 28%, #3a2f94 0%, #1b1844 42%, #0c0f1e 100%);
}

.g-hud { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.g-level { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }

.g-coins {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: #ffd166;
  font-size: 0.68rem;
  font-weight: 800;
}

.g-coins::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #ffd166; }

.g-stage { position: relative; display: grid; place-items: center; flex: 1; width: 100%; }

.g-ring {
  width: 150px;
  height: 150px;
  border: 10px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--accent-2);
  border-right-color: var(--accent);
  border-radius: 50%;
}

.g-ball {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0%, #22d3ee 35%, #7c6cff 100%);
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.4);
}

.g-progress { width: 100%; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.g-progress i { display: block; width: 68%; height: 100%; border-radius: inherit; background: var(--grad); }

.g-play {
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  color: #0a0d14;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
}

/* floating chips */
.float-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: rgba(15, 19, 28, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}

.float-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }

.chip-1 { top: 72px; left: -8px; }
.chip-2 { top: 42%; right: -12px; animation-delay: -2s; }
.chip-3 { bottom: 56px; left: 12px; animation-delay: -4s; }

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

@media (max-width: 599px) {
  .phone-main { width: 240px; height: 496px; transform: none; }
  .phone-game { display: none; }
  .screen { padding-top: 60px; }
  .chip-2 { right: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }

.section-alt {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { margin-bottom: 16px; }

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head.center .lead { margin-left: auto; margin-right: auto; }

@media (min-width: 960px) {
  .section { padding: 112px 0; }
  .section-head { margin-bottom: 56px; }
}

/* ---------- Services ---------- */
.cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border: 1px solid rgba(124, 108, 255, 0.28);
  border-radius: 14px;
  background: rgba(124, 108, 255, 0.14);
  color: var(--accent-2);
}

.card-icon .icon { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.97rem; color: var(--muted); }

.cards-note {
  margin-top: 28px;
  padding: 20px 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--muted);
}

.cards-note strong { color: var(--text); }

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  gap: 48px;
}

.why-intro h2 { margin-bottom: 18px; }
.why-intro .lead { margin-bottom: 18px; }
.why-intro .btn { margin-top: 10px; }

.features {
  display: grid;
  gap: 16px;
}

.feature {
  display: flex;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature-check {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--grad);
  color: #0a0d14;
}

.feature-check .icon { width: 16px; height: 16px; stroke-width: 3; }
.feature h3 { margin-bottom: 6px; font-size: 1.05rem; }
.feature p { font-size: 0.93rem; color: var(--muted); }

@media (min-width: 600px) {
  .features { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .why-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 72px;
    align-items: start;
  }
}

/* ---------- Process ---------- */
.steps {
  display: grid;
  gap: 32px;
}

.step {
  position: relative;
  padding-top: 28px;
}

.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border-strong);
}

.step::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px rgba(124, 108, 255, 0.2);
}

.step-num {
  display: block;
  margin-bottom: 12px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-2);
}

.step h3 { margin-bottom: 8px; font-size: 1.1rem; }
.step p { font-size: 0.93rem; color: var(--muted); }

@media (min-width: 960px) {
  .steps {
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
  }
}

/* ---------- Contact / CTA ---------- */
.cta-panel {
  position: relative;
  overflow: hidden;
  padding: 72px 24px;
  border: 1px solid var(--border-strong);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(124, 108, 255, 0.14) 0%, rgba(34, 211, 238, 0.05) 60%, transparent 100%),
    var(--bg-elev);
  text-align: center;
}

.cta-panel::before {
  content: "";
  position: absolute;
  top: -240px;
  left: 50%;
  width: 680px;
  height: 460px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 108, 255, 0.35), transparent);
  pointer-events: none;
}

.cta-panel > * { position: relative; }
.cta-panel h2 { margin-bottom: 14px; }
.cta-panel .lead { margin: 0 auto 32px; }

.cta-note {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .cta-panel { padding: 96px 48px; }
}

/* Phones: the email button spans the panel and its text scales with the
   screen, so the full address stays on one line. If it still does not fit,
   it wraps before the "@" instead of being cut off. */
@media (max-width: 480px) {
  .cta-panel { padding: 56px 16px; }

  .cta-panel .btn-lg {
    width: 100%;
    gap: 8px;
    padding: 17px 14px;
    font-size: clamp(0.8rem, 4vw, 1rem);
    line-height: 1.25;
    white-space: normal;
    text-align: center;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 56px 0 28px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-grid {
  display: grid;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand .logo { margin-bottom: 16px; font-size: 1.5rem; }
.footer-brand .logo-mark { width: 36px; height: 36px; border-radius: 10px; }
.footer-brand .logo-mark .icon { width: 20px; height: 20px; }
.footer-brand p { max-width: 36ch; color: var(--muted); }

.footer-col h4 {
  margin-bottom: 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-col address {
  font-size: 0.95rem;
  line-height: 1.75;
}

.footer-col a { transition: color 0.2s ease; }
.footer-col a:hover { color: var(--accent-2); }

.footer-nav { display: flex; flex-direction: column; gap: 10px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

@media (min-width: 860px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1.6fr 0.7fr;
    gap: 48px;
  }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
