/* ============================================================
   Masternotes · 大師說
   Architecture preview build
   ============================================================ */

:root {
  --bg: #ffffff;
  --panel: #FBFAF6;
  --panel-edge: rgba(28, 28, 30, 0.06);
  --brand: #3D7BDB;
  --brand-soft: #4A7FD4;
  --brand-light: #E3EDFB;
  --text: #1C1C1E;
  --text-sub: #8E8E93;
  --text-faint: #C7C7CC;
  --border: rgba(28, 28, 30, 0.08);
  --border-strong: rgba(28, 28, 30, 0.16);
  --placeholder-bg: rgba(61, 123, 219, 0.06);
  --placeholder-border: rgba(61, 123, 219, 0.25);
  --shadow-sm: 0 1px 2px rgba(28, 28, 30, 0.04);
  --shadow-md: 0 8px 24px rgba(28, 28, 30, 0.06);
  --shadow-lg: 0 24px 60px rgba(28, 28, 30, 0.08);
  --shadow-panel: 0 20px 60px rgba(28, 28, 30, 0.06), 0 4px 14px rgba(28, 28, 30, 0.04);
  --shadow-iphone: 0 30px 80px rgba(28, 28, 30, 0.18), 0 8px 20px rgba(28, 28, 30, 0.08);

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "PingFang TC", "Noto Sans TC", "Microsoft JhengHei",
               "Helvetica Neue", Arial, sans-serif;
  --font-serif: "New York", "Songti TC", "PingFang TC", Georgia, serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 36px;

  --max-w: 1320px;
  --gutter: clamp(16px, 3vw, 40px);

  --iphone-w: 260px;
  --iphone-h: 536px;
  --iphone-radius: 38px;

  --header-h: 64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

/* ============================================================
   Page-wide background (pastel blobs + faint music symbols)
   ============================================================ */
.bg-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.30;
}
.blob--1 { width: 520px; height: 520px; top: -180px; left: -120px;
  background: radial-gradient(circle, #C9D9F5 0%, transparent 70%); }
.blob--2 { width: 480px; height: 480px; top: 40%; right: -160px;
  background: radial-gradient(circle, #F3D8E4 0%, transparent 70%); }
.blob--3 { width: 600px; height: 600px; bottom: -240px; left: 30%;
  background: radial-gradient(circle, #D5E8D8 0%, transparent 70%); }
.blob--4 { width: 400px; height: 400px; top: 60%; left: -120px;
  background: radial-gradient(circle, #F0E4CC 0%, transparent 70%); }

.music-symbol {
  position: absolute;
  color: var(--brand);
  opacity: 0.05;
}
.music-symbol--clef {
  width: 90px; height: 220px;
  top: 14%; right: 4%;
  transform: rotate(8deg);
}
.music-symbol--note {
  width: 60px; height: 80px;
  bottom: 14%; left: 5%;
  transform: rotate(-15deg);
}

/* ============================================================
   Navbar (matches main site style)
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 100;
}

#nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.nav-logo-link:hover { transform: scale(1.08); }

.nav-logo-link img {
  width: 32px;
  height: auto;
  filter: brightness(0);
  display: block;
}

.nav-logo-sep {
  color: rgba(0, 0, 0, 0.28);
  font-size: 13px;
  font-weight: 400;
}

.nav-logo-product {
  font-size: 14px;
  font-weight: 600;
  color: #000;
  letter-spacing: 0.01em;
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 40px;
  height: 100%;
  align-items: stretch;
}

.nav-links a {
  text-decoration: none;
  color: #000;
  font-size: 14px;
  letter-spacing: 0.03em;
  opacity: 0.65;
  transition: opacity 0.2s ease;
}
.nav-links > a {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-links a:hover { opacity: 1; }


.nav-lang {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.lang-pill {
  height: 28px;
  padding: 0 14px;
  border-radius: 100px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #ffffff;
  color: rgba(0,0,0,0.65);
  font-size: 12px;
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08), 0 0 0 0.5px rgba(0,0,0,0.04);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.lang-pill:hover {
  background: #f5f5f7;
  border-color: rgba(0,0,0,0.22);
  color: #000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12), 0 0 0 0.5px rgba(0,0,0,0.06);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, opacity 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--text);
  color: var(--bg);
  border: 1.5px solid rgba(255,255,255,0.1);
  position: relative;
  transition: background 0.22s ease, transform 0.22s ease;
}
.btn--primary:hover { background: #2a2a2a; transform: scale(1.04); }

.btn-contact {
  display: inline-block;
  padding: 11px 34px;
  min-width: 148px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.72);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}
.btn-contact:hover {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(0, 0, 0, 0.22);
  transform: scale(1.04);
}
.btn-contact::after {
  content: '→';
  display: inline-block;
  opacity: 0;
  transform: translateX(-6px);
  margin-left: 0;
  transition: opacity 0.22s ease, transform 0.22s ease, margin-left 0.22s ease;
}
.btn-contact:hover::after {
  opacity: 1;
  transform: translateX(0);
  margin-left: 6px;
}
.btn--link { background: transparent; color: var(--brand); padding: 13px 4px; }
.btn--link:hover { opacity: 0.7; }
.btn--mini {
  background: var(--text);
  color: var(--bg);
  padding: 7px 14px;
  font-size: 13px;
  border-radius: 999px;
}
.btn--mini:hover { transform: translateY(-1px); }

/* ============================================================
   HERO BRAND — full-width centered section (no card, transparent)
   ============================================================ */
.hero-brand {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 72px) var(--gutter) 64px;
  text-align: center;
}
.hero-brand__inner {
  max-width: 800px;
  margin: 0 auto;
}
.hero-brand__title {
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 28px;
  color: var(--brand);
}
.hero-brand__title .placeholder-line {
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}
.hero-brand__sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-sub);
  margin: 0 auto 36px;
  max-width: 560px;
  display: block;
}
.hero-brand__ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   2-COLUMN LAYOUT
   Left: card panel with feature sections
   Right: vertically-centered sticky iPhone
   ============================================================ */
.hero {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 32px) 0 80px;
}
.hero__container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: stretch;
}

/* ----- LEFT: card panel (starts directly with feature sections) ----- */
.panel {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-panel);
  border: 1px solid rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}
.panel__inner {
  position: relative;
  padding: clamp(32px, 4vw, 56px);
}

.mobile-product-label,
.mobile-carousel { display: none; }

/* ----- Feature sections ----- */
.features {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.feature {
  padding: 72px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.feature:first-child { border-top: none; padding-top: 24px; }
.feature__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px dashed transparent;
}
.feature__title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 12px;
  color: var(--text);
}
.feature__desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-sub);
  margin: 0;
  max-width: 480px;
}

