/* Sydra — black and white */
:root {
  --bg: #050506;
  --bg-2: #0b0b0d;
  --card: #0f0f12;
  --card-2: #141418;
  --line: #222227;
  --line-2: #2e2e35;
  --text: #f4f4f6;
  --muted: #9a9aa3;
  --dim: #63636c;
  --red: #ff5c5c;
  --radius: 14px;
  --wrap: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:active { transform: scale(.97); }
.btn--sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn--light { background: var(--text); color: #0a0a0c; }
.btn--light:hover { background: #fff; }
.btn--ghost { border: 1px solid var(--line-2); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: #55555e; background: rgba(255,255,255,.05); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 12px; font-weight: 500; color: var(--muted); background: rgba(255,255,255,.02);
}
.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text); box-shadow: 0 0 10px rgba(255,255,255,.6); }

.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
}

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(5,5,6,.75); backdrop-filter: blur(14px); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand__logo { width: 26px; height: 26px; object-fit: contain; }
.nav__links { display: flex; gap: 30px; font-size: 14px; color: var(--muted); }
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__burger { display: none; width: 36px; height: 36px; flex-direction: column; justify-content: center; gap: 5px; padding: 0 8px; }
.nav__burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 150px 0 40px; overflow: hidden; }
.hero__waves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .9; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 260px;
  background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none;
}
.hero__content { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__title {
  margin: 22px 0 30px;
  font-size: clamp(48px, 8vw, 96px); font-weight: 900; letter-spacing: -.045em; line-height: 1;
  background: linear-gradient(180deg, #fff 30%, #a9a9b2);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { max-width: 620px; font-size: 18px; color: var(--muted); }
.hero__cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; justify-content: center; }
.hero__note { margin-top: 18px; font-size: 12px; color: var(--dim); }

/* ---------- in-game screenshot ---------- */
.shot { position: relative; z-index: 2; max-width: 860px; margin: 70px auto 0; perspective: 1400px; }
.shot__tilt {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; --hover: 0;
  position: relative; border-radius: 22px; transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) scale(calc(1 + var(--hover) * .025));
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s ease;
  box-shadow: 0 40px 120px rgba(0,0,0,.75), 0 0 0 6px rgba(255,255,255,.025);
  will-change: transform;
}
.shot.is-hover .shot__tilt {
  transition: transform .12s ease-out, box-shadow .5s ease;
  box-shadow: 0 60px 140px rgba(0,0,0,.85), 0 0 0 6px rgba(255,255,255,.05), 0 0 80px rgba(255,255,255,.06);
}
.shot img { display: block; width: 100%; height: auto; border-radius: 22px; border: 1px solid #2b2b2f; }
/* soft light that follows the cursor */
.shot__glare {
  position: absolute; inset: 0; border-radius: 22px; pointer-events: none;
  background: radial-gradient(circle 280px at var(--mx) var(--my), rgba(255,255,255,.13), transparent 70%);
  opacity: var(--hover); transition: opacity .4s ease; mix-blend-mode: screen;
}
/* bright rim on the border near the cursor */
.shot__edge {
  position: absolute; inset: 0; border-radius: 22px; pointer-events: none; padding: 1px;
  background: radial-gradient(circle 220px at var(--mx) var(--my), rgba(255,255,255,.9), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: var(--hover); transition: opacity .4s ease;
}
.shot__glow {
  position: absolute; inset: -60px -40px auto; height: 70%; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.09), transparent 65%); filter: blur(10px); pointer-events: none;
  transition: opacity .5s ease; opacity: .7;
}
.shot.is-hover .shot__glow { opacity: 1; }
.shot figcaption { margin-top: 16px; text-align: center; font-size: 12px; color: var(--dim); }

/* ---------- toggle ---------- */
.toggle { position: relative; width: 26px; height: 13px; border-radius: 12px; background: rgba(8,8,14,.6); border: 1px solid #2c2c31; }
.toggle::after { content: ""; position: absolute; top: 1px; left: 1px; width: 9px; height: 9px; border-radius: 50%; background: #777; transition: .25s; }
.toggle.is-on { background: rgba(240,240,240,.7); }
.toggle.is-on::after { left: 14px; background: #0a0a0a; }

/* ---------- stats ---------- */
.stats { padding: 40px 0 30px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px 12px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.stat span { font-size: 13px; color: var(--muted); }

/* ---------- modules ---------- */
.modules, .start, .faq { padding: 90px 0; }
.section-head { max-width: 640px; margin: 0 auto 50px; text-align: center; }
.section-head--left { text-align: left; margin: 0; }
.section-head p { color: var(--muted); font-size: 16px; }
.tabs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tabcard { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); transition: border-color .25s, transform .25s, background .25s; }
.tabcard:hover { border-color: #3a3a42; background: #0e0e11; transform: translateY(-3px); }
.tabcard__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tabcard__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); background: #121215; }
.tabcard__icon svg { width: 16px; height: 16px; }
.tabcard h3 { font-size: 16px; font-weight: 700; }
.tabcard__count { margin-left: auto; font-size: 11px; color: var(--dim); }
.tabcard ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.tabcard li { font-size: 12px; color: #bdbdc4; padding: 3px 9px; border-radius: 6px; background: #141418; border: 1px solid #1f1f24; }

/* ---------- start ---------- */
.steps { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; }
/* grid/flex children may shrink below the long loader line */
.steps > *, .faq__wrap > *, .code code { min-width: 0; }
.step { position: relative; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.step__n { font: 600 12px var(--mono); color: var(--dim); }
.step h3 { margin: 10px 0 6px; font-size: 18px; }
.step p { color: var(--muted); font-size: 14px; }
.code { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 12px 12px 16px; border: 1px solid var(--line-2); border-radius: 10px; background: #08080a; }
.code code { flex: 1; font: 12px var(--mono); color: #dcdce2; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.code code::-webkit-scrollbar { display: none; }
.code__copy { flex-shrink: 0; height: 30px; padding: 0 12px; border-radius: 7px; background: var(--text); color: #0a0a0c; font-size: 12px; font-weight: 700; }


/* ---------- faq ---------- */
.faq__wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; align-items: start; }
.faq__list { display: grid; gap: 10px; }
.qa { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); overflow: hidden; }
.qa button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 20px; text-align: left; font-size: 15px; font-weight: 600; }
.qa button span { flex-shrink: 0; width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; font-size: 14px; color: var(--muted); transition: transform .25s; }
.qa.is-open button span { transform: rotate(45deg); }
.qa__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.qa.is-open .qa__body { grid-template-rows: 1fr; }
.qa__body > div { overflow: hidden; }
.qa__body p { padding: 0 20px 20px; color: var(--muted); font-size: 14px; }

/* ---------- cta / footer ---------- */
.cta { padding: 40px 0 100px; }
.cta__box {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 70px 24px; border: 1px solid var(--line); border-radius: 26px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.08), transparent 60%), var(--bg-2);
}
.cta__logo { width: 56px; height: 56px; object-fit: contain; margin-bottom: 18px; }
.cta p { color: var(--muted); margin-bottom: 26px; }
.footer { border-top: 1px solid var(--line); padding: 30px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer p { font-size: 12px; color: var(--dim); }

/* ---------- toast / reveal ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 100;
  padding: 11px 18px; border-radius: 999px; background: var(--text); color: #0a0a0c; font-size: 13px; font-weight: 600;
  transform: translate(-50%, 30px); opacity: 0; pointer-events: none; transition: .3s cubic-bezier(.2,.8,.2,1);
}
.toast.is-show { transform: translate(-50%, 0); opacity: 1; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .tabs-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav__links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 24px 16px; background: rgba(5,5,6,.96); border-bottom: 1px solid var(--line); }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav__burger { display: flex; }
  .nav__actions .btn--ghost { display: none; }
  .hero { padding-top: 120px; }
  .hero__sub { font-size: 16px; }
  .shot img, .shot__tilt, .shot__glare, .shot__edge { border-radius: 14px; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat b { font-size: 26px; }
  .tabs-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- features: text + screenshot rows ---------- */
.plain { padding: 100px 0 60px; }
.plain__title { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 36px; }
.plain__row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 48px 0; border-top: 1px solid var(--line); }
.plain__row:last-child { border-bottom: 1px solid var(--line); }
.plain__name { font-size: 22px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 14px; }
.plain__name span { display: block; margin-bottom: 6px; font: 500 12px var(--mono); color: var(--dim); }
.plain__body p { max-width: 520px; color: #c4c4cb; font-size: 16px; }
.plain__body .plain__list { margin-top: 14px; color: var(--dim); font-size: 14px; }

/* screenshots sit at their real size on a quiet panel so they stay sharp */
/* the frame hugs each screenshot instead of a fixed box */
.plain__media {
  justify-self: center; width: fit-content; max-width: 100%; padding: 10px;
  border: 1px solid var(--line); border-radius: 18px; background: #0a0a0c;
}
.plain__media img { display: block; max-width: 100%; height: auto; border-radius: 10px; }

/* phone preview (mobile row) */
.phone { width: 500px; height: 270px; padding: 10px; border: 1px solid #2c2c31; border-radius: 40px; background: #0c0c0e; }
.phone__screen { position: relative; height: 100%; border-radius: 31px; overflow: hidden; background: radial-gradient(circle at 30% 20%, #1b1b20, #08080a 70%); }
.float-btn { position: absolute; right: 16px; top: 96px; display: flex; align-items: center; gap: 12px; width: 140px; height: 46px; padding: 0 14px; border: 1px solid #f2f2f5; border-radius: 12px; background: #0c0c0e; }
.float-btn--2 { top: 40px; border-color: #2e2e34; }
.float-btn small { display: block; font-size: 8px; font-weight: 700; color: #8c8c96; letter-spacing: .04em; }
.float-btn b { display: block; font-size: 15px; font-weight: 900; line-height: 1.1; }
.float-btn__dot { width: 10px; height: 10px; border-radius: 50%; background: #46464c; }
.float-btn__dot.is-on { background: #f5f5fa; }
.curve-win { position: absolute; left: 16px; top: 12px; width: 156px; border: 1px solid #2e2e34; border-radius: 12px; background: #0c0c0e; overflow: hidden; }
.curve-win__head { display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px 0 12px; background: #141417; border-bottom: 1px solid #26262b; font-size: 10px; font-weight: 900; }
.curve-win__head i { width: 2px; height: 12px; background: #fff; }
.curve-win__head span { margin-left: auto; color: #8c8c96; }
.curve-win__list { display: grid; gap: 3px; padding: 6px; }
.curve-item { display: flex; align-items: center; gap: 9px; height: 21px; padding: 0 10px; border: 1px solid #28282d; border-radius: 6px; background: #141417; font-size: 10px; color: var(--muted); }
.curve-item i { width: 5px; height: 5px; border-radius: 50%; background: #46464d; }
.curve-item.is-active { border-color: #e8e8ec; color: #fff; font-weight: 700; }
.curve-item.is-active i { background: #fff; }

@media (max-width: 900px) {
  .plain__row { grid-template-columns: 1fr; gap: 28px; padding: 36px 0; }
}
@media (max-width: 560px) {
  .phone { transform: scale(.62); transform-origin: top left; margin: 0 -190px -102px 0; }
}

.section-head h2, .cta h2 { font-size: 32px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 10px; }

/* wavy underline under the hero title — draws in once, then stays */
.squiggle { position: relative; display: inline-block; }
.squiggle__svg {
  position: absolute; left: 0; right: 0; bottom: -.12em; width: 100%; height: .2em; overflow: hidden;
}
.squiggle__svg path {
  fill: none; stroke: #f4f4f6; stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 1100; stroke-dashoffset: 1100;
  vector-effect: non-scaling-stroke;
  animation: squiggleDraw 1.4s cubic-bezier(.6,0,.2,1) .5s forwards;
}
@keyframes squiggleDraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .squiggle__svg path { stroke-dashoffset: 0; } }

/* border beam: a light that travels around the Copy script button */
@property --beam { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.btn--beam { position: relative; isolation: isolate; }
.btn--beam::before {
  content: ""; position: absolute; inset: -5px; z-index: -1; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--beam), transparent 0 62%, rgba(255,255,255,.15) 72%, #fff 86%, rgba(255,255,255,.15) 94%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: beamSpin 2.8s linear infinite;
}
.btn--beam::after {
  content: ""; position: absolute; inset: -6px; z-index: -2; border-radius: inherit;
  background: conic-gradient(from var(--beam), transparent 0 68%, rgba(255,255,255,.7) 86%, transparent 100%);
  filter: blur(12px); opacity: .75;
  animation: beamSpin 2.8s linear infinite;
}
@keyframes beamSpin { to { --beam: 360deg; } }

/* ---------- partner page ---------- */
.nav__links a.is-current { color: var(--text); }
.partners { padding: 150px 0 110px; min-height: calc(100vh - 90px); }
.partners__head { margin-bottom: 40px; }
.partners__head h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.partners__head p { margin-top: 12px; color: var(--muted); font-size: 17px; }
.partner {
  display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center;
  padding: 36px; border: 1px solid var(--line); border-radius: 22px;
  background: radial-gradient(ellipse 60% 120% at 0% 50%, rgba(255,255,255,.05), transparent 70%), var(--bg-2);
}
.partner__logo {
  width: 152px; height: 152px; display: grid; place-items: center; padding: 16px;
  border: 1px solid var(--line-2); border-radius: 22px; background: #08080a;
}
.partner__logo img { width: 120px; height: 120px; object-fit: contain; border-radius: 14px; }
.partner__tag {
  display: inline-block; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.partner__info h2 { margin: 12px 0 8px; font-size: 32px; font-weight: 800; letter-spacing: -.03em; }
.partner__info p { color: var(--muted); font-size: 16px; }
.partner__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.partner__invite { margin-top: 0; min-width: 0; }
.partners__note { margin-top: 28px; font-size: 14px; color: var(--dim); }
.partners__note a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 720px) {
  .partners { padding-top: 120px; }
  .partner { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .partner__logo { width: 120px; height: 120px; }
  .partner__logo img { width: 92px; height: 92px; }
}
