:root {
  --lime: #E8FF5A;
  --lime-dark: #D4F000;
  --black: #0A0A0A;
  --gray-900: #1A1A1A;
  --gray-700: #4A4A4A;
  --gray-500: #8A8A8A;
  --gray-300: #E5E5E5;
  --gray-100: #F5F5F5;
  --white: #FFFFFF;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: rotate(12deg) scale(1.1);
}

.logo-text {
  display: inline-block;
  min-width: 80px;
  position: relative;
}

.logo-text::before,
.logo-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.logo-text.glitching {
  animation: glitchShake 0.1s ease-in-out infinite;
  text-shadow: 
    3px 0 #ff0000,
    -3px 0 #00ffff;
}

.logo-text.glitching::before {
  color: #ff0000;
  opacity: 0.7;
  animation: glitchLayer1 0.15s ease-in-out infinite;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.logo-text.glitching::after {
  color: #00ffff;
  opacity: 0.7;
  animation: glitchLayer2 0.15s ease-in-out infinite;
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitchShake {
  0%, 100% { transform: translate(0) skew(0deg); }
  10% { transform: translate(-3px, 1px) skew(-2deg); }
  20% { transform: translate(3px, -1px) skew(2deg); }
  30% { transform: translate(-2px, 2px) skew(-1deg); }
  40% { transform: translate(2px, -2px) skew(1deg); }
  50% { transform: translate(-1px, -1px) skew(0deg); }
  60% { transform: translate(1px, 1px) skew(-1deg); }
  70% { transform: translate(-2px, 0) skew(1deg); }
  80% { transform: translate(2px, 1px) skew(0deg); }
  90% { transform: translate(-1px, -1px) skew(-1deg); }
}

@keyframes glitchLayer1 {
  0%, 100% { transform: translate(0); }
  25% { transform: translate(-4px, 1px); }
  50% { transform: translate(3px, -2px); }
  75% { transform: translate(-2px, 0); }
}

@keyframes glitchLayer2 {
  0%, 100% { transform: translate(0); }
  25% { transform: translate(4px, -1px); }
  50% { transform: translate(-3px, 2px); }
  75% { transform: translate(2px, 0); }
}

.nav-cta {
  padding: 10px 18px;
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform 0.2s, background 0.2s;
}

.nav-cta:hover {
  transform: scale(1.05);
  background: var(--gray-900);
}

/* Container */
.container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 0 100px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  text-align: center;
}

.hero-problem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.problem-label {
  display: inline-block;
  padding: 6px 14px;
  background: var(--gray-100);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gray-700);
}

.hero-title {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.25;
  text-align: center;
}

.hero-title .highlight {
  position: relative;
  display: inline-block;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: -4px;
  right: -4px;
  height: 18px;
  background: var(--lime);
  z-index: -1;
  border-radius: 4px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--gray-700);
  line-height: 1.8;
  max-width: 480px;
  text-align: center;
}

.social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.social-avatars {
  display: flex;
  align-items: center;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  border: 2px solid var(--white);
  margin-left: -8px;
}

.avatar:first-child {
  margin-left: 0;
}

.avatar:nth-child(2) {
  background: var(--lime);
  color: var(--black);
}

.avatar:nth-child(3) {
  background: var(--gray-700);
}

.avatar:nth-child(4) {
  background: var(--white);
  color: var(--black);
  border-color: var(--gray-300);
}

.social-proof p {
  font-size: 0.85rem;
  color: var(--gray-700);
}

.social-proof strong {
  color: var(--black);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 16px 32px;
  background: var(--lime);
  color: var(--black);
  text-decoration: none;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s;
  border: 2px solid var(--lime);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 255, 90, 0.45);
}

.btn-ghost {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 16px 32px;
  background: transparent;
  color: var(--black);
  text-decoration: none;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--gray-300);
  transition: all 0.2s;
}

.btn-ghost:hover {
  border-color: var(--black);
}

/* Data flow */
.integrations {
  padding: 100px 0;
  overflow: hidden;
}

.integrations-label {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gray-500);
  margin-bottom: 32px;
}

.integrations-sub {
  text-align: center;
  font-size: 0.95rem;
  color: var(--gray-700);
  margin: -20px 0 32px;
}

h2.flow-title {
  text-align: center;
  margin-bottom: 20px;
}

.flow-lead {
  text-align: center;
  color: var(--gray-700);
  font-size: 1rem;
  line-height: 1.9;
}

.flow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(48px, 9vw, 140px);
  max-width: 1040px;
  margin: 64px auto 0;
  padding: 0 24px;
}

.flow-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.flow-col {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flow-sources {
  align-items: center;
}

.flow-screen {
  width: 320px;
}

.flow-monitor {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.flow-desktop {
  position: relative;
  height: 190px;
  background: var(--gray-100);
  border-radius: 10px;
  overflow: hidden;
}

.mini-win {
  position: absolute;
  width: 46%;
  padding: 9px 10px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-win-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.mini-win svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.win-a { top: 10%; left: 5%; }
.win-b { top: 16%; right: 6%; width: 42%; }
.win-c { bottom: 9%; left: 26%; width: 50%; z-index: 2; }

.skel {
  height: 7px;
  border-radius: 4px;
  background: var(--gray-100);
}

.watch-dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime-dark);
  box-shadow: 0 0 0 3px rgba(212, 240, 0, 0.25);
  animation: watchPulse 1.8s ease-in-out infinite;
}

@keyframes watchPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.flow-monitor-stand {
  width: 34px;
  height: 16px;
  margin: 0 auto;
  background: var(--gray-300);
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
}

.flow-monitor-base {
  width: 96px;
  height: 6px;
  margin: 0 auto;
  border-radius: 3px;
  background: var(--gray-300);
}

.flow-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-900);
  white-space: nowrap;
}

.flow-caption .n {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--black);
  color: var(--lime);
  font-size: 0.7rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.flow-brain .flow-caption {
  margin-top: 2px;
}

.flow-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 48px auto 0;
  max-width: 440px;
  padding: 0 24px;
}

.chat-bubble {
  padding: 12px 18px;
  border-radius: 18px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
}

.chat-user {
  align-self: flex-end;
  background: var(--black);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.chat-ai {
  align-self: flex-start;
  background: var(--lime);
  color: var(--black);
  border-bottom-left-radius: 4px;
}

.chat-other {
  align-self: flex-start;
  background: var(--gray-300);
  color: var(--gray-700);
  border-bottom-left-radius: 4px;
}

/* Story */
.story {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 22px;
  align-items: stretch;
  max-width: 980px;
  margin: 56px auto 0;
  padding: 0 24px;
}

.story-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.story-time {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--gray-500);
}

.story-app {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--white);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  flex: 1;
}

.story-app-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-700);
}

.story-app-bar .integration-icon {
  width: 16px;
  height: 16px;
}

.story-msg {
  display: flex;
  gap: 9px;
}

.story-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--gray-700);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.story-msg-body b {
  display: block;
  font-size: 0.72rem;
  margin-bottom: 2px;
}