/* ----- Feature header: icon left, title+subtitle stacked right ----- */
.feature__header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.feature__header .feature__icon { margin-bottom: 0; flex-shrink: 0; }
.feature__title-group { display: flex; flex-direction: column; gap: 4px; }
.feature__title-group .feature__title { margin: 0; }

/* ----- Feature subtitle (bold, sits directly below title) ----- */
.feature__sub {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text-sub);
  margin: 0;
  max-width: 480px;
}

/* ----- Manifesto closing ----- */
.manifesto {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}
.manifesto p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
  margin: 0 0 12px;
  font-style: italic;
}
.credit {
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============================================================
   RIGHT: vertically-centered sticky iPhone stage
   ============================================================ */
/* ----- Hero block (inside card, subpage version) ----- */
.hero-block {
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.hero-block__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.hero-block__icon {
  width: 64px; height: 64px;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 1.0s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  cursor: default;
}
.hero-block__icon:hover {
  transform: scale(1.12);
}
.hero-block__name {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--text);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}
.hero-block__icon:hover + .hero-block__name {
  opacity: 0.35;
  transform: scale(0.95);
}
.hero-block__title {
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 20px;
  color: var(--text);
}
.hero-block__title span { display: block; }
.hero-block__sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-sub);
  margin: 0 0 32px;
}
.hero-block__ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-block__ctas .btn--primary,
.hero-block__ctas .btn-contact {
  min-width: 148px;
  padding: 11px 34px;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-align: center;
  box-sizing: border-box;
}

.stage {
  position: relative;
  padding-top: clamp(32px, 4vw, 56px);
}
.stage__inner {
  position: sticky;
  top: calc(var(--header-h) + 32px + clamp(32px, 4vw, 56px));
  display: flex;
  align-items: center;
  justify-content: center;
}

