/* Buzly creator landing v6 additions */

.hero .headline {
  max-width: 690px;
  font-size: clamp(42px, 5vw, 66px);
}

.hero .subcopy {
  max-width: 540px;
}

section[id] {
  scroll-margin-top: 84px;
}

.hero-visual {
  transform-origin: 50% 70%;
}

.motion-ready .hero-copy > * {
  opacity: 0;
  transform: translateY(18px);
  animation: v6-enter 620ms cubic-bezier(.22, 1, .36, 1) forwards;
}

.motion-ready .hero-copy > :nth-child(2) { animation-delay: 90ms; }
.motion-ready .hero-copy > :nth-child(3) { animation-delay: 170ms; }
.motion-ready .hero-copy > :nth-child(4) { animation-delay: 250ms; }
.motion-ready .hero-copy > :nth-child(5) { animation-delay: 330ms; }

.motion-ready .hero-visual {
  opacity: 0;
  transform: translateY(24px) scale(.985);
  animation: v6-hero-device 760ms 180ms cubic-bezier(.22, 1, .36, 1) forwards;
}

.motion-ready .hero-visual .msg,
.motion-ready .hero-visual .filter-row {
  opacity: 0;
  transform: translateY(10px);
  animation: v6-enter 480ms cubic-bezier(.22, 1, .36, 1) forwards;
}

.motion-ready .hero-visual .msg:nth-child(1) { animation-delay: 720ms; }
.motion-ready .hero-visual .msg:nth-child(2) { animation-delay: 960ms; }
.motion-ready .hero-visual .msg:nth-child(3) { animation-delay: 1540ms; }
.motion-ready .hero-visual .filter-row:nth-child(2) { animation-delay: 1080ms; }
.motion-ready .hero-visual .filter-row:nth-child(3) { animation-delay: 1190ms; }
.motion-ready .hero-visual .filter-row:nth-child(4) { animation-delay: 1300ms; }
.motion-ready .hero-visual .filter-row:nth-child(5) { animation-delay: 1410ms; }

.motion-ready .stat-float {
  animation: v6-float 5.2s ease-in-out infinite;
}

.motion-ready .stat-float.right { animation-delay: -2.6s; }

.v6-reveal {
  opacity: 1;
  transform: none;
}

.motion-ready .v6-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 640ms cubic-bezier(.22, 1, .36, 1), transform 640ms cubic-bezier(.22, 1, .36, 1);
}

.motion-ready .v6-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Learning assistant */
.learning-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 22%, rgba(76, 159, 122, .14), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f7fbf9 100%);
}

.learning-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 72px;
  align-items: end;
}

.learning-head .section-lead {
  margin: 0 0 4px;
}

.learning-shell {
  margin-top: 64px;
  display: grid;
  grid-template-columns: minmax(300px, .86fr) minmax(0, 1.14fr);
  gap: 20px;
  align-items: stretch;
}

.learning-conversation,
.memory-console {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 24px 70px -42px rgba(29, 78, 57, .34);
}

.learning-conversation {
  position: relative;
  min-height: 530px;
  padding: 30px;
  overflow: hidden;
}

.learning-conversation::after {
  content: "";
  position: absolute;
  inset: auto -80px -110px auto;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: rgba(76, 159, 122, .08);
  pointer-events: none;
}

.assistant-identity {
  display: flex;
  align-items: center;
  gap: 13px;
  position: relative;
  z-index: 1;
}

.assistant-character {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px 18px 18px 7px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px -16px rgba(46, 127, 94, .75);
}

.assistant-character svg {
  width: 30px;
  height: 30px;
}

.motion-ready .assistant-character {
  animation: v6-character 4.8s cubic-bezier(.22, 1, .36, 1) infinite;
}

.assistant-name {
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -.02em;
}

.assistant-status {
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 550;
}

.assistant-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px var(--ok-bg);
}

