/*
  Moodfield tanıtım sayfası: sakin, nefes hızında.
  Ortak token'lar, yazı tipleri, orb ve nefes bileşeni site.css'te.
  Hareket yalnızca 4 saniyelik nefes ritminde; geçişler uzun ve yumuşak.
*/

.landing {
  --glow: 0.3;
  --section: clamp(112px, 15vw, 200px);
  --device-bezel: linear-gradient(145deg, #3a3150, #17121f 40%, #2b2440);
}

@media (prefers-color-scheme: dark) {
  .landing {
    --glow: 0.14;
  }
}

.landing .display,
.landing .headline {
  font-weight: 430;
}

.landing .lead {
  line-height: 1.65;
}

/* MARK: Görünme: yalnızca yavaş bir belirme */

.js .reveal {
  opacity: 0;
  translate: 0 10px;
  transition: opacity 1.4s var(--ease), translate 1.4s var(--ease);
  transition-delay: calc(var(--i, 0) * 120ms);
}

.js .reveal.is-in {
  opacity: 1;
  translate: 0 0;
}

/* MARK: Bölüm düzeni */

.calm {
  position: relative;
  padding-block: var(--section);
}

.calm__head {
  max-width: 36rem;
}

.calm__head .eyebrow {
  margin-bottom: 18px;
}

.calm__head .lead {
  margin-top: 22px;
}

.calm__head--center {
  margin-inline: auto;
  text-align: center;
}

.calm__head--center .lead {
  margin-inline: auto;
}

.calm__note {
  margin-top: 20px;
  font-size: 0.95rem;
  color: var(--text-2);
  max-width: 34em;
}

.pair {
  display: grid;
  gap: clamp(56px, 7vw, 112px);
  align-items: center;
}

@media (min-width: 960px) {
  .pair {
    grid-template-columns: 1fr 1fr;
  }

  .pair--flip > :first-child {
    order: 2;
  }
}

.pair__visual {
  display: grid;
  justify-items: center;
}

/* MARK: Giriş */

.intro {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(104px + env(safe-area-inset-top)) var(--gutter) 96px;
  text-align: center;
  overflow-x: clip;
}

.intro__glow {
  --d: clamp(168px, 24vw, 248px);
  position: relative;
  width: var(--d);
  height: var(--d);
  margin: 0 auto clamp(48px, 7vh, 72px);
  isolation: isolate;
  animation: drift 48s ease-in-out infinite;
}

/* Hale gölgeyle değil radyal geçişle: büyük bulanıklık bazı tarayıcılarda kare kare çiziliyor. */
.intro__glow::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -75%;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--c) 42%, transparent),
    color-mix(in srgb, var(--c) 14%, transparent) 52%,
    transparent
  );
}

.intro__orb {
  --c: inherit;
  --d: inherit;
  box-shadow: none;
}

/* Sakin kelimelerin renkleri arasında çok yavaş bir dolaşma: Huzurlu, Dingin, Yorgun, Neşeli. */
@keyframes drift {
  0%,
  100% {
    --c: #a2dcaf;
  }
  25% {
    --c: #91d9d6;
  }
  50% {
    --c: #b9b8f6;
  }
  75% {
    --c: #e7d480;
  }
}

.intro .eyebrow {
  margin-bottom: 20px;
}

.intro .display {
  font-size: clamp(2.8rem, 1.5rem + 5vw, 5.6rem);
  line-height: 1.02;
}

.intro .lead {
  margin: 26px auto 0;
  max-width: 30em;
}

.store {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 40px;
}

.store-note {
  font-size: 0.95rem;
  color: var(--text-2);
}

.intro__scroll {
  position: absolute;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom));
  width: 1px;
  height: 48px;
  translate: -50% 0;
  background: linear-gradient(to bottom, transparent, var(--hairline) 30%, var(--hairline) 70%, transparent);
}

.intro__scroll::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-3);
  translate: -50% 0;
  animation: settle 4s ease-in-out infinite;
}