.iphone-wrap {
  position: relative;
  width: var(--iphone-w);
}
.iphone {
  position: relative;
  width: var(--iphone-w);
  height: var(--iphone-h);
  background: #1c1c1e;
  border-radius: var(--iphone-radius);
  padding: 11px;
  box-shadow: var(--shadow-iphone);
}
.iphone__notch {
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 26px;
  background: #000;
  border-radius: 20px;
  z-index: 3;
}
.iphone__screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: var(--bg);
}

.screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.screen img,
.screen video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
.screen.is-active { opacity: 1; z-index: 1; }

/* Reflection beneath iPhone */
.iphone-reflection {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 40px;
  background: radial-gradient(
    ellipse at center,
    rgba(28, 28, 30, 0.18) 0%,
    transparent 70%
  );
  filter: blur(8px);
  pointer-events: none;
}

/* Floating music decorations beside iPhone */
.float-decor {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.float-decor--note-1 {
  top: 6%; left: -88px;
  font-size: 42px;
  color: var(--brand);
  opacity: 0.32;
  animation: float-y 6s ease-in-out infinite;
}
.float-decor--note-2 {
  bottom: 18%; right: -96px;
  font-size: 50px;
  color: var(--brand-soft);
  opacity: 0.28;
  animation: float-y 7s ease-in-out infinite reverse;
}
.float-decor--clef {
  top: 42%; right: -108px;
  font-size: 64px;
  color: var(--brand);
  opacity: 0.16;
  font-family: var(--font-serif);
  animation: float-y 8s ease-in-out infinite;
}
.float-decor--blob-1 {
  top: -30px; right: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, #F3D8E4 0%, transparent 70%);
  filter: blur(24px);
}
.float-decor--blob-2 {
  bottom: -30px; left: -50px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, #C9D9F5 0%, transparent 70%);
  filter: blur(24px);
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* ============================================================
   Placeholder styling — for text/content the user will fill in
   ============================================================ */
.placeholder-text,
.placeholder-line,
.placeholder-icon {
  position: relative;
}
.placeholder-text {
  background: var(--placeholder-bg);
  border: 1px dashed var(--placeholder-border);
  border-radius: 6px;
  padding: 2px 6px;
}
.placeholder-line {
  display: inline-block;
  background: var(--placeholder-bg);
  border: 1px dashed var(--placeholder-border);
  border-radius: 10px;
  padding: 4px 14px;
  color: var(--brand);
  font-weight: 500;
}
.feature__icon[data-placeholder="icon"] {
  border: 1px dashed var(--placeholder-border);
  background: var(--placeholder-bg);
  color: var(--brand);
}
.placeholder-icon {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

/* ============================================================
   Generic section
   ============================================================ */
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  text-align: center;
  color: var(--text);
}
.section-sub {
  font-size: 17px;
  color: var(--text-sub);
  text-align: center;
  margin: 0 auto 40px;
  max-width: 540px;
  display: block;
}

/* ============================================================
   Demo conversation
   ============================================================ */
.demo {
  position: relative;
  z-index: 1;
  padding: 100px 0;
  overflow: hidden;
}
.demo__conductor {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 550px;
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
}
.demo__container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.demo__chat {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}
.bubble {
  border-radius: 22px;
  padding: 18px 22px;
  line-height: 1.6;
  font-size: 15.5px;
}
.bubble--user {
  background: rgba(61, 123, 219, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: white;
  align-self: flex-end;
  max-width: 80%;
  border-bottom-right-radius: 6px;
}
.bubble--user.placeholder-text {
  background: rgba(61, 123, 219, 0.72);
  border: 1px dashed rgba(255, 255, 255, 0.45);
  color: white;
}
.bubble--ai {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px dashed rgba(0, 0, 0, 0.12);
  align-self: flex-start;
  max-width: 92%;
  display: flex;
  gap: 14px;
  border-bottom-left-radius: 6px;
  box-shadow: var(--shadow-md);
  padding: 20px;
}
.bubble__avatar {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.bubble__avatar img { width: 100%; height: 100%; object-fit: cover; }
.bubble__content { flex: 1; min-width: 0; }
.bubble__content p {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
}
.bubble__content em {
  font-style: italic;
  color: var(--brand);
}
.bubble__sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.source-chip {
  background: var(--brand-light);
  color: var(--brand);
  font-size: 12.5px;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 500;
}

/* ============================================================
   Showcase
   ============================================================ */
.showcase { position: relative; z-index: 1; padding: 80px 0 120px; }
.showcase__container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.showcase__image {
  margin: 20px auto 0;
  max-width: 720px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-lg);
}
.showcase__image img { width: 100%; height: auto; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { position: relative; z-index: 1; padding: 80px 0; }
.faq__container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.faq__container { display: flex; flex-direction: column; gap: 10px; }
.faq__item {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.faq__item:hover {
  transform: scale(1.015);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  padding: 0;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--text-sub);
  font-weight: 300;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p {
  margin: 14px 0 0;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.65;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  max-width: 620px;
}

/* ============================================================
   Waitlist
   ============================================================ */
.waitlist { position: relative; z-index: 1; padding: 100px 0; text-align: center; }
.waitlist .placeholder-text,
.demo .section-sub.placeholder-text { background: none !important; border: none !important; padding: 0 !important; }
.waitlist__container {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.waitlist__form {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.waitlist__input {
  flex: 1;
  min-width: 240px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 999px;
  padding: 13px 22px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.waitlist__input::placeholder { color: var(--text-faint); }
.waitlist__input:focus {
  border-color: rgba(61, 123, 219, 0.5);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(61, 123, 219, 0.1);
}

/* Glare hover on primary buttons */
.btn--primary { overflow: hidden; }
.btn--primary::after {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.42) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0s;
  pointer-events: none;
  z-index: 1;
}
.btn--primary:hover::after {
  left: 140%;
  transition: left 0.55s ease;
}

/* Waitlist submit — narrower height */
.waitlist__form .btn--primary {
  padding-top: 9px;
  padding-bottom: 9px;
}
.waitlist__success {
  margin-top: 20px;
  color: var(--brand);
  font-size: 15px;
}

/* ── Navbar: dropdown (desktop) ─────────────────────────── */
.nav-dropdown { position: relative; display: flex; align-items: center; height: 100%; }

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--text);
  opacity: 0.65;
  padding: 0;
  transition: opacity 0.2s;
}
.nav-dropdown-trigger:hover { opacity: 1; }

.nav-dd-chevron {
  display: block;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.nav-dropdown:hover .nav-dd-chevron { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 6px;
  min-width: 160px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 18px;
}

.nav-dd-item {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: rgba(0,0,0,0.72);
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
  cursor: pointer;
}
a.nav-dd-item:hover { background: rgba(0,0,0,0.04); color: rgba(0,0,0,0.9); }
.nav-dd-item--dim { color: rgba(0,0,0,0.28); cursor: default; }
.nav-dd-item--dim:hover { background: none; }

/* Active: navbar-bottom indicator bar */
.nav-links a.is-active,
.nav-dropdown-trigger.is-active {
  opacity: 1 !important;
  text-decoration: none !important;
}
.nav-links > a.is-active::after,
.nav-dropdown.is-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(0,0,0,0.85);
  border-radius: 1px;
}
/* Active: sub-item gets dark-blue dot */
a.nav-dd-item.is-active { color: rgba(0,0,0,0.85); }
a.nav-dd-item.is-active::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1a54d8;
  margin-right: 8px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

/* ── Mobile nav: accordion ───────────────────────────────── */
.mobile-nav-group { display: flex; flex-direction: column; }

.mobile-nav-group-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 28px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 15px;
  color: #000;
  opacity: 0.75;
  text-align: left;
  position: relative;
  transition: opacity 0.15s;
}
.mobile-nav-group-btn:hover { opacity: 1; }

.mobile-nav-chevron {
  flex-shrink: 0;
  transition: transform 0.25s ease;
  opacity: 0.4;
}
.mobile-nav-group.is-open .mobile-nav-chevron { transform: rotate(180deg); }

.mobile-nav-sub {
  height: 0;
  overflow: hidden;
  transition: height 0.28s cubic-bezier(0.4,0,0.2,1);
}

.mobile-nav-sub-link {
  display: block;
  padding: 9px 24px 9px 44px;
  font-size: 14px;
  color: rgba(0,0,0,0.7);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.15s;
}
a.mobile-nav-sub-link:hover { opacity: 1; }
.mobile-nav-sub-link--dim { color: rgba(0,0,0,0.3); cursor: default; }

/* Mobile active */
.mobile-nav-link.is-active,
.mobile-nav-group.is-active > .mobile-nav-group-btn {
  opacity: 1;
  font-weight: 600;
}
.mobile-nav-link.is-active::before,
.mobile-nav-group.is-active > .mobile-nav-group-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5px;
  height: 16px;
  background: rgba(0,0,0,0.85);
  border-radius: 0 2px 2px 0;
}
a.mobile-nav-sub-link.is-active { opacity: 1; font-weight: 600; color: rgba(0,0,0,0.85); }
a.mobile-nav-sub-link.is-active::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1a54d8;
  margin-right: 8px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  position: relative;
  z-index: 1;
  background: #0a0a0a;
  padding: 64px 40px 52px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 0 60px;
  align-items: start;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.footer-logo img {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.footer-logo-name {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.01em;
}
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.28);
  line-height: 1.5;
  margin: 0;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin: 0;
}
.footer-col-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.48);
  text-decoration: none;
  transition: color 0.18s ease;
}
.footer-col-links a:hover { color: rgba(255,255,255,0.9); }
.footer-link-dim {
  font-size: 13px;
  color: rgba(255,255,255,0.22);
}