.learning-dialogue {
  margin-top: 36px;
  display: grid;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.learning-bubble {
  max-width: 88%;
  padding: 15px 17px;
  border-radius: 18px;
  font-size: 14.5px;
  line-height: 1.58;
  letter-spacing: -.012em;
  transition: opacity 220ms ease-out, transform 220ms ease-out;
}

.learning-bubble.bot {
  justify-self: start;
  border-bottom-left-radius: 6px;
  background: var(--bg-3);
  color: var(--text-2);
}

.learning-bubble.user {
  justify-self: end;
  border-bottom-right-radius: 6px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px -18px rgba(46, 127, 94, .7);
}

.learning-bubble.bot.result {
  border: 1px solid var(--accent-line);
  background: var(--accent-tint);
  color: var(--text);
}

.learning-bubble.is-changing {
  opacity: .25;
  transform: translateY(6px);
}

.learning-footnote {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 28px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 550;
}

.learning-footnote svg { color: var(--accent); flex: 0 0 auto; }

.memory-console {
  padding: 30px;
}

.memory-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 5px;
  border-radius: 15px;
  background: var(--bg-3);
}

.memory-tab {
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 11px;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 650;
  transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 120ms ease;
}

.memory-tab:hover { color: var(--text); }
.memory-tab:active { transform: scale(.98); }
.memory-tab:focus-visible { outline: 3px solid rgba(76, 159, 122, .25); outline-offset: 2px; }

.memory-tab.active {
  color: var(--accent-strong);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.memory-meter {
  margin-top: 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

.meter-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.meter-label {
  color: var(--text-3);
  font-size: 12px;
  font-weight: 650;
}

.meter-value {
  margin-top: 4px;
  font-family: "Inter", sans-serif;
  font-size: 32px;
  line-height: 1;
  font-weight: 780;
  letter-spacing: -.045em;
}

.meter-caption {
  max-width: 210px;
  color: var(--text-3);
  font-size: 12px;
  text-align: right;
}

.meter-track {
  margin-top: 16px;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--bg-3);
}

.meter-fill {
  width: 24%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #79bea0);
  transition: width 520ms cubic-bezier(.22, 1, .36, 1);
}

.memory-list {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}

.memory-row {
  min-height: 62px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #fff;
}

.memory-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-tint);
  color: var(--accent-strong);
}

.memory-icon svg { width: 18px; height: 18px; }
.memory-copy strong { display: block; font-size: 13px; letter-spacing: -.01em; }
.memory-copy span { display: block; margin-top: 2px; color: var(--text-3); font-size: 12px; }

.memory-state {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--bg-3);
  color: var(--text-3);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.memory-row.learned .memory-state {
  color: var(--accent-strong);
  background: var(--accent-tint);
}

/* Positioning v6 */
.positioning-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 56px;
  align-items: end;
}

.positioning-copy .section-lead {
  margin: 0 0 5px;
}

.positioning-copy .section-lead strong {
  display: block;
  margin-top: 12px;
  color: var(--text);
  font-weight: 700;
}

.pos-card .pos-list { display: grid; gap: 4px; }
.pos-card .pos-item { min-height: 44px; }

/* Brand trust */
.brand-trust {
  overflow: hidden;
}

.brand-trust-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr);
  gap: 64px;
  align-items: end;
}

.brand-trust-copy {
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.75;
}

.brand-trust-copy strong { color: var(--text); }

