/* ===== Tighter section spacing (override base style.css) ===== */
section {
  padding: 72px 0;
}

.section-heading {
  margin-bottom: 14px;
}

.how-it-works-header,
.features-header,
.pricing-header {
  margin-bottom: 48px;
}

/* ===== Hero V2 — Loveable-style prompt-first ===== */
.hero-v2 {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 24px 48px;
  overflow: hidden;
}

/* ===== Aurora background ===== */
.aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  will-change: transform;
}

.aurora-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  top: -10%;
  left: -5%;
  animation: aurora-drift-1 14s ease-in-out infinite alternate;
}

.aurora-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  top: 20%;
  right: -8%;
  animation: aurora-drift-2 18s ease-in-out infinite alternate;
}

.aurora-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  bottom: -5%;
  left: 30%;
  animation: aurora-drift-3 16s ease-in-out infinite alternate;
}

@keyframes aurora-drift-1 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(80px, 60px) scale(1.1); }
  66%  { transform: translate(-40px, 100px) scale(0.95); }
  100% { transform: translate(50px, 30px) scale(1.05); }
}

@keyframes aurora-drift-2 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-70px, 50px) scale(1.08); }
  66%  { transform: translate(40px, -60px) scale(0.9); }
  100% { transform: translate(-30px, 80px) scale(1.12); }
}

@keyframes aurora-drift-3 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(60px, -40px) scale(1.05); }
  66%  { transform: translate(-80px, 30px) scale(1.1); }
  100% { transform: translate(20px, -70px) scale(0.95); }
}

.hero-v2 .hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  width: 100%;
}

.hero-v2 h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 36px;
  color: #fff;
}

.hero-form {
  width: 100%;
}

/* --- Big prompt area --- */
.hero-prompt-wrap {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.hero-prompt-wrap:focus-within {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.03);
}

.hero-prompt-wrap textarea {
  width: 100%;
  min-height: 180px;
  background: transparent;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.65;
  padding: 24px 24px 16px;
  outline: none;
  resize: none;
}

.hero-prompt-wrap textarea::placeholder {
  color: #555;
}

/* --- Example chips row inside prompt box --- */
.hero-prompt-footer {
  padding: 0 20px 16px;
}

.hero-prompt-examples {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.example-label {
  font-size: 12px;
  color: #555;
  font-weight: 500;
  margin-right: 2px;
}

.example-chip {
  font-size: 12px;
  font-weight: 500;
  color: #888;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  padding: 5px 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-family: inherit;
  white-space: nowrap;
}

.example-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ccc;
  border-color: rgba(255, 255, 255, 0.18);
}

/* --- Phone + CTA row --- */
.hero-bottom-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.phone-input-wrap {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-width: 0;
}

.phone-prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-right: none;
  border-radius: 12px 0 0 12px;
  font-size: 14px;
  color: #666;
  font-weight: 500;
  white-space: nowrap;
  gap: 6px;
}

.phone-input-wrap input {
  flex: 1;
  min-width: 0;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: none;
  border-radius: 0 12px 12px 0;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s;
}

.phone-input-wrap input::placeholder {
  color: #555;
}

.phone-input-wrap input:focus {
  border-color: rgba(255, 255, 255, 0.3);
}

.phone-input-wrap:focus-within {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.phone-input-wrap:focus-within .phone-prefix {
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-cta {
  position: relative;
  font-size: 15px;
  padding: 15px 30px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: #fff;
  color: #000;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s, transform 0.15s;
}

.btn-cta:hover {
  box-shadow:
    0 0 32px rgba(255, 255, 255, 0.15),
    0 0 60px rgba(255, 255, 255, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-cta:active {
  transform: scale(0.97);
}

/* Shimmer sweep — visible on white bg */
.btn-cta-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  z-index: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(0, 0, 0, 0.04) 30%,
    rgba(0, 0, 0, 0.08) 48%,
    rgba(255, 255, 255, 1) 50%,
    rgba(0, 0, 0, 0.08) 52%,
    rgba(0, 0, 0, 0.04) 70%,
    transparent 100%
  );
  animation: shimmer 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0%   { left: -100%; }
  60%  { left: 160%; }
  100% { left: 160%; }
}

/* Content layer */
.btn-cta-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Sparkle icon */
.btn-cta-icon {
  font-size: 14px;
  display: inline-block;
  animation: sparkle-pulse 2.5s ease-in-out infinite;
}

@keyframes sparkle-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.2) rotate(15deg); }
}

