body {
  background:
    radial-gradient(circle at 20% 0%, rgba(22, 72, 143, 0.46), transparent 36rem),
    linear-gradient(135deg, var(--color-navy), var(--color-ink) 52%, #020B17);
  color: var(--color-white);
  font-family: var(--font-body);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 72%);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  background: var(--color-yellow);
  color: var(--color-ink);
  border-radius: var(--radius-xs);
  padding: 10px 14px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--color-line);
  background: rgba(6, 27, 52, 0.78);
  backdrop-filter: blur(18px);
}

.header-shell,
.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-height);
}

.brand,
.footer-logo,
.brand-logo {
  display: inline-flex;
  align-items: center;
}

.brand-logo,
.footer-logo {
  min-width: 168px;
  min-height: 48px;
}

[data-logo-img] {
  max-height: 54px;
  object-fit: contain;
}

.logo-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  min-height: 46px;
  border: 1px dashed rgba(252, 222, 7, 0.5);
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.logo-missing [data-logo-img] {
  display: none;
}

.logo-missing .logo-fallback {
  display: inline-flex;
}

.button {
  min-height: 44px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.format-card:focus-visible,
.template-card:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(252, 222, 7, 0.95);
  outline-offset: 3px;
}

.button-primary {
  background: var(--color-yellow);
  color: var(--color-ink);
  box-shadow: 0 12px 30px rgba(252, 222, 7, 0.22);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.button-ghost {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.button-large {
  min-height: 54px;
  padding-inline: 24px;
}

.section-band {
  position: relative;
}

.hero {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.98fr);
  gap: 52px;
  align-items: center;
  padding-block: 72px 56px;
}

.eyebrow {
  color: var(--color-yellow);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-title);
  line-height: 1;
  letter-spacing: 0;
}

h1 {
  max-width: 770px;
  margin-top: 14px;
  font-size: clamp(3.1rem, 8vw, 6.6rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.7rem);
}

h3 {
  font-size: clamp(1.45rem, 4vw, 2.25rem);
}

.hero-subtitle {
  max-width: 560px;
  margin-top: 18px;
  color: #DDE8F7;
  font-size: clamp(1.12rem, 3vw, 1.55rem);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
}

.hero-actions p {
  max-width: 230px;
  color: var(--color-muted);
  font-weight: 600;
}

.hero-preview {
  position: relative;
  min-height: 590px;
}

.mock-phone {
  position: absolute;
  inset: 38px 12% auto auto;
  width: min(310px, 72vw);
  aspect-ratio: 9 / 16;
  border: 10px solid rgba(255, 255, 255, 0.12);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.mock-art {
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, #0B2C58, #061B34 58%, #123E78);
  overflow: hidden;
}

.mock-photo {
  position: absolute;
  left: 13%;
  right: 13%;
  top: 14%;
  bottom: 25%;
  border-radius: 999px 999px 26px 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 38%),
    linear-gradient(135deg, #D7E3F3, #849BB9);
}

.mock-stripe {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 15%;
  height: 90px;
  background: var(--color-yellow);
  transform: rotate(-5deg);
}

.mock-number {
  position: absolute;
  right: 20px;
  bottom: 28px;
  color: var(--color-white);
  font-family: var(--font-title);
  font-size: 3.35rem;
  font-weight: 900;
}

.floating-card {
  position: absolute;
  z-index: 2;
  width: 172px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 18px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-tight);
  backdrop-filter: blur(16px);
  animation: floatCard 6s ease-in-out infinite;
}

.floating-card span,
.floating-card strong {
  display: block;
}

.floating-card span {
  color: #CAD8EC;
  font-weight: 700;
}

.floating-card strong {
  margin-top: 30px;
  color: var(--color-yellow);
  font-family: var(--font-title);
  font-size: 1.35rem;
}

.card-profile {
  left: 4%;
  top: 18%;
  --rotate: -4deg;
}

.card-feed {
  right: 0;
  top: 54%;
  --rotate: 3deg;
}

.card-stories {
  left: 12%;
  bottom: 7%;
  --rotate: 4deg;
}

.creator {
  padding-block: 38px 72px;
}

