/* ==========================================================================
   COYTOY — Design System
   Palette: warm paper + lilac + deep plum
   ========================================================================== */

:root {
  --paper: #fbf8f5;
  --paper-2: #f7f1f8;
  --paper-3: #f2e9f6;
  --ink: #241533;
  --ink-2: #5b4a68;
  --muted: #7b6a88;
  --line: rgba(36, 21, 51, 0.12);
  --line-strong: rgba(36, 21, 51, 0.24);
  --lilac: #b79af2;
  --lilac-soft: #e7dbf7;
  --violet: #7b4fd6;
  --violet-deep: #5b35a8;
  --plum: #3b2156;
  --plum-deep: #241230;
  --blush: #f3cfd8;
  --cream: #f0e3d3;
  --white: #ffffff;
  --container: 1440px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 64px;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-latin: "Century Gothic", "Avenir Next", "Futura", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 24px 70px rgba(36, 21, 51, 0.08);
  --shadow-lift: 0 30px 80px rgba(36, 21, 51, 0.14);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-top: var(--header-h);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
::selection { background: var(--lilac); color: var(--plum-deep); }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - var(--gutter) * 2, 980px);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

.display {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.04em;
}

h1, h2, h3, h4 { font-weight: 600; line-height: 1.25; letter-spacing: 0.01em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-latin);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--violet);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.eyebrow.light { color: rgba(255, 255, 255, 0.72); }
.eyebrow.center { justify-content: center; }

.section-title {
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.2;
  letter-spacing: 0.04em;
  font-weight: 600;
  text-wrap: balance;
}

.section-title em {
  font-style: normal;
  color: var(--violet);
}

.title-en {
  display: block;
  margin-top: 18px;
  font-family: var(--font-latin);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
}

.lead {
  font-size: 15.5px;
  line-height: 2;
  color: var(--ink-2);
}

.text-muted { color: var(--muted); }

/* --------------------------------------------------------------------------
   Layout / section
   -------------------------------------------------------------------------- */

.section {
  position: relative;
  padding: clamp(76px, 9vw, 128px) 0;
}

.section.tight { padding: clamp(56px, 6vw, 84px) 0; }
.section.paper-2 { background: var(--paper-2); }
.section.paper-3 { background: var(--paper-3); }
.section.dark { background: var(--plum-deep); color: var(--white); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head .head-copy { max-width: 620px; }
.section-head .head-side { max-width: 420px; padding-bottom: 6px; }

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.split.reverse > :first-child { order: 2; }

/* --------------------------------------------------------------------------
   Buttons / links
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--violet); }

.btn-violet { background: var(--violet); color: var(--white); }
.btn-violet:hover { background: var(--violet-deep); }

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.28);
  color: var(--ink);
}

.btn-ghost:hover { background: var(--white); border-color: var(--ink); }

.btn-light { background: var(--white); color: var(--plum-deep); }
.btn-light:hover { background: var(--lilac-soft); }

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); }

.btn-sm { height: 42px; padding: 0 22px; font-size: 13px; }
.btn-block { width: 100%; }

.btn .arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.35s var(--ease);
}

.btn:hover .arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 13px;
  letter-spacing: 0.14em;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.link-arrow:hover { color: var(--violet); border-color: var(--violet); }

.link-arrow svg { width: 14px; height: 14px; }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  background: rgba(251, 248, 245, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--line);
  box-shadow: 0 12px 36px rgba(36, 21, 51, 0.06);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 40px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(123, 79, 214, 0.24);
}

.brand-word {
  font-family: var(--font-latin);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1;
  color: var(--ink);
}

.brand-word small {
  display: block;
  margin-top: 5px;
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.36em;
  color: var(--muted);
}

.desktop-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav-item { position: relative; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: var(--header-h);
  padding: 0 clamp(10px, 1.25vw, 20px);
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 17px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--violet);
  opacity: 0;
  transform: translate(-50%, 6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.is-active { color: var(--violet); }
.nav-item:hover > .nav-link::after,
.nav-link.is-active::after { opacity: 1; transform: translate(-50%, 0); }

.nav-link .chev {
  width: 9px;
  height: 9px;
  opacity: 0.45;
  transition: transform 0.3s var(--ease);
}

.nav-item:hover > .nav-link .chev { transform: rotate(180deg); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  margin-left: 12px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.12em;
  transition: background 0.3s var(--ease);
}

.header-cta:hover { background: var(--violet); }
.header-cta svg { width: 12px; height: 12px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border-radius: 50%;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.2s;
}

.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Simple dropdown */
.nav-drop {
  position: absolute;
  top: calc(var(--header-h) - 6px);
  left: 50%;
  min-width: 214px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(36, 21, 51, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
}

.nav-item:hover > .nav-drop,
.nav-item:focus-within > .nav-drop {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-drop a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: background 0.25s, color 0.25s;
}

.nav-drop a:hover { background: var(--paper-2); color: var(--violet); }
.nav-drop a span { font-family: var(--font-latin); font-size: 9px; letter-spacing: 0.14em; color: var(--muted); }

/* Mega menu */
.mega-panel {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 990;
  padding: 36px 0 42px;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 40px 80px rgba(36, 21, 51, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease), visibility 0.32s;
}

.nav-item.has-mega:hover > .mega-panel,
.nav-item.has-mega:focus-within > .mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-grid {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 76px);
}

.mega-cats {
  border-top: 1px solid var(--line);
}

.mega-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 15px;
  color: var(--ink-2);
  transition: color 0.25s, padding-left 0.25s;
}

