:root {
  --ink: #071b52;
  --muted: #5d6680;
  --blue: #6f2dff;
  --blue-2: #8a55ff;
  --aqua: #80f0ff;
  --lavender: #ded1ff;
  --panel: rgba(255, 255, 255, 0.86);
  --line: rgba(93, 47, 190, 0.14);
  --shadow: 0 24px 70px rgba(46, 82, 145, 0.16);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 4% 22%, rgba(111, 45, 255, 0.12), transparent 22rem),
    radial-gradient(circle at 82% 27%, rgba(128, 240, 255, 0.22), transparent 25rem),
    linear-gradient(180deg, #faf8ff 0%, #f2ecff 42%, #ffffff 100%);
}

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

button,
input {
  font: inherit;
}

.container,
.header-inner {
  width: min(1160px, calc(100% - 44px));
  margin: 0 auto;
}

.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0 36%, rgba(255, 255, 255, 0.58) 36% 49%, transparent 49% 100%),
    radial-gradient(ellipse at 50% 0, rgba(255, 255, 255, 0.85), transparent 40rem);
  opacity: 0.78;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 26px 0 10px;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  min-height: 72px;
  padding: 0 34px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 44px rgba(46, 82, 145, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: 188px;
  height: auto;
}

.main-nav,
.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
}

.main-nav {
  justify-content: flex-end;
  gap: 42px;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 700;
}

.header-actions {
  gap: 12px;
}

.lang-switch {
  display: inline-grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  border: 1px solid rgba(47, 88, 172, 0.22);
  border-radius: 8px;
  color: #2c5eb8;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #2f66c8, #6525e8);
  box-shadow: 0 16px 28px rgba(63, 91, 185, 0.22);
}

.button-video {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(111, 45, 255, 0.42);
}

.button-video span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 0.78rem;
}

.hero {
  position: relative;
  padding: 68px 0 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(540px, 1.35fr);
  gap: 52px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: #6f2dff;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.lead {
  max-width: 540px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.28rem;
  line-height: 1.55;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.builder-window {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.67);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform-origin: center;
}

.builder-window.is-playing {
  animation: pulseWindow 900ms ease;
}

@keyframes pulseWindow {
  0%, 100% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.015);
  }
}

.window-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 13px;
  background: rgba(238, 247, 255, 0.9);
  border-bottom: 1px solid var(--line);
}

.window-chrome span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ff7468;
}

.window-chrome span:nth-child(2) {
  background: #ffc75e;
}

.window-chrome span:nth-child(3) {
  background: #49ca7b;
}

.builder-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 430px;
  background: #fff;
}

.builder-sidebar {
  padding: 14px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.builder-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  color: #fff;
  margin: -14px -14px 12px;
  padding: 9px 12px;
  background: #1f2c3d;
  font-size: 0.84rem;
}

.builder-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 11px;
  color: #32445c;
  font-size: 0.72rem;
  text-align: center;
}

.builder-tabs span:first-child {
  color: var(--blue);
  border-bottom: 2px solid var(--blue-2);
}

.builder-search {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #7b899c;
  font-size: 0.8rem;
}

.group-title {
  margin: 14px 0 8px;
  color: #33445d;
  font-size: 0.82rem;
  font-weight: 800;
}

.widget-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.widget-grid span {
  display: grid;
  min-height: 54px;
  place-items: center;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #33445d;
  background: #fff;
  font-size: 0.68rem;
  text-align: center;
}

.site-preview {
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #fff;
}

.preview-nav {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  min-height: 62px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
}

.preview-nav strong {
  font-family: Georgia, serif;
  font-size: 1.5rem;
}

.preview-nav nav {
  display: flex;
  gap: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}

.preview-hero {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 265px;
  padding: 34px 50px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.16)),
    radial-gradient(circle at 78% 40%, rgba(11, 127, 215, 0.25), transparent 11rem),
    linear-gradient(135deg, #bfe7ff, #f9fdff 55%, #9fcbd6);
}

.preview-hero::after {
  content: "";
  position: absolute;
  right: 26px;
  bottom: 18px;
  width: 210px;
  height: 170px;
  border-radius: 49% 51% 38% 62% / 52% 34% 66% 48%;
  background:
    radial-gradient(circle at 54% 22%, #f7ca88 0 11px, transparent 12px),
    linear-gradient(135deg, #133b61 0 38%, #2f6894 38% 48%, #233957 48% 100%);
  opacity: 0.42;
}

.selected-block {
  position: relative;
  width: min(380px, 72%);
  padding: 12px 18px;
  border: 2px dashed #087cff;
  z-index: 1;
}

.selected-block small {
  position: absolute;
  top: -30px;
  left: 50%;
  display: grid;
  width: 74px;
  height: 30px;
  place-items: center;
  border-radius: 6px 6px 0 0;
  color: #fff;
  background: #087cff;
}

.selected-block h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  line-height: 0.98;
}

.preview-hero p {
  position: relative;
  z-index: 1;
  margin: 10px 0 14px 18px;
  color: #203b57;
  font-size: 0.94rem;
}

.preview-hero button {
  position: relative;
  z-index: 1;
  width: max-content;
  margin-left: 18px;
  padding: 12px 18px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: #07979d;
  font-weight: 800;
}

.preview-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 16px 28px 24px;
}

