:root {
  --ink: #071827;
  --muted: #5f6f82;
  --line: #d8e8f0;
  --paper: #f3f9fb;
  --white: #ffffff;
  --teal: #16d5df;
  --blue: #0e78c8;
  --navy: #061d34;
  --lime: #c8ff4d;
  --rose: #ff4f86;
  --gold: #ffcb45;
  --shadow: 0 24px 70px rgba(6, 29, 52, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 8%, rgba(22, 213, 223, 0.34), transparent 28rem),
    radial-gradient(circle at 12% 24%, rgba(255, 79, 134, 0.14), transparent 24rem),
    radial-gradient(circle at 62% 92%, rgba(200, 255, 77, 0.2), transparent 24rem),
    linear-gradient(180deg, #eaf9ff 0%, #ffffff 42%, #f4f8fc 100%);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 4.5rem);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(220, 229, 236, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 900;
  color: var(--navy);
}

.field-help {
  margin-top: -0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.brand img,
.footer img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(14, 120, 200, 0.2);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-weight: 700;
}

.nav a:hover {
  color: var(--blue);
}

.menu-toggle {
  display: none;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(2rem, 6vw, 6rem) clamp(1rem, 4vw, 4.5rem) 3rem;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 8px 24px rgba(14, 120, 200, 0.12);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
.brand,
.price,
.button {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
}

h1 {
  margin-bottom: 1.2rem;
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: 0.94;
  letter-spacing: 0;
  color: var(--navy);
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
  letter-spacing: 0;
  color: var(--navy);
}

h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.hero-text {
  max-width: 600px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  line-height: 1.7;
}

.hero-actions,
.form-actions,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.button.primary {
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: var(--white);
  box-shadow: 0 16px 34px rgba(14, 120, 200, 0.28);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  border-color: var(--line);
}

.button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.hero-preview {
  overflow: hidden;
  min-height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(234, 249, 255, 0.72)),
    rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
}

.browser-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--rose);
}

.browser-bar span:nth-child(2) {
  background: var(--lime);
}

.browser-bar span:nth-child(3) {
  background: var(--teal);
}

.browser-bar strong {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.82rem;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1rem;
}

.mini-card,
.template-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 44px rgba(6, 29, 52, 0.08);
}

.mini-card {
  overflow: hidden;
}

.mini-shot,
.template-shot {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(14, 120, 200, 0.16), rgba(22, 213, 223, 0.24)),
    linear-gradient(45deg, rgba(255, 79, 134, 0.08), rgba(200, 255, 77, 0.12));
}

.mini-shot iframe,
.template-shot iframe {
  position: absolute;
  inset: 0;
  width: 136%;
  height: 136%;
  border: 0;
  transform: scale(0.74);
  transform-origin: top left;
  pointer-events: none;
}

.mini-card div:last-child {
  padding: 1rem;
}

.mini-card strong {
  display: block;
  margin-bottom: 0.25rem;
}

.mini-card span,
.template-meta,
.footer,
.admin-table {
  color: var(--muted);
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 clamp(1rem, 4vw, 4.5rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: 0 18px 50px rgba(6, 29, 52, 0.09);
}

.trust-band div {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.9);
}

.trust-band strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.3rem;
  color: var(--blue);
}

.trust-band span {
  color: var(--muted);
}

.section,
.catalog-section,
.process,
.admin-section,
.final-cta {
  padding: clamp(4rem, 7vw, 7rem) clamp(1rem, 4vw, 4.5rem);
}

.intro {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 3rem;
  align-items: start;
}

.intro p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.search-wrap input,
label input,
label select,
label textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  outline: none;
}

.search-wrap input {
  min-width: min(340px, 72vw);
  height: 48px;
  padding: 0 1rem;
}

.category-tabs,
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.3rem;
}

.tab,
.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  padding: 0.6rem 0.9rem;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.tab.active {
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: var(--white);
  border-color: transparent;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.template-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.template-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(6, 29, 52, 0.15);
}

.template-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.template-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1rem;
}

.template-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.9rem;
}

.price {
  color: #0b8c87;
  font-weight: 900;
}

.template-body p {
  color: var(--muted);
  line-height: 1.6;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.steps article,
.panel,
.login-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(8, 35, 61, 0.08);
}

.steps article {
  padding: 1.3rem;
  position: relative;
  overflow: hidden;
}

.steps article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--rose), var(--gold), var(--teal));
}

.steps span {
  display: inline-flex;
  margin-bottom: 1.5rem;
  color: var(--rose);
  font-weight: 900;
}

.steps p {
  color: var(--muted);
  line-height: 1.6;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 0 clamp(1rem, 4vw, 4.5rem) clamp(3rem, 6vw, 5rem);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(6, 29, 52, 0.96), rgba(14, 120, 200, 0.88)),
    var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
}