.story-msg-body p {
  font-size: 0.85rem;
  line-height: 1.55;
}

.story-app .chat-bubble {
  font-size: 0.85rem;
  padding: 10px 15px;
}

.story-memo {
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: var(--white);
  border: 1.5px dashed var(--lime-dark);
  border-radius: 14px;
  padding: 12px 14px;
}

.story-memo-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--gray-700);
}

.story-memo-head img {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}

.story-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.story-chips span {
  background: var(--lime);
  color: var(--black);
  border-radius: 100px;
  padding: 4px 11px;
  font-size: 0.75rem;
  font-weight: 700;
}

.story-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--gray-500);
  font-size: 0.75rem;
  font-weight: 800;
}

.story-link svg {
  width: 26px;
  height: 26px;
}

.story-verdict {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 800;
}

mark.hl {
  background: var(--lime);
  color: inherit;
  padding: 0 3px;
  border-radius: 3px;
  font-weight: 700;
}

/* AI strip + reassurance */
.features-lead {
  font-size: 1rem;
  color: var(--gray-700);
  margin: -28px 0 28px;
}

.ai-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

/* Before / after comparison */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 920px;
  margin: 56px auto 0;
  padding: 0 24px;
}

.compare-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
}

.compare-before {
  background: var(--gray-100);
}

.compare-after {
  background: var(--white);
  border-color: var(--lime);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.07);
}

.compare-tag {
  align-self: center;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--gray-300);
  color: var(--gray-700);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.compare-tag.lime {
  background: var(--lime);
  color: var(--black);
}

.compare-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compare-before .chat-user {
  background: var(--gray-700);
}

.memoria-inject {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
}

.memoria-inject img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.compare-verdict {
  margin-top: auto;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 800;
}

.compare-verdict.bad {
  color: var(--gray-500);
}

.compare-verdict.good {
  color: var(--black);
}

.flow-ais {
  align-items: flex-start;
}

.flow-col-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gray-500);
  margin-bottom: 6px;
}

.flow-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-900);
  white-space: nowrap;
  transition: transform 0.2s, border-color 0.2s;
}

.flow-pill:hover {
  transform: translateY(-2px);
  border-color: var(--lime);
}

.flow-brain {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.flow-daruma-wrap {
  width: 128px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.10);
}

.flow-daruma {
  display: block;
  width: 100%;
  height: auto;
  animation: brainFloat 5s ease-in-out infinite;
}

@keyframes brainFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.flow-brain-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--black);
  background: var(--lime);
  padding: 6px 14px;
  border-radius: 100px;
}

.flow-arrow {
  display: none;
  color: var(--gray-300);
}

.flow-arrow svg {
  width: 22px;
  height: 22px;
}

.integration-icon {
  width: 22px;
  height: 22px;
}

/* Integrations run */
.marquee-wrapper {
  position: relative;
  width: 100%;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 5;
  pointer-events: none;
}

.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--white), transparent);
}

.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--white), transparent);
}

.marquee {
  width: 100%;
  overflow: hidden;
  margin-bottom: 16px;
}

.marquee:last-child {
  margin-bottom: 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  animation: marquee 60s linear infinite;
}

.marquee.reverse .marquee-track {
  animation-direction: reverse;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Features */
.features {
  padding: 120px 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 48px;
  text-align: left;
}

.section-title .highlight {
  position: relative;
}

.section-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: -3px;
  right: -3px;
  height: 12px;
  background: var(--lime);
  z-index: -1;
  border-radius: 3px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step {
  padding: 32px 28px;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.step:hover {
  transform: translateY(-4px);
  background: var(--white);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  background: var(--lime);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.85rem;
  color: var(--gray-700);
  line-height: 1.7;
}

/* Waitlist */
.waitlist {
  padding: 100px 0 140px;
}

.waitlist-card {
  background: #2B2B2E;
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.waitlist-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(232, 255, 90, 0.12) 0%, transparent 50%);
  animation: rotate 20s linear infinite;
}

.waitlist-badge {
  position: relative;
  display: inline-block;
  padding: 6px 14px;
  background: var(--lime);
  color: var(--black);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.waitlist-social {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: var(--gray-500);
}

.waitlist-social .waitlist-count {
  color: var(--white);
  font-weight: 700;
}

.waitlist-title {
  position: relative;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.waitlist-subtitle {
  position: relative;
  color: var(--gray-500);
  font-size: 1rem;
  margin-bottom: 32px;
  line-height: 1.7;
}

.waitlist-form {
  position: relative;
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 16px;
}

.waitlist-input {
  flex: 1;
  padding: 16px 22px;
  border: 2px solid var(--gray-700);
  border-radius: 100px;
  background: transparent;
  color: var(--white);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.waitlist-input::placeholder {
  color: var(--gray-500);
}

.waitlist-input:focus {
  border-color: var(--lime);
}

.waitlist-button {
  position: relative;
  padding: 16px 28px;
  background: var(--lime);
  color: var(--black);
  border: none;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  overflow: hidden;
  white-space: nowrap;
}

.waitlist-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 255, 90, 0.3);
}

.waitlist-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.button-loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--black);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -9px;
  margin-left: -9px;
}

.waitlist-button.loading .button-text {
  opacity: 0;
}

.waitlist-button.loading .button-loader {
  display: block;
}

.waitlist-success {
  display: none;
  position: relative;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.waitlist-success.show {
  display: block;
  animation: fadeInUp 0.5s ease-out;
}

.success-icon {
  width: 40px;
  height: 40px;
  background: #22C55E;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-weight: 700;
}

.waitlist-note {
  position: relative;
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--gray-100);
}

.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* Animations */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Scroll reveal */
.step {
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .flow {
    flex-direction: column;
    gap: 28px;
  }

  .flow-lines {
    display: none;
  }

  .flow-arrow {
    display: block;
  }

  .flow-col {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .flow-sources {
    flex-direction: column;
  }

  .flow-sources,
  .flow-ais {
    align-items: center;
  }

  .compare {
    grid-template-columns: 1fr;
  }

  .story {
    grid-template-columns: 1fr;
  }

  .story-link svg {
    transform: rotate(90deg);
  }

  .flow-col-label {
    width: 100%;
    text-align: center;
    margin-bottom: 4px;
  }

  .hero {
    justify-content: center;
    padding-top: 120px;
  }
  
  .hero-content {
    margin-left: 0;
    text-align: center;
  }
  
  .hero-problem {
    align-items: center;
  }
  
  .hero-title {
    text-align: center;
  }
  
  .hero-subtitle {
    text-align: center;
  }
  
  .social-proof {
    justify-content: center;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .waitlist-form {
    flex-direction: column;
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== v2 rebuild components ===== */

/* Hero facts */
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.fact {
  padding: 7px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 100px;
  background: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray-700);
}

/* Demo */
.demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 920px;
  margin: 56px auto 0;
  padding: 0 24px;
}

.demo-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
}

.demo-before {
  background: var(--gray-100);
}

.demo-after {
  background: var(--white);
  border-color: var(--lime);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.07);
}