.preview-card {
  position: relative;
  display: flex;
  min-height: 112px;
  align-items: end;
  padding: 0 12px 12px;
  border-radius: 4px;
  overflow: hidden;
  color: #fff;
  background-position: center;
  background-size: cover;
  font-family: Georgia, serif;
  font-size: 1rem;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.preview-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(8, 16, 42, 0.58));
}

.preview-card {
  isolation: isolate;
}

.preview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.preview-card-sea {
  background-image: url("/assets/img/preview-sea.svg");
}

.preview-card-art {
  background-image: url("/assets/img/preview-art.svg");
}

.preview-card-nature {
  background-image: url("/assets/img/preview-nature.svg");
}

.features {
  padding: 24px 0 48px;
  background: rgba(255, 255, 255, 0.68);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 22px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 50px rgba(25, 82, 135, 0.08);
}

.feature-card h2 {
  margin: 0 0 8px;
  font-size: 1.28rem;
}

.feature-card p,
.step-card p,
.pricing-panel p,
.site-footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.56;
}

.feature-icon {
  width: 76px;
  height: 76px;
  border-radius: 13px;
  background: linear-gradient(135deg, #b9ecff, #e7f6ff);
}

.feature-icon::before {
  content: "";
  display: block;
  width: 34px;
  height: 34px;
  margin: 21px;
  background: var(--ink);
  clip-path: polygon(0 0, 84% 50%, 51% 59%, 65% 100%, 47% 100%, 34% 64%, 0 83%);
}

.feature-icon-devices {
  background: linear-gradient(135deg, #a9f0ed, #e8fffb);
}

.feature-icon-devices::before {
  width: 42px;
  height: 34px;
  border: 4px solid #0b567b;
  border-radius: 5px;
  background: transparent;
  clip-path: none;
}

.feature-icon-code {
  background: linear-gradient(135deg, #ded9ff, #f0efff);
}

.feature-icon-code::before {
  width: 48px;
  height: 38px;
  margin: 19px 14px;
  background: #42148c;
  clip-path: polygon(22% 0, 0 50%, 22% 100%, 31% 86%, 17% 50%, 31% 14%, 22% 0, 78% 0, 69% 14%, 83% 50%, 69% 86%, 78% 100%, 100% 50%, 78% 0, 58% 0, 42% 100%, 52% 100%, 68% 0);
}

.steps {
  padding: 56px 0 64px;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-heading h2,
.pricing-panel h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: 0;
}

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

.step-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: start;
}

.step-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px;
  right: -24px;
  width: 42px;
  height: 1px;
  background: #a8bfdc;
}

.step-card span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 999px;
  background: #bdeaff;
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 900;
}

.step-card:nth-child(2) span {
  background: #a9f0ed;
}

.step-card:nth-child(3) span {
  background: var(--lavender);
}

.step-card h3 {
  margin: 4px 0 8px;
}

.pricing-strip {
  padding: 12px 0 74px;
}

.pricing-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background:
    radial-gradient(circle at 5% 0, rgba(111, 45, 255, 0.12), transparent 18rem),
    rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.pricing-panel > div {
  max-width: 760px;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.site-footer img {
  display: block;
  width: 188px;
  height: auto;
}

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

@media (max-width: 1080px) {
  .hero-grid,
  .feature-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .builder-window {
    max-width: 860px;
  }

  .step-card:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 780px) {
  .container,
  .header-inner {
    width: min(100% - 24px, 1160px);
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    padding: 12px;
  }

  .main-nav {
    display: none;
  }

  .header-actions .button {
    display: none;
  }

  .hero {
    padding-top: 40px;
  }

  .builder-shell {
    grid-template-columns: 1fr;
  }

  .builder-sidebar {
    display: none;
  }

  .preview-nav nav {
    display: none;
  }

  .selected-block {
    width: 92%;
  }

  .preview-cards {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .pricing-panel,
  .site-footer .container {
    display: grid;
  }
}

@media (max-width: 520px) {
  .brand img {
    width: 162px;
  }

  .hero h1 {
    font-size: 3.1rem;
  }

  .lead {
    font-size: 1.08rem;
  }

  .hero-actions .button,
  .pricing-panel .button {
    width: 100%;
  }

  .preview-hero {
    padding: 34px 20px;
  }

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