:root {
  --bg-0: #070b12;
  --bg-1: #0d1625;
  --bg-2: #13233a;
  --surface-0: rgba(13, 22, 36, 0.83);
  --surface-1: rgba(17, 30, 49, 0.88);
  --surface-2: rgba(23, 39, 62, 0.92);
  --line-soft: rgba(120, 158, 197, 0.27);
  --line-strong: rgba(120, 158, 197, 0.45);
  --text-main: #eef5ff;
  --text-soft: #c5d8ee;
  --text-muted: #94b0ce;
  --text-dim: #7493b5;
  --brand-hot: #f07b23;
  --brand-hot-strong: #ff9644;
  --brand-cool: #48b9ff;
  --brand-cool-strong: #76d3ff;
  --ok: #29c883;
  --danger: #ff5f6d;
  --warn: #f3c04e;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  position: relative;
  overflow-x: hidden;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 18% -4%, rgba(255, 150, 68, 0.2), transparent 36%),
    radial-gradient(circle at 84% -9%, rgba(72, 185, 255, 0.22), transparent 42%),
    radial-gradient(circle at 50% 130%, rgba(35, 89, 138, 0.37), transparent 64%),
    linear-gradient(162deg, var(--bg-0), var(--bg-1) 48%, var(--bg-2));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      -26deg,
      rgba(156, 187, 219, 0.04) 0,
      rgba(156, 187, 219, 0.04) 2px,
      transparent 2px,
      transparent 28px
    );
  mix-blend-mode: screen;
  opacity: 0.6;
}

.shell {
  width: min(1180px, 94vw);
  margin: 0 auto;
  padding: 1.4rem 0 2.5rem;
  display: grid;
  gap: 1rem;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(160deg, rgba(13, 23, 38, 0.93), rgba(18, 33, 54, 0.96));
  box-shadow: 0 22px 56px rgba(2, 7, 14, 0.45);
  padding: 1.15rem 1.15rem 1.25rem;
}

.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(72, 185, 255, 0.18), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -120px;
  left: -160px;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 123, 35, 0.17), transparent 72%);
  pointer-events: none;
}

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

.hero-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  text-decoration: none;
  color: var(--text-main);
  font-family: "Sora", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: lowercase;
}

.brand img {
  width: 34px;
  height: 34px;
}

.eyebrow {
  margin: 0;
  color: var(--brand-cool-strong);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 700;
}

.hero-grid {
  margin-top: 0.86rem;
  display: grid;
  gap: 1rem;
}

.hero-copy h1 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  line-height: 1.12;
  max-width: 20ch;
}

.lead {
  margin: 0.72rem 0 0;
  max-width: 72ch;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.45;
}

.hero-badges {
  margin-top: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.46rem;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(118, 211, 255, 0.42);
  border-radius: 999px;
  background: rgba(17, 33, 54, 0.9);
  color: var(--text-soft);
  padding: 0.28rem 0.62rem;
  font-size: 0.74rem;
  font-weight: 600;
}

.hero-badges span:nth-child(2n) {
  border-color: rgba(255, 150, 68, 0.42);
}

.hero-points {
  margin: 0.82rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.34rem;
  color: var(--text-soft);
  font-size: 0.93rem;
}

.hero-points li {
  position: relative;
  padding-left: 1.25rem;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--brand-hot), var(--brand-cool));
  box-shadow: 0 0 0 3px rgba(29, 50, 76, 0.8);
}

.hero-note {
  margin: 0.56rem 0 0;
  color: var(--text-dim);
  font-size: 0.76rem;
}

.hero-figure {
  margin: 0;
  display: grid;
  gap: 0.44rem;
}

.hero-figure img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(117, 159, 198, 0.36);
  background: #101d2f;
}

.hero-figure figcaption {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.pillars {
  display: grid;
  gap: 0.7rem;
}

.pillar {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: linear-gradient(160deg, var(--surface-0), var(--surface-1));
  padding: 0.85rem 0.86rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pillar h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  color: var(--text-main);
}

.pillar p {
  margin: 0.34rem 0 0;
  color: var(--text-muted);
  font-size: 0.89rem;
  line-height: 1.4;
}

.studio-grid {
  display: grid;
  gap: 1rem;
}

.card {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: linear-gradient(165deg, var(--surface-0), var(--surface-1));
  padding: 0.95rem;
  box-shadow: 0 12px 34px rgba(2, 9, 16, 0.36);
}

.controls-card h2,
.media-card h2,
.notes-card h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  color: var(--text-main);
}

.controls-card h2,
.media-card h2 {
  font-size: 1.16rem;
}