.demo-app {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--white);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  flex: 1;
}

.demo-input {
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.85rem;
  color: var(--gray-700);
  line-height: 1.7;
  min-height: 96px;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 14px;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--gray-700);
  animation: caretBlink 1s steps(1) infinite;
}

@keyframes caretBlink {
  50% { opacity: 0; }
}

.demo-counter {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-500);
}

.demo-vault {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1.5px dashed var(--lime-dark);
  border-radius: 12px;
  padding: 12px;
}

.vault-head {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gray-700);
}

.vault-confirm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--gray-100);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-700);
}

.vault-confirm b {
  background: var(--black);
  color: var(--lime);
  border-radius: 8px;
  padding: 3px 10px;
  font-size: 0.7rem;
}

.demo-note {
  max-width: 920px;
  margin: 22px auto 0;
  padding: 0 24px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray-700);
}

/* あるある */
.aruaru {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

.aru {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 28px;
}

.aru p {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.aru span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-500);
}

.aruaru-close {
  margin-top: 36px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
}

/* 仕組み */
.integrations .steps-grid {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

.shikumi-declare {
  display: table;
  margin: 36px auto 0;
  padding: 10px 20px;
  background: var(--lime);
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 800;
}

/* 見る・見ない */
.rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 840px;
  margin: 0 auto;
  padding: 0 24px;
}

.rule-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

.rule-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rule-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--gray-100);
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
}

.rule-row .integration-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.rule-row.off {
  color: var(--gray-500);
}

.rule-emoji {
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.tg {
  position: relative;
  width: 36px;
  height: 21px;
  margin-left: auto;
  border-radius: 100px;
  background: var(--gray-300);
  flex-shrink: 0;
}

.tg::after {
  content: '';
  position: absolute;
  top: 2.5px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
}

.tg.on {
  background: var(--lime-dark);
}

.tg.on::after {
  left: 17px;
}

.rule-pause {
  margin-top: auto;
  padding: 9px 12px;
  background: var(--gray-100);
  border-radius: 100px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-700);
}

/* どのAIでも */
.anyai {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.faq details {
  background: var(--gray-100);
  border-radius: 14px;
  padding: 16px 20px;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 800;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-weight: 800;
  color: var(--gray-500);
}

.faq details[open] summary::after {
  content: '−';
}

.faq details p {
  margin-top: 10px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--gray-700);
}

.footer-copy a {
  color: var(--gray-500);
}

@media (max-width: 768px) {
  .demo,
  .aruaru,
  .rules,
  .anyai {
    grid-template-columns: 1fr;
  }
}

/* Hero visualizer */
.hero-visualizer {
  width: min(560px, 100%);
  margin: 18px auto 0;
}

.hero-visualizer .flow-monitor {
  width: 100%;
}

.hero-visualizer .flow-desktop {
  height: 230px;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 64px;
  background: linear-gradient(to bottom, rgba(212, 240, 0, 0) 0%, rgba(212, 240, 0, 0.12) 65%, rgba(212, 240, 0, 0.42) 100%);
  border-bottom: 2px solid var(--lime-dark);
  animation: scanSweep 3.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes scanSweep {
  0% { transform: translateY(-70px); opacity: 0; }
  12% { opacity: 1; }
  68% { transform: translateY(240px); opacity: 1; }
  78%, 100% { transform: translateY(240px); opacity: 0; }
}

.watch-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--gray-700);
}

.watch-dot-inline {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime-dark);
  box-shadow: 0 0 0 3px rgba(212, 240, 0, 0.25);
  animation: watchPulse 1.8s ease-in-out infinite;
}

.hero-memo {
  margin-top: 16px;
  text-align: left;
}

.hero-memo .story-chips span {
  animation: chipIn 0.5s ease-out backwards;
}

.hero-memo .story-chips span:nth-child(1) { animation-delay: 0.4s; }
.hero-memo .story-chips span:nth-child(2) { animation-delay: 0.9s; }
.hero-memo .story-chips span:nth-child(3) { animation-delay: 1.4s; }

@keyframes chipIn {
  from { opacity: 0; transform: translateY(6px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Recording cursor + live windows */
.watch-dot-inline {
  background: #FF453A;
  box-shadow: 0 0 0 3px rgba(255, 69, 58, 0.22);
}

.demo-cursor {
  position: absolute;
  z-index: 6;
  width: 20px;
  height: 20px;
  animation: cursorMove 8s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  pointer-events: none;
}

.demo-cursor svg {
  width: 100%;
  height: 100%;
  animation: cursorClick 8s ease-in-out infinite;
}

@keyframes cursorMove {
  0%, 14% { left: 24%; top: 36%; }
  26%, 42% { left: 68%; top: 30%; }
  54%, 72% { left: 48%; top: 74%; }
  86%, 100% { left: 24%; top: 36%; }
}

@keyframes cursorClick {
  8%, 12%, 34%, 38%, 62%, 66% { transform: scale(1); }
  10%, 36%, 64% { transform: scale(0.8); }
}

.hero-visualizer .win-a { animation: liftA 8s ease-in-out infinite; }
.hero-visualizer .win-b { animation: liftB 8s ease-in-out infinite; }
.hero-visualizer .win-c { animation: liftC 8s ease-in-out infinite; }

@keyframes liftA {
  0%, 14% { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16); }
  20%, 100% { transform: none; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10); }
}

@keyframes liftB {
  0%, 22% { transform: none; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10); }
  26%, 42% { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16); }
  48%, 100% { transform: none; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10); }
}

@keyframes liftC {
  0%, 50% { transform: none; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10); }
  54%, 72% { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16); }
  78%, 100% { transform: none; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10); }
}

/* Hero split layout */
.hero {
  flex-direction: column;
}

.hero-content.hero-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  max-width: 1080px;
  text-align: left;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.hero-split .hero-title {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  text-align: left;
}

.hero-split .hero-subtitle {
  text-align: left;
}

.hero-split .hero-facts {
  justify-content: flex-start;
}

.hero-split .hero-visualizer {
  margin: 0;
  width: 100%;
}

.hero > .hero-actions {
  margin-top: 44px;
}

