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

:root {
  --cream-base: #f7f2e7;
  --cream-light: #fcf9f2;
  --cream-warm: #efe7d6;
  --ink: #111214;
  --muted: #52565e;
  --border: rgba(17, 18, 20, 0.11);
  --purple: #9d4edd;
  --orange: #ff6a00;
  --aws-amber: #ff9900;
  --green: #6eeb7b;
  --yellow: #f7c644;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Inter", "SF Pro Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 153, 0, 0.08) 0%, transparent 42%),
    radial-gradient(circle at 86% 24%, rgba(157, 78, 221, 0.08) 0%, transparent 44%),
    radial-gradient(circle at 72% 84%, rgba(110, 235, 123, 0.07) 0%, transparent 38%),
    linear-gradient(150deg, var(--cream-light) 0%, var(--cream-base) 55%, var(--cream-warm) 100%);
}

/* Subtle Ambient Background Depth */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(17, 18, 20, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 50% 45%, black 35%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, black 35%, transparent 82%);
}

.bg-curves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bg-shape {
  position: absolute;
  border-radius: 24px;
  opacity: 0.45;
}

.bg-shape-1 {
  width: 340px;
  height: 340px;
  top: -120px;
  right: -90px;
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.09), transparent 70%);
  transform: rotate(18deg);
}

.bg-shape-2 {
  width: 280px;
  height: 280px;
  bottom: -100px;
  left: -80px;
  background: linear-gradient(45deg, rgba(255, 106, 0, 0.08), transparent 70%);
  transform: rotate(-12deg);
}

/* Page Shell */
.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-width: 1220px;
  margin: 0 auto;
  padding: 24px 32px 40px;
  display: flex;
  flex-direction: column;
}

/* Minimal Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 16px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.aws-logo {
  display: block;
  width: 62px;
  height: auto;
}

.header-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
}

.meta-event {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.meta-location {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.accent-colon {
  color: var(--purple);
}

/* Main Single-Page Stage */
.stage {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 64px;
  padding: 20px 0 16px;
}

.left-panel {
  position: relative;
  min-width: 0;
}

.panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: panelReveal 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.panel[hidden] {
  display: none;
}

@keyframes panelReveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Editorial Hero Typography */
.hero-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
}

.title-kicker {
  font-size: clamp(1.35rem, 2.5vw, 2.05rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 4px;
}

.title-main {
  font-size: clamp(3.6rem, 7.6vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.accent-rule {
  width: 190px;
  height: 4px;
  margin: 28px 0 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple) 0%, #e03e8c 48%, var(--orange) 80%, var(--yellow) 100%);
}

.accent-rule-sm {
  width: 120px;
  margin: 16px 0 26px;
}

.hero-subtitle {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.hero-text {
  margin: 0 0 34px;
  max-width: 430px;
  font-size: 1.04rem;
  line-height: 1.55;
  color: var(--muted);
}

.cta-row {
  display: flex;
  align-items: center;
}

/* Buttons */
.btn {
  appearance: none;
  border: none;
  border-radius: 10px;
  padding: 15px 28px;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-cta {
  background-color: var(--ink);
  color: #ffffff;
  padding: 18px 34px;
  font-size: 0.98rem;
  box-shadow: 0 14px 32px rgba(17, 18, 20, 0.18);
}

.btn-cta:hover {
  background-color: #25282d;
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(17, 18, 20, 0.24);
}

.btn-cta .cta-arrow {
  transition: transform 0.18s ease;
}

.btn-cta:hover .cta-arrow {
  transform: translateX(4px);
}

.btn-success {
  background-color: var(--aws-amber);
  color: var(--ink);
  padding: 18px 34px;
  font-size: 0.98rem;
  box-shadow: 0 12px 28px rgba(255, 153, 0, 0.28);
}

.btn-success:hover {
  background-color: #ed8e00;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 10px 4px;
  font-size: 0.9rem;
  letter-spacing: 0;
  justify-content: flex-start;
}

.btn-ghost:hover {
  color: var(--ink);
}

/* In-Place Creator Controls */
.back-link {
  appearance: none;
  background: none;
  border: none;
  padding: 4px 0;
  margin-bottom: 18px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.back-link:hover {
  color: var(--ink);
}

.creator-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

.creator-actions {
  width: 100%;
  max-width: 360px;
}

.creator-actions .btn,
.action-stack .btn-cta,
.action-stack .btn-success {
  width: 100%;
}

.adjust-controls {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: panelReveal 0.24s ease-out;
}

.adjust-controls[hidden] {
  display: none;
}

.hint {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
}

.zoom-control {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 700;
}

.zoom-control input[type="range"] {
  flex: 1;
  accent-color: var(--ink);
  cursor: pointer;
}

.zoom-value {
  min-width: 48px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.action-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.error-msg {
  margin: 14px 0 0;
  color: #b91c1c;
  font-size: 0.9rem;
}

/* RIGHT COLUMN: Physical Event Badge */
.right-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 26px;
}

.badge-physical {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 430px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 34px 70px rgba(17, 18, 20, 0.18),
    0 10px 24px rgba(17, 18, 20, 0.08),
    0 0 0 1px rgba(17, 18, 20, 0.05);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.badge-physical:hover {
  transform: translateY(-3px);
}

#badgeCanvas {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  user-select: none;
}

/* Geometric accents around the badge */
.geo {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.geo-purple-box {
  top: 8px;
  right: 8px;
  width: 48px;
  height: 48px;
  background: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
}

.geo-inner-bar {
  width: 22px;
  height: 7px;
  border-radius: 999px;
  background: var(--ink);
  transform: rotate(45deg);
}

.geo-yellow-tri {
  top: -10px;
  right: 64px;
  width: 28px;
  height: 28px;
  background: var(--yellow);
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

.geo-orange-box {
  bottom: 24px;
  left: 4px;
  width: 48px;
  height: 48px;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
}

.geo-dots {
  position: relative;
  width: 24px;
  height: 22px;
}

.geo-dots span {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
}

.geo-dots span:nth-child(1) {
  top: 0;
  left: 7.5px;
}

.geo-dots span:nth-child(2) {
  bottom: 0;
  left: 1px;
}

.geo-dots span:nth-child(3) {
  bottom: 0;
  right: 1px;
}

.geo-green-box {
  bottom: 2px;
  left: 56px;
  width: 26px;
  height: 26px;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.geo-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
}

/* Mobile Responsive */
@media (max-width: 880px) {
  .page-shell {
    padding: 16px 20px 32px;
  }

  .site-header {
    padding: 2px 0 12px;
  }

  .stage {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 8px 0 12px;
  }

  .right-visual {
    order: -1;
    padding: 10px 14px;
  }

  .badge-physical {
    max-width: 300px;
  }

  .geo-purple-box {
    width: 34px;
    height: 34px;
    top: 4px;
    right: 12px;
  }

  .geo-yellow-tri {
    width: 20px;
    height: 20px;
    top: -6px;
    right: 52px;
  }

  .geo-orange-box {
    width: 34px;
    height: 34px;
    bottom: 12px;
    left: 10px;
  }

  .geo-green-box {
    width: 20px;
    height: 20px;
    bottom: -2px;
    left: 48px;
  }

  .title-main {
    font-size: clamp(3rem, 13vw, 4rem);
  }

  .accent-rule {
    width: 140px;
    margin: 18px 0 16px;
  }

  .hero-text {
    margin-bottom: 24px;
  }

  .cta-row,
  .cta-row .btn-cta,
  .creator-actions,
  .adjust-controls {
    width: 100%;
    max-width: 100%;
  }
}