.subline {
  margin: 0.36rem 0 0.7rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.field-row {
  display: grid;
  gap: 0.66rem;
  grid-template-columns: 1fr;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
}

input,
select {
  width: 100%;
  border: 1px solid rgba(110, 149, 188, 0.58);
  border-radius: 11px;
  background: rgba(9, 19, 32, 0.8);
  color: var(--text-main);
  padding: 0.66rem 0.74rem;
  font: inherit;
}

input::placeholder {
  color: rgba(172, 196, 222, 0.62);
}

input:focus,
select:focus {
  outline: 2px solid rgba(118, 211, 255, 0.4);
  border-color: var(--brand-cool);
}

.button-row {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.button-row.compact {
  margin-top: 0.5rem;
}

.btn {
  border: 1px solid rgba(113, 151, 191, 0.6);
  border-radius: 10px;
  background: rgba(17, 32, 52, 0.9);
  color: var(--text-main);
  padding: 0.57rem 0.91rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 130ms ease, border-color 130ms ease, filter 130ms ease;
}

.btn:hover:enabled {
  transform: translateY(-1px);
  border-color: var(--brand-cool);
  filter: brightness(1.06);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn.primary {
  border-color: rgba(255, 150, 68, 0.66);
  background: linear-gradient(145deg, rgba(240, 123, 35, 0.23), rgba(19, 33, 52, 0.9));
}

.btn.utility {
  border-color: rgba(118, 211, 255, 0.62);
  background: linear-gradient(145deg, rgba(72, 185, 255, 0.2), rgba(19, 33, 52, 0.9));
}

.btn.success {
  border-color: rgba(41, 200, 131, 0.68);
  background: linear-gradient(145deg, rgba(41, 200, 131, 0.21), rgba(17, 34, 52, 0.9));
}

.btn.danger {
  border-color: rgba(255, 95, 109, 0.62);
  background: linear-gradient(145deg, rgba(255, 95, 109, 0.2), rgba(18, 32, 53, 0.9));
}

.status {
  margin: 0.76rem 0 0;
  border: 1px solid rgba(112, 149, 188, 0.44);
  border-radius: 10px;
  background: rgba(12, 24, 40, 0.66);
  color: var(--text-soft);
  padding: 0.53rem 0.6rem;
  font-size: 0.88rem;
}

.tos-box {
  margin-top: 0.74rem;
  border: 1px dashed rgba(126, 166, 206, 0.55);
  border-radius: 11px;
  background: rgba(11, 24, 38, 0.65);
  padding: 0.6rem 0.68rem;
}

.tos-label {
  display: flex;
  align-items: center;
  gap: 0.46rem;
  flex-direction: row;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.tos-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--brand-cool);
}

.tos-label a {
  color: var(--brand-cool-strong);
  font-weight: 600;
}

.legal-flag {
  margin: 0.46rem 0 0;
  color: var(--warn);
  font-size: 0.77rem;
}

.share-block {
  margin-top: 0.82rem;
  padding-top: 0.8rem;
  border-top: 1px dashed rgba(121, 160, 199, 0.45);
}

.advanced-options {
  margin-top: 0.82rem;
  border: 1px dashed rgba(126, 166, 206, 0.55);
  border-radius: 11px;
  background: rgba(10, 23, 37, 0.6);
  padding: 0.42rem 0.6rem 0.64rem;
}

.advanced-options summary {
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--brand-cool-strong);
}

.advanced-options[open] summary {
  margin-bottom: 0.52rem;
}

.stats-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.stat {
  border: 1px solid rgba(112, 149, 188, 0.45);
  border-radius: 10px;
  background: rgba(11, 23, 38, 0.72);
  padding: 0.58rem 0.64rem;
  display: grid;
  gap: 0.24rem;
}

.stat .label {
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stat .value {
  color: var(--text-main);
  font-family: "Sora", sans-serif;
  font-size: 1.03rem;
  font-weight: 700;
}

.media-card video {
  width: 100%;
  max-height: 62vh;
  margin-top: 0.62rem;
  border-radius: 12px;
  border: 1px solid rgba(114, 152, 191, 0.5);
  background: #0a1220;
}

.hint,
.note {
  margin: 0.58rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.notes-card h2 {
  font-size: 1.12rem;
  margin-top: 0;
}

.notes-card h2 + p,
.notes-card h2 + ul {
  margin-top: 0.4rem;
}

.notes-card h2:not(:first-child) {
  margin-top: 1rem;
}

.notes-card ul {
  margin: 0.35rem 0 0;
  padding-left: 1.14rem;
  color: var(--text-soft);
}

.notes-card li {
  margin: 0.32rem 0;
}

code {
  border: 1px solid rgba(113, 150, 189, 0.6);
  border-radius: 6px;
  background: rgba(9, 18, 29, 0.9);
  color: var(--brand-cool-strong);
  padding: 0.1rem 0.34rem;
  font-size: 0.84rem;
}

.legal-card {
  padding: 1.02rem 1.04rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-dim);
  font-size: 0.84rem;
  padding: 0.25rem 0 0.4rem;
}

.site-footer a {
  color: var(--brand-cool-strong);
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }

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

  .studio-grid {
    grid-template-columns: 1.12fr 0.88fr;
    align-items: start;
  }

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

  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(1180px, 95vw);
  }

  .hero {
    padding: 0.9rem;
  }

  .hero-copy h1 {
    max-width: none;
  }
}

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

  .hero-badges {
    gap: 0.34rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