.final-cta .eyebrow {
  color: var(--lime);
}

.final-cta h2 {
  max-width: 900px;
  margin-bottom: 0;
  color: var(--white);
}

.final-cta .button.primary {
  background: var(--white);
  color: var(--navy);
  box-shadow: none;
}

.admin-login {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 430px);
  gap: 2rem;
  align-items: start;
}

.admin-login > div p:last-child {
  color: var(--muted);
  line-height: 1.7;
}

.login-card,
.panel {
  padding: 1.2rem;
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-weight: 800;
}

label input,
label select,
label textarea {
  padding: 0.82rem 0.9rem;
  font-weight: 500;
  resize: vertical;
}

.login-card {
  display: grid;
  gap: 1rem;
}

.login-card small {
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 79, 134, 0.2), transparent 24rem),
    radial-gradient(circle at 85% 12%, rgba(22, 213, 223, 0.32), transparent 28rem),
    linear-gradient(135deg, #071827 0%, #0b3357 48%, #eaf9ff 48.2%, #f7fbff 100%);
}

.admin-shell {
  min-height: 100vh;
  padding: clamp(1rem, 4vw, 3rem);
}

.admin-auth {
  min-height: calc(100vh - clamp(2rem, 8vw, 6rem));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.admin-auth-copy {
  max-width: 740px;
  color: var(--white);
}

.admin-auth-copy .brand {
  margin-bottom: 3rem;
  color: var(--white);
}

.admin-auth-copy .eyebrow {
  color: var(--lime);
}

.admin-auth-copy h1,
.dashboard-head h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 0.95;
}

.admin-auth-copy h1 {
  color: var(--white);
}

.admin-auth-copy p:last-child {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
  line-height: 1.7;
}

.admin-login-card {
  padding: clamp(1.2rem, 4vw, 2rem);
  background: rgba(255, 255, 255, 0.94);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-body .dashboard {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.panel {
  display: grid;
  gap: 1rem;
}

.panel.wide {
  grid-column: 1 / -1;
}

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

.admin-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.admin-row:last-child {
  border-bottom: 0;
}

.admin-row strong {
  display: block;
  color: var(--ink);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem clamp(1rem, 4vw, 4.5rem);
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer div {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 900;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--muted);
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--blue);
}

.admin-quick {
  opacity: 0.34;
  font-size: 0.76rem;
  font-weight: 800;
}

.admin-quick:hover {
  opacity: 1;
}

.demo-modal {
  width: min(1220px, calc(100vw - 2rem));
  height: min(900px, calc(100vh - 2rem));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.demo-modal::backdrop {
  background: rgba(8, 35, 61, 0.56);
}

.modal-head,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}

.modal-head {
  border-bottom: 1px solid var(--line);
}

.modal-actions {
  border-top: 1px solid var(--line);
}

.device-toolbar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 249, 251, 0.86);
}

.device-btn {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 0.9rem;
  background: var(--white);
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.device-btn.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: var(--white);
}

.demo-stage {
  height: calc(100% - 208px);
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 1rem;
  background:
    linear-gradient(45deg, rgba(6, 29, 52, 0.04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(6, 29, 52, 0.04) 25%, transparent 25%),
    #eef5f8;
  background-size: 28px 28px;
}

.demo-viewport {
  overflow: hidden;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(6, 29, 52, 0.14);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(6, 29, 52, 0.18);
  transition: width 180ms ease, height 180ms ease;
}

.demo-viewport.desktop {
  width: min(100%, 1120px);
  height: 100%;
}

.demo-viewport.tablet {
  width: min(760px, 100%);
  height: 100%;
}

.demo-viewport.mobile {
  width: min(390px, 100%);
  height: 100%;
}

.demo-modal iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--paper);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 3rem 1rem;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 980px) {
  .hero,
  .intro,
  .admin-login,
  .admin-auth {
    grid-template-columns: 1fr;
  }

  .hero-preview {
    min-height: 420px;
  }

  .catalog-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-band {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .nav {
    position: absolute;
    inset: 68px 1rem auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero {
    padding-top: 2rem;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }

  .catalog-grid,
  .steps,
  .dashboard-grid,
  .form-grid,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .footer,
  .dashboard-head,
  .modal-actions,
  .final-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .trust-band {
    grid-template-columns: 1fr;
  }

  .hero-preview {
    min-height: auto;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

  .admin-row {
    grid-template-columns: 1fr;
  }

  .admin-body {
    background:
      radial-gradient(circle at 30% 0%, rgba(22, 213, 223, 0.3), transparent 20rem),
      linear-gradient(180deg, #071827 0%, #0b3357 42%, #f7fbff 42.2%, #f7fbff 100%);
  }

  .admin-auth-copy .brand {
    margin-bottom: 2rem;
  }
}
