:root {
  --demo-bg: #08090b;
  --demo-surface: #11161d;
  --demo-panel: #151518;
  --demo-line: rgba(151, 151, 151, 0.28);
  --demo-cyan: #03d7e7;
  --demo-gold: #c6973c;
  --demo-text: #f2f2f2;
  --demo-muted: #a8adb3;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  scrollbar-color: rgba(3, 215, 231, 0.28) rgba(8, 9, 11, 0.35);
  scrollbar-width: thin;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(3, 215, 231, 0.14), transparent 30%),
    linear-gradient(135deg, #08090b 0%, #10161c 48%, #08090b 100%);
  color: var(--demo-text);
  font-family: "Inter", system-ui, sans-serif;
}

body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

body::-webkit-scrollbar-track {
  background: rgba(8, 9, 11, 0.35);
}

body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(3, 215, 231, 0.28);
}

body::-webkit-scrollbar-thumb:hover {
  background: rgba(3, 215, 231, 0.42);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.demo-page {
  width: min(1180px, calc(100vw - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 450px;
  align-items: center;
  gap: 56px;
}

.demo-copy {
  display: grid;
  gap: 24px;
}

.eyebrow {
  margin: 0;
  color: var(--demo-cyan);
  font-family: "Mulish", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-copy h1 {
  max-width: 720px;
  margin: 0;
  color: var(--demo-gold);
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 600;
  line-height: 0.98;
}

.intro {
  max-width: 620px;
  margin: 0;
  color: var(--demo-muted);
  font-size: 18px;
  line-height: 1.65;
}

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

.primary-demo-button {
  min-height: 48px;
  border-radius: 8px;
  padding: 13px 18px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.primary-demo-button {
  border: 0;
  background: var(--demo-gold);
  color: #08090b;
}

.start-instruction {
  max-width: 620px;
  margin: 0;
  border-left: 3px solid var(--demo-cyan);
  padding: 10px 0 10px 14px;
  color: var(--demo-text);
  font-size: 16px;
  line-height: 1.5;
}

.start-instruction strong {
  color: var(--demo-cyan);
  font-weight: 700;
}

.test-prompt {
  max-width: 620px;
  border: 1px solid var(--demo-line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(21, 21, 24, 0.72);
}

.test-prompt h2 {
  margin: 0 0 14px;
  color: var(--demo-text);
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 28px;
  font-weight: 600;
}

.flow-group {
  display: grid;
  gap: 8px;
}

.flow-group + .flow-group {
  margin-top: 18px;
}

.flow-group h3 {
  margin: 0;
  color: var(--demo-gold);
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 600;
}

.test-prompt ol {
  margin: 0;
  padding-left: 22px;
  color: var(--demo-muted);
  font-size: 16px;
  line-height: 1.7;
}

.test-prompt li + li {
  margin-top: 8px;
}

.phone-demo {
  display: grid;
  justify-items: center;
}

.iphone-frame {
  position: relative;
  width: 430px;
  height: 884px;
  border: 12px solid #020304;
  border-radius: 46px;
  background: #020304;
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.iphone-speaker {
  position: absolute;
  top: 13px;
  left: 50%;
  z-index: 2;
  width: 118px;
  height: 30px;
  transform: translateX(-50%);
  border-radius: 0 0 18px 18px;
  background: #020304;
}

.iphone-speaker::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 44px;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #20252b;
}

.iphone-frame iframe {
  display: block;
  width: calc(100% + 22px);
  height: 100%;
  margin-right: -22px;
  border: 0;
  background: var(--demo-panel);
  overflow: hidden;
}

@media (max-width: 980px) {
  .demo-page {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 32px 0;
  }

  .demo-copy {
    width: min(100%, 640px);
  }
}

@media (max-width: 520px) {
  .demo-page {
    width: 100%;
    padding: 0;
    gap: 0;
  }

  .demo-copy {
    padding: 24px 16px;
  }

  .phone-demo {
    width: 100%;
  }

  .iphone-frame {
    width: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .iphone-speaker {
    display: none;
  }
}
