/* ==========================================================================
   NanaShift Landing Page — Notion-inspired Design System
   ========================================================================== */

/* --- Design Tokens --- */
:root {
  --color-primary: #191919;
  --color-primary-hover: #333333;
  --color-accent: #2383E2;
  --color-accent-light: #E8F0FE;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F6F5F4;
  --color-text: #37352F;
  --color-text-muted: #787774;
  --color-border: #E3E2E0;
  --color-white: #FFFFFF;
  --color-success: #0F7B0F;

  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.1);

  --max-width: 1080px;
  --section-padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 5vw, 2rem);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--color-text); text-decoration: none; }
a:hover { color: var(--color-primary); }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.btn:hover {
  opacity: 0.9;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background: #1B6EC2;
  color: var(--color-white);
}

.btn-secondary {
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-accent:hover {
  background: #1B6EC2;
  color: var(--color-white);
}

/* --- Section helpers --- */
.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ==========================================================================
   1. NAVIGATION
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.75rem clamp(1.25rem, 5vw, 2rem);
  transition: background 0.2s, box-shadow 0.2s;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-border);
}

.navbar .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  /* gap: 0.5rem; */
}

.nav-logo-img {
  width: 28px;
  height: 28px;
  /* border-radius: 50%; */
  border-radius: 20%;
  display: inline-block;
  object-fit: cover;
  /* transform: scale(1.4); */
  margin-right: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-text-muted);
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--color-text);
}

.nav-cta-wrapper {
  display: flex;
  justify-content: flex-end;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--color-text);
  margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}

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

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

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

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--color-bg);
  padding: 4.5rem 1.5rem 2rem;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  flex-direction: column;
  gap: 1.25rem;
  transform: translateY(-100%);
  transition: transform 0.25s ease;
}

.mobile-nav.open {
  transform: translateY(0);
}

.mobile-nav a {
  font-size: 1rem;
  color: var(--color-text);
  padding: 0.5rem 0;
  display: block;
}

.mobile-nav .btn.btn-primary {
  width: 100%;
  text-align: center;
  margin-top: 0.5rem;
  color: var(--color-white);
}

/* ==========================================================================
   2. HERO
   ========================================================================== */
.hero {
  padding: clamp(7rem, 14vw, 10rem) clamp(1.25rem, 5vw, 2rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

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

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  margin-bottom: 1.25rem;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

/* Rotating hero word */
.rotating-word-wrapper {
  display: inline-block;
  position: relative;
  min-width: var(--rotating-word-width, 0);
  text-align: left;
}

.rotating-word {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 30%, #f093fb 60%, #f5a623 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.rotating-word.out {
  opacity: 0;
  transform: translateY(-12px);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Hidden measurer to hold all words and set width */
.rotating-word-measurer {
  visibility: hidden;
  position: absolute;
  white-space: nowrap;
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.hero-micro {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Phone mockup */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  position: relative;
}

.phone-frame {
  width: 500px;
  background: var(--color-white);
  border-radius: 24px;
  border: 1.5px solid var(--color-border);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.phone-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-bg-alt);
  margin-bottom: 0.75rem;
}

.phone-header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.phone-header-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transform: scale(1);
}

.phone-header-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-text);
}

.phone-header-status {
  font-size: 0.7rem;
  color: var(--color-success);
}

.chat-area {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 280px;
}

.chat-bubble {
  max-width: 92%;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(8px);
  animation: bubbleIn 0.4s ease-out forwards;
}

