:root {
  color-scheme: light dark;
  --coral: #ff6b6b;
  --coral-strong: #ff5252;
  --coral-soft: #fff0ee;
  --coral-wash: #ffd9d4;
  --ink: #11152d;
  --ink-soft: #51566e;
  --page: #fafafa;
  --surface: #ffffff;
  --surface-soft: #fff5f3;
  --border: #d9d7e4;
  --focus: #a78bfa;
  --success: #19734a;
  --error: #b83232;
  --shadow: 0 24px 80px rgba(17, 21, 45, 0.08);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 48px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

:root[data-resolved-theme="dark"] {
  --coral-soft: #2e2033;
  --coral-wash: #4b2a3a;
  --ink: #f5f4f8;
  --ink-soft: #b9b8ca;
  --page: #1a1a2e;
  --surface: #252540;
  --surface-soft: #202038;
  --border: #494967;
  --focus: #c4b5fd;
  --success: #75e0a9;
  --error: #ff9b9b;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 86% 43%, color-mix(in srgb, var(--coral) 8%, transparent), transparent 33rem),
    var(--page);
  color: var(--ink);
  transition: background-color 180ms ease, color 180ms ease;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header,
.hero,
.site-footer {
  width: min(100% - 3rem, 1440px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 104px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  color: var(--coral);
  font-size: clamp(1.75rem, 2.2vw, 2.4rem);
  font-weight: 750;
  letter-spacing: -0.065em;
  line-height: 1;
  text-decoration: none;
}

.wordmark strong {
  color: var(--ink);
  font-weight: 750;
}

.theme-picker {
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.theme-picker button {
  min-height: 36px;
  padding: 0.4rem 0.8rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.theme-picker button:hover {
  background: var(--coral-soft);
  color: var(--ink);
}

.theme-picker button:active {
  transform: scale(0.96);
}

.wordmark:hover span {
  color: var(--coral-strong);
}

.wordmark:active {
  transform: translateY(1px);
}

.theme-picker button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--page);
}

.theme-picker button:focus-visible,
.wordmark:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.hero {
  display: grid;
  min-height: calc(100vh - 184px);
  grid-template-columns: minmax(0, 1.15fr) minmax(500px, 0.85fr);
  align-items: center;
  gap: clamp(3rem, 4.5vw, 6rem);
  padding-block: clamp(2rem, 4vw, 4rem);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(4.5rem, 4.6vw, 6.4rem);
  font-weight: 720;
  letter-spacing: -0.05em;
  line-height: 0.94;
}

h1 span {
  display: block;
  white-space: nowrap;
}

h1 span + span {
  margin-top: 0.08em;
}

.product-line {
  max-width: 610px;
  margin: clamp(2rem, 4vw, 3.3rem) 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.45vw, 1.28rem);
  line-height: 1.6;
}

.launch-note {
  max-width: 610px;
  margin-top: 1.65rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.visual {
  position: relative;
  display: grid;
  min-height: 560px;
  overflow: hidden;
  place-items: center;
}

.image-stage {
  position: relative;
  width: min(100%, 680px);
  aspect-ratio: 1 / 0.92;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, color-mix(in srgb, var(--coral-soft) 95%, transparent), var(--coral-wash));
  box-shadow: var(--shadow);
}

.image-stage::before {
  position: absolute;
  inset: 8%;
  border: 1px solid color-mix(in srgb, var(--coral) 25%, transparent);
  border-radius: calc(var(--radius-lg) - 18px);
  content: "";
}

.crop-frame {
  position: absolute;
  inset: 15% 14% 16% 13%;
  border: 2px dashed color-mix(in srgb, var(--coral) 82%, transparent);
}

.picture {
  position: absolute;
  inset: 11%;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #ffcbc5, #fff0ed);
}

:root[data-resolved-theme="dark"] .picture {
  background: linear-gradient(180deg, #4a3045, #2e2940);
}

.sun {
  position: absolute;
  top: 15%;
  right: 15%;
  width: 15%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--coral);
}

.mountain {
  position: absolute;
  bottom: -15%;
  display: block;
  width: 68%;
  aspect-ratio: 1;
  transform: rotate(45deg);
  border-radius: 16%;
  background: linear-gradient(135deg, var(--coral), #ff8a7e);
}

.mountain-back {
  right: -18%;
  bottom: -29%;
  width: 58%;
  opacity: 0.68;
}

.mountain-front {
  left: -16%;
}

.crop-handle {
  position: absolute;
  width: 34px;
  height: 34px;
  border-color: var(--coral);
  border-style: solid;
}

.top-left {
  top: -15px;
  left: -15px;
  border-width: 5px 0 0 5px;
}

.top-right {
  top: -15px;
  right: -15px;
  border-width: 5px 5px 0 0;
}

.bottom-left {
  bottom: -15px;
  left: -15px;
  border-width: 0 0 5px 5px;
}

.bottom-right {
  right: -15px;
  bottom: -15px;
  border-width: 0 5px 5px 0;
}

.crop-node {
  position: absolute;
  width: 18px;
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--coral);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--coral) 36%, transparent);
}

