/* Fidgii — fidgii.com
   Single stylesheet, no build step. Edit and redeploy. */

:root {
  --bg:        #0d0f14;
  --bg-alt:    #12151d;
  --surface:   #181c26;
  --line:      #262b38;
  --text:      #e8eaf0;
  --muted:     #9aa1b4;
  --accent:    #ff5f45;
  --accent-2:  #4ad2c4;
  --accent-3:  #ffc857;

  --radius: 14px;
  --wrap: 1120px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: 640px; }

.sr-only, .skip {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip:focus {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  width: auto; height: auto; clip: auto; margin: 0;
  padding: 10px 16px; background: var(--accent); color: #fff;
  border-radius: 8px; font-weight: 600;
}

/* ---------- Type ---------- */

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; }

h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

p { margin: 0 0 1rem; }

.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: .9rem;
}

.lede    { font-size: 1.15rem; color: var(--muted); max-width: 56ch; }
.section-lede { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }
.micro   { font-size: .875rem; color: var(--muted); }
.note    { font-size: .875rem; color: var(--muted); margin-top: 1.75rem; font-style: italic; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  padding: 13px 26px;
  border-radius: 999px;
  font: inherit; font-weight: 650; font-size: .97rem;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); filter: none; }

.btn-sm { padding: 9px 18px; font-size: .9rem; }

:where(a, button, input):focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 750; font-size: 1.16rem; letter-spacing: -.02em; text-decoration: none;
}
.brand-mark {
  width: 20px; height: 20px; border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset;
}

.nav nav { display: flex; align-items: center; gap: 26px; }
.nav nav a { text-decoration: none; font-size: .94rem; color: var(--muted); transition: color .15s; }
.nav nav a:hover { color: var(--text); }
.nav nav a.btn { color: #fff; }

@media (max-width: 720px) {
  .nav nav a:not(.btn) { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(56px, 9vw, 110px) 0 clamp(60px, 10vw, 120px);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: -40% 30% 40% -20%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 20%, transparent), transparent);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 56px; align-items: center;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.9rem 0 .9rem; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { order: -1; }
}

/* ---------- CSS cube ---------- */