/* ── Footer: col toggle button ── */
.footer-col-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: default;
  pointer-events: none;
  text-align: left;
}

.footer-col-chevron {
  display: none;
  color: rgba(255,255,255,0.4);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

/* ── Footer bottom (copyright) ── */
.footer-bottom {
  max-width: 1100px;
  margin: 28px auto 0;
  padding: 20px 40px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom .footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.28);
  line-height: 1.5;
  margin: 0;
}

/* ============================================================
   Mobile layout (< 960px)
   ============================================================ */
@media (max-width: 960px) {
  .hero { padding-top: calc(var(--header-h) + 12px); padding-bottom: 0; }
  .hero__container { grid-template-columns: 1fr; gap: 0; }
  .stage { display: none; }

  .panel {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    background: linear-gradient(160deg, #ffffff 0%, #f4f4f2 100%);
  }

  /* Solid buttons on warm gradient background */
  .hero-block__ctas .btn--primary {
    background: #1a1008;
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
    border-color: rgba(255,255,255,0.08);
  }
  .hero-block__ctas .btn-contact {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.10);
    color: rgba(0, 0, 0, 0.72);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }
  .panel__inner {
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
  }

  /* Mobile reorder: carousel first, then slogan + features */
  .mobile-product-label { display: none; }
  .mobile-carousel      { order: 1; }
  .hero-block           { order: 2; }
  .features             { order: 3; }
  .manifesto            { order: 4; }
  .credit               { order: 5; }

  /* Mobile carousel */
  .mobile-carousel {
    display: block;
    position: relative;
    margin: 0 -22px 28px;
  }
  .mobile-carousel__track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding: 0 calc(50% - 130px);
    padding: 16px calc(50% - 130px);
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .mobile-carousel__track::-webkit-scrollbar { display: none; }
  .mobile-carousel__slide {
    flex: 0 0 260px;
    scroll-snap-align: center;
    transform: scale(0.92);
    transition: transform 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity   0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0.5;
    will-change: transform;
  }
  .mobile-carousel__slide.is-active {
    transform: scale(1);
    opacity: 1;
  }
  .mobile-carousel__iphone {
    width: 260px;
    height: 540px;
    background: #1c1c1e;
    border-radius: 36px;
    padding: 9px;
    box-shadow: var(--shadow-iphone);
    position: relative;
  }
  .mobile-carousel__iphone .iphone__notch {
    width: 84px; height: 22px;
    top: 16px;
  }
  .mobile-carousel__screen {
    width: 100%; height: 100%;
    border-radius: 28px;
    overflow: hidden;
    background: var(--bg);
    position: relative;
  }
  .mobile-carousel__screen img,
  .mobile-carousel__screen video {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;
  }
  .mobile-carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border);
    color: var(--text-sub);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    z-index: 4;
    box-shadow: var(--shadow-sm);
    -webkit-appearance: none;
  }
  .mobile-carousel__btn--prev { left: 12px; }
  .mobile-carousel__btn--next { right: 12px; }

  .brand-block { margin-bottom: 28px; justify-content: center; }
  .hero-block { text-align: center; margin-bottom: 24px; padding-top: 20px; }
  .hero-block__brand { justify-content: center; }
  .hero-block__icon { width: 60px; height: 60px; border-radius: 14px; }
  .hero-block__sub { margin-left: auto; margin-right: auto; }
  .hero-block__ctas { justify-content: center; }

  .feature { padding: 36px 0; }
  .feature__title { font-size: 22px; }

  .demo, .showcase, .faq, .waitlist { padding-top: 90px; padding-bottom: 60px; }
  .bubble--user, .bubble--ai { max-width: 100%; }
  .bubble--ai { padding: 16px; }

  .footer { padding: 48px 24px 44px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .footer-brand { grid-column: 1 / -1; }

  /* Footer accordion on mobile */
  .footer-inner { grid-template-columns: 1fr !important; gap: 0 !important; }
  .footer-brand { padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.08); grid-column: auto !important; }
  .footer-col { border-top: 1px solid rgba(255,255,255,0.08); gap: 0; }
  .footer-col-toggle { cursor: pointer; pointer-events: auto; padding: 14px 0; }
  .footer-col-chevron { display: block; }
  .footer-col.is-open .footer-col-chevron { transform: rotate(180deg); }
  .footer-col-links { height: 0; overflow: hidden; transition: height 0.28s cubic-bezier(0.4,0,0.2,1); margin: 0; }
  .footer-col.is-open .footer-col-links { padding-bottom: 16px; }
  .footer-bottom { padding: 16px 0 0; margin-top: 16px; }

  .music-symbol { display: none; }
  .mini-header__url { display: none; }
  .demo__conductor { display: none; }
}