@media (max-width: 768px) {
  .hero-content.hero-split {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy {
    align-items: center;
  }

  .hero-split .hero-title,
  .hero-split .hero-subtitle {
    text-align: center;
  }

  .hero-split .hero-facts {
    justify-content: center;
  }
}

/* Realistic Mac desktop */
.mac-desktop {
  height: 280px;
  background: linear-gradient(140deg, #EEF1F5 0%, #E2E7EE 100%);
}

.mac-menubar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(6px);
  font-size: 9px;
  font-weight: 600;
  color: var(--gray-700);
}

.mb-left,
.mb-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mb-left svg {
  width: 11px;
  height: 11px;
}

.mb-daruma {
  width: 13px;
  height: 13px;
  border-radius: 3px;
}

.tl {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tl.r { background: #FF5F57; }
.tl.y { background: #FEBC2E; }
.tl.g { background: #28C840; }

.win-browser {
  position: absolute;
  top: 36px;
  left: 4.5%;
  width: 62%;
  z-index: 1;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.wb-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  border-bottom: 1px solid var(--gray-100);
}

.wb-url {
  flex: 1;
  margin-left: 5px;
  padding: 3px 9px;
  background: var(--gray-100);
  border-radius: 6px;
  font-size: 8.5px;
  font-weight: 600;
  color: var(--gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wb-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 11px 13px 14px;
}

.win-term {
  position: absolute;
  right: 4.5%;
  bottom: 15%;
  width: 54%;
  z-index: 2;
  background: #1D1F21;
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.wt-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  background: #2A2C2F;
}

.wt-title {
  margin-left: 5px;
  font-size: 8.5px;
  font-weight: 600;
  color: #9AA0A6;
}

.wt-body {
  margin: 0;
  padding: 10px 12px 12px;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 9.5px;
  line-height: 1.9;
  color: #E8EAED;
  white-space: pre-wrap;
}

.wt-body .ok {
  color: #8BE28B;
}

.cursor-block {
  display: inline-block;
  width: 6px;
  height: 11px;
  vertical-align: -1px;
  background: #E8EAED;
  animation: caretBlink 1s steps(1) infinite;
}

.mac-dock {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
}

.mac-dock .integration-icon {
  width: 17px;
  height: 17px;
}

.mac-dock img {
  width: 17px;
  height: 17px;
  border-radius: 4px;
}

.mac-desktop .scan-line {
  z-index: 4;
}

.mac-desktop .demo-cursor {
  z-index: 6;
}

.mac-desktop .watch-badge {
  top: 32px;
  z-index: 5;
}

.hero-visualizer .win-browser {
  animation: liftA 8s ease-in-out infinite;
}

.hero-visualizer .win-term {
  animation: liftB 8s ease-in-out infinite;
}

/* Slack window in the hero desktop */
.win-slack {
  position: absolute;
  left: 4.5%;
  bottom: 13%;
  width: 44%;
  z-index: 2;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  overflow: hidden;
}

.ws-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  border-bottom: 1px solid var(--gray-100);
}

.ws-title {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 5px;
  font-size: 8.5px;
  font-weight: 700;
  color: var(--gray-700);
}

.ws-title .integration-icon {
  width: 11px;
  height: 11px;
}

.ws-body {
  display: flex;
  gap: 7px;
  padding: 10px 11px 12px;
}

.ws-body .story-avatar {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 0.6rem;
}

.ws-msg b {
  display: block;
  font-size: 8.5px;
}

.ws-msg p {
  font-size: 9.5px;
  line-height: 1.5;
  color: var(--gray-700);
}

.mac-desktop .win-browser {
  width: 58%;
}

.mac-desktop .win-term {
  width: 50%;
  bottom: 26%;
}

.hero-visualizer .win-slack {
  animation: liftC 8s ease-in-out infinite;
}

@keyframes cursorMove {
  0%, 12% { left: 26%; top: 34%; }
  24%, 38% { left: 72%; top: 44%; }
  50%, 64% { left: 24%; top: 76%; }
  78%, 100% { left: 26%; top: 34%; }
}

/* Demo mascots */
.demo-card {
  position: relative;
}

.mascot {
  position: absolute;
  bottom: -34px;
  width: 148px;
  z-index: 3;
}

.mascot img {
  display: block;
  width: 100%;
}

.demo-before .mascot {
  left: -44px;
  animation: fret 1.8s ease-in-out infinite;
}

.demo-after .mascot {
  right: -44px;
  animation: coolBob 3s ease-in-out infinite;
}

@keyframes fret {
  0%, 100% { transform: rotate(-9deg); }
  50% { transform: rotate(-2deg) translateY(2px); }
}

@keyframes coolBob {
  0%, 100% { transform: rotate(6deg); }
  50% { transform: rotate(6deg) translateY(-5px); }
}

.mascot-say {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 9px;
  background: var(--black);
  color: var(--white);
  border-radius: 100px;
  font-size: 0.62rem;
  font-weight: 800;
  white-space: nowrap;
}

.sweat {
  position: absolute;
  top: -8px;
  right: -14px;
  width: 26px;
  animation: sweatPulse 1.4s ease-in infinite;
}

@keyframes sweatPulse {
  0% { opacity: 0; transform: translateY(-4px); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(9px); }
}

.shades {
  position: absolute;
  top: 33%;
  left: 20%;
  width: 60%;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

@media (max-width: 768px) {
  .mascot {
    width: 96px;
    bottom: -22px;
  }
}

/* MacBook hero */
.hero-note {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-500);
}

.hero-macbook {
  position: relative;
  width: min(1100px, 100%);
  margin: 64px auto 0;
}

.macbook-lid {
  position: relative;
  background: #0F0F10;
  border-radius: 24px 24px 0 0;
  padding: 16px 16px 0;
}

.macbook-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 190px;
  height: 24px;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0F0F10;
  border-radius: 0 0 12px 12px;
}

.cam {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3A3A3C;
}

.hero-macbook .mac-desktop {
  height: 440px;
  border-radius: 10px 10px 0 0;
}

.hero-macbook::after {
  content: '';
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -2px;
  height: 80px;
  z-index: 9;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #FFFFFF 78%);
}

.hero-macbook .win-term {
  bottom: 32%;
}

.hero-macbook .win-slack {
  bottom: 22%;
}

.hero-macbook .mac-dock {
  bottom: 88px;
}

.hero-macbook .hero-memo {
  position: absolute;
  left: 34px;
  bottom: 92px;
  z-index: 10;
  margin: 0;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

@media (max-width: 768px) {
  .hero-macbook .mac-desktop {
    height: 300px;
  }

  .hero-macbook .hero-memo {
    left: 16px;
    bottom: 76px;
  }
}

.hero-macbook .win-slack {
  bottom: 42%;
  left: 6%;
}

.hero-macbook .win-slack {
  width: 35%;
}

/* Hero focus + full-screen reveal */
.rotator {
  display: inline-block;
  min-width: 2em;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.rotator.rot-out {
  opacity: 0;
  transform: translateY(-12px);
}

.rotator.rot-in {
  opacity: 0;
  transform: translateY(12px);
  transition: none;
}

.hero {
  padding: 130px 0 70px;
}

.hero .btn-primary {
  padding: 18px 44px;
  font-size: 1.05rem;
}

.macbook-lid {
  border-radius: 24px;
  padding: 16px 16px 18px;
}

.hero-macbook::after {
  display: none;
}

.hero-macbook .mac-desktop {
  height: clamp(480px, 62vh, 660px);
  border-radius: 10px;
}

/* Scroll-driven macbook zoom */
.macbook-stage {
  position: relative;
  height: 142vh;
  margin-top: 48px;
}

.hero-macbook {
  position: sticky;
  top: 6vh;
  margin: 0 auto;
  transform-origin: 50% 0;
  will-change: transform;
  transform: scale(0.72);
}

.hero-macbook .mac-desktop {
  height: 74vh;
}

@media (max-width: 768px) {
  .macbook-stage {
    height: 150vh;
  }

  .hero-macbook .mac-desktop {
    height: 54vh;
  }
}

.macbook-stage {
  width: 100%;
}

.hero-macbook {
  transform: scale(1.06);
  top: 92px;
}

.hero-macbook .mac-desktop {
  height: 82vh;
}

.hero {
  overflow: visible;
}

/* Tighten hero → demo gap */
.hero {
  padding-bottom: 0;
}

#how {
  padding-top: 44px;
}

.macbook-stage {
  margin-bottom: -150px;
}

@media (max-width: 768px) {
  .macbook-stage {
    margin-bottom: -90px;
  }
}

/* Dynamic-island notch */
.macbook-notch {
  width: 360px;
  height: 52px;
  padding: 0 12px 8px;
  align-items: flex-end;
  border-radius: 0 0 20px 20px;
}

.macbook-notch .cam {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
}

.notch-live {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 27px;
  padding: 0 12px;
  background: #1E2022;
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 700;
  color: #F2F2F2;
  white-space: nowrap;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FF453A;
  box-shadow: 0 0 6px rgba(255, 69, 58, 0.8);
  animation: watchPulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

.notch-live img {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  margin-left: auto;
}

.notch-timer {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #C8CCD0;
  letter-spacing: 0.03em;
}

/* macOS wallpaper */
.mac-desktop {
  background: #1E3A8A url('assets/wallpaper.jpg') center / cover no-repeat;
}

.mac-menubar {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
}

.rotator-ai {
  display: inline-block;
  min-width: 7.4ch;
  text-align: center;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.rotator-ai.rot-out {
  opacity: 0;
  transform: translateY(-12px);
}

.rotator-ai.rot-in {
  opacity: 0;
  transform: translateY(12px);
  transition: none;
}

/* ChatGPT-style demo UI */
.gpt-app {
  gap: 14px;
}

.gpt-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-900);
}

.gpt-head .integration-icon {
  width: 18px;
  height: 18px;
}

.gpt-caret {
  color: var(--gray-500);
  font-size: 0.65rem;
}

.gpt-empty {
  padding: 30px 0 16px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-500);
}

.gpt-composer {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 22px;
  background: var(--white);
}

.gpt-input {
  flex: 1;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--gray-900);
}

.gpt-ph {
  color: var(--gray-500);
}

.gpt-plus,
.gpt-send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 14px;
}

.gpt-plus {
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
}

.gpt-send {
  background: var(--black);
  color: var(--white);
  font-weight: 700;
}

.gpt-user {
  align-self: flex-end;
  max-width: 85%;
  padding: 10px 16px;
  background: #F4F4F4;
  border-radius: 18px;
  font-size: 0.85rem;
  font-weight: 600;
}

.gpt-assistant {
  display: flex;
  gap: 9px;
}

.gpt-assistant .integration-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
}

.gpt-assistant p {
  font-size: 0.85rem;
  line-height: 1.75;
  font-weight: 600;
}

/* Full-height scan */
.scan-line {
  animation: scanFull 4.6s ease-in-out infinite;
}

@keyframes scanFull {
  0% { transform: translateY(-70px); opacity: 0; }
  8% { opacity: 1; }
  86% { transform: translateY(calc(82vh - 6px)); opacity: 1; }
  96%, 100% { transform: translateY(calc(82vh - 6px)); opacity: 0; }
}

/* Rotator width fix + AI logos */
.rotator-ai {
  min-width: 0;
  text-align: left;
  white-space: nowrap;
  vertical-align: bottom;
  transition: width 0.28s ease, opacity 0.22s ease, transform 0.22s ease;
}

.rotator-ai .integration-icon {
  width: 0.82em;
  height: 0.82em;
  vertical-align: -0.06em;
  margin-right: 0.16em;
}

/* Dock hugs the frame bottom */
.hero-macbook .mac-dock {
  bottom: 16px;
}

.hero-social {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-700);
}

