/* TCW2 Chat Fix — Claude-inspired light theme */
:root {
  --bg: #F3F5F7;
  --bg-warm: #EAECEF;
  --bg-card: #FFFFFF;
  --text: #15202B;
  --text-muted: #5C6B7A;
  --accent: #0B7A42;
  --accent-hover: #096636;
  --accent-light: #E6F4EC;
  --accent-border: #B8DFC9;
  --border: #D8DEE4;
  --shadow: 0 2px 12px rgba(21, 32, 43, 0.06);
  --shadow-lg: 0 8px 32px rgba(21, 32, 43, 0.1);
  --radius: 14px;
  --radius-sm: 8px;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-serif: "Fraunces", Georgia, serif;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
}

/* ── Typography ── */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.15rem; }

p { color: var(--text-muted); }

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section {
  padding: 4.5rem 0;
}

section:nth-child(even) {
  background: var(--bg-warm);
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 245, 247, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
}

.logo:hover { color: var(--text); }

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  transform: rotate(-3deg);
}

nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

nav a {
  color: var(--text-muted);
  font-size: 0.925rem;
  font-weight: 500;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.925rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

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

.btn-secondary:hover {
  border-color: var(--accent-border);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
}

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

.btn:disabled,
.btn-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-beta {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.badge-soon {
  background: #FFF8E6;
  color: #9A6B00;
  border: 1px solid #F0DFA0;
}

/* ── Hero ── */
.hero {
  padding: 5rem 0 4rem;
  background: var(--bg);
  overflow: hidden;
}

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

.hero-content .badge {
  margin-bottom: 1.25rem;
}

.hero-content h1 {
  margin-bottom: 1rem;
}

.hero-content h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-note {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Chat mockup */
.chat-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(1.5deg);
}

.chat-mockup-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.chat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.chat-messages {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 280px;
}

.chat-bubble {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-size: 0.875rem;
  line-height: 1.5;
}

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

.chat-bubble.ai {
  align-self: flex-start;
  background: var(--bg-warm);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chat-bubble.ai strong {
  color: var(--accent);
  font-weight: 600;
}

.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.chat-input-bar input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  background: var(--bg);
  color: var(--text-muted);
}

.chat-input-bar input:focus {
  outline: 2px solid var(--accent-border);
}

.chat-send {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  border: none;
  color: white;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* ── Section headers ── */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  max-width: 520px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* ── How it works ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.step-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 0.75rem;
  -webkit-text-stroke: 1px var(--accent-border);
}

.step-card h3 {
  margin-bottom: 0.5rem;
  color: var(--text);
}

.step-card p {
  font-size: 0.925rem;
}

/* ── Connect adapters ── */
.adapters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.adapter-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  transition: border-color 0.15s ease;
}

.adapter-card:hover {
  border-color: var(--accent-border);
}

.adapter-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.adapter-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.adapter-card p {
  font-size: 0.8rem;
}

/* ── Reviews ── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-stars {
  color: #D4A017;
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.review-text {
  font-size: 0.925rem;
  color: var(--text);
  font-style: italic;
  flex: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
}

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

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

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 780px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured::before {
  content: "Most popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
}

.pricing-card h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 1rem 0;
}

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

.pricing-features {
  list-style: none;
  margin: 1.5rem 0;
}

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

.pricing-features li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-bypass {
  background: var(--accent-light);
  border: 1px dashed var(--accent-border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-top: 2rem;
  text-align: center;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-bypass p {
  color: var(--accent);
  font-size: 0.925rem;
  font-weight: 500;
}

.stripe-note {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── VLinker affiliate ── */
.affiliate-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.affiliate-icon {
  width: 80px;
  height: 80px;
  background: var(--bg-warm);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.affiliate-content h3 {
  margin-bottom: 0.35rem;
}

.affiliate-content p {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.affiliate-disclosure {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ── Downloads page ── */
.page-hero {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  background: var(--bg);
}

.page-hero h1 {
  margin-bottom: 0.75rem;
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 780px;
  margin: 0 auto;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.download-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.download-card h2 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.download-card .version {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.download-card .requirements {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 1rem;
  text-align: left;
  list-style: none;
}

.download-card .requirements li {
  padding: 0.25rem 0;
}

.download-card .requirements li::before {
  content: "• ";
  color: var(--accent);
}

/* ── Footer ── */
.site-footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 2rem;
}

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

.footer-brand .logo {
  color: white;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.85rem;
}

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

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ── Quirky touches ── */
.tilt-left { transform: rotate(-1.5deg); }
.tilt-right { transform: rotate(1.5deg); }

.wiggle-hover:hover {
  animation: wiggle 0.4s ease;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-2deg); }
  75% { transform: rotate(2deg); }
}

.chat-bubble.ai .typing-dots {
  display: inline-flex;
  gap: 3px;
}

.chat-bubble.ai .typing-dots span {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: blink 1.4s infinite;
}

.chat-bubble.ai .typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.chat-bubble.ai .typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
  0%, 80%, 100% { opacity: 0.3; }
  40% { opacity: 1; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .chat-mockup {
    transform: none;
    max-width: 480px;
    margin: 0 auto;
  }

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

  .adapters {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .affiliate-banner {
    flex-direction: column;
    text-align: center;
  }
}

#header-cta-desktop {
  display: none;
}

@media (min-width: 641px) {
  #header-cta-desktop {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.25rem;
    gap: 0.75rem;
    box-shadow: var(--shadow);
  }

  nav ul.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .site-header .header-inner {
    position: relative;
  }

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

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

  section {
    padding: 3rem 0;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

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

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