/* Arrow slide on hover */
.btn-cta-arrow {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-cta:hover .btn-cta-arrow {
  transform: translateX(4px);
}

/* Bottom CTA standalone (centered, larger) */
.btn-cta-bottom {
  display: inline-flex;
  font-size: 17px;
  padding: 18px 40px;
  text-decoration: none;
}

.hero-form-note {
  text-align: center;
  font-size: 13px;
  color: #444;
  margin-top: 16px;
  letter-spacing: 0.01em;
}

/* ===== Social Proof ===== */
.social-proof {
  padding: 36px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.proof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.proof-number {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.proof-label {
  font-size: 13px;
  color: #666;
}

.proof-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
}

/* ===== Trust Badges ===== */
.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: #888;
  letter-spacing: 0.01em;
}

.trust-badge-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.5;
}

.trust-badge-sep {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.12);
}

/* ===== Testimonials Carousel ===== */
.testimonial-carousel {
  margin-top: 28px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.testimonial-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 20px;
}

.testimonial-track::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 100%;
  scroll-snap-align: center;
  padding: 28px 28px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  margin: 0;
}

.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-bottom: 16px;
}

.testimonial-stars svg {
  width: 16px;
  height: 16px;
  fill: #facc15;
}

.testimonial-text {
  font-size: 15px;
  color: #999;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #888;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-meta {
  text-align: left;
}

.testimonial-author {
  font-size: 13px;
  color: #ccc;
  font-weight: 600;
  line-height: 1.3;
}

.testimonial-role {
  font-size: 12px;
  color: #555;
  line-height: 1.3;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.testimonial-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}

.testimonial-dot.active {
  background: rgba(255, 255, 255, 0.45);
  transform: scale(1.25);
}

/* ===== Use Cases ===== */
.use-cases {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.use-cases-header {
  text-align: center;
  margin-bottom: 48px;
}

.use-cases-header .section-subtext {
  margin: 0 auto;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.use-case-card {
  padding: 28px 24px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s;
}

.use-case-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.use-case-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.use-case-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.use-case-card > p {
  font-size: 14px;
  color: #888;
  line-height: 1.6;
  margin-bottom: 16px;
}

.use-case-example {
  font-size: 13px;
  color: #666;
  font-style: italic;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  line-height: 1.5;
}

/* ===== Demo Mockup ===== */
.demo-mockup {
  margin-top: 64px;
  display: flex;
  justify-content: center;
}

.demo-window {
  width: 100%;
  max-width: 560px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0a0a;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.demo-toolbar {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 12px;
}

.demo-toolbar-dots {
  display: flex;
  gap: 6px;
}

.demo-toolbar-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.demo-toolbar-title {
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.demo-body {
  padding: 20px;
}

.demo-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #888;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.demo-transcript {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.demo-msg {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.demo-msg-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #555;
}

.demo-msg-jp {
  font-size: 14px;
  color: #ddd;
  line-height: 1.6;
}

.demo-msg-en {
  font-size: 13px;
  color: #777;
  font-style: italic;
  line-height: 1.5;
}

.demo-msg-other .demo-msg-label {
  color: #6366f1;
}

.demo-typing-indicator {
  display: flex;
  gap: 4px;
  padding: 6px 0;
}

.demo-typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #555;
  animation: typing-bounce 1.4s ease-in-out infinite;
}

.demo-typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.demo-typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* ===== Carousel Dots ===== */
.carousel-dots {
  display: none;
}

@media (max-width: 768px) {
  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
  }

  .carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: background 0.2s, transform 0.2s;
  }

  .carousel-dot.active {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
  }
}