.hl-num {
  padding: 1px 7px;
  background: var(--lime);
  border-radius: 7px;
  font-weight: 800;
  color: var(--black);
  font-variant-numeric: tabular-nums;
}

.gpt-empty {
  padding: 44px 0 30px;
}

/* Smoother rotator motion */
.rotator,
.rotator-ai {
  transition: opacity 0.2s ease, transform 0.2s ease, width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.rotator.rot-out,
.rotator-ai.rot-out {
  opacity: 0;
  transform: translateY(-8px);
}

.rotator.rot-in,
.rotator-ai.rot-in {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0s, transform 0s;
}

/* Apple Intelligence-style glow on the memoria card */
@property --ai-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.demo-after {
  position: relative;
  border-color: transparent;
  box-shadow: none;
}

.demo-after::before,
.demo-after::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: calc(var(--radius-lg) + 3px);
  background: conic-gradient(from var(--ai-angle),
    #0894FF, #C959DD, #FF2E54, #FF9004, #E8FF5A, #38D9A9, #0894FF);
  animation: aiSpin 5s linear infinite;
  z-index: -1;
}

.demo-after::after {
  inset: -4px;
  filter: blur(22px);
  opacity: 0.45;
  z-index: -2;
  animation: aiBreath 3.2s ease-in-out infinite;
}

@keyframes aiSpin {
  to { --ai-angle: 360deg; }
}

@keyframes aiBreath {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

/* Liquid glass pill nav */
.nav {
  left: 0;
  right: 0;
  margin: 0 auto;
  max-width: 100%;
  border: 1px solid transparent;
  border-radius: 0;
  transition:
    max-width 0.5s cubic-bezier(0.32, 0.72, 0.25, 1),
    margin 0.5s cubic-bezier(0.32, 0.72, 0.25, 1),
    padding 0.5s cubic-bezier(0.32, 0.72, 0.25, 1),
    border-radius 0.5s cubic-bezier(0.32, 0.72, 0.25, 1),
    background 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.nav.scrolled {
  max-width: 620px;
  margin-top: 12px;
  padding: 9px 12px 9px 20px;
  border-radius: 100px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.12) 55%, rgba(255, 255, 255, 0.3)),
    rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(36px) saturate(210%);
  -webkit-backdrop-filter: blur(36px) saturate(210%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-bottom-color: rgba(255, 255, 255, 0.35);
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.13),
    0 2px 8px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(255, 255, 255, 0.25);
}

/* Brand-colored logo glitch */
.logo-text.glitching {
  text-shadow:
    3px 0 var(--lime-dark),
    -3px 0 rgba(10, 10, 10, 0.35);
}

.logo-text.glitching::before {
  color: var(--lime-dark);
  opacity: 0.85;
}

.logo-text.glitching::after {
  color: var(--gray-700);
  opacity: 0.5;
}

#how {
  padding-top: 104px;
}