.node-top {
  top: -10px;
  left: calc(50% - 9px);
}

.node-left {
  top: calc(50% - 9px);
  left: -10px;
}

.node-right {
  top: calc(50% - 9px);
  right: -10px;
}

.node-bottom {
  bottom: -10px;
  left: calc(50% - 9px);
}

.pixels {
  position: absolute;
  right: -7%;
  bottom: -6%;
  display: grid;
  width: 47%;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  transform: rotate(-2deg);
  opacity: 0.88;
}

.pixels span {
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--surface) 80%, transparent);
  background: color-mix(in srgb, var(--coral) 52%, transparent);
}

.pixels span:nth-child(3n) {
  opacity: 0.58;
}

.pixels span:nth-child(4n) {
  transform: translate(18px, 10px) scale(0.72);
}

.pixels span:nth-child(7n) {
  transform: translate(32px, 24px) scale(0.45);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.privacy-note {
  grid-column: 1 / -1;
  margin: 0 0 1.5rem;
  max-width: 75ch;
  line-height: 1.6;
}

.not-found {
  display: grid;
  min-height: 100vh;
  place-content: center;
  padding: 2rem;
  text-align: center;
}

.not-found h1 {
  max-width: 760px;
  margin-top: 2rem;
  font-size: clamp(3rem, 8vw, 6rem);
}

.not-found p {
  margin-top: 2rem;
}

.not-found p a {
  color: var(--coral);
  font-weight: 700;
}

@keyframes pulse-arrow {
  0%,
  100% {
    opacity: 1;
    transform: translateX(0);
  }
  50% {
    opacity: 0.35;
    transform: translateX(4px);
  }
}

@media (max-width: 1050px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 4.5rem;
    padding-block: 4rem 6rem;
  }

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

  .visual {
    min-height: auto;
  }

  .image-stage {
    width: min(88vw, 680px);
  }
}

@media (max-width: 680px) {
  .site-header,
  .hero,
  .site-footer {
    width: min(100% - 2rem, 1440px);
  }

  .site-header {
    min-height: 96px;
    align-items: flex-start;
    gap: 0.5rem;
    padding-top: 1.25rem;
  }

  .wordmark {
    margin-top: 0.65rem;
    font-size: 1.7rem;
  }

  .theme-picker {
    display: grid;
    grid-template-columns: repeat(3, auto);
  }

  .theme-picker button {
    min-height: 38px;
    padding-inline: 0.45rem;
    font-size: 0.72rem;
  }

  .hero {
    gap: 3.75rem;
    padding-block: 3.5rem 5rem;
  }

  h1 {
    font-size: clamp(2.6rem, 13.5vw, 4.4rem);
    letter-spacing: -0.05em;
    line-height: 0.96;
  }

  .product-line {
    margin-top: 1.8rem;
    font-size: 1rem;
  }

  .visual {
    margin-inline: -0.5rem;
    padding-bottom: 2rem;
  }

  .image-stage {
    width: 100%;
    border-radius: 30px;
  }

  .crop-frame {
    inset: 15% 12% 16% 11%;
  }

  .pixels {
    right: -3%;
    bottom: -8%;
  }

  .site-footer {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