.mega-cat span {
  font-family: var(--font-latin);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.mega-cat:hover,
.mega-cat.is-active { color: var(--violet); padding-left: 10px; }

.mega-cat.is-active span { color: var(--violet); }

.mega-main { min-width: 0; }

.mega-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.mega-head h3 { font-size: 24px; letter-spacing: 0.03em; }

.mega-head p {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.mega-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.mega-card { group: product; }

.mega-card .mega-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 18px;
  background: var(--paper-2);
}

.mega-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.mega-card:hover img { transform: scale(1.05); }

.mega-card .mega-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.mega-card strong { font-size: 14px; font-weight: 500; }
.mega-card small { font-size: 12px; color: var(--muted); }
.mega-card:hover strong { color: var(--violet); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1002;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform 0.5s var(--ease), visibility 0.5s;
}

.nav-open .mobile-drawer { transform: none; visibility: visible; }

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
}

.drawer-close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.drawer-close svg { width: 16px; height: 16px; }

.mobile-nav {
  flex: 1;
  overflow-y: auto;
  padding: 16px var(--gutter) 40px;
}

.m-nav-group { border-bottom: 1px solid var(--line); }

.m-nav-link,
.m-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 0;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-align: left;
}

.m-nav-link.is-active { color: var(--violet); }
.m-nav-toggle .chev { width: 12px; height: 12px; transition: transform 0.3s; }
.m-nav-group.is-open .m-nav-toggle .chev { transform: rotate(180deg); }

.m-sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.m-sub > div { overflow: hidden; }

.m-nav-group.is-open .m-sub { grid-template-rows: 1fr; }

.m-sub a {
  display: block;
  padding: 9px 0 9px 16px;
  font-size: 15px;
  color: var(--ink-2);
  border-left: 1px solid var(--line);
}

.m-sub a:hover { color: var(--violet); }

.mobile-drawer-foot {
  padding: 24px var(--gutter) calc(26px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mobile-drawer-foot small { font-size: 11px; letter-spacing: 0.1em; color: var(--muted); }

/* Mobile bottom tabbar */
.mobile-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}

.mobile-tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 62px;
  font-size: 10px;
  color: var(--muted);
}

.mobile-tabbar svg { width: 20px; height: 20px; }
.mobile-tabbar a.is-active { color: var(--violet); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  height: clamp(620px, 84vh, 880px);
  overflow: hidden;
  background: var(--paper-2);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s var(--ease), visibility 1s;
}

.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
  background-image: url("../assets/img/grain.svg");
  background-size: 220px 220px;
}