/* Nav menu + dropdown */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  margin-right: 14px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 14px;
  border: none;
  background: none;
  border-radius: 100px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gray-900);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.nav-link:hover {
  background: rgba(0, 0, 0, 0.05);
}

.nav-link svg {
  width: 13px;
  height: 13px;
  transition: transform 0.25s ease;
}

.nav-item:hover .nav-link svg,
.nav-item:focus-within .nav-link svg {
  transform: rotate(180deg);
}

.nav-dd {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  padding-top: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.nav-item:hover .nav-dd,
.nav-item:focus-within .nav-dd {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dd-card {
  min-width: 220px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.dd-card a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--black);
  transition: background 0.15s;
}

.dd-card a:hover {
  background: rgba(0, 0, 0, 0.05);
}

.dd-card b {
  font-size: 0.92rem;
  font-weight: 800;
}

.dd-card span {
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 600;
}

/* Subpages */
.subpage {
  padding-top: 150px;
  min-height: 70vh;
}

.subpage-grid {
  grid-template-columns: repeat(2, 1fr);
  max-width: 840px;
}

.subpage .step {
  opacity: 1;
}

.subpage-cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

@media (max-width: 640px) {
  .nav-menu {
    display: none;
  }

  .subpage-grid {
    grid-template-columns: 1fr;
  }
}

.nav-link:hover {
  background: none;
  opacity: 0.5;
}

.nav-link {
  transition: opacity 0.18s ease;
}

/* Waitlist unification */
.waitlist-card {
  position: relative;
}

.waitlist-title em {
  font-style: normal;
  color: var(--lime);
}

.waitlist-daruma {
  position: absolute;
  top: -52px;
  right: 42px;
  width: 116px;
  transform: rotate(7deg);
}

@media (max-width: 768px) {
  .waitlist-daruma {
    width: 84px;
    top: -38px;
    right: 18px;
  }
}

.waitlist {
  position: relative;
}

.waitlist-daruma {
  top: 52px;
  right: 64px;
  z-index: 2;
}

/* Interactive demo slide-in */
.demo-before,
.demo-after {
  position: relative;
}

/* Auto-toggling app feed */
.rule-scroller {
  overflow: hidden;
}

.rule-rows {
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.tg {
  transition: background 0.3s ease;
}

.tg::after {
  transition: left 0.3s ease;
}

.rule-scroller {
  height: 148px;
}

/* Solid black CTA (no green motion) */
.waitlist-card::before {
  display: none;
}

.waitlist-title .rotator {
  min-width: 2em;
  text-align: center;
}

.nav-lang {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.hero-content {
  max-width: 820px;
}

/* Social line + CTA grouping */
.hero-social {
  margin-bottom: -10px;
  font-size: 0.88rem;
  color: var(--gray-500);
}

.hero-social .hl-num {
  font-size: 0.92rem;
}

.hero-problem {
  gap: 26px;
}

/* Uniform dock tiles */
.mac-dock .integration-icon,
.mac-dock img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}

.mac-dock .integration-icon {
  padding: 5px;
  background: var(--white);
  box-sizing: border-box;
}

/* Counter hugs the button + live tick */
.hero-social {
  margin-bottom: -18px;
}

.hl-num.tick {
  animation: numPop 0.5s ease;
}

@keyframes numPop {
  0% { transform: scale(1); }
  35% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.hl-num {
  display: inline-block;
}

/* Zoom call window */
.win-zoom {
  position: absolute;
  left: 31%;
  top: 30%;
  width: 33%;
  z-index: 3;
  background: #1D1F21;
  border-radius: 10px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.wz-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  background: #2A2C2F;
}

.wz-video {
  position: relative;
}

.wz-video img {
  display: block;
  width: 100%;
  height: auto;
}

.wz-name {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 6px;
  color: #FFF;
  font-size: 8.5px;
  font-weight: 700;
}

.wz-rec {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 7px;
  background: rgba(255, 69, 58, 0.88);
  border-radius: 6px;
  color: #FFF;
  font-size: 8px;
  font-weight: 700;
}

/* feed app icon (png) */
.rule-row .feed-appicon {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  flex-shrink: 0;
}

.hero-visualizer .win-zoom {
  animation: liftB 8s ease-in-out infinite;
}

.hero-macbook .win-term {
  bottom: 5%;
  width: 44%;
  right: 4%;
}

.win-zoom {
  left: auto;
  right: 4.5%;
  top: 9%;
  width: 23%;
}

/* Real Meet clip, cropped to the tiles */
.wz-video {
  aspect-ratio: 2.27 / 1;
  overflow: hidden;
}

.wz-video video {
  position: absolute;
  width: 103.1%;
  left: -1.55%;
  top: -29.4%;
  height: auto;
}

.win-zoom {
  width: 27%;
}

/* One-line rotator + EN title sizing */
.rotator {
  white-space: nowrap;
}

html[lang="en"] .hero-title {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
}

/* Chrome tabs */
.wb-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 9px 0;
  background: #EDEFF1;
}

.wb-tabs .tl {
  margin-bottom: 6px;
}

.wb-tabs .tl.r { margin-left: 1px; }
.wb-tabs .wb-tab:first-of-type { margin-left: 6px; }

.wb-tab {
  padding: 4px 11px;
  border-radius: 8px 8px 0 0;
  background: #DDE1E4;
  font-size: 8px;
  font-weight: 600;
  color: var(--gray-700);
  white-space: nowrap;
}

.wb-tab.active {
  background: var(--white);
}

/* Canva-style window */
.win-canva {
  position: absolute;
  left: 40%;
  top: 40%;
  width: 22%;
  z-index: 2;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.wc-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  border-bottom: 1px solid var(--gray-100);
}

.wc-bar .wt-title {
  color: var(--gray-700);
}

.wc-canvas {
  position: relative;
  height: 110px;
  margin: 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, #E7E4FF 0%, #F4E9FF 100%);
  overflow: hidden;
}

.wc-block {
  position: absolute;
  left: 10px;
  top: 12px;
  width: 44%;
  height: 34px;
  border-radius: 8px;
  background: var(--lime);
}

.wc-circle {
  position: absolute;
  right: 12px;
  top: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #8B5CF6;
}

.wc-line {
  position: absolute;
  left: 10px;
  bottom: 26px;
  width: 62%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
}

.wc-line.short {
  bottom: 12px;
  width: 40%;
}

.hero-visualizer .win-canva {
  animation: liftC 8s ease-in-out infinite;
}

/* Realistic Docs window */
.doc-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 14px;
}

.doc-h {
  padding-bottom: 5px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 10.5px;
  font-weight: 800;
  color: var(--gray-900);
}

.doc-p {
  font-size: 9px;
  line-height: 1.65;
  color: var(--gray-700);
}

.doc-ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 9px;
  color: var(--gray-700);
}

.doc-ul li::before {
  content: '•  ';
  color: var(--gray-500);
}

.doc-ul b {
  color: var(--gray-900);
}

/* Realistic Slack window */
.ws-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 9.5px;
  font-weight: 800;
}