@keyframes settle {
  0% {
    top: 0;
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

/* MARK: Renk alanı */

.field-demo {
  display: grid;
  justify-items: center;
  gap: 32px;
  width: 100%;
}

.field {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1;
  border-radius: 40px;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  box-shadow: 0 48px 90px -56px rgb(42 33 64 / 0.5), inset 0 0 0 1px rgb(255 255 255 / 0.45);
}

.field.is-dragging {
  cursor: grabbing;
}

.field:focus-visible {
  outline-offset: 6px;
  border-radius: 40px;
}

.field canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.field__lines {
  position: absolute;
  inset: 12%;
  background:
    linear-gradient(to bottom, rgb(255 255 255 / 0.5) 50%, transparent 50%) center / 1.5px 9px repeat-y,
    linear-gradient(to right, rgb(255 255 255 / 0.5) 50%, transparent 50%) center / 9px 1.5px repeat-x;
  opacity: 0.7;
  pointer-events: none;
}

.field__axis {
  position: absolute;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(42 33 64 / 0.62);
  pointer-events: none;
}

@media (prefers-color-scheme: dark) {
  .field__axis {
    color: rgb(243 238 248 / 0.7);
  }

  .field__lines {
    opacity: 0.35;
  }
}

.field__axis--top {
  top: 16px;
  left: 50%;
  translate: -50% 0;
}

.field__axis--bottom {
  bottom: 16px;
  left: 50%;
  translate: -50% 0;
}

.field__axis--left,
.field__axis--right {
  top: 50%;
  writing-mode: vertical-rl;
  translate: 0 -50%;
}

.field__axis--left {
  left: 14px;
  rotate: 180deg;
}

.field__axis--right {
  right: 14px;
}

.field__orb {
  --d: 68px;
  position: absolute;
  left: 60%;
  top: 66%;
  translate: -50% -50%;
  transition: left 1.1s var(--ease), top 1.1s var(--ease), --c 0.8s var(--ease);
}

.field.is-dragging .field__orb {
  transition: left 0.12s linear, top 0.12s linear, --c 0.2s linear;
}

.readout {
  min-height: 10.5rem;
  max-width: 26rem;
  text-align: center;
  transition: opacity 0.45s var(--ease);
}

.readout.is-changing {
  opacity: 0.15;
}

.readout__word {
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 50, 'WONK' 0;
  font-optical-sizing: auto;
  font-weight: 430;
  font-size: clamp(2.3rem, 1.8rem + 1.8vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.readout__second {
  display: block;
  color: var(--text-2);
}

.readout__detail {
  margin-top: 14px;
  color: var(--text-2);
  text-wrap: balance;
}

.words-label {
  margin-top: 44px;
}

.word-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.word-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-2);
  cursor: pointer;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}

.word-chip::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: var(--blob);
  background: var(--w);
}

.word-chip:hover,
.word-chip[aria-pressed='true'] {
  color: var(--text);
  background: color-mix(in srgb, var(--w) 32%, var(--surface-strong));
}

/* MARK: Cihaz çerçeveleri (gerçek ekran görüntüleri) */

.device {
  --w: 300px;
  position: relative;
  width: min(var(--w), 76vw);
  padding: 9px;
  border-radius: 15.5% / 7.2%;
  background: var(--device-bezel);
  box-shadow:
    inset 0 0 0 1.5px rgb(255 255 255 / 0.1),
    0 60px 100px -56px rgb(42 33 64 / 0.55);
}

.device img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 660 / 1435;
  object-fit: cover;
  border-radius: 13.6% / 6.3%;
  background: var(--ground);
}

.today-visual {
  position: relative;
  isolation: isolate;
}

.today-visual::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 10% -30%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, #a2dcaf 45%, transparent), transparent);
  filter: blur(8px);
}

/* MARK: Nefes */

.breathe {
  text-align: center;
}

.breathe .breath {
  margin-top: clamp(40px, 6vw, 72px);
}

.breathe .breath__stage {
  width: min(100%, 360px);
}

.breathe .calm__note {
  margin: 28px auto 0;
}

/* MARK: Desenler: gece galerisi */

.night {
  margin-inline: clamp(0px, 1.2vw, 16px);
  border-radius: clamp(0px, 3vw, var(--radius-large));
  background:
    radial-gradient(60% 50% at 85% 15%, rgb(170 163 238 / 0.14), transparent 70%),
    radial-gradient(50% 50% at 10% 95%, rgb(146 226 196 / 0.08), transparent 70%),
    var(--night);
  color: var(--moon);
  --text: var(--moon);
  --text-2: rgb(243 238 248 / 0.76);
  --text-3: rgb(243 238 248 / 0.6);
  --hairline: rgb(243 238 248 / 0.14);
  overflow: hidden;
}

.night :focus-visible {
  outline-color: var(--moon);
}

