:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #05060d;
  color: #e5e7eb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.16), transparent 22%),
              radial-gradient(circle at 20% 10%, rgba(94, 234, 212, 0.12), transparent 18%),
              #05060d;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(255,255,255,0.02), transparent 40%),
                    radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.15), transparent 12%);
  pointer-events: none;
}

.lock-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(2, 6, 23, 0.74);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 1000;
}

body:not(.locked) .lock-screen {
  display: none;
}

.lock-screen.is-hidden {
  display: none;
}

.lock-card {
  width: min(100%, 24rem);
  padding: 2rem;
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.24);
  box-shadow: 0 20px 70px rgba(2, 8, 23, 0.45);
  text-align: center;
}

.lock-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #38bdf8;
}

.lock-card h2 {
  margin: 0 0 0.6rem;
  font-size: 1.7rem;
  color: #f8fafc;
}

.lock-card p {
  margin: 0 0 1rem;
  color: #cbd5e1;
}

.lock-card input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 0.85rem;
  background: rgba(2, 6, 23, 0.65);
  color: #f8fafc;
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.lock-card button {
  width: 100%;
  padding: 0.9rem 1rem;
  border: none;
  border-radius: 0.85rem;
  background: #38bdf8;
  color: #020617;
  font-weight: 700;
  cursor: pointer;
}

.lock-card button:hover {
  background: #22d3ee;
}

.lock-error {
  min-height: 1.2rem;
  margin-top: 0.85rem;
  color: #fda4af;
}

body.locked {
  overflow: hidden;
}

body.locked .page-shell {
  filter: blur(20px) saturate(0.7);
  transform: scale(1.01);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

body:not(.locked) .page-shell {
  filter: none;
  transform: none;
}

.container {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-shell {
  min-height: 100vh;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1.5rem 1rem;
  text-align: center;
}

.page-header .container {
  display: flex;
  justify-content: center;
}

.header-grid {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
}

.hero-copy {
  max-width: 62rem;
  width: 100%;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #38bdf8;
}

h1 {
  margin: 0;
  font-size: clamp(2.8rem, 4vw, 4.8rem);
  line-height: 1.01;
  letter-spacing: -0.05em;
  color: #f8fafc;
}

.intro {
  margin: 1.5rem auto 0;
  max-width: 44rem;
  font-size: 1.05rem;
  line-height: 1.9;
  color: #cbd5e1;
  text-align: center;
}

.hero-panel {
  display: grid;
  gap: 1rem;
}

.hero-label {
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.hero-card {
  padding: 1.75rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 1.5rem;
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 80px rgba(15, 23, 42, 0.4);
}

.hero-card p {
  margin: 0 0 1rem;
  color: #94a3b8;
}

.hero-box {
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.55));
  color: #e2e8f0;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}

.main-content {
  padding-bottom: 4rem;
  display: grid;
  gap: 3rem;
}

.widget-section {
  display: grid;
  grid-template-rows: auto 1fr;
  width: 100%;
  min-height: calc(100vh - 170px);
  align-items: stretch;
  justify-items: stretch;
  text-align: center;
  padding: 1rem 0 0;
}

.widget-header {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  max-width: 840px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem 1rem;
}

.widget-header > div {
  width: 100%;
  text-align: center;
}

.widget-header span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(59, 130, 246, 0.1));
  color: #7dd3fc;
  font-weight: 700;
}

.widget-header h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  color: #f8fafc;
}

.widget-header p {
  margin: 0;
  color: #94a3b8;
}

.iframe-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
  border: none;
  max-width: 100%;
}

.iframe-wrapper iframe {
  width: 100%;
  min-height: calc(60vh);
  height: auto;
  border: 0;
  display: block;
}

.copy-panel {
  margin: 2rem auto 0;
  max-width: 680px;
  text-align: center;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.copy-panel p {
  margin: 0 0 1rem;
  color: #e2e8f0;
  font-size: 1rem;
  line-height: 1.8;
}

.copy-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.copy-button {
  appearance: none;
  border: none;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  color: #05060d;
  background: #38bdf8;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.info-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.info-button {
  appearance: none;
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #e0f2fe;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.info-button:hover,
.info-wrapper.is-active .info-button {
  background: rgba(56, 189, 248, 0.22);
  transform: translateY(-1px);
}

.info-tooltip {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 50%;
  transform: translateX(50%);
  min-width: 20rem;
  max-width: 24rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: left;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 2;
}

.info-wrapper:hover .info-tooltip,
.info-wrapper.is-active .info-tooltip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(50%) translateY(0);
}

.info-tooltip::before {
  content: '';
  position: absolute;
  top: -0.55rem;
  right: 1rem;
  width: 0.8rem;
  height: 0.8rem;
  background: rgba(15, 23, 42, 0.96);
  transform: rotate(45deg);
  border-left: 1px solid rgba(56, 189, 248, 0.22);
  border-top: 1px solid rgba(56, 189, 248, 0.22);
}

.copy-button.secondary {
  color: #f8fafc;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.copy-button:hover {
  background: #22d3ee;
  transform: translateY(-1px);
}

.copy-button.secondary:hover {
  background: rgba(34, 211, 238, 0.24);
}

.copy-feedback {
  margin-top: 0.85rem;
  color: #a5f3fc;
  min-height: 1.2rem;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  overflow-y: auto;
}

.footer {
  padding: 2rem 0 3rem;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding-top: 1.5rem;
}

.small-note {
  opacity: 0.9;
}

@media (min-width: 768px) {
  .header-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .design-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .design-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