.ws-mem {
  font-weight: 600;
  color: var(--gray-500);
  font-size: 8px;
}

.ws-msgs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 9px 11px 4px;
}

.ws-m {
  display: flex;
  gap: 7px;
}

.ws-ava {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex-shrink: 0;
}

.ws-msg b time {
  margin-left: 4px;
  font-size: 7.5px;
  font-weight: 600;
  color: var(--gray-500);
}

.ws-typing {
  padding: 0 11px 9px;
  font-size: 8px;
  color: var(--gray-500);
  font-style: italic;
}

/* Realistic terminal */
.t-dir {
  color: #7EE0FF;
  font-weight: 700;
}

.t-git {
  color: #C792EA;
}

/* Realistic Canva */
.wc-wrap {
  display: flex;
}

.wc-tools {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 7px;
  background: #F7F7F8;
  border-right: 1px solid var(--gray-100);
  font-size: 9px;
  color: var(--gray-500);
  text-align: center;
}

.wc-stage {
  flex: 1;
  padding: 12px;
  background: #EDEFF3;
}

.wc-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 96px;
  border-radius: 8px;
  background: linear-gradient(120deg, #7C3AED 0%, #DB2777 100%);
}

.wc-sel {
  position: relative;
  padding: 3px 8px;
  border: 1.5px dashed #4EA3FF;
}

.wc-sel b {
  font-size: 12.5px;
  font-weight: 900;
  color: #FFF;
  letter-spacing: 0.02em;
}

.wc-sel .h {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #FFF;
  border: 1.5px solid #4EA3FF;
  border-radius: 50%;
}

.h.h1 { top: -4px; left: -4px; }
.h.h2 { top: -4px; right: -4px; }
.h.h3 { bottom: -4px; left: -4px; }
.h.h4 { bottom: -4px; right: -4px; }

.wc-sub {
  font-size: 8px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.14em;
}

/* ===== Synergy pass: causal choreography + salience rebalance ===== */

/* memory language: lime dot, local cue */
.live-dot {
  background: var(--lime-dark);
  box-shadow: 0 0 6px rgba(212, 240, 0, 0.8);
  transition: transform 0.25s ease;
}

.live-dot.surge {
  transform: scale(1.6);
}

.notch-local {
  margin-left: 10px;
  font-size: 8.5px;
  font-weight: 700;
  color: #9AA0A6;
  white-space: nowrap;
}

/* salience down: faces, magenta, terminal */
.wz-video video {
  filter: brightness(0.82) saturate(0.72);
}

.win-zoom {
  width: 21%;
}

.wc-banner {
  filter: saturate(0.55);
}

.hero-macbook .win-term {
  opacity: 0.88;
}

.wt-body .ok {
  color: #86B98A;
}

/* motion noise off: lifts removed, lime is memoria-only */
.hero-visualizer .win-browser,
.hero-visualizer .win-term,
.hero-visualizer .win-slack,
.hero-visualizer .win-zoom,
.hero-visualizer .win-canva {
  animation: none;
}

/* left rail alignment: Docs / Slack / chips on one stem */
.hero-macbook .win-slack {
  left: 4.5%;
}

.hero-macbook .hero-memo {
  left: 4.5%;
  bottom: 100px;
}

/* chips: the glowing terminus */
.hero-memo {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
  animation: memoGlow 3.2s ease-in-out infinite;
}

@keyframes memoGlow {
  0%, 100% { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14), 0 0 0 0 rgba(212, 240, 0, 0); }
  50% { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14), 0 0 22px 2px rgba(212, 240, 0, 0.30); }
}

.story-chips span {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-chips span.pop {
  transform: scale(1.16);
  box-shadow: 0 0 0 6px rgba(212, 240, 0, 0.35);
}

.memo-future {
  margin-top: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray-700);
  opacity: 0.8;
}

/* source words light up as the scan passes */
.src {
  border-radius: 3px;
  padding: 0 2px;
  transition: background 0.35s ease;
}

.src.lit {
  background: rgba(212, 240, 0, 0.45);
}

/* flying memory token */
.mem-token {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime-dark);
  box-shadow: 0 0 10px rgba(212, 240, 0, 0.85);
  z-index: 7;
  pointer-events: none;
}

/* one 12s master timeline: scan + cursor */
.scan-line {
  animation: scanFull 12s linear infinite;
}

.demo-cursor {
  animation: cursorMove 12s ease-in-out infinite;
}

.demo-cursor svg {
  animation: cursorClick 12s ease-in-out infinite;
}

@keyframes cursorMove {
  0%, 16% { left: 26%; top: 22%; }
  24%, 29% { left: 76%; top: 15%; }
  40%, 50% { left: 20%; top: 50%; }
  58%, 64% { left: 47%; top: 46%; }
  78%, 100% { left: 15%; top: 76%; }
}

@keyframes cursorClick {
  17%, 19%, 41%, 43%, 59%, 61% { transform: scale(1); }
  18%, 42%, 60% { transform: scale(0.8); }
}

/* Right-side memory notch */
.ava-kou {
  background: #4A7DFF;
  font-size: 0.5rem;
  letter-spacing: -0.5px;
}

.ws-body .ava-kou {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.side-notch {
  position: absolute;
  right: 0;
  top: 33%;
  width: 200px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 13px 15px 13px 16px;
  background: #0F0F10;
  border-radius: 18px 0 0 18px;
  box-shadow: -10px 10px 32px rgba(0, 0, 0, 0.35);
}

.hero-macbook .side-notch.hero-memo {
  left: auto;
  bottom: auto;
  right: 0;
  top: 33%;
  background: #0F0F10;
  margin: 0;
}

.sn-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  font-weight: 800;
  color: #F2F2F2;
}