.slide-light { background: radial-gradient(1100px 680px at 76% 38%, #e8daf9 0%, #f7f0fa 48%, #fbf8f5 100%); }
.slide-dark { background: var(--plum-deep); color: var(--white); }
.slide-lilac { background: linear-gradient(118deg, #f2e6fb 0%, #e6d4f8 52%, #f7edf5 100%); }

.hero-slide.slide-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/img/silk.svg");
  background-size: cover;
  background-position: center;
  opacity: 0.9;
}

.hero-slide.slide-light::after,
.slide-lilac::after {
  content: "";
  position: absolute;
  width: 56vw;
  height: 56vw;
  max-width: 900px;
  max-height: 900px;
  right: -10vw;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 66%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: none;
  padding-bottom: 44px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  font-family: var(--font-latin);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--violet);
  text-transform: uppercase;
}

.slide-dark .hero-kicker { color: var(--lilac); }

.hero-kicker::before { content: ""; width: 34px; height: 1px; background: currentColor; }

.hero-title {
  font-size: clamp(50px, 6.2vw, 94px);
  line-height: 1.06;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.hero-title .outline {
  display: block;
  font-family: var(--font-latin);
  font-size: 0.24em;
  letter-spacing: 0.42em;
  color: var(--muted);
  margin-top: 18px;
  font-weight: 500;
}

.slide-dark .hero-title .outline { color: rgba(255, 255, 255, 0.42); }

.hero-desc {
  max-width: 460px;
  margin-top: 30px;
  font-size: 15.5px;
  line-height: 2;
  color: var(--ink-2);
}

.slide-dark .hero-desc { color: rgba(255, 255, 255, 0.68); }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-plate {
  position: absolute;
  top: 50%;
  right: 13%;
  width: min(44vw, 640px);
  aspect-ratio: 1 / 1;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 42% 36%, #fdfaff 0%, #eadcf8 45%, rgba(234, 220, 248, 0) 72%);
  opacity: 0.9;
}

.hero-device {
  position: absolute;
  filter: drop-shadow(0 40px 60px rgba(58, 33, 84, 0.22));
  will-change: transform;
}

.hero-device.a {
  width: min(23vw, 340px);
  right: 26%;
  top: 13%;
  transform: rotate(7deg);
  animation: float 9s ease-in-out infinite;
}

.hero-device.b {
  width: min(17vw, 250px);
  right: 14%;
  bottom: 10%;
  transform: rotate(-9deg);
  animation: float-alt 11s ease-in-out infinite;
}

.hero-device.c {
  width: min(26vw, 390px);
  right: 20%;
  top: 50%;
  transform: translateY(-50%) rotate(-4deg);
  filter: drop-shadow(0 50px 70px rgba(20, 8, 32, 0.4));
  animation: float 12s ease-in-out infinite;
}

.slide-dark .hero-device { filter: drop-shadow(0 50px 70px rgba(0, 0, 0, 0.45)); }

.hero-index {
  position: absolute;
  right: var(--gutter);
  bottom: 34px;
  z-index: 4;
  font-family: var(--font-latin);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--muted);
  mix-blend-mode: difference;
}

.hero[data-theme="dark"] .hero-index { color: rgba(255, 255, 255, 0.6); mix-blend-mode: normal; }

.hero[data-theme="dark"] .hero-arrow {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.hero[data-theme="dark"] .hero-arrow:hover { background: var(--white); color: var(--plum-deep); }

.hero[data-theme="dark"] .hero-dot { background: rgba(255, 255, 255, 0.24); }

.hero[data-theme="dark"] .hero-dot.is-active { background: var(--lilac); }

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 5;
  width: min(100% - var(--gutter) * 2, var(--container));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-dots { display: flex; align-items: center; gap: 9px; }

.hero-dot {
  width: 26px;
  height: 2px;
  background: rgba(36, 21, 51, 0.2);
  transition: width 0.4s var(--ease), background 0.4s;
}

.slide-dark .hero-dot { background: rgba(255, 255, 255, 0.24); }

.hero-dot.is-active { width: 46px; background: var(--violet); }
.slide-dark .hero-dot.is-active { background: var(--lilac); }

.hero-arrows { display: flex; gap: 8px; }

.hero-arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.hero-arrow svg { width: 16px; height: 16px; }
.hero-arrow:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.hero-tagline {
  position: absolute;
  right: calc(var(--gutter) + 90px);
  bottom: 40px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-latin);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--muted);
  writing-mode: vertical-rl;
}

/* Marquee */
.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 46px;
  width: max-content;
  padding: 16px 0;
  animation: marquee 34s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 46px;
  font-family: var(--font-latin);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  color: var(--muted);
  white-space: nowrap;
  text-transform: uppercase;
}

.marquee-track span::after {
  content: "✳";
  font-size: 11px;
  color: var(--lilac);
}

/* --------------------------------------------------------------------------
   Product cards
   -------------------------------------------------------------------------- */

.product-card { display: block; min-width: 0; }

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--paper-2);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.product-card:hover .product-media img { transform: scale(1.045); }

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(6px);
  font-family: var(--font-latin);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--violet);
  text-transform: uppercase;
}

.product-quick {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(36, 21, 51, 0.16);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), background 0.3s;
}

.product-quick svg { width: 16px; height: 16px; }
.product-card:hover .product-quick { opacity: 1; transform: none; }
.product-quick:hover { background: var(--violet); color: var(--white); }

.product-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
}

.product-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.3s;
}

.product-card:hover .product-name { color: var(--violet); }

.product-price {
  font-family: var(--font-latin);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  white-space: nowrap;
}

.product-sub {
  margin-top: 3px;
  font-size: 13px;
  color: var(--muted);
}

