@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --bg: #060d18;
  --panel: rgba(255, 255, 255, 0.06);
  --panel2-grad: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  --border: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.75);
  --accent: #3b82f6;
  --tint: rgba(59, 130, 246, 0.25);
  --accent2: #22c55e;
  --topbar: rgba(6, 13, 24, 0.88);
  --chipbg: rgba(255, 255, 255, 0.06);
  --chipbd: rgba(255, 255, 255, 0.12);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --container: 1100px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Demo theme tokens */
html[data-theme="light"] {
  --bg: #f5f7fb;
  --panel: rgba(0, 0, 0, 0.04);
  --panel2: rgba(0, 0, 0, 0.06);
  --border: rgba(0, 0, 0, 0.1);
  --text: rgba(10, 18, 34, 0.92);
  --muted: rgba(10, 18, 34, 0.7);
  --shadow: 0 14px 38px rgba(10, 18, 34, 0.14);
  --topbar: rgba(255, 255, 255, 0.86);
  --chipbg: rgba(0, 0, 0, 0.04);
  --chipbd: rgba(0, 0, 0, 0.12);
}

html[data-accent="ocean"] {
  --accent: #3b82f6;
  --tint: rgba(59, 130, 246, 0.18);
}
html[data-accent="amber"] {
  --accent: #f59e0b;
  --tint: rgba(245, 158, 11, 0.18);
}
html[data-accent="violet"] {
  --accent: #8b5cf6;
  --tint: rgba(139, 92, 246, 0.18);
}
html[data-accent="slate"] {
  --accent: #38bdf8;
  --tint: rgba(56, 189, 248, 0.16);
}

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

body.demoPage {
  margin: 0;
  font-family: "Manrope", "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(1200px 700px at 20% 0%, var(--tint), transparent 60%),
    radial-gradient(900px 600px at 90% 10%, rgba(0, 255, 200, 0.1), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

.demoContainer {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.demoTop {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  background: var(--topbar, rgba(6, 13, 24, 0.88));
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.demoTop__inner {
  width: min(var(--container), calc(100% - 40px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}

.demoTop__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.88);
}

html[data-theme="light"] .demoTop__badge {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
  color: rgba(10, 18, 34, 0.86);
}

.demoTop__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), box-shadow 180ms var(--ease-out);
  box-shadow: var(--shadow);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.38);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

html[data-theme="light"] .btn--ghost {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(0, 0, 0, 0.1);
}

.stylePicker {
  position: relative;
}

.stylePicker > summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.88);
}

.stylePicker > summary::-webkit-details-marker {
  display: none;
}

html[data-theme="light"] .stylePicker > summary {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.04);
  color: rgba(10, 18, 34, 0.84);
}

.stylePicker__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 300px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 18, 34, 0.78);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  z-index: 50;
}

html[data-theme="light"] .stylePicker__panel {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.1);
}

.styleRow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 10px;
}

.styleRow:last-child {
  margin-bottom: 0;
}

.styleLabel {
  width: 52px;
  font-weight: 800;
  font-size: 12px;
  opacity: 0.8;
}

.stylePicker .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
  font-size: 12px;
  transition: transform 120ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.stylePicker .chip--ghost {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

html[data-theme="light"] .stylePicker .chip--ghost {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
}

.stylePicker .chip:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 40%, rgba(255, 255, 255, 0.12));
}

html[data-theme="light"] .stylePicker .chip {
  border-color: var(--chipbd, rgba(0, 0, 0, 0.12));
  background: var(--chipbg, rgba(0, 0, 0, 0.04));
  color: rgba(10, 18, 34, 0.86);
}

.sw {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.sw--ocean {
  background: #3b82f6;
}
.sw--amber {
  background: #f59e0b;
}
.sw--violet {
  background: #8b5cf6;
}
.sw--slate {
  background: #38bdf8;
}

.stylePicker .chip.is-on {
  border-color: color-mix(in srgb, var(--accent) 60%, rgba(255, 255, 255, 0.12));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.btn--small {
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 14px;
}

.section {
  padding: clamp(34px, 5vw, 60px) 0;
}

#quote.section {
  padding-bottom: 26px;
}

.faq.section {
  padding-top: 26px;
}

.heroGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  align-items: center;
}

.heroWrap {
  background:
    radial-gradient(900px 460px at 20% 20%, var(--tint), transparent 60%),
    radial-gradient(900px 460px at 90% 20%, rgba(34, 197, 94, 0.1), transparent 60%),
    rgba(10, 18, 34, 0.65);
}

.heroMeta {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 700;
}

.heroTitle {
  margin: 10px 0 6px;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.05;
}

.heroLead {
  margin: 0 0 12px;
  color: var(--muted);
}

.pillRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0;
}

.pill {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

html[data-theme="light"] .pill {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: rgba(10, 18, 34, 0.78);
}

.heroActions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 6px;
}

.heroCard {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--panel2-grad);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  box-shadow: var(--shadow);
}

.heroMedia {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 260px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55)),
    var(--hero-img, radial-gradient(1000px 500px at 20% 10%, var(--tint), transparent 60%));
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  gap: 12px;
}

.list {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  margin: 10px 0 0;
  color: var(--muted);
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--panel2-grad);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card--narrow {
  max-width: 980px;
  margin: 0 auto;
}

.card h3 {
  margin: 0 0 8px;
}

.muted {
  color: var(--muted);
}

.service {
  display: grid;
  gap: 6px;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
}

.serviceIcon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  font-size: 18px;
}

.areasList {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .areasList {
    grid-template-columns: 1fr;
    columns: initial;
  }
}

.faq .grid {
  max-width: 980px;
  margin: 0 auto;
}

.reviews {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.reviewQuote {
  font-weight: 800;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: var(--panel2-grad);
}

.faq summary {
  font-weight: 800;
  cursor: pointer;
}

.faq p {
  color: var(--muted);
}

form.demo-form {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

form.demo-form label {
  grid-column: span 1;
}

.formSpan2 {
  grid-column: 1 / -1;
}

label {
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.65) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.65) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

textarea {
  min-height: 84px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 55%, rgba(255, 255, 255, 0.12));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.formSuccess,
.formError {
  margin: 10px 0 0;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 14px;
}

.formSuccess {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.22);
  color: var(--text);
}

.formError {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: var(--text);
}

.formMore {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
}

.formMore summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.formMore summary::-webkit-details-marker {
  display: none;
}

.formMore__body {
  margin-top: 10px;
}

.demoTop__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer {
  padding: 32px 0 54px;
  color: var(--muted);
}

.inline-link {
  color: var(--accent);
  font-weight: 800;
}

.demoSticky {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 25;
  width: min(520px, calc(100% - 32px));
}

.demoSticky .btn {
  flex: 1;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}

@media (min-width: 900px) {
  .demoSticky {
    display: none;
  }
}

@media (max-width: 720px) {
  .areasList {
    columns: 1;
  }
  .demoTop__inner {
    padding: 10px 0;
  }
  .heroActions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    width: 100%;
  }
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(6px);
  transition:
    opacity 320ms var(--ease-out),
    transform 320ms var(--ease-out),
    filter 320ms var(--ease-out);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
