/*
 * The landing page at designx.lol. Its palette is the app's default dark theme
 * (src/styles/global.css), so walking from here into the editor does not feel like
 * changing sites. The app's tokens are not imported: the editor's stylesheet is built
 * for a full-screen tool, and pulling it in would drag its resets and layout along.
 */

:root {
  --bg-0: #0d0f14;
  --bg-1: #14171f;
  --bg-2: #1b1f29;
  --border: #262b38;
  --text-0: #f3f5f9;
  --text-1: #b3bccd;
  --text-2: #9fa6b3;
  --accent: #6366f1;
  --accent-hover: #7c7ff3;
  --brand: linear-gradient(135deg, #6366f1, #ec4899 55%, #f59e0b);
  --radius: 14px;
  --wrap: 1120px;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text-1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

strong {
  color: var(--text-0);
  font-weight: 600;
}

.wrap {
  width: min(var(--wrap), 100% - 32px);
  margin-inline: auto;
}

/* ---- Brand ---------------------------------------------------------------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-0);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.brand--quiet {
  font-size: 15px;
  color: var(--text-1);
}

.brand--quiet .brand__mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 11px;
}

/* ---- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
  box-shadow: 0 8px 24px -10px rgb(99 102 241 / 0.7);
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid var(--text-0);
  outline-offset: 3px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.btn--small {
  padding: 8px 14px;
  font-size: 14px;
  box-shadow: none;
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-0);
  box-shadow: none;
}

.btn--ghost:hover {
  background: var(--bg-2);
}

/* ---- Nav ------------------------------------------------------------------ */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgb(38 43 56 / 0.6);
  background: rgb(13 15 20 / 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
}

.nav__links a:not(.btn) {
  color: var(--text-2);
  text-decoration: none;
}

.nav__links a:not(.btn):hover {
  color: var(--text-0);
}

/* ---- Move banner ---------------------------------------------------------- */

.move {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgb(99 102 241 / 0.16), rgb(236 72 153 / 0.1));
}

.move__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
  font-size: 15px;
}

.move__text {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

/* ---- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: clip;
  padding-top: 96px;
}

.hero__glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 720px;
  background:
    radial-gradient(40% 50% at 30% 30%, rgb(99 102 241 / 0.32), transparent 70%),
    radial-gradient(35% 45% at 70% 25%, rgb(236 72 153 / 0.22), transparent 70%),
    radial-gradient(30% 40% at 55% 60%, rgb(245 158 11 / 0.12), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-hover);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0;
  color: var(--text-0);
  font-size: clamp(44px, 8vw, 88px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.ink {
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  max-width: 620px;
  margin: 24px auto 0;
  font-size: clamp(17px, 2vw, 20px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

/* ---- Screenshots ---------------------------------------------------------- */

.shot {
  /* Block margins only: the hero figure is also a .wrap, which centres it sideways. */
  margin-block: 0;
}

.shot--hero {
  position: relative;
  margin-top: 72px;
  perspective: 1600px;
}

.window {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-1);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.03) inset,
    0 40px 80px -30px rgb(0 0 0 / 0.8),
    0 0 120px -40px rgb(99 102 241 / 0.45);
}

.shot--hero .window {
  transform: rotateX(8deg);
  transform-origin: top center;
  transition: transform 0.6s ease;
}

.shot--hero:hover .window {
  transform: rotateX(0);
}

.window__bar {
  display: flex;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

.window__bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #313747;
}

/* ---- Sections ------------------------------------------------------------- */

.section {
  padding-block: 112px 0;
}

.section__title {
  margin: 0 0 18px;
  color: var(--text-0);
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.card {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-1), rgb(20 23 31 / 0.4));
}

.card h3 {
  margin: 18px 0 8px;
  color: var(--text-0);
  font-size: 21px;
}

.card p {
  margin: 0;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
}

.card__icon svg,
.yours__lock svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card__icon--design {
  background: rgb(99 102 241 / 0.16);
  color: #a5a7fb;
}

.card__icon--texture {
  background: rgb(61 220 132 / 0.14);
  color: #6ee7a8;
}

.split__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 64px;
}

.split--flip .split__text {
  order: 2;
}

.split__text p:last-child {
  margin: 0;
}

.yours {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  max-width: 820px;
  margin-inline: auto;
  padding: 44px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(60% 120% at 0% 0%, rgb(99 102 241 / 0.14), transparent 60%),
    var(--bg-1);
}

.yours p {
  margin: 0;
}

.yours__lock {
  display: grid;
  flex: none;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
}

.cta {
  padding-bottom: 120px;
}

.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.cta__title {
  margin: 0;
  color: var(--text-0);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.footer {
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 14px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 28px;
}

/* ---- Small screens -------------------------------------------------------- */

@media (max-width: 820px) {
  .nav__links a:not(.btn) {
    display: none;
  }

  .hero {
    padding-top: 64px;
  }

  .shot--hero {
    margin-top: 48px;
  }

  .shot--hero .window {
    transform: none;
  }

  .section {
    padding-top: 80px;
  }

  .cards,
  .split__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .split__inner {
    gap: 32px;
  }

  .split--flip .split__text {
    order: 0;
  }

  .yours {
    flex-direction: column;
    padding: 30px;
  }

  .move__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .shot--hero .window {
    transition: none;
  }
}