.product-cat {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-latin);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--violet);
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Phone mockup
   -------------------------------------------------------------------------- */

.phone {
  position: relative;
  width: 286px;
  aspect-ratio: 9 / 19.2;
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(150deg, #3a2552, #160d21);
  box-shadow: 0 50px 90px rgba(36, 21, 51, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 4;
  width: 84px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #150d20;
}

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 38px;
  background: linear-gradient(160deg, #e9ddfa 0%, #f3e8f6 45%, #f7eef5 100%);
}

.app-mock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 36px 14px 58px;
}

.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-latin);
  font-size: 7px;
  letter-spacing: 0.16em;
  color: #6d5b80;
}

.app-brandline {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 8.5px;
  font-weight: 500;
  color: #5f3fb0;
}

.app-brandline i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(140deg, #b79af2, #7b4fd6);
}

.app-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.app-mode {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  aspect-ratio: 1 / 0.92;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 18px rgba(80, 52, 120, 0.08);
  font-size: 8px;
  color: #4d3a62;
}

.app-mode svg { width: 22px; height: 22px; color: #8b63cf; }

.app-tabbar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 4px 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  text-align: center;
  font-size: 6.5px;
  color: #9a8aa8;
}

.app-tabbar span.is-active { color: #7b4fd6; }
.app-tabbar svg { width: 13px; height: 13px; margin: 0 auto 2px; }

/* --------------------------------------------------------------------------
   Accordion
   -------------------------------------------------------------------------- */

.accordion { border-top: 1px solid var(--line); }

.acc-item { border-bottom: 1px solid var(--line); }

.acc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 22px 0;
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

.acc-head .plus {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.acc-head .plus::before,
.acc-head .plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease), background 0.3s;
}

.acc-head .plus::after { transform: translate(-50%, -50%) rotate(90deg); }

.acc-item.is-open .acc-head .plus::after { transform: translate(-50%, -50%) rotate(0); }
.acc-item.is-open .acc-head { color: var(--violet); }
.acc-item.is-open .acc-head .plus::before,
.acc-item.is-open .acc-head .plus::after { background: var(--violet); }

.acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.acc-body > div { overflow: hidden; }

.acc-item.is-open .acc-body { grid-template-rows: 1fr; }

.acc-body p {
  padding: 0 0 24px;
  max-width: 760px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   Page hero (subpages)
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 8vw, 108px) 0 clamp(60px, 7vw, 92px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(150deg, #f8f2f9 0%, #fbf8f5 55%, #f1e7f8 100%);
}

.page-hero::after {
  content: attr(data-word);
  position: absolute;
  right: -2vw;
  bottom: -0.28em;
  z-index: 0;
  font-family: var(--font-latin);
  font-size: clamp(120px, 24vw, 360px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(123, 79, 214, 0.16);
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
  font-size: 12px;
  color: var(--muted);
}

.breadcrumb a:hover { color: var(--violet); }
.breadcrumb span { opacity: 0.5; }

.page-title {
  font-size: clamp(48px, 6.4vw, 92px);
  line-height: 1.06;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.page-sub {
  max-width: 560px;
  margin-top: 24px;
  font-size: 15px;
  line-height: 2;
  color: var(--ink-2);
}

.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 48px;
  margin-top: 46px;
}

.page-hero-meta div strong {
  display: block;
  font-family: var(--font-latin);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--violet);
  text-transform: uppercase;
}

.page-hero-meta div span { font-size: 13px; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  background: var(--plum-deep);
  color: rgba(255, 255, 255, 0.66);
  padding-top: clamp(64px, 8vw, 96px);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(183, 154, 242, 0.16), transparent 68%);
  pointer-events: none;
}

.footer-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr repeat(4, minmax(0, 0.62fr)) 1.05fr;
  gap: clamp(28px, 3.5vw, 56px);
  padding-bottom: 64px;
}

.footer-brand .brand-word { color: var(--white); }
.footer-brand .brand-word small { color: rgba(255, 255, 255, 0.42); }

.footer-slogan {
  margin-top: 24px;
  max-width: 260px;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.52);
}

.footer-socials { display: flex; gap: 8px; margin-top: 26px; }

.footer-socials a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  font-family: var(--font-latin);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.footer-socials a:hover { background: var(--lilac); color: var(--plum-deep); border-color: var(--lilac); }

.footer-col h4 {
  margin-bottom: 20px;
  font-family: var(--font-latin);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
}

.footer-col h4 span {
  display: block;
  margin-top: 5px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.36);
}

.footer-col li + li { margin-top: 9px; }

.footer-col a {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.25s;
}