.creator-shell {
  display: grid;
  gap: 24px;
}

.section-heading {
  display: grid;
  gap: 12px;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  list-style: none;
  padding: 0;
}

.stepper-item {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: #C9D7EA;
  font-size: 0.86rem;
  font-weight: 900;
}

.stepper-item.is-active {
  background: var(--color-yellow);
  color: var(--color-ink);
}

.creator-panel {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.workflow-step {
  display: none;
}

.workflow-step.is-active {
  display: grid;
  gap: 24px;
}

.step-copy {
  display: grid;
  gap: 8px;
}

.step-copy p {
  color: #D1DDED;
  font-weight: 600;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.format-card,
.template-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
  color: var(--color-white);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.format-card:hover,
.template-card:hover {
  transform: translateY(-2px);
  border-color: rgba(252, 222, 7, 0.58);
  background: rgba(255, 255, 255, 0.1);
}

.format-card.is-selected,
.template-card.is-selected {
  border-color: var(--color-yellow);
  box-shadow: inset 0 0 0 1px rgba(252, 222, 7, 0.55);
}

.format-card {
  min-height: 230px;
  display: grid;
  gap: 18px;
  padding: 20px;
}

.format-shape {
  width: 82px;
  background: linear-gradient(145deg, var(--color-blue), var(--color-navy));
  border: 2px solid var(--color-yellow);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 -18px 0 rgba(252, 222, 7, 0.9);
}

.format-shape.profile {
  aspect-ratio: 1 / 1;
}

.format-shape.feed {
  aspect-ratio: 4 / 5;
}

.format-shape.stories {
  aspect-ratio: 9 / 16;
}

.format-card h4,
.template-card h4 {
  color: var(--color-white);
  font-size: 1.08rem;
  font-weight: 900;
}

.format-card p,
.template-card p {
  color: #C6D5EA;
  font-weight: 600;
}

.format-card .size {
  color: var(--color-yellow);
  font-weight: 900;
}

.template-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.template-card {
  overflow: hidden;
  padding: 0;
}

.template-card canvas {
  width: 100%;
  aspect-ratio: var(--thumb-ratio, 1 / 1);
  background: #0B2448;
}

.template-card div {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.step-actions,
.result-actions,
.control-buttons,
.photo-actions,
.camera-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.privacy-note,
.privacy-footer {
  color: #D5E1F0;
}

.photo-layout {
  display: grid;
  gap: 20px;
}

.camera-box {
  display: grid;
  gap: 14px;
}

.camera-box[hidden] {
  display: none;
}

.camera-box video {
  width: min(680px, 100%);
  max-height: 62vh;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  background: #020B17;
  object-fit: cover;
}

.camera-message {
  color: var(--color-yellow);
  font-weight: 800;
}

.editor-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.editor-format {
  border-radius: var(--radius-sm);
  background: rgba(252, 222, 7, 0.14);
  color: var(--color-yellow);
  padding: 9px 12px;
  font-weight: 900;
}

.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}

.canvas-stage {
  min-height: 340px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    #031124;
  padding: 14px;
}

[data-editor-canvas] {
  width: auto;
  max-width: 100%;
  max-height: 72vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
  touch-action: none;
  user-select: none;
}

.controls-panel {
  display: grid;
  gap: 16px;
}

.control-field {
  display: grid;
  gap: 8px;
  color: #E5EEF9;
  font-weight: 900;
}

.control-field input {
  width: 100%;
  accent-color: var(--color-yellow);
}

.result-step {
  justify-items: center;
  text-align: center;
}

.result-preview {
  width: min(520px, 100%);
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  padding: 12px;
}

.result-preview img {
  max-height: 70vh;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-tight);
}

.site-footer {
  border-top: 1px solid var(--color-line);
  padding-block: 24px;
  background: #041122;
}

.footer-shell {
  align-items: flex-start;
}

.footer-shell p {
  color: #D8E4F3;
  font-weight: 700;
}

.legal-placeholder {
  margin-top: 8px;
  color: var(--color-muted) !important;
  font-size: 0.9rem;
}

.privacy-footer {
  width: var(--shell);
  margin: 14px auto 0;
  font-size: 0.9rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}
