:root {
  --blue: #0a8fe6;
  --blue-strong: #0597f2;
  --ink: #07111f;
  --midnight: #0b1120;
  --deep: #080d18;
  --panel: #fff;
  --soft: #f4f7fb;
  --line: #e1e8f0;
  --muted: #667489;
  --text: #101828;
  --radius: 14px;

  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--soft);
}

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

button,
input {
  font: inherit;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-cta,
.secondary-cta,
.outline-button,
.nav-pill {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0.04em;
  min-height: 48px;
  padding: 0 28px;
  text-transform: uppercase;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.primary-cta {
  background: linear-gradient(180deg, #34adf7, var(--blue-strong));
  border: 1px solid rgb(255 255 255 / 12%);
  color: #fff;
}

.primary-cta.small {
  border-radius: 10px;
  min-height: 40px;
  padding: 0 18px;
}

.secondary-cta,
.nav-pill {
  border: 1px solid rgb(10 143 230 / 50%);
  color: #fff;
}

.outline-button {
  border: 1px solid var(--line);
  color: var(--ink);
  min-height: 40px;
  padding: 0 18px;
}

.primary-cta:hover,
.secondary-cta:hover,
.outline-button:hover,
.nav-pill:hover {
  transform: translateY(-1px);
}

.full-width {
  display: flex;
  width: 100%;
}

.landing-page {
  background:
    radial-gradient(circle at 25% 58%, rgb(10 143 230 / 28%), transparent 28%),
    linear-gradient(180deg, #070d1a 0%, #0b1120 58%, #f7f9fc 58%);
  min-height: 100vh;
}

.landing-nav {
  align-items: center;
  color: rgb(255 255 255 / 68%);
  display: flex;
  height: 68px;
  justify-content: space-between;
  padding: 0 32px;
}

.wordmark,
.studio-brand {
  color: var(--blue);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 30px;
  font-weight: 700;
}

.hero-section {
  align-items: center;
  color: #fff;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 560px);
  min-height: calc(88vh - 68px);
  padding: 24px max(32px, 10vw) 54px;
}

.hero-copy h1 {
  font-size: clamp(48px, 7vw, 86px);
  letter-spacing: -0.055em;
  line-height: 0.98;
  margin: 0;
  max-width: 760px;
}

.hero-subtitle {
  color: rgb(255 255 255 / 58%);
  font-size: 24px;
  line-height: 1.35;
  margin: 26px 0 34px;
  max-width: 650px;
}

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

.phone-stage {
  display: grid;
  justify-items: center;
  position: relative;
}

.phone-frame {
  max-width: min(380px, 75vw);
  position: relative;
  width: 100%;
  z-index: 2;
}

.phone-screen {
  border-radius: 36px;
  height: 77%;
  left: 50%;
  overflow: hidden;
  position: absolute;
  top: 11%;
  transform: translateX(-50%);
  width: 55%;
  z-index: 1;
}

.phone-screen img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.phone-overlay {
  background: linear-gradient(180deg, transparent, rgb(6 10 19 / 92%));
  bottom: 0;
  left: 0;
  padding: 22px;
  position: absolute;
  right: 0;
}

.phone-overlay h2 {
  font-size: 18px;
  margin: 0 0 14px;
}

.mini-stats,
.stat-pills {
  display: flex;
  gap: 8px;
}

.mini-stats span,
.stat-pills span {
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 10px;
  display: grid;
  min-width: 64px;
  padding: 8px;
  text-align: center;
}

.mini-stats strong,
.stat-pills b {
  display: block;
  font-size: 20px;
}

.feature-section,
.pricing-section {
  background: #f7f9fc;
  padding: 86px max(24px, 8vw);
}

.section-heading {
  margin: 0 auto 28px;
  max-width: 880px;
  text-align: center;
}

.section-heading h2,
.pricing-panel h2 {
  color: var(--ink);
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
}

.feature-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.1fr 1fr 0.9fr;
}

.feature-card {
  border-radius: 18px;
  min-height: 280px;
  overflow: hidden;
  padding: 28px;
}

.feature-kicker {
  color: var(--blue);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.feature-card h3 {
  font-size: 30px;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 12px;
}

.feature-card p,
.pricing-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.light-card {
  background: #fff;
  border: 1px solid var(--line);
}

.dark-card {
  background:
    radial-gradient(
      circle at top right,
      rgb(10 143 230 / 30%),
      transparent 36%
    ),
    var(--midnight);
  color: #fff;
}

.dark-card p {
  color: rgb(255 255 255 / 65%);
}

.image-card {
  align-content: end;
  color: #fff;
  display: grid;
  padding: 0;
  position: relative;
}

.image-card img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.image-card::after {
  background: linear-gradient(180deg, transparent, rgb(5 10 18 / 90%));
  content: "";
  inset: 0;
  position: absolute;
}

.image-card div {
  padding: 28px;
  position: relative;
  z-index: 1;
}

.pricing-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  margin: 0 auto;
  max-width: 980px;
  padding: 42px;
  text-align: center;
}

.pricing-panel code {
  background: #eef4fb;
  border-radius: 6px;
  padding: 2px 6px;
}

.auth-page {
  align-items: center;
  background:
    radial-gradient(circle at 34% 46%, rgb(10 143 230 / 28%), transparent 30%),
    linear-gradient(180deg, #070d1a, #0b1120);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
}

.auth-logo img {
  height: 72px;
  margin-bottom: 28px;
}

.auth-card {
  background: rgb(21 31 48 / 76%);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 22px;
  max-width: 520px;
  padding: 42px;
  width: 100%;
}

.auth-card h1 {
  font-size: 34px;
  letter-spacing: -0.04em;
  margin: 0;
  text-align: center;
}

.auth-card > p {
  color: rgb(255 255 255 / 62%);
  margin: 12px 0 28px;
  text-align: center;
}

.google-button {
  background: rgb(11 17 32 / 80%);
  border: 1px solid rgb(255 255 255 / 4%);
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  height: 56px;
  width: 100%;
}

.google-button span {
  color: #32a852;
  font-weight: 900;
  margin-right: 14px;
}

.divider {
  align-items: center;
  color: rgb(255 255 255 / 40%);
  display: flex;
  gap: 18px;
  margin: 28px 0;
}

.divider::before,
.divider::after {
  background: rgb(255 255 255 / 10%);
  content: "";
  flex: 1;
  height: 1px;
}

.auth-card label {
  color: rgb(255 255 255 / 48%);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.auth-card input {
  background: #eaf2ff;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--ink);
  height: 50px;
  padding: 0 14px;
}

.auth-card input:focus {
  border-color: #7be4a8;
  outline: none;
}

.field-row {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.success-line,
.auth-switch {
  color: rgb(255 255 255 / 58%);
}

.success-line::before {
  color: #20d262;
  content: "✓ ";
  font-weight: 900;
}

.auth-switch {
  margin-top: 24px;
}

.auth-switch a {
  color: var(--blue-strong);
  font-weight: 800;
}

.studio-shell {
  background: #f5f8fc;
  min-height: 100vh;
}

.studio-nav {
  align-items: center;
  background: rgb(255 255 255 / 86%);
  border-bottom: 1px solid var(--line);
  display: flex;
  height: 64px;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 5;
}

.studio-tabs {
  background: #edf3f9;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  padding: 4px;
}

.studio-tabs a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  padding: 8px 14px;
}

.studio-tabs .active {
  background: #fff;
  color: var(--ink);
}

.studio-dashboard {
  display: grid;
  gap: 18px;
  grid-template-columns: 360px minmax(420px, 1fr) 300px;
  padding: 20px;
}

.library-panel,
.builder-canvas,
.state-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: calc(100vh - 104px);
  padding: 18px;
}

.panel-heading h1,
.state-panel h2,
.canvas-header h2 {
  letter-spacing: -0.035em;
  margin: 0;
}

.search-input {
  background: #f4f7fb;
  border: 1px solid var(--line);
  border-radius: 10px;
  height: 42px;
  margin: 18px 0 12px;
  padding: 0 12px;
  width: 100%;
}

.search-label span {
  clip: rect(0 0 0 0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow: auto;
}

.filter-row button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
}

.filter-row .active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.exercise-list {
  display: grid;
  gap: 6px;
}

.exercise-row,
.workout-entry {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 12px;
  display: flex;
  gap: 12px;
}

.exercise-row {
  padding: 8px;
}

.exercise-row:hover {
  background: #f3f8fd;
  border-color: #d6eafa;
}

.exercise-row img,
.workout-entry img,
.thumb-fallback {
  border-radius: 9px;
  height: 48px;
  object-fit: cover;
  width: 48px;
}

.thumb-fallback {
  align-items: center;
  background: #eaf2ff;
  color: var(--blue);
  display: flex;
  font-size: 12px;
  font-weight: 900;
  justify-content: center;
}

.exercise-row div,
.entry-main {
  display: grid;
  flex: 1;
  min-width: 0;
}

.exercise-row strong,
.entry-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exercise-row span,
.entry-main span,
.state-list span {
  color: var(--muted);
  font-size: 12px;
}

.canvas-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.workout-stack {
  display: grid;
  gap: 8px;
}

.workout-entry {
  background: #fbfdff;
  border-color: var(--line);
  min-height: 76px;
  padding: 10px 12px;
}

.drag-handle {
  color: #a0adbd;
  font-weight: 900;
  letter-spacing: -0.2em;
}

.stat-pills span {
  background: #fff;
  border-color: var(--line);
  color: var(--muted);
  min-width: 72px;
}

.stat-pills b {
  color: var(--ink);
  font-size: 17px;
}

.drop-zone {
  align-items: center;
  border: 1.5px dashed #c7d8e8;
  border-radius: 12px;
  color: var(--muted);
  display: flex;
  font-size: 14px;
  font-weight: 800;
  height: 86px;
  justify-content: center;
}

.state-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 20px 0;
  padding: 0;
}

.state-list li {
  background: #f6f9fc;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.dark-feature {
  background:
    radial-gradient(
      circle at top right,
      rgb(10 143 230 / 26%),
      transparent 40%
    ),
    var(--midnight);
  border-radius: 16px;
  color: #fff;
  padding: 18px;
}

.dark-feature span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dark-feature p {
  color: rgb(255 255 255 / 68%);
  line-height: 1.55;
}

@media (width <= 1100px) {
  .hero-section,
  .feature-grid,
  .studio-dashboard {
    grid-template-columns: 1fr;
  }

  .library-panel,
  .builder-canvas,
  .state-panel {
    min-height: auto;
  }
}

@media (width <= 720px) {
  .landing-nav,
  .studio-nav,
  .canvas-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    height: auto;
    padding: 18px;
  }

  .nav-links,
  .studio-tabs,
  .field-row,
  .stat-pills {
    flex-wrap: wrap;
  }

  .hero-section {
    padding: 20px 22px 70px;
  }

  .hero-copy h1 {
    font-size: 48px;
  }

  .hero-subtitle {
    font-size: 19px;
  }

  .auth-card,
  .pricing-panel {
    padding: 26px;
  }

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

  .workout-entry {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}
