/* File: styles.css */
/* Purpose: Matches Serotone's restrained native liquid-glass product language. */

:root {
  --layout-unit: min(1px, calc(100vh / 640), calc(100vw / 320));
  --layout-unit: min(1px, calc(100dvh / 640), calc(100vw / 320));
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: clip;
  overscroll-behavior: none;
}

body {
  margin: 0;
  color: #fff;
  background-color: #6f8292;
  -webkit-font-smoothing: antialiased;
}

.nature-background {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.nature-still,
.nature-video,
.nature-sky {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  filter: saturate(0.7) contrast(0.95);
}

.nature-video {
  opacity: 0;
}

.nature-sky {
  z-index: 3;
  -webkit-mask-image: linear-gradient(to bottom, #000 25%, rgb(0 0 0 / 90%) 27%, rgb(0 0 0 / 50%) 30%, rgb(0 0 0 / 10%) 33%, transparent 35%);
  mask-image: linear-gradient(to bottom, #000 25%, rgb(0 0 0 / 90%) 27%, rgb(0 0 0 / 50%) 30%, rgb(0 0 0 / 10%) 33%, transparent 35%);
}

.nature-background::after {
  position: absolute;
  z-index: 4;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgb(19 43 69 / 16%), rgb(19 39 65 / 34%)),
    rgb(108 151 186 / 7%);
}

a {
  color: inherit;
}

.landing {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100% - 48px, 1040px);
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  margin-inline: auto;
  place-items: center;
}

.composition {
  display: flex;
  align-items: center;
  flex-direction: column;
  max-width: 100%;
  min-width: 0;
  padding: calc(72 * var(--layout-unit)) 0;
  text-align: center;
}

.landing-brand {
  display: inline-flex;
  gap: calc(8 * var(--layout-unit));
  align-items: center;
  margin-bottom: calc(24 * var(--layout-unit));
  color: #fff;
  font-size: min(clamp(1.08rem, 1.35vw, 1.28rem), calc(20.48 * var(--layout-unit)));
  font-weight: 620;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 18px rgb(0 0 0 / 22%);
  transform: translateY(calc(-76 * var(--layout-unit)));
}

.landing-brand img {
  width: calc(36 * var(--layout-unit));
  height: calc(36 * var(--layout-unit));
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: min(clamp(3.4rem, 7vw, 5.8rem), calc(92.8 * var(--layout-unit)));
  font-weight: 590;
  letter-spacing: -0.065em;
  line-height: 0.95;
  text-shadow: 0 3px 32px rgb(0 0 0 / 20%);
  text-wrap: balance;
}

.headline-primary,
.headline-secondary {
  display: block;
}

.headline-secondary {
  margin-top: calc(12 * var(--layout-unit));
  color: rgb(255 255 255 / 64%);
  font-size: 0.58em;
  font-weight: 430;
  letter-spacing: -0.045em;
}

.prompt-preview {
  width: min(calc(520 * var(--layout-unit)), 100%);
  margin-top: calc(46 * var(--layout-unit));
}

.prompt-surface {
  position: relative;
  display: flex;
  min-height: calc(58 * var(--layout-unit));
  align-items: center;
  justify-content: space-between;
  gap: calc(14 * var(--layout-unit));
  padding: calc(4 * var(--layout-unit)) calc(6 * var(--layout-unit)) calc(4 * var(--layout-unit)) calc(18 * var(--layout-unit));
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 62%);
  border-radius: 29px;
  background: linear-gradient(
    135deg,
    rgb(255 255 255 / 52%),
    rgb(255 255 255 / 22%)
  );
  box-shadow:
    0 24px 70px rgb(19 36 54 / 20%),
    inset 0 1px 0 rgb(255 255 255 / 74%),
    inset 0 -1px 0 rgb(255 255 255 / 18%),
    inset 0 0 0 1px rgb(17 19 24 / 4%);
  -webkit-backdrop-filter: blur(32px) saturate(165%);
  backdrop-filter: blur(32px) saturate(165%);
}

.prompt-placeholder {
  color: rgb(17 19 24 / 70%);
  font-size: min(0.98rem, calc(15.68 * var(--layout-unit)));
  letter-spacing: -0.012em;
}

.prompt-entry {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: calc(10 * var(--layout-unit));
}

.prompt-logo {
  width: calc(26 * var(--layout-unit));
  height: calc(26 * var(--layout-unit));
  flex: 0 0 auto;
  opacity: 0.62;
  filter: brightness(0);
}

.prompt-action {
  display: grid;
  width: calc(40 * var(--layout-unit));
  height: calc(40 * var(--layout-unit));
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: rgb(17 19 24 / 56%);
  background: rgb(255 255 255 / 20%);
}

.prompt-action svg {
  width: calc(18 * var(--layout-unit));
  height: calc(18 * var(--layout-unit));
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.shortcut-hint {
  margin: calc(14 * var(--layout-unit)) 0 0;
  color: rgb(255 255 255 / 72%);
  font-size: min(0.78rem, calc(12.48 * var(--layout-unit)));
  text-shadow: 0 1px 12px rgb(0 0 0 / 20%);
}

.shortcut-hint span {
  margin-right: 5px;
  color: rgb(255 255 255 / 92%);
  font-weight: 560;
}

@media (max-width: 1200px) {
  .landing-brand {
    transform: translateY(calc(-88 * var(--layout-unit)));
  }
}

@media (max-width: 720px) {
  .nature-still,
  .nature-video,
  .nature-sky {
    object-position: 58% center;
  }

  .landing {
    width: calc(100% - 32px);
  }

  h1 {
    font-size: min(clamp(3.1rem, 15vw, 4.8rem), calc(76.8 * var(--layout-unit)));
  }

  .prompt-surface {
    padding-left: calc(17 * var(--layout-unit));
  }

}

@media (max-height: 640px) {
  .landing-brand {
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .prompt-surface {
    background: rgb(247 244 241 / 92%);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