.chat-bubble.incoming {
  background: #DCF8C6;
  color: #1A3A1A;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

.chat-bubble.outgoing {
  background: var(--color-bg-alt);
  color: var(--color-text);
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

.chat-bubble.system {
  background: var(--color-bg-alt);
  color: var(--color-text);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
  border-left: 2px solid var(--color-text-muted);
}

.chat-bubble .chat-sender {
  font-weight: 600;
  font-size: 0.7rem;
  display: block;
  margin-bottom: 0.15rem;
}

.chat-bubble .chat-time {
  font-size: 0.6rem;
  color: var(--color-text-muted);
  display: block;
  text-align: right;
  margin-top: 0.25rem;
}

.chat-bubble:nth-child(1) { animation-delay: 0.3s; }
.chat-bubble:nth-child(2) { animation-delay: 1s; }
.chat-bubble:nth-child(3) { animation-delay: 1.8s; }
.chat-bubble:nth-child(4) { animation-delay: 2.5s; }
.chat-bubble:nth-child(5) { animation-delay: 3.2s; }

@keyframes bubbleIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scene transitions */
.chat-area.scene-exit {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.chat-area.scene-enter {
  animation: sceneIn 0.5s ease forwards;
}

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

/* Scene indicator dots */
.scene-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-bg-alt);
  margin-top: 0.5rem;
}

.scene-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: var(--color-border);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.scene-dot.active {
  background: var(--color-text-muted);
  transform: scale(1.3);
}

.scene-dot:hover {
  background: var(--color-text-muted);
}




/* ==========================================================================
   3. SOCIAL PROOF BAR
   ========================================================================== */
.social-proof {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 2rem clamp(1.25rem, 5vw, 2rem);
  text-align: center;
}

.social-proof p {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.proof-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.proof-pill {
  background: var(--color-bg-alt);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   4. HOW IT WORKS
   ========================================================================== */
.how-it-works {
  padding: var(--section-padding);
}

.how-it-works .container {
  text-align: center;
}

.how-it-works .section-subtitle {
  margin: 0 auto 3.5rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 1.75rem;
  left: calc(16.67% + 1.75rem);
  right: calc(16.67% + 1.75rem);
  height: 1px;
  border-top: 1.5px dashed var(--color-border);
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
}

.step-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 1rem;
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.step p {
  font-size: 0.925rem;
  color: var(--color-text-muted);
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ==========================================================================
   5. BEFORE / AFTER
   ========================================================================== */
.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.ba-panel {
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 3rem);
}

.ba-before {
  background: var(--color-primary);
  color: #B0AEA9;
}

.ba-before h3 {
  color: var(--color-white);
}

.ba-after {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.ba-panel h3 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin-bottom: 1.5rem;
}

.ba-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.ba-event {
  display: flex;
  gap: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.ba-time {
  font-weight: 600;
  white-space: nowrap;
  min-width: 4rem;
  font-size: 0.8rem;
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
}

.ba-before .ba-event {
  color: #A0A0A0;
}

.ba-callout {
  grid-column: 1 / -1;
  background: var(--color-accent);
  color: var(--color-white);
  text-align: center;
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  letter-spacing: -0.01em;
}

.ba-illustration {
  text-align: center;
  margin-top: 1.5rem;
}

.ba-illustration img {
  max-height: 200px;
  width: auto;
  margin: 0 auto;
}

/* ==========================================================================
   6. FEATURES — BENTO GRID
   ========================================================================== */
.features {
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
}

.features .container {
  text-align: center;
}

.features .section-subtitle {
  margin: 0 auto 3rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: left;
  transition: box-shadow 0.15s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
}

.feature-card.large {
  padding: 2rem;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.feature-mini-chat {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.feature-mini-chat .mini-bubble {
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  font-size: 0.75rem;
  max-width: 85%;
}

.mini-bubble.user {
  background: #DCF8C6;
  align-self: flex-end;
}

.mini-bubble.bot {
  background: var(--color-bg-alt);
  align-self: flex-start;
  border-left: 2px solid var(--color-border);
}

/* ==========================================================================
   7. PRICING
   ========================================================================== */
.pricing {
  padding: var(--section-padding);
  background: var(--color-bg-alt);
}

.pricing .container {
  text-align: center;
}

.pricing .section-subtitle {
  margin: 0 auto 3rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: start;
}

.pricing-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  text-align: center;
  transition: box-shadow 0.15s;
}

.pricing-card:hover {
  box-shadow: var(--shadow-md);
}

.pricing-card.featured {
  border: 1.5px solid var(--color-primary);
  box-shadow: var(--shadow-md);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
}

.pricing-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.25rem;
  letter-spacing: -0.03em;
}

.pricing-price span {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.pricing-features {
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.35rem 0;
  font-size: 0.875rem;
  display: flex;
  align-items: start;
  gap: 0.5rem;
  color: var(--color-text);
}

.pricing-features li::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  background: var(--color-success);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M6.5 11.5L3 8l1-1 2.5 2.5L11 5l1 1z'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.pricing-card .btn {
  width: 100%;
}

/* ==========================================================================
   8. TESTIMONIALS
   ========================================================================== */
.testimonials {
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
}

.testimonials .container {
  text-align: center;
}

.testimonials .section-subtitle {
  margin: 0 auto 3rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.testimonial-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: left;
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top;
}

.testimonial-card blockquote {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text);
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.testimonials-note {
  margin-top: 2rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* ==========================================================================
   9. FINAL CTA
   ========================================================================== */
.final-cta {
  background: var(--color-primary);
  padding: clamp(4rem, 10vw, 6rem) clamp(1.25rem, 5vw, 2rem);
  text-align: center;
  color: #A0A0A0;
  position: relative;
  overflow: hidden;
}

.final-cta h2 {
  color: var(--color-white);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.03em;
}

.final-cta-sub {
  font-size: 1.05rem;
  color: #A0A0A0;
  margin-bottom: 1.75rem;
}

.waitlist-form {
  display: flex;
  gap: 0.5rem;
  max-width: 440px;
  margin: 0 auto 1rem;
}

.waitlist-input {
  flex: 1;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

.waitlist-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.waitlist-input:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
}

.waitlist-btn {
  background: var(--color-white);
  color: var(--color-primary);
  font-weight: 600;
  white-space: nowrap;
}

.waitlist-btn:hover {
  opacity: 0.95;
}

.waitlist-msg {
  font-size: 0.85rem;
  color: #8BE88B;
  min-height: 1.25rem;
  margin-bottom: 2rem;
}

.final-cta-illustration {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  max-width: 700px;
  margin: 0 auto;
}

.final-cta-illustration img {
  max-width: 500px;
  width: 100%;
  opacity: 0.85;
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 3rem clamp(1.25rem, 5vw, 2rem) 2rem;
}

.footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand .nav-logo {
  /* color: var(--color-text); */
  /* margin-bottom: 0.75rem; */
  /* display: inline-block; */
}

.footer-brand p {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  color: var(--color-text-muted);
  transition: color 0.15s;
}

.footer-social a:hover {
  color: var(--color-text);
}

.footer h4 {
  color: var(--color-text);
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--color-text);
}

.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  text-align: center;
}

/* ==========================================================================
   SCROLL ANIMATIONS
   ========================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-child > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in-child.visible > *:nth-child(1) { transition-delay: 0s; }
.fade-in-child.visible > *:nth-child(2) { transition-delay: 0.08s; }
.fade-in-child.visible > *:nth-child(3) { transition-delay: 0.12s; }
.fade-in-child.visible > *:nth-child(4) { transition-delay: 0.16s; }
.fade-in-child.visible > *:nth-child(5) { transition-delay: 0.2s; }
.fade-in-child.visible > *:nth-child(6) { transition-delay: 0.24s; }

.fade-in-child.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  .fade-in,
  .fade-in-child > * {
    opacity: 1;
    transform: none;
  }

  .chat-bubble {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

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

  .hero-content {
    max-width: 100%;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-visual {
    margin-bottom: 1rem;
  }

  .chat-area {
    text-align: left;
  }

  .rotating-word-wrapper {
    text-align: center;
  }

  .steps::before {
    display: none;
  }

  .before-after {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
  }

  .pricing-card.featured {
    order: -1;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }

  .footer .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-links {
    align-items: center;
  }

  .final-cta-illustration img {
    max-width: 360px;
  }
}

@media (max-width: 640px) {
  .navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-links {
    display: none;
  }

  .nav-cta-wrapper {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .mobile-nav {
    display: flex;
  }

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

  .steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .phone-frame {
    width: 100%;
    max-width: 380px;
  }

  .btn {
    width: 100%;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .waitlist-form {
    flex-direction: column;
  }

  .final-cta-illustration img {
    max-width: 280px;
  }
}