.brand-proof {
  margin-top: 56px;
  padding: 28px 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.brand-proof-track {
  width: max-content;
  display: flex;
  gap: 12px;
  animation: brand-proof-flow 26s linear infinite;
}

.brand-proof:hover .brand-proof-track,
.brand-proof:focus-within .brand-proof-track { animation-play-state: paused; }

.brand-proof:focus-visible {
  outline: 3px solid rgba(76, 159, 122, .24);
  outline-offset: 5px;
}

.brand-proof-group { display: flex; gap: 12px; }

.brand-proof-item {
  min-width: 184px;
  min-height: 86px;
  display: grid;
  place-items: center;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  color: var(--text-2);
  text-align: center;
}

.brand-proof-item strong {
  display: block;
  color: var(--text);
  font-family: "Inter", "Pretendard Variable", sans-serif;
  font-size: 14px;
  letter-spacing: .035em;
}

.brand-proof-item span {
  display: block;
  margin-top: 4px;
  color: var(--text-3);
  font-size: 11px;
}

.brand-metrics {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.brand-metric {
  padding: 28px 24px;
  border-right: 1px solid var(--border);
}

.brand-metric:last-child { border-right: 0; }
.brand-metric .value { font-family: "Inter", sans-serif; font-size: clamp(28px, 4vw, 46px); font-weight: 780; letter-spacing: -.045em; }
.brand-metric .value span { margin-left: 3px; color: var(--text-2); font-size: 15px; letter-spacing: -.02em; }
.brand-metric .label { margin-top: 8px; color: var(--text-3); font-size: 13px; }

@keyframes v6-enter {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes v6-hero-device {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes v6-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes v6-character {
  0%, 72%, 100% { transform: translateY(0) rotate(0); }
  80% { transform: translateY(-3px) rotate(-2deg); }
  88% { transform: translateY(0) rotate(2deg); }
}

@keyframes brand-proof-flow {
  to { transform: translateX(calc(-50% - 6px)); }
}

@media (max-width: 900px) {
  .learning-head,
  .brand-trust-head,
  .positioning-copy { grid-template-columns: 1fr; gap: 24px; }
  .learning-shell { grid-template-columns: 1fr; }
  .learning-conversation { min-height: 500px; }
}

@media (max-width: 720px) {
  .hero .headline {
    max-width: 100%;
    font-size: clamp(38px, 11.5vw, 52px);
    line-height: 1.12;
  }

  .hero .subcopy {
    font-size: 17px;
    line-height: 1.62;
  }

  .learning-shell { margin-top: 38px; }

  .learning-conversation,
  .memory-console {
    padding: 22px;
    border-radius: 22px;
  }

  .learning-conversation { min-height: 430px; }
  .learning-footnote { left: 22px; right: 22px; bottom: 22px; }
  .learning-bubble { max-width: 94%; font-size: 14px; }
  .memory-tab { min-height: 52px; padding-inline: 4px; }
  .meter-head { align-items: flex-start; }
  .meter-caption { max-width: 140px; }
  .memory-row { grid-template-columns: 38px minmax(0, 1fr); }
  .memory-state { grid-column: 2; justify-self: start; }
  .brand-trust-copy { font-size: 16px; }
  .brand-proof { margin-top: 38px; }
  .brand-proof-item { min-width: 156px; min-height: 78px; }
  .brand-metrics { grid-template-columns: 1fr; }
  .brand-metric { padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .brand-metric:last-child { border-bottom: 0; }
  .positioning-copy .section-title br { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .motion-ready .hero-copy > *,
  .motion-ready .hero-visual,
  .motion-ready .hero-visual .msg,
  .motion-ready .hero-visual .filter-row,
  .motion-ready .stat-float,
  .motion-ready .assistant-character,
  .brand-proof-track {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .motion-ready .v6-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .meter-fill,
  .learning-bubble { transition: none; }
}

/* Journey completion and mobile UX polish */
body {
  text-wrap: pretty;
}

.how-card,
.feat,
.testimonial,
.pos-card,
.learning-conversation,
.memory-console,
.final-cta {
  will-change: transform;
}

.how-card {
  isolation: isolate;
}

.how-card .card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.how-card button,
.how-card .copy-btn,
.how-card a:not(.card-link) {
  position: relative;
  z-index: 2;
}

.btn {
  position: relative;
  overflow: hidden;
}

.btn .tap-ripple {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .42);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: v6-ripple 520ms cubic-bezier(.22, 1, .36, 1);
}

.btn-secondary .tap-ripple,
.btn-ghost .tap-ripple {
  background: rgba(76, 159, 122, .18);
}

.tilt-active {
  transform:
    perspective(900px)
    rotateX(calc((var(--tilt-y, .5) - .5) * -3deg))
    rotateY(calc((var(--tilt-x, .5) - .5) * 4deg))
    translateY(-2px);
}

.features-grid,
.how-grid,
.social-grid {
  scroll-padding-inline: 20px;
}

@keyframes v6-ripple {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(28);
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 20px;
  }

  .nav-inner {
    height: 60px;
  }

  .mobile-menu-panel {
    top: 60px;
  }

  .hero {
    padding: 48px 0 46px;
  }

  .hero-inner {
    gap: 34px;
  }

  .tagline {
    font-size: 12px;
    padding: 7px 11px;
  }

  .hero .headline {
    margin-top: 18px;
    font-size: clamp(36px, 10.4vw, 46px);
  }

  .hero .subcopy {
    margin-top: 18px;
    font-size: 15.5px;
    line-height: 1.62;
  }

  .hero-cta {
    margin-top: 26px;
    gap: 8px;
  }

  .hero-cta .btn {
    min-height: 46px;
    padding: 13px 15px;
    font-size: 14px;
  }

  .hero-meta {
    margin-top: 22px;
    gap: 12px;
    font-size: 12.5px;
  }

  .phone {
    max-width: 100%;
    border-radius: 26px;
  }

  .phone-topbar {
    padding: 13px 16px 10px;
  }

  .chat-body {
    padding: 16px 13px;
  }

  section.block {
    padding: 62px 0;
  }

  .section-title {
    margin-top: 12px;
    font-size: clamp(29px, 8.4vw, 38px);
    line-height: 1.18;
  }

  .section-lead {
    margin-top: 14px;
    font-size: 15.5px;
    line-height: 1.62;
  }

  .features-head {
    gap: 18px;
  }

  .how-grid {
    margin-top: 34px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .how-card {
    min-height: 172px;
    padding: 18px 14px 15px;
    border-radius: 16px;
  }

  .how-title {
    margin-top: 10px;
    font-size: 17px;
    line-height: 1.28;
  }

  .how-desc {
    margin-top: 8px;
    font-size: 12.5px;
    line-height: 1.5;
  }

  .how-mock {
    padding-top: 12px;
  }

  .link-mock {
    padding: 8px 9px;
  }

  .link-mock .url {
    max-width: 82px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11.5px;
  }

  .link-mock .copy-btn {
    width: 34px;
    height: 34px;
  }

  .features-grid {
    margin: 34px -20px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    overflow-x: auto;
    padding: 0 20px 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .features-grid::-webkit-scrollbar {
    display: none;
  }

  .feat,
  .feat.span-2,
  .feat.span-3,
  .feat.span-4 {
    flex: 0 0 min(82vw, 340px);
    min-height: 0;
    grid-column: auto;
    scroll-snap-align: start;
    padding: 22px 20px 0;
    border-radius: 20px;
  }

  .feat-title {
    margin-top: 10px;
    font-size: 20px;
  }

  .feat-desc {
    margin-top: 10px;
    font-size: 13.5px;
  }

  .feat-mock {
    margin-top: 18px;
    margin-left: -10px;
    margin-right: -10px;
    max-height: 210px;
    overflow: hidden;
  }

  .mock-frame {
    margin: 0;
    padding: 14px;
  }

  .row {
    gap: 10px;
    padding: 10px;
  }

  .row .name-row {
    font-size: 12.5px;
  }

  .row .sub-row {
    font-size: 11px;
  }

  .learning-head {
    gap: 18px;
  }

  .learning-shell {
    margin: 34px -20px 0;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    overflow-x: auto;
    padding: 0 20px 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .learning-shell::-webkit-scrollbar {
    display: none;
  }

  .learning-conversation,
  .memory-console {
    flex: 0 0 min(86vw, 380px);
    scroll-snap-align: start;
    padding: 20px;
    border-radius: 22px;
  }

  .learning-conversation {
    min-height: 360px;
  }

  .assistant-character {
    width: 46px;
    height: 46px;
  }

  .learning-dialogue {
    margin-top: 24px;
  }

  .learning-bubble {
    padding: 13px 14px;
    font-size: 13.5px;
  }

  .learning-footnote {
    left: 20px;
    right: 20px;
    bottom: 18px;
  }

  .memory-console {
    min-height: 360px;
  }

  .memory-tabs {
    gap: 6px;
  }

  .memory-tab {
    min-height: 42px;
    font-size: 12px;
  }

  .memory-meter {
    margin-top: 22px;
    padding-bottom: 20px;
  }

  .meter-value {
    font-size: 28px;
  }

  .meter-caption {
    max-width: 132px;
    font-size: 11.5px;
  }

  .memory-list {
    margin-top: 18px;
    gap: 8px;
  }

  .memory-row {
    min-height: 54px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    padding: 8px 9px;
  }

  .memory-icon {
    width: 34px;
    height: 34px;
  }

  .memory-copy strong {
    font-size: 12.2px;
  }

  .memory-copy span {
    font-size: 11.2px;
  }

  .memory-state {
    grid-column: auto;
    justify-self: end;
    font-size: 10px;
  }

  .positioning-copy {
    gap: 18px;
  }

  .pos-grid {
    margin: 0 -20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    overflow-x: auto;
    padding: 0 20px 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .pos-grid::-webkit-scrollbar {
    display: none;
  }

  .pos-card {
    flex: 0 0 min(84vw, 360px);
    scroll-snap-align: start;
    padding: 26px 22px;
    border-radius: 20px;
  }

  .pos-h {
    font-size: 21px;
  }

  .pos-list {
    margin-top: 18px;
    padding-top: 18px;
  }

  .pos-item {
    font-size: 13.5px;
    padding: 8px 0;
  }

  .brand-proof {
    margin-top: 34px;
    padding: 20px 0;
  }

  .brand-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .brand-metric {
    padding: 18px 12px;
    border-right: 1px solid var(--border);
    border-bottom: 0;
  }

  .brand-metric:last-child {
    border-right: 0;
  }

  .brand-metric .label {
    font-size: 11.5px;
    line-height: 1.45;
  }

  .social-grid {
    margin: 34px -20px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    overflow-x: auto;
    padding: 0 20px 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .social-grid::-webkit-scrollbar {
    display: none;
  }

  .testimonial {
    flex: 0 0 min(80vw, 320px);
    min-height: 214px;
    scroll-snap-align: start;
    padding: 22px;
    border-radius: 20px;
  }

  .stats-bar .cell {
    padding: 20px 18px;
  }

  .stats-bar .num-big {
    font-size: 26px;
  }

  .faq-wrap {
    margin-top: 32px;
  }

  .faq-q {
    padding: 20px 0;
    font-size: 16px;
  }

  .final-cta {
    border-radius: 24px;
    padding: 54px 20px;
  }

  .final-cta p {
    margin-top: 16px;
    font-size: 15.5px;
  }

  .final-cta .btns {
    margin-top: 26px;
    gap: 8px;
  }

  .final-cta .btns .btn {
    flex: 1 1 100%;
    justify-content: center;
    min-height: 48px;
    padding: 14px 16px;
    font-size: 15px;
  }

  footer {
    padding: 52px 0 34px;
  }
}

@media (max-width: 380px) {
  .how-grid {
    gap: 8px;
  }

  .how-card {
    min-height: 166px;
    padding: 16px 12px 13px;
  }

  .how-title {
    font-size: 16px;
  }

  .memory-row {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .memory-state {
    grid-column: 2;
    justify-self: start;
  }
}