.footer-col a:hover { color: var(--lilac); }

.footer-contact { min-width: 0; }

.footer-phone {
  display: block;
  font-family: var(--font-latin);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
}

.footer-contact p {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.5);
}

.footer-qr {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.footer-qr img {
  width: 84px;
  height: 84px;
  padding: 6px;
  border-radius: 12px;
  background: var(--white);
}

.footer-qr small {
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.44);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.36);
}

.footer-bottom .fb-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom a:hover { color: var(--lilac); }

.footer-wordmark {
  position: relative;
  z-index: 0;
  margin-top: 10px;
  font-family: var(--font-latin);
  font-size: clamp(80px, 18vw, 250px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.72;
  text-align: center;
  color: rgba(255, 255, 255, 0.035);
  user-select: none;
  pointer-events: none;
  transform: translateY(16%);
}

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 15px; height: 15px; color: var(--lilac); }

/* --------------------------------------------------------------------------
   Reveal animation
   -------------------------------------------------------------------------- */

/* Only hide reveal blocks when JS is running, so content stays readable
   with JS disabled or blocked. The `js` class is set inline in <head>. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}

.js .reveal.is-in { opacity: 1; transform: none; }

@keyframes float {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -18px; }
}

@keyframes float-alt {
  0%, 100% { margin-bottom: 0; }
  50% { margin-bottom: -22px; }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes pulse-ring {
  0% { transform: scale(0.92); opacity: 0.55; }
  70% { transform: scale(1.18); opacity: 0; }
  100% { opacity: 0; }
}

@keyframes dash {
  to { stroke-dashoffset: 0; }
}

/* --------------------------------------------------------------------------
   Responsive — base
   -------------------------------------------------------------------------- */

@media (max-width: 1240px) {
  .header-bar { gap: 20px; }
  .nav-link { padding: 0 12px; font-size: 13.5px; }
  .header-cta { display: none; }
  .footer-top { grid-template-columns: 1.4fr repeat(4, 0.6fr); }
  .footer-contact { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }
  .footer-contact .footer-qr { margin-top: 0; }
}

@media (max-width: 991px) {
  :root { --header-h: 60px; }
  body { padding-bottom: 62px; }
  .desktop-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-tabbar { display: grid; }
  .hero { height: auto; min-height: 660px; padding: 60px 0 86px; }
  .hero-slide { position: relative; display: none; padding: 0; }
  .hero-slide.is-active { display: flex; }
  .hero-content { padding-bottom: 0; max-width: none; }
  .hero-visual { opacity: 0.5; }
  .hero-plate { right: -12%; width: 76vw; }
  .hero-device.a { width: 40vw; right: 4%; top: 8%; }
  .hero-device.b { width: 27vw; right: 2%; bottom: 6%; }
  .hero-device.c { width: 44vw; right: 0; opacity: 0.75; }
  .hero-tagline { display: none; }
  .hero-controls { bottom: 28px; }
  .hero-index { bottom: 28px; }
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .section-head .head-side { max-width: 100%; }
  .page-hero::after { opacity: 0.6; }
  .footer-top { grid-template-columns: repeat(3, 1fr); gap: 36px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: auto; display: block; padding-top: 0; border-top: 0; }
  .footer-contact .footer-qr { margin-top: 22px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 680px) {
  body { font-size: 15px; }
  .section { padding: 64px 0; }
  .hero { min-height: 620px; }
  .hero-title { font-size: clamp(42px, 12vw, 58px); }
  .hero-title .outline { letter-spacing: 0.28em; margin-top: 14px; }
  .hero-desc { font-size: 14px; max-width: 92%; }
  .hero-visual { opacity: 0.34; }
  .hero-device.a { width: 58vw; right: -8%; top: 12%; }
  .hero-device.b { display: none; }
  .hero-device.c { width: 66vw; right: -10%; }
  .hero-cta .btn { flex: 1; min-width: 138px; padding: 0 16px; }
  .hero-controls { gap: 12px; }
  .hero-arrow { width: 40px; height: 40px; }
  .hero-index { display: none; }
  .section-title { font-size: clamp(28px, 8vw, 36px); }
  .page-title { font-size: clamp(36px, 10.4vw, 54px); }
  .page-hero { padding: 54px 0 60px; }
  .page-hero::after { font-size: 44vw; right: -8vw; }
  .page-hero-meta { gap: 20px 28px; margin-top: 32px; }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
  .footer-col:nth-of-type(5) { grid-column: auto; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-bottom { padding-bottom: 20px; }
  .footer-wordmark { display: none; }
  .toast { bottom: 80px; width: max-content; max-width: calc(100% - 32px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
