:root {
  --ink: #111513;
  --muted: #66706b;
  --paper: #f5f6f1;
  --white: #ffffff;
  --lime: #d7ff3f;
  --teal: #00b8a9;
  --coral: #f36b4f;
  --line: rgba(17, 21, 19, 0.13);
  --max: min(1120px, calc(100% - 36px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Outfit", sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

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

.demo-shell {
  min-height: 100vh;
}

.demo-header {
  width: var(--max);
  margin: 18px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 12px;
  z-index: 5;
}

.demo-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.demo-logo span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
}

.demo-nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-weight: 800;
}

.demo-cta,
.demo-button,
.demo-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
}

.demo-back {
  background: var(--lime);
  color: var(--ink);
}

.demo-button-light {
  background: var(--white);
  color: var(--ink);
}

.demo-hero {
  width: var(--max);
  margin: 42px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  align-items: stretch;
}

.demo-copy,
.demo-visual,
.demo-card,
.demo-form,
.demo-section {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 22px 70px rgba(17, 21, 19, 0.08);
}

.demo-copy {
  min-height: 560px;
  display: grid;
  align-content: center;
  gap: 24px;
  padding: clamp(28px, 6vw, 70px);
  background:
    radial-gradient(circle at 78% 18%, rgba(215, 255, 63, 0.24), transparent 28%),
    linear-gradient(145deg, #ffffff, #eef2eb);
}

.demo-kicker {
  width: max-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 184, 169, 0.12);
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 820px;
  font-size: clamp(3.1rem, 8vw, 6.7rem);
  line-height: 0.9;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.98;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.demo-copy p {
  max-width: 620px;
  font-size: 1.12rem;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.demo-visual {
  padding: 20px;
  overflow: hidden;
  position: relative;
  background: #111513;
  color: var(--white);
}

.style-shell {
  padding-bottom: 54px;
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 184, 169, 0.16), transparent 26%),
    radial-gradient(circle at 88% 8%, rgba(215, 255, 63, 0.24), transparent 24%),
    var(--paper);
}

.style-hero {
  grid-template-columns: 0.78fr 1.22fr;
}

.style-preview {
  min-height: 640px;
  border: 1px solid rgba(17, 21, 19, 0.2);
  border-radius: 34px;
  overflow: hidden;
  background: #111513;
  box-shadow: 0 28px 80px rgba(17, 21, 19, 0.2);
}

.device-top {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
}

.device-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff7a59;
}

.device-top span:nth-child(2) {
  background: #ffc247;
}

.device-top span:nth-child(3) {
  background: #4bd37b;
}

.device-top b {
  margin-left: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.style-preview iframe {
  width: 100%;
  height: 598px;
  border: 0;
  background: var(--white);
}

.style-list {
  width: var(--max);
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.style-card {
  min-height: 250px;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 52px rgba(17, 21, 19, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.style-card:hover,
.style-card.is-active {
  transform: translateY(-4px);
  border-color: rgba(0, 184, 169, 0.48);
  box-shadow: 0 24px 64px rgba(0, 184, 169, 0.14);
}

.style-card span {
  width: max-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0, 184, 169, 0.1);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.style-card h2 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  letter-spacing: -0.05em;
}

.style-card a {
  align-self: end;
  width: max-content;
  margin-top: 8px;
  color: var(--ink);
  font-weight: 900;
  border-bottom: 2px solid var(--lime);
}

.demo-orb {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(6px);
  opacity: 0.9;
  background: linear-gradient(135deg, var(--lime), var(--teal));
}

.demo-orb.one {
  right: -80px;
  top: 30px;
}

.demo-orb.two {
  left: -80px;
  bottom: 40px;
  background: linear-gradient(135deg, var(--coral), #ffd98b);
}

.demo-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  margin-top: 180px;
}

.demo-pill {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
}

.demo-grid,
.demo-two,
.demo-band {
  width: var(--max);
  margin: 24px auto 0;
  display: grid;
  gap: 18px;
}

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

.demo-two {
  grid-template-columns: 0.9fr 1.1fr;
}

.demo-card,
.demo-section {
  padding: 24px;
}

.demo-card span {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--teal);
  font-weight: 900;
}

.demo-form {
  padding: 24px;
  display: grid;
  gap: 12px;
}

.demo-form input,
.demo-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
}

.demo-form button {
  border: 0;
  cursor: pointer;
}

.demo-band {
  margin-bottom: 54px;
  padding: 28px;
  border-radius: 28px;
  background: var(--ink);
  color: var(--white);
}

.demo-band p {
  color: rgba(255, 255, 255, 0.72);
}

.theme-coral {
  --lime: #ffe16d;
  --teal: #f36b4f;
  --coral: #2937ff;
}

.theme-blue {
  --lime: #b7ffef;
  --teal: #3267ff;
  --coral: #ffb000;
}

.theme-cream {
  --paper: #f3ead9;
  --lime: #ffdc73;
  --teal: #8f5f3d;
  --coral: #193b33;
}

@media (max-width: 860px) {
  .demo-nav,
  .demo-cta {
    display: none;
  }

  .demo-hero,
  .demo-two,
  .demo-grid,
  .style-hero,
  .style-list {
    grid-template-columns: 1fr;
  }

  .demo-copy {
    min-height: 440px;
  }

  .style-preview {
    min-height: 520px;
  }

  .style-preview iframe {
    height: 478px;
  }
}