.trio {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(20px, 3.4vw, 48px);
  margin-top: clamp(56px, 8vw, 96px);
}

.trio figure {
  display: grid;
  justify-items: center;
  gap: 20px;
  flex: none;
}

.trio .device {
  --w: 252px;
  box-shadow:
    inset 0 0 0 1.5px rgb(255 255 255 / 0.1),
    0 60px 100px -60px rgb(0 0 0 / 0.7);
}

.trio figure:nth-child(2) {
  margin-bottom: 40px;
}

.trio figure:nth-child(2) .device {
  --w: 272px;
}

.trio figcaption {
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 50, 'WONK' 0;
  font-weight: 430;
  font-size: 1.25rem;
  color: var(--text-2);
}

/* Dar ekranda üç telefon yatayda kayar; her biri ortaya oturur. */
@media (max-width: 899px) {
  .trio {
    justify-content: flex-start;
    align-items: flex-start;
    margin-inline: calc(var(--gutter) * -1);
    padding: 8px var(--gutter) 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .trio::-webkit-scrollbar {
    display: none;
  }

  .trio figure {
    scroll-snap-align: center;
  }

  .trio figure:nth-child(2) {
    margin-bottom: 0;
  }

  .trio .device,
  .trio figure:nth-child(2) .device {
    --w: 240px;
  }
}

.trio:focus-visible {
  outline-offset: -4px;
  border-radius: 24px;
}

.night .calm__note {
  margin: clamp(48px, 6vw, 72px) auto 0;
  text-align: center;
}

/* MARK: Apple Watch */

.watch-frame {
  position: relative;
  width: 236px;
  padding: 12px;
  border-radius: 64px / 70px;
  background: linear-gradient(150deg, #5a5072, #221c30 45%, #3d3553);
  box-shadow:
    inset 0 0 0 1.5px rgb(255 255 255 / 0.12),
    0 50px 80px -48px rgb(42 33 64 / 0.6);
}

.watch-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 416 / 496;
  border-radius: 52px / 58px;
  background: #0b0910;
}

.watch-frame::before,
.watch-frame::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%;
  width: 70%;
  height: 90px;
  translate: -50% 0;
  background: linear-gradient(to right, #3b3352, #4b4266 50%, #3b3352);
}

.watch-frame::before {
  bottom: calc(100% - 14px);
  border-radius: 24px 24px 0 0;
  mask-image: linear-gradient(to top, #000 50%, transparent);
  -webkit-mask-image: linear-gradient(to top, #000 50%, transparent);
}

.watch-frame::after {
  top: calc(100% - 14px);
  border-radius: 0 0 24px 24px;
  mask-image: linear-gradient(to bottom, #000 50%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent);
}

.watch-frame__crown {
  position: absolute;
  top: 64px;
  right: -8px;
  width: 12px;
  height: 44px;
  border-radius: 5px;
  background:
    repeating-linear-gradient(to bottom, rgb(255 255 255 / 0.2) 0 1.5px, transparent 1.5px 4px),
    linear-gradient(to right, #2a2338, #6c6286 60%, #3b3350);
}

.watch-visual {
  padding-block: 96px;
}

.gentle {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

.gentle li,
.privacy-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.gentle li::before,
.privacy-list li::before {
  content: '';
  flex: none;
  width: 11px;
  height: 11px;
  border-radius: var(--blob);
  background: var(--b, #a2dcaf);
  translate: 0 1px;
}

.gentle li:nth-child(2)::before,
.privacy-list li:nth-child(2)::before {
  --b: #91d9d6;
}

.gentle li:nth-child(3)::before,
.privacy-list li:nth-child(3)::before {
  --b: #b9b8f6;
}

.privacy-list li:nth-child(4)::before {
  --b: #e7d480;
}

/* MARK: Gizlilik */

.privacy-list {
  display: grid;
  gap: 22px;
  max-width: 34rem;
  font-size: 1.05rem;
  color: var(--text-2);
}

.privacy-list strong {
  color: var(--text);
}

/* MARK: Kapanış */

.closing {
  text-align: center;
  isolation: isolate;
}

.closing__orb {
  --d: 112px;
  --c: #a2dcaf;
  margin: 0 auto 48px;
}

.closing .lead {
  margin: 22px auto 0;
}

/* MARK: Hareketi azalt */

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    translate: none;
    transition: opacity 0.6s;
  }

  .field__orb {
    transition: none;
  }

  .intro__scroll {
    display: none;
  }
}