.sn-head img {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.side-notch .story-chips {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.side-notch .story-chips span {
  font-size: 0.68rem;
  padding: 4px 10px;
}

.side-notch .memo-future {
  margin-top: 2px;
  font-size: 0.6rem;
  color: #9AA0A6;
  opacity: 1;
}

/* CTA daruma crew */
.cta-daruma {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.d-king {
  top: 44px;
  left: 7%;
  width: 116px;
  animation: drift1 5.2s ease-in-out infinite;
}

.d-hachi {
  bottom: 96px;
  right: 15%;
  width: 106px;
  animation: drift2 4.4s ease-in-out infinite;
}

.d-head {
  top: 46%;
  left: -14px;
  width: 96px;
  animation: drift3 6s ease-in-out infinite;
}

@keyframes drift1 {
  0%, 100% { transform: rotate(-9deg) translateY(0); }
  50% { transform: rotate(-6deg) translateY(-7px); }
}

@keyframes drift2 {
  0%, 100% { transform: rotate(7deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-6px); }
}

@keyframes drift3 {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50% { transform: rotate(-8deg) translateY(-8px); }
}

@media (max-width: 768px) {
  .cta-daruma {
    width: 68px;
  }

  .d-king { left: 2%; top: 60px; }
  .d-hachi { right: 4%; bottom: 80px; }
  .d-head { display: none; }
}

/* Gmail inbox window */
.win-mail {
  position: absolute;
  left: 4.5%;
  bottom: 6%;
  width: 31%;
  z-index: 1;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.mail-rows {
  display: flex;
  flex-direction: column;
}

.mail-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-top: 1px solid var(--gray-100);
  font-size: 8.5px;
  color: var(--gray-700);
}

.mail-row i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray-300);
  flex-shrink: 0;
}

.mail-row.unread i {
  background: var(--lime-dark);
}

.mail-row.unread b,
.mail-row.unread span {
  color: var(--gray-900);
  font-weight: 800;
}

.mail-row b {
  flex-shrink: 0;
  font-weight: 700;
}

.mail-row span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mail-row time {
  flex-shrink: 0;
  font-size: 7.5px;
  color: var(--gray-500);
}

/* Today calendar widget */
.win-cal {
  position: absolute;
  left: 38.5%;
  bottom: 9%;
  width: 17%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 11px 11px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

.cal-head {
  font-size: 8.5px;
  font-weight: 800;
  color: var(--gray-900);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gray-100);
}

.cal-ev {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 8px;
  font-weight: 600;
  color: var(--gray-900);
  border-left: 3px solid var(--gray-300);
  background: var(--gray-100);
}

.cal-ev b {
  font-size: 7.5px;
  color: var(--gray-500);
}

.cal-ev.lime { border-left-color: var(--lime-dark); }
.cal-ev.blue { border-left-color: #4A7DFF; }

.wb-shot {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== Mobile refinements (phone-first pass) ===== */
@media (max-width: 768px) {
  .integrations {
    padding: 64px 0;
  }

  .hero {
    padding: 104px 0 36px;
    min-height: auto;
    overflow-x: clip;
  }

  /* MacBook mock: keep the desktop layout and shrink it as one piece,
     instead of squeezing absolutely-positioned windows into 390px */
  .macbook-stage {
    height: auto;
    margin-bottom: 0;
    margin-top: 0;
  }

  .hero-macbook {
    position: static;
    width: 920px;
    max-width: none;
    margin: 28px 0 0 calc(50% - 460px);
    transform-origin: top center;
  }

  .hero-macbook .mac-desktop {
    height: 440px;
  }

  .hero-macbook .hero-memo {
    left: 34px;
    bottom: 92px;
  }

  .waitlist {
    padding: 64px 0 96px;
  }
}

/* ===== Footer v2 (Sapient-style columns + giant wordmark, memoria palette) ===== */
.footer {
  --ft-bg: var(--lime);
  --ft-fg: var(--black);
  --ft-mute: rgba(10, 10, 10, 0.62);
  --ft-line: rgba(10, 10, 10, 0.14);
  --ft-accent: var(--black);
  --ft-mark: var(--black);
  text-align: left;
  padding: 0;
  border-top: 0;
  background: var(--ft-bg);
  color: var(--ft-fg);
  position: relative;
  overflow: hidden;
  margin-top: 40px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.footer-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 32px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ft-fg);
  margin-bottom: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.footer-brand .logo-img {
  width: 30px;
  height: 30px;
  border-radius: 0;
  background: transparent;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ft-mute);
  max-width: 34ch;
}

.footer-col .footer-label + p {
  margin-bottom: 44px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li + li {
  margin-top: 14px;
}

.footer-col a {
  color: var(--ft-mute);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--ft-fg);
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid var(--ft-line);
  font-size: 0.78rem;
  color: var(--ft-mute);
}

.footer-meta a {
  color: var(--ft-mute);
  text-decoration: none;
}

.footer-meta a:hover {
  color: var(--ft-fg);
}

.footer-meta-links {
  display: flex;
  gap: 20px;
}

.footer-wordmark {
  position: relative;
  display: block;
  width: 100%;
  margin-top: 4px;
  height: 0.68em; /* crops the lower ~15% of the letters, Sapient-style */
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(72px, 20.5vw, 330px);
  line-height: 1;
  letter-spacing: -0.05em;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  color: var(--ft-mark);
}

.footer-wordmark span {
  display: block;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 24px;
  }
  .footer-col--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .footer-inner {
    padding: 56px 20px 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== Company page ===== */
.company-table {
  max-width: 760px;
  margin: 48px auto 0;
  border-top: 1px solid var(--gray-300);
}

.company-table dl {
  display: grid;
  grid-template-columns: 160px 1fr;
  margin: 0;
}

.company-table dt,
.company-table dd {
  padding: 20px 8px;
  border-bottom: 1px solid var(--gray-300);
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
}

.company-table dt {
  font-weight: 700;
  color: var(--gray-700);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.company-table dd a {
  color: var(--black);
}

@media (max-width: 520px) {
  .company-table dl {
    grid-template-columns: 1fr;
  }
  .company-table dt {
    padding-bottom: 4px;
    border-bottom: 0;
  }
  .company-table dd {
    padding-top: 0;
  }
}

/* ===== Performance: pause infinite animations while offscreen ===== */
.anim-off *,
.anim-off *::before,
.anim-off *::after {
  animation-play-state: paused !important;
}

/* ===== News / Press list ===== */
.news-list {
  max-width: 760px;
  margin: 48px auto 0;
  border-top: 1px solid var(--gray-300);
}

.news-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 22px 8px;
  border-bottom: 1px solid var(--gray-300);
  font-size: 0.98rem;
  line-height: 1.7;
}

.news-item time {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-500);
  letter-spacing: 0.04em;
}

.news-item a {
  color: var(--black);
}

.news-empty {
  padding: 40px 8px;
  text-align: center;
  color: var(--gray-500);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--gray-300);
}

@media (max-width: 520px) {
  .news-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.press-outlet {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 4px;
}

/* ===== Press cards ===== */
.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 960px;
  margin: 40px auto 0;
  align-items: start;
}

.press-card {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
}

.press-card summary {
  list-style: none;
  cursor: pointer;
}

.press-card summary::-webkit-details-marker {
  display: none;
}

.press-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--gray-100);
}

.press-card-body {
  padding: 14px 16px 16px;
}

.press-tag {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.press-card-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.press-card-body p {
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--gray-500);
}

.press-card-body p::after {
  content: '詳細を見る';
  margin-left: 12px;
  color: var(--black);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.press-card[open] .press-card-body p::after {
  content: '閉じる';
}

.press-timeline {
  list-style: none;
  border-top: 1px solid var(--gray-300);
  padding: 6px 16px 10px;
}

.press-timeline li {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.84rem;
  line-height: 1.55;
}

.press-timeline li:last-child {
  border-bottom: 0;
}

.press-timeline time {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-500);
  padding-top: 2px;
}

.press-timeline a {
  color: var(--black);
}

@media (max-width: 860px) {
  .press-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .press-grid {
    grid-template-columns: 1fr;
  }
}

.press-note {
  display: block;
  margin-top: 8px;
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--gray-500);
}
