@font-face { font-family: "Playfair"; src: url("../fonts/playfair-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --night: #0B0A24;
  --deep: #07061A;
  --dusk: #1A1740;
  --violet: #2A2358;
  --cream: #F6E3C4;
  --gold: #F2C98A;
  --lavender: #D3B3D5;
  --text: #ECE7F5;
  --muted: #A8A1C4;
  --glass: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.12);
  --display: "Playfair", Georgia, "Times New Roman", serif;
  --body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --page: min(1180px, 100% - 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(900px 600px at 85% 8%, rgba(86, 62, 160, 0.35), transparent 70%),
    radial-gradient(700px 500px at 5% 35%, rgba(42, 60, 150, 0.25), transparent 70%),
    linear-gradient(var(--deep), var(--night) 40%, #100E30);
  background-color: var(--deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 500; color: var(--cream); letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(46px, 7.2vw, 92px); line-height: 1.04; }
h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.12; }
h3 { font-family: var(--body); font-weight: 600; font-size: 18px; color: var(--cream); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--text); opacity: 0.86; max-width: 34em; }
.center { text-align: center; }

/* Navigation */
.nav {
  position: fixed; z-index: 20; top: 14px; left: 50%; transform: translateX(-50%);
  width: var(--page);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 10px 8px 12px;
  border-radius: 999px;
  background: rgba(13, 11, 40, 0.62);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 22px; color: var(--cream); }
.brand img { border-radius: 11px; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--muted); padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--cream); background: var(--glass); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; padding: 3px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); }
.lang button { font: 600 12.5px var(--body); letter-spacing: 0.06em; color: var(--muted); background: none; border: 0; padding: 7px 11px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { color: var(--deep); background: var(--cream); }
.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 600; border-radius: 999px; color: var(--deep); background: var(--cream); transition: transform .2s, box-shadow .2s; }
.btn-small { font-size: 14px; padding: 10px 18px; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(242, 201, 138, 0.35); }

/* Hero */
.hero {
  position: relative;
  width: var(--page); margin: 0 auto;
  min-height: min(100svh, 980px);
  padding: 150px 0 190px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 40px;
}
.hero-text { position: relative; z-index: 2; }
.hero .lead { margin-top: 26px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 38px; }
.store { display: inline-block; border-radius: 12px; transition: transform .25s, filter .25s; filter: drop-shadow(0 10px 34px rgba(242, 201, 138, 0.38)); }
.store img { display: block; height: 60px; width: auto; }
.store:hover { transform: translateY(-2px); filter: drop-shadow(0 14px 44px rgba(242, 201, 138, 0.55)); }
.ghost { font-size: 15px; font-weight: 500; color: var(--cream); text-decoration: none; border-bottom: 1px solid rgba(246, 227, 196, 0.4); padding-bottom: 3px; }
.ghost:hover { border-color: var(--cream); }
.fine { margin-top: 26px; font-size: 13.5px; color: var(--muted); }

.hero-art { position: relative; height: 640px; z-index: 1; }
.glow { position: absolute; left: 50%; top: 46%; width: 520px; height: 520px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(242, 201, 138, 0.3), rgba(140, 100, 220, 0.18) 45%, transparent 70%); filter: blur(10px); }
.phone {
  border-radius: 42px; padding: 9px;
  background: linear-gradient(160deg, #3A356B, #14122F 40%, #0A0920);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 30px 80px rgba(0, 0, 0, 0.55);
}
.phone img { border-radius: 34px; width: 100%; }
.hero-art .phone { position: absolute; top: 50%; left: 50%; width: 272px; }
.phone-main { transform: translate(-50%, -50%); z-index: 3; animation: float 9s ease-in-out infinite; }
.phone-left { transform: translate(-112%, -47%) rotate(-9deg) scale(0.86); z-index: 2; opacity: 0.92; }
.phone-right { transform: translate(12%, -47%) rotate(9deg) scale(0.86); z-index: 2; opacity: 0.92; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

.clouds {
  position: absolute; z-index: 1; left: 50%; bottom: -2px; width: 100vw; height: 240px; transform: translateX(-50%);
  background: url("../img/clouds.webp") center bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(transparent, #000 45%); mask-image: linear-gradient(transparent, #000 45%);
  pointer-events: none;
}

/* Art strip */
.strip { overflow: hidden; padding: 26px 0 10px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.strip-track { display: flex; gap: 18px; width: max-content; animation: slide 70s linear infinite; }
.strip-track img { width: 250px; height: 214px; object-fit: cover; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35); }
.strip:hover .strip-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Sections */
.section { width: var(--page); margin: 0 auto; padding: clamp(80px, 11vw, 150px) 0 0; }

.ritual { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.ritual-art img { border-radius: 32px; border: 1px solid var(--line); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5), 0 0 120px rgba(100, 80, 200, 0.18); }
.ritual .lead { margin-top: 20px; }
.steps { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 12px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; padding: 18px 20px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); }
.steps span { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 18px; color: var(--deep); background: var(--gold); }
.steps p { margin-top: 4px; font-size: 15px; color: var(--muted); }

.inside h2 { max-width: 16em; margin: 0 auto; }
.showcase { margin-top: 56px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.cards { display: grid; gap: 16px; }
.card { padding: 26px; border-radius: 24px; background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)); border: 1px solid var(--line); }
.icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--gold); background: rgba(242, 201, 138, 0.12); border: 1px solid rgba(242, 201, 138, 0.3); margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; }
.card p { margin-top: 8px; font-size: 15.5px; color: var(--muted); }
.trio { display: flex; justify-content: center; align-items: center; }
.trio .phone { width: 34%; max-width: 230px; border-radius: 34px; padding: 7px; }
.trio .phone img { border-radius: 28px; }
.trio .phone:nth-child(1) { transform: rotate(-6deg) translateX(14%); }
.trio .phone:nth-child(2) { width: 38%; max-width: 260px; z-index: 2; }
.trio .phone:nth-child(3) { transform: rotate(6deg) translateX(-14%); }