/* ===== Pricing Popular Badge ===== */
.pricing-popular {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #000;
  background: #fff;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

/* ===== FAQ ===== */
.faq {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-header {
  text-align: center;
  margin-bottom: 36px;
}

.faq-list {
  max-width: 680px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-item summary {
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: #ddd;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.2s;
}

.faq-item summary:hover {
  color: #fff;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 300;
  color: #555;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: "−";
}

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

.faq-item p {
  font-size: 15px;
  color: #888;
  line-height: 1.7;
  padding: 0 0 20px;
  max-width: 600px;
}

/* ===== Hamburger ===== */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  section {
    padding: 52px 0;
  }

  .aurora-blob {
    filter: blur(80px);
    opacity: 0.25;
  }

  .aurora-1 { width: 350px; height: 350px; }
  .aurora-2 { width: 300px; height: 300px; }
  .aurora-3 { width: 280px; height: 280px; }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links.nav-open {
    display: flex;
  }

  .nav-links a {
    display: block !important;
    font-size: 16px;
    padding: 8px 0;
  }

  .hero-v2 {
    padding: 88px 16px 40px;
    min-height: auto;
  }

  .hero-v2 h1 {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 20px;
  }

  .hero-prompt-wrap textarea {
    min-height: 120px;
    font-size: 16px;
    padding: 18px 18px 12px;
  }

  .hero-prompt-footer {
    padding: 0 14px 12px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .hero-prompt-wrap:focus-within .hero-prompt-footer {
    max-height: 60px;
    padding: 0 14px 12px;
  }

  .example-chip {
    font-size: 11px;
    padding: 4px 11px;
  }

  .hero-bottom-row {
    flex-direction: column;
    gap: 10px;
  }

  .btn-cta {
    width: 100%;
    font-size: 16px;
    padding: 16px 24px;
    justify-content: center;
  }

  .btn-cta-content {
    justify-content: center;
  }

  .use-cases-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 16px;
    scrollbar-width: none;
  }

  .use-cases-grid::-webkit-scrollbar {
    display: none;
  }

  .use-case-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }

  .proof-stats {
    gap: 24px;
  }

  .proof-number {
    font-size: 20px;
  }

  .proof-label {
    font-size: 11px;
  }

  .proof-divider {
    height: 28px;
  }

  .trust-badges {
    gap: 14px;
    margin-top: 18px;
  }

  .trust-badge {
    font-size: 12px;
    gap: 5px;
  }

  .trust-badge-icon {
    width: 13px;
    height: 13px;
  }

  .trust-badge-sep {
    height: 12px;
  }

  .testimonial-carousel {
    margin-top: 20px;
    max-width: 100%;
  }

  .testimonial-card {
    padding: 22px 20px 18px;
    flex: 0 0 85%;
  }

  .testimonial-text {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .testimonial-stars svg {
    width: 14px;
    height: 14px;
  }

  .testimonial-stars {
    margin-bottom: 12px;
  }

  .testimonial-avatar {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .testimonial-author {
    font-size: 12px;
  }

  .testimonial-role {
    font-size: 11px;
  }

  .testimonial-dots {
    margin-top: 12px;
  }

  .faq-item summary {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .hero-v2 {
    padding: 72px 14px 28px;
  }

  .hero-prompt-wrap textarea {
    min-height: 90px;
    padding: 14px 14px 10px;
  }

  .hero-prompt-footer {
    max-height: 0;
    overflow: hidden;
    padding: 0 12px;
  }

  .hero-prompt-wrap:focus-within .hero-prompt-footer {
    max-height: 60px;
    padding: 0 12px 10px;
  }

  .hero-prompt-examples {
    gap: 6px;
  }

  .social-proof {
    padding: 28px 0;
  }

  .proof-stats {
    gap: 16px;
  }

  .proof-number {
    font-size: 18px;
  }

  .proof-divider {
    height: 24px;
  }

  .testimonial-card {
    padding: 20px 18px 16px;
    flex: 0 0 88%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aurora-blob,
  .btn-cta-shimmer,
  .btn-cta-icon {
    animation: none;
  }
}