.cube-stage {
  display: grid; place-items: center;
  perspective: 1000px;
  min-height: 340px;
}
.cube {
  position: relative;
  width: 190px; height: 190px;
  transform-style: preserve-3d;
  animation: tumble 22s linear infinite;
}
@keyframes tumble {
  from { transform: rotateX(-22deg) rotateY(0deg); }
  to   { transform: rotateX(-22deg) rotateY(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .cube { animation: none; transform: rotateX(-22deg) rotateY(-28deg); }
}

.face {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(150deg, #232837, #171b25);
  border: 1px solid #333a4d;
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}
.face-front  { transform: translateZ(95px); }
.face-back   { transform: rotateY(180deg) translateZ(95px); }
.face-right  { transform: rotateY(90deg)  translateZ(95px); }
.face-left   { transform: rotateY(-90deg) translateZ(95px); }
.face-top    { transform: rotateX(90deg)  translateZ(95px); }
.face-bottom { transform: rotateX(-90deg) translateZ(95px); }

/* five buttons */
.face-front { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 30px; gap: 6px; }
.dot {
  /* Explicit size required — the parent centers items, so they'd collapse to 0. */
  width: 34px; height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #6c7488, #3b4256);
  box-shadow: 0 2px 4px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.14);
}
.dot:nth-child(1) { grid-area: 1 / 2; }
.dot:nth-child(2) { grid-area: 2 / 1; }
.dot:nth-child(3) {
  grid-area: 2 / 2; width: 40px; height: 40px;
  background: radial-gradient(circle at 35% 30%, var(--accent), #b83a26);
}
.dot:nth-child(4) { grid-area: 2 / 3; }
.dot:nth-child(5) { grid-area: 3 / 2; }

.rocker {
  width: 108px; height: 44px; border-radius: 10px;
  background: linear-gradient(180deg, #4b5468 0 50%, #2c323f 50% 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 3px 6px rgba(0,0,0,.45);
}
.dial {
  width: 96px; height: 96px; border-radius: 50%;
  background: repeating-conic-gradient(#454c62 0 12deg, #2f3542 12deg 24deg);
  box-shadow: inset 0 0 0 6px #232837, 0 3px 8px rgba(0,0,0,.5);
}
.stick {
  width: 62px; height: 62px; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #5c6478, #2b3140);
  box-shadow: 0 0 0 12px #1e2330, 0 6px 14px rgba(0,0,0,.55), inset 0 2px 4px rgba(255,255,255,.12);
}
.wheel {
  width: 104px; height: 104px; border-radius: 50%;
  background: conic-gradient(var(--accent-2) 0 25%, #2b3140 0 50%, var(--accent-2) 0 75%, #2b3140 0);
  box-shadow: inset 0 0 0 10px #1e2330, 0 3px 8px rgba(0,0,0,.5);
  animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wheel { animation: none; } }

.slider {
  width: 112px; height: 30px; border-radius: 999px;
  background: #1e2330;
  box-shadow: inset 0 2px 5px rgba(0,0,0,.6);
  position: relative;
}
.slider::after {
  content: ""; position: absolute; top: 3px; left: 4px;
  width: 40px; height: 24px; border-radius: 999px;
  background: linear-gradient(180deg, #5b6478, #333a4a);
}

.cube-shadow {
  width: 200px; height: 26px; margin-top: 26px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent);
  filter: blur(3px);
}

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.grid {
  list-style: none; margin: 2.75rem 0 0; padding: 0;
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-2px); }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }
.card-icon {
  display: grid; place-items: center;
  width: 38px; height: 38px; margin-bottom: 14px;
  border-radius: 10px; font-size: 1rem;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
}

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 44px; } }

.checks { list-style: none; margin: 1.75rem 0 0; padding: 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: .7rem; color: var(--muted); }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent-2); font-weight: 700;
}

/* ---------- Phone mock ---------- */

.phone {
  justify-self: center;
  width: 268px; padding: 14px;
  background: #05070b;
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
}
.phone-screen {
  background: linear-gradient(170deg, #151a26, #0d111a);
  border-radius: 24px; padding: 26px 20px;
}
.stat { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.stat-label { font-size: .78rem; color: var(--muted); }
.stat-num { font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.bar { height: 6px; border-radius: 999px; background: #232837; margin: 8px 0 20px; overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-3)); }
.sync { font-size: .74rem; color: var(--accent-2); text-align: center; margin-top: 6px; }

/* ---------- Specs ---------- */

.specs {
  margin: 2.5rem 0 0;
  display: grid; gap: 0;
  /* min() keeps the track floor from exceeding a narrow viewport and forcing overflow. */
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  column-gap: 48px;
  border-top: 1px solid var(--line);
}
.specs > div {
  display: flex; gap: 20px; align-items: baseline;
  padding: 18px 4px; border-bottom: 1px solid var(--line);
}
.specs dt { flex: 0 0 140px; font-weight: 650; font-size: .95rem; }
.specs dd { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Signup ---------- */

.section-cta { text-align: center; background: var(--bg-alt); border-top: 1px solid var(--line); }
.section-cta .section-lede { margin-inline: auto; }

.signup {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center; margin: 2rem 0 .75rem;
}
.signup input {
  flex: 1 1 300px; max-width: 360px;
  padding: 13px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text); font: inherit; font-size: .97rem;
}
.signup input::placeholder { color: #6f778c; }
.signup input:focus { border-color: var(--accent-2); }

.form-msg { min-height: 1.5rem; font-size: .92rem; margin: 0 0 .5rem; }
.form-msg.is-ok { color: var(--accent-2); }
.form-msg.is-error { color: var(--accent); }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--line); padding: 48px 0 32px; }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 28px;
  justify-content: space-between; align-items: flex-start;
  padding-bottom: 26px; margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.footer-inner .micro { margin: 10px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { font-size: .93rem; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.copyright { margin: 0; }