@media (max-width: 480px) {
  .hero-block__title { font-size: 28px; }
  .section-title { font-size: 26px; }
  .section-sub { font-size: 15px; margin-bottom: 28px; }
  .btn--mini { padding: 6px 12px; font-size: 12px; }
}

/* ── Mobile hamburger menu ── */
.nav-menu-btn { display: none; margin-left: 8px; }

.mobile-nav {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: rgba(255,255,255,0.62);
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  border-bottom: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.8);
  z-index: 49;
  flex-direction: column;
  padding: 8px 0 12px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.mobile-nav.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-nav-link {
  display: block;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  letter-spacing: 0.01em;
  opacity: 0.75;
  position: relative;
  transition: opacity 0.15s ease;
}
.mobile-nav-link:hover { opacity: 1; }

@media (max-width: 768px) {
  .nav-links    { display: none !important; }
  .nav-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .mobile-nav   { display: flex; }
  #navbar       { padding: 0 20px; }
  .lang-pill {
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 2px 8px rgba(0,0,0,0.06);
  }
}

/* ── Remove all hover effects on touch devices ── */
@media (hover: none) {
  .nav-logo-link:hover                       { transform: none; }
  .nav-links a:hover                         { opacity: 1; }
  .nav-item:hover .nav-dropdown              { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(-6px); }
  .nav-dropdown a:hover                      { background: transparent; }
  .lang-pill:hover {
    background: #ffffff;
    border-color: rgba(0,0,0,0.12);
    color: rgba(0,0,0,0.65);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08), 0 0 0 0.5px rgba(0,0,0,0.04);
  }
  .btn--primary:hover                        { background: var(--text); transform: none; }
  .btn--primary:hover::after                 { left: -75%; transition: left 0s; }
  .btn-contact:hover {
    background: rgba(255,255,255,0.28);
    border-color: rgba(0,0,0,0.12);
    transform: none;
  }
  .btn-contact:hover::after                  { opacity: 0; transform: translateX(-6px); margin-left: 0; }
  .btn--link:hover                           { opacity: 1; }
  .btn--mini:hover                           { transform: none; }
  .hero-block__icon:hover                    { transform: none; }
  .hero-block__icon:hover + .hero-block__name { opacity: 1; transform: none; }
  .faq__item:hover                           { transform: none; }
  .footer-col-links a:hover                  { color: rgba(255,255,255,0.48); }
  .mobile-nav-link:hover                     { opacity: 1 !important; }
}