.calm-box {
  text-align: center; padding: clamp(40px, 6vw, 80px) clamp(22px, 5vw, 70px);
  border-radius: 40px; border: 1px solid var(--line);
  background:
    linear-gradient(rgba(11, 10, 36, 0.78), rgba(11, 10, 36, 0.9)),
    url("../img/cozy.webp") center / cover no-repeat;
}
.nos { list-style: none; padding: 0; margin: 44px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 900px; }
.nos li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 16px; border-radius: 24px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.nos svg { width: 44px; height: 44px; color: var(--cream); margin-bottom: 8px; }
.nos b { font-family: var(--display); font-weight: 500; font-size: 24px; color: var(--cream); }
.nos span { font-size: 14.5px; color: var(--muted); }
.calm-note { margin: 36px auto 0; max-width: 32em; color: var(--text); opacity: 0.86; }

/* Final call */
.final { position: relative; margin-top: clamp(80px, 11vw, 150px); text-align: center; overflow: hidden; }
.final-art {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: min(860px, 100%); height: 100%;
  background: url("../img/dream.webp") center top / 100% auto no-repeat;
  -webkit-mask-image: radial-gradient(ellipse 50% 46% at 50% 36%, #000 45%, transparent 100%); mask-image: radial-gradient(ellipse 50% 46% at 50% 36%, #000 45%, transparent 100%);
}
.final-text { position: relative; width: var(--page); margin: 0 auto; padding: min(62vw, 520px) 0 110px; display: flex; flex-direction: column; align-items: center; }
.final-text h2 { text-shadow: 0 2px 30px rgba(7, 6, 26, 0.9); }
.final-text p { margin: 20px 0 34px; max-width: 30em; color: var(--text); opacity: 0.9; text-shadow: 0 1px 16px rgba(7, 6, 26, 0.9); }

/* Footer */
.footer { width: var(--page); margin: 0 auto; padding: 36px 0 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; border-top: 1px solid var(--line); }
.footer .brand { font-size: 19px; }
.footer .brand img { border-radius: 9px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer nav a { font-size: 14px; color: var(--muted); text-decoration: none; }
.footer nav a:hover { color: var(--cream); }
.copy { width: 100%; font-size: 13px; color: var(--muted); opacity: 0.8; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
.trio .phone.reveal.in:nth-child(1) { transform: rotate(-6deg) translateX(14%); }
.trio .phone.reveal.in:nth-child(3) { transform: rotate(6deg) translateX(-14%); }

/* Tablet */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; text-align: center; padding: 130px 0 170px; gap: 20px; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero-art { height: 560px; margin-top: 10px; }
  .hero-art .phone { width: 240px; }
  .ritual, .showcase { grid-template-columns: 1fr; }
  .ritual-art { max-width: 460px; margin: 0 auto; }
  .ritual-text { text-align: left; }
  .showcase .trio { order: -1; }
}

/* Phone */
@media (max-width: 600px) {
  :root { --page: calc(100% - 36px); }
  body { font-size: 16px; }
  .nav { top: 10px; padding: 6px 8px 6px 10px; }
  .brand { font-size: 19px; }
  .brand img { width: 34px; height: 34px; }
  .btn-small { display: none; }
  .hero { padding: 112px 0 130px; }
  .store img { height: 64px; }
  .hero-art { height: 470px; }
  .hero-art .phone { width: 200px; border-radius: 34px; padding: 7px; }
  .hero-art .phone img { border-radius: 28px; }
  .phone-left { transform: translate(-96%, -47%) rotate(-9deg) scale(0.84); }
  .phone-right { transform: translate(-4%, -47%) rotate(9deg) scale(0.84); }
  .glow { width: 340px; height: 340px; }
  .clouds { height: 150px; }
  .strip-track img { width: 180px; height: 154px; border-radius: 18px; }
  .nos { grid-template-columns: 1fr; }
  .nos li { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; text-align: left; padding: 18px 20px; column-gap: 14px; }
  .nos svg { width: 34px; height: 34px; margin: 0; }
  .nos span { width: 100%; padding-left: 48px; margin-top: -4px; }
  .calm-box { border-radius: 28px; }
  .ritual-art img { aspect-ratio: 4 / 3.4; object-fit: cover; object-position: center 35%; }
  .final-text { padding-top: 94vw; }
  .footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone-main, .strip-track { animation: none; }
  .strip { overflow-x: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
