/* ========================================
   DEALSFLOW — SHARED STYLES
   ======================================== */

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

html {
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-main);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

img, video, iframe { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { border: none; cursor: pointer; font-family: inherit; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; }

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
  --bg-main: #F4F4F9;
  --bg-white: #FFFFFF;
  --text-primary: #151620;
  --text-secondary: #5A5B6A;
  --text-muted: #8E8F9F;
  --surface-deep: #1B1D28;
  --surface-dark: #151620;
  --accent: #D5AB8F;
  --accent-hover: #C8996F;
  --accent-light: rgba(213, 171, 143, 0.12);
  --accent-secondary: #425C7A;
  --accent-secondary-light: rgba(66, 92, 122, 0.1);
  --border: rgba(21, 22, 32, 0.08);
  --border-light: rgba(255, 255, 255, 0.5);
  --shadow-sm: 0 1px 3px rgba(21, 22, 32, 0.04);
  --shadow-md: 0 4px 20px rgba(21, 22, 32, 0.06);
  --shadow-lg: 0 12px 40px rgba(21, 22, 32, 0.08);
  --shadow-xl: 0 24px 60px rgba(21, 22, 32, 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --font-primary: 'Quicksand', sans-serif;
  --font-mono: 'Iosevka Charon', 'JetBrains Mono', monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-base: 0.3s var(--ease-out);
  --transition-slow: 0.6s var(--ease-out);
  --transition-reveal: 0.8s var(--ease-out);
  --section-padding: 140px;
  --container-max: 1200px;
  --container-wide: 1400px;
  --error: #E53E3E;
  --success: #38A169;
}

/* NOISE TEXTURE */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 10000;
  opacity: 0.5;
}

/* ========================================
   UTILITIES
   ======================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 40px;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-heading {
  font-family: var(--font-primary);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.section-subheading {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 560px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-primary);
  box-shadow: 0 2px 12px rgba(213, 171, 143, 0.25);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(213, 171, 143, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  padding: 10px 20px;
}

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

.btn-dark {
  background: var(--surface-deep);
  color: #fff;
}

.btn-dark:hover {
  background: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(21, 22, 32, 0.2);
}

.btn-white {
  background: #fff;
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 16px;
}

/* ========================================
   SCROLL REVEAL ANIMATIONS
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--transition-reveal), transform var(--transition-reveal);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity var(--transition-reveal), transform var(--transition-reveal);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity var(--transition-reveal), transform var(--transition-reveal);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity var(--transition-reveal), transform var(--transition-reveal);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger-child {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.stagger-child.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-base);
  background: transparent;
}

.navbar.scrolled,
.navbar.navbar-solid {
  background: rgba(244, 244, 249, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 160px;
}

.nav-left a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.nav-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-logo-text {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-base);
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width var(--transition-base);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 160px;
  justify-content: flex-end;
}

.nav-right .btn {
  font-size: 14px;
  padding: 10px 22px;
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(244, 244, 249, 0.96);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 999;
  padding: 40px;
  flex-direction: column;
  gap: 24px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all var(--transition-base);
}

.mobile-nav.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav a {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ========================================
   PAGE HERO (SUB-PAGES)
   ======================================== */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero .section-heading {
  font-size: clamp(36px, 5vw, 60px);
}

.page-hero .section-subheading {
  margin: 0 auto;
  max-width: 600px;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
}

.page-hero-bg::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(213,171,143,0.1), transparent 70%);
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(66,92,122,0.06), transparent 70%);
}

/* ========================================
   HERO (HOME)
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 72px;
}

.hero-layout-shifted {
  min-height: clamp(920px, 118vh, 1160px);
  align-items: flex-start;
  padding: 120px 0 160px;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.2);
  transform-origin: center bottom;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(244,244,249,0.62) 0%, rgba(244,244,249,0.48) 40%, rgba(244,244,249,0.65) 100%);
  backdrop-filter: blur(1.5px);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1100px;
  padding: 0 40px;
}

.hero-content-tight {
  margin-top: 0;
}

.hero-content-tight h1 {
  margin-bottom: 18px;
}

.hero-content-tight .hero-sub {
  margin-bottom: 30px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34C759;
  animation: pulse-dot 2s infinite;
}

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

.hero h1 {
  font-family: var(--font-primary);
  font-size: clamp(44px, 6vw, 78px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero h1 .accent-line {
  color: var(--accent-secondary);
}

.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 40px;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: float-hint 2.5s ease-in-out infinite;
}

.hero-scroll-hint span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.hero-scroll-hint .scroll-line {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
}

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

/* ========================================
   SOCIAL PROOF
   ======================================== */
.social-proof {
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}

.social-proof-inner {
  text-align: center;
}

.social-proof p {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}

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

.proof-logo {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  opacity: 0.18;
  transition: opacity var(--transition-base);
  letter-spacing: -0.01em;
}

.proof-logo:hover {
  opacity: 0.35;
}

/* ========================================
   CHAT DEMO
   ======================================== */
.chat-demo-section { padding: calc(var(--section-padding) * 0.6) 0 var(--section-padding); }
.chat-demo-header { text-align: center; margin-bottom: 40px; }

.chat-demo-overlap {
  position: relative;
  z-index: 3;
  margin-top: -56vh;
  padding: 0 0 var(--section-padding);
}

.chat-demo-overlap .chat-window {
  max-width: 1240px;
}

.chat-demo-overlap .chat-layout {
  height: 560px;
}

.chat-window {
  max-width: 920px;
  margin: 0 auto;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 0 1px var(--border);
  background: var(--bg-white);
  position: relative;
}

.chat-window-bar {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  background: rgba(244,244,249,0.6);
  border-bottom: 1px solid var(--border);
  gap: 10px;
}

.window-dots { display: flex; gap: 7px; }
.window-dots span { width: 11px; height: 11px; border-radius: 50%; }
.window-dots span:nth-child(1) { background: #FF5F57; }
.window-dots span:nth-child(2) { background: #FEBC2E; }
.window-dots span:nth-child(3) { background: #28C840; }

.window-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 8px;
}

.chat-layout { display: flex; height: 520px; }

.chat-sidebar {
  width: 210px;
  background: var(--surface-deep);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.chat-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 16px;
}

.chat-sidebar-logo .logo-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  overflow: hidden;
}
.chat-sidebar-logo .logo-icon img { width: 100%; height: 100%; object-fit: cover; }
.chat-sidebar-logo span { font-family: var(--font-primary); font-weight: 700; font-size: 14px; color: #fff; letter-spacing: -0.01em; }

.chat-new-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: rgba(213,171,143,0.15);
  border: 1px solid rgba(213,171,143,0.2);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 500;
  margin-bottom: 20px;
  transition: background var(--transition-base);
}

.chat-sidebar-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }

.sidebar-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.5);
  font-size: 13px; font-weight: 500;
  transition: all var(--transition-base);
}
.sidebar-nav-item.active { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.9); }
.sidebar-nav-item svg { width: 16px; height: 16px; opacity: 0.6; flex-shrink: 0; }
.sidebar-nav-item.active svg { opacity: 1; }

.sidebar-badge {
  margin-left: auto;
  background: var(--accent);
  color: var(--surface-deep);
  font-size: 10px; font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
}

.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 6px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: auto;
}

.sidebar-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
}

.sidebar-user-info { display: flex; flex-direction: column; }
.sidebar-user-name { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.85); }
.sidebar-user-role { font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,0.35); }

.chat-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.chat-main-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  gap: 14px;
}
.chat-main-meta { display: flex; align-items: center; gap: 10px; min-width: 0; }
.chat-main-title { font-weight: 700; font-size: 15px; color: var(--text-primary); }
.chat-main-status {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  background: rgba(71, 99, 140, 0.08);
  border: 1px solid rgba(71, 99, 140, 0.12);
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}

.chat-demo-switcher {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(244,244,249,0.85);
  overflow-x: auto;
  scrollbar-width: none;
}
.chat-demo-switcher::-webkit-scrollbar { display: none; }

.chat-demo-tab {
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-base);
}
.chat-demo-tab:hover { color: var(--text-primary); background: rgba(255,255,255,0.8); }
.chat-demo-tab.active {
  background: var(--accent);
  color: var(--text-primary);
  box-shadow: 0 10px 18px rgba(213,171,143,0.25);
}

.chat-version-badge {
  font-family: var(--font-mono);
  font-size: 11px; padding: 4px 12px;
  border-radius: 100px;
  background: rgba(52,199,89,0.1);
  color: #28a745; font-weight: 500;
}

.chat-messages {
  flex: 1; padding: 24px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 20px;
}

.msg {
  display: flex; gap: 12px;
  max-width: 85%;
  opacity: 0;
  transform: translateY(12px);
  animation: msgAppear 0.4s var(--ease-out) forwards;
}
.msg-user { align-self: flex-end; flex-direction: row-reverse; }
.msg-ai { align-self: flex-start; }

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

.msg-avatar {
  width: 30px; height: 30px;
  border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.msg-ai .msg-avatar { background: linear-gradient(135deg, var(--accent), var(--accent-secondary)); color: #fff; }
.msg-user .msg-avatar { background: var(--accent-secondary); color: #fff; }

.msg-content { display: flex; flex-direction: column; gap: 8px; }

.msg-bubble {
  padding: 14px 18px;
  border-radius: 16px;
  font-family: var(--font-mono);
  font-size: 13px; line-height: 1.6; font-weight: 400;
}
.msg-user .msg-bubble { background: var(--accent); color: var(--text-primary); border-bottom-right-radius: 4px; }
.msg-ai .msg-bubble { background: var(--bg-white); color: var(--text-primary); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg-bubble.is-streaming::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 1em;
  margin-left: 5px;
  vertical-align: -2px;
  border-right: 2px solid var(--accent-secondary);
  animation: streamCaret 0.85s steps(1) infinite;
}

@keyframes streamCaret {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

.msg-time { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); padding: 0 4px; }
.msg-user .msg-time { text-align: right; }

.msg-cards { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }

.msg-card {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px; color: var(--text-primary);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.msg-card.is-visible { opacity: 1; transform: translateY(0) scale(1); }

.msg-card-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.msg-card-icon.green { background: rgba(52,199,89,0.1); }
.msg-card-icon.blue { background: var(--accent-secondary-light); }
.msg-card-icon.orange { background: var(--accent-light); }
.msg-card-text { flex: 1; font-weight: 500; }
.msg-card-action { font-size: 11px; color: var(--accent); font-weight: 600; }

.msg-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.msg-media-card {
  position: relative;
  min-height: 134px;
  padding: 14px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.msg-media-card.is-visible { opacity: 1; transform: translateY(0) scale(1); }

.msg-media-card::before,
.msg-media-card::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  filter: blur(6px);
  opacity: 0.72;
}
.msg-media-card::before {
  width: 110px;
  height: 110px;
  top: 14px;
  right: -16px;
}
.msg-media-card::after {
  width: 74px;
  height: 74px;
  bottom: 22px;
  left: -10px;
}

.msg-media-card-art {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(140deg, rgba(255,255,255,0.18), rgba(255,255,255,0) 42%),
    radial-gradient(circle at top left, rgba(255,255,255,0.4), rgba(255,255,255,0) 42%),
    linear-gradient(120deg, rgba(17,24,39,0.08), rgba(17,24,39,0) 56%);
}

.msg-media-card.aurora {
  background: linear-gradient(145deg, #1b2554 0%, #4c6ed7 48%, #d7d3ff 100%);
  color: #ffffff;
}
.msg-media-card.aurora::before { background: rgba(124, 240, 255, 0.72); }
.msg-media-card.aurora::after { background: rgba(255, 196, 140, 0.5); }

.msg-media-card.sunrise {
  background: linear-gradient(145deg, #fff3de 0%, #f2c39b 42%, #dd8f73 100%);
  color: #2f1f14;
}
.msg-media-card.sunrise::before { background: rgba(255, 232, 175, 0.9); }
.msg-media-card.sunrise::after { background: rgba(255, 164, 125, 0.55); }

.msg-media-card.midnight {
  background: linear-gradient(145deg, #111827 0%, #27425e 46%, #6f92b8 100%);
  color: #ffffff;
}
.msg-media-card.midnight::before { background: rgba(132, 196, 255, 0.6); }
.msg-media-card.midnight::after { background: rgba(255, 222, 173, 0.36); }

.msg-media-badge,
.msg-media-card-label,
.msg-media-card-meta {
  position: relative;
  z-index: 1;
}

.msg-media-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}

.msg-media-card-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.msg-media-card-meta {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  opacity: 0.9;
}

.suggestion-chips {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 0 24px 8px;
  opacity: 0; transform: translateY(8px);
  animation: msgAppear 0.4s var(--ease-out) forwards;
}

.chat-belief {
  max-width: 920px;
  margin: 22px auto 0;
  text-align: center;
}

.chat-belief-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.chat-belief-quote {
  margin: 0;
  padding: 18px 22px;
  border-radius: 20px;
  border: 1px solid rgba(71,99,140,0.12);
  background: rgba(255,255,255,0.62);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(35, 46, 78, 0.08);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.chat-belief-support {
  max-width: 760px;
  margin: 18px auto 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.chip {
  padding: 7px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-white);
  transition: all var(--transition-base);
}
.chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

.typing-indicator {
  display: flex; align-items: center; gap: 12px;
  max-width: 85%; align-self: flex-start;
  opacity: 0; transform: translateY(12px);
  animation: msgAppear 0.3s var(--ease-out) forwards;
}

.typing-dots {
  display: flex; gap: 4px;
  padding: 16px 20px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
}

.typing-dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingBounce 1.4s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

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

.chat-input-bar {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}

.chat-input {
  flex: 1; padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-main);
  font-family: var(--font-mono);
  font-size: 13px; color: var(--text-muted);
  outline: none;
}

.chat-send-btn {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-send-btn svg { width: 16px; height: 16px; color: var(--text-primary); }

/* ========================================
   HOW IT WORKS
   ======================================== */
.how-it-works { padding: var(--section-padding) 0; border-top: 1px solid var(--border); }
.how-header { text-align: center; margin-bottom: 72px; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 48px;
  left: calc(16.66% + 20px);
  right: calc(16.66% + 20px);
  height: 1px;
  background: var(--border);
}

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

.step-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  font-family: var(--font-mono);
  font-size: 16px; font-weight: 700;
  color: var(--accent);
  position: relative; z-index: 1;
  transition: all var(--transition-base);
}
.step-card:hover .step-number { background: var(--accent); border-color: var(--accent); color: #fff; transform: scale(1.08); }

.step-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.step-icon svg { width: 28px; height: 28px; color: var(--accent); }

.step-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; }
.step-card p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; max-width: 300px; margin: 0 auto; }

/* ========================================
   VIDEO SPLIT
   ======================================== */
.split-section { padding: var(--section-padding) 0; }

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split-grid.reverse { direction: rtl; }
.split-grid.reverse > * { direction: ltr; }

.split-video-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  aspect-ratio: 16/10;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,244,240,0.95));
}
.split-video-wrap iframe, .split-video-wrap video, .split-video-wrap img { width: 100%; height: 100%; border: none; object-fit: cover; display: block; }
.split-video-wrap img { object-fit: contain; object-position: center center; }

.split-video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(27,29,40,0.08), rgba(27,29,40,0.02));
  pointer-events: none;
  border-radius: var(--radius-xl);
}

.split-content { display: flex; flex-direction: column; gap: 20px; }
.split-content h2 { font-size: clamp(32px, 3.5vw, 44px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.split-content p { font-size: 16px; line-height: 1.7; color: var(--text-secondary); max-width: 480px; }

.split-features { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }

.split-feature { display: flex; align-items: flex-start; gap: 12px; }

.split-feature-icon {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.split-feature-icon svg { width: 14px; height: 14px; color: var(--accent); }
.split-feature span { font-size: 15px; color: var(--text-secondary); font-weight: 500; }

/* ========================================
   FEATURES GRID
   ======================================== */
.features-section { padding: var(--section-padding) 0; border-top: 1px solid var(--border); }
.features-header { text-align: center; margin-bottom: 64px; }
.features-header .section-subheading { margin: 0 auto; }

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

.feature-card {
  padding: 32px;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(213,171,143,0.2); }

.feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-icon.warm { background: var(--accent-light); color: var(--accent); }
.feature-icon.cool { background: var(--accent-secondary-light); color: var(--accent-secondary); }
.feature-icon.green { background: rgba(52,199,89,0.1); color: #28a745; }

.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.feature-card p { font-size: 14px; line-height: 1.65; color: var(--text-secondary); }

/* ========================================
   PRICING
   ======================================== */
.pricing-section { padding: var(--section-padding) 0; }
.pricing-header { text-align: center; margin-bottom: 64px; }
.pricing-header .section-subheading { margin: 0 auto; }

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

.pricing-card {
  padding: 40px 32px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  position: relative;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 8px 40px rgba(213,171,143,0.15);
  transform: scale(1.03);
  z-index: 2;
}
.pricing-card.featured:hover { transform: scale(1.03) translateY(-4px); box-shadow: 0 12px 50px rgba(213,171,143,0.22); }

.pricing-popular-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  padding: 6px 20px;
  background: var(--accent);
  color: var(--text-primary);
  font-size: 12px; font-weight: 700;
  border-radius: 100px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.pricing-plan-name { font-size: 20px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.01em; }
.pricing-plan-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.5; }

.pricing-amount { display: flex; align-items: baseline; gap: 4px; margin-bottom: 8px; }
.pricing-currency { font-size: 24px; font-weight: 600; color: var(--text-primary); }
.pricing-value { font-size: 52px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--text-primary); }
.pricing-period { font-size: 14px; color: var(--text-muted); font-weight: 500; }

.pricing-note { font-family: var(--font-mono); font-size: 12px; color: var(--accent); font-weight: 500; margin-bottom: 28px; }

.pricing-divider { height: 1px; background: var(--border); margin: 24px 0; }

.pricing-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }

.pricing-feature {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--text-secondary); line-height: 1.4;
}
.pricing-feature svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: var(--accent); }

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

/* ========================================
   INTEGRATIONS
   ======================================== */
.integrations-section { padding: var(--section-padding) 0; border-top: 1px solid var(--border); }
.integrations-header { text-align: center; margin-bottom: 64px; }
.integrations-header .section-subheading { margin: 0 auto; }

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.integration-card {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 32px 20px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  animation: float-integration 4s ease-in-out infinite;
}
.integration-card:nth-child(2) { animation-delay: -0.5s; }
.integration-card:nth-child(3) { animation-delay: -1s; }
.integration-card:nth-child(4) { animation-delay: -1.5s; }
.integration-card:nth-child(5) { animation-delay: -2s; }
.integration-card:nth-child(6) { animation-delay: -2.5s; }
.integration-card:nth-child(7) { animation-delay: -3s; }
.integration-card:nth-child(8) { animation-delay: -3.5s; }

@keyframes float-integration {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.integration-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(213,171,143,0.25);
  transform: translateY(-6px);
  animation-play-state: paused;
}

.integration-icon-wrap {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
}
.integration-icon-wrap svg { width: 28px; height: 28px; }
.integration-card span { font-size: 13px; font-weight: 600; color: var(--text-primary); text-align: center; }

/* ========================================
   FAQ
   ======================================== */
.faq-section { padding: var(--section-padding) 0; }
.faq-header { text-align: center; margin-bottom: 64px; }

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 12px;
}

.faq-item {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
}
.faq-item:hover { border-color: rgba(213,171,143,0.2); }
.faq-item.open { box-shadow: var(--shadow-md); }

.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 16px; font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition-base);
  user-select: none;
}
.faq-question:hover { color: var(--accent); }

.faq-toggle {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-main);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-base);
}
.faq-item.open .faq-toggle { background: var(--accent); transform: rotate(45deg); }
.faq-toggle svg { width: 14px; height: 14px; color: var(--text-muted); transition: color var(--transition-base); }
.faq-item.open .faq-toggle svg { color: #fff; }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease-out), padding 0.4s var(--ease-out); }
.faq-answer-inner { padding: 0 24px 20px; font-size: 15px; line-height: 1.7; color: var(--text-secondary); }

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section { padding: var(--section-padding) 0 160px; position: relative; }

.cta-box {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 60px;
  background: url('../img/6365161.jpg') center/cover no-repeat;
  border-radius: var(--radius-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(21, 22, 32, 0.8);
  pointer-events: none;
}
.cta-box::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(66,92,122,0.1), transparent 70%);
  pointer-events: none;
}
.cta-box .section-label { color: var(--accent); position: relative; z-index: 1; }
.cta-box h2 {
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 700; line-height: 1.12;
  letter-spacing: -0.025em;
  color: #fff; margin-bottom: 18px;
  position: relative; z-index: 1;
}
.cta-box p {
  font-size: 17px; line-height: 1.6;
  color: rgba(255,255,255,0.55);
  max-width: 460px; margin: 0 auto 36px;
  position: relative; z-index: 1;
}

.cta-buttons {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
  position: relative; z-index: 1;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--surface-dark);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

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

.footer-brand { display: flex; flex-direction: column; gap: 16px; }

.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo .logo-icon {
  width: 30px; height: 30px;
  border-radius: 7px;
  overflow: hidden;
}
.footer-logo .logo-icon img { width: 100%; height: 100%; object-fit: cover; }
.footer-logo span { font-weight: 700; font-size: 17px; color: #fff; letter-spacing: -0.01em; }
.footer-brand p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.4); max-width: 280px; }

.footer-socials { display: flex; gap: 12px; margin-top: 4px; }
.footer-social {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-base);
}
.footer-social:hover { background: var(--accent); }
.footer-social svg { width: 16px; height: 16px; color: rgba(255,255,255,0.5); transition: color var(--transition-base); }
.footer-social:hover svg { color: var(--text-primary); }

.footer-col h4 {
  font-size: 13px; font-weight: 700;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  padding: 5px 0;
  transition: color var(--transition-base);
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: space-between;
}
.footer-bottom p { font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,0.25); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,0.25); transition: color var(--transition-base); }
.footer-bottom-links a:hover { color: var(--accent); }

/* ========================================
   FORMS (CONTACT, AUTH, DEMO)
   ======================================== */
.form-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-grid .form-group.full {
  grid-column: 1 / -1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group label .required {
  color: var(--accent);
  margin-left: 2px;
}

.form-input,
.form-textarea,
.form-select {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--bg-main);
  font-size: 15px;
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-base);
  width: 100%;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238E8F9F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-error {
  font-size: 12px;
  color: var(--error);
  font-weight: 500;
  display: none;
}

.form-group.error .form-input,
.form-group.error .form-textarea {
  border-color: var(--error);
}

.form-group.error .form-error {
  display: block;
}

.form-success-msg {
  display: none;
  text-align: center;
  padding: 48px 32px;
}

.form-success-msg.show {
  display: block;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(56, 161, 105, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.form-success-icon svg {
  width: 32px;
  height: 32px;
  color: var(--success);
}

.form-success-msg h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-success-msg p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Auth pages */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 40px 60px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
}

.auth-card .form-card {
  padding: 40px;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header .logo-mark {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.auth-header .logo-mark svg {
  width: 24px;
  height: 24px;
}

.auth-header h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.auth-header p {
  font-size: 15px;
  color: var(--text-secondary);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-social-btn {
  width: 100%;
  padding: 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-white);
  transition: all var(--transition-base);
  cursor: pointer;
}

.auth-social-btn:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.auth-social-btn svg {
  width: 20px;
  height: 20px;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--accent);
  font-weight: 600;
  transition: color var(--transition-base);
}

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

.password-toggle {
  position: relative;
}

.password-toggle .form-input {
  padding-right: 48px;
}

.password-toggle-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  padding: 4px;
  cursor: pointer;
}

.password-toggle-btn svg {
  width: 18px;
  height: 18px;
}

/* Contact page layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 32px; }

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.contact-info-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.contact-info-card a {
  color: var(--accent);
  font-weight: 500;
  transition: color var(--transition-base);
}

.contact-info-card a:hover {
  color: var(--accent-hover);
}

/* ========================================
   BLOG CARDS
   ======================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card-image {
  height: 200px;
  background: var(--accent-secondary-light);
  position: relative;
  overflow: hidden;
}

.blog-card-image .blog-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 12px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blog-card-body {
  padding: 24px;
}

.blog-card-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.blog-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.blog-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.blog-card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition-base);
}

.blog-card-link:hover {
  gap: 10px;
}

.blog-card-link svg {
  width: 14px;
  height: 14px;
}

/* ========================================
   CAREER CARDS
   ======================================== */
.career-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  gap: 24px;
}

.career-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(213,171,143,0.2);
}

.career-card-info h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.career-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.career-card-meta span {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.career-card-meta svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

/* ========================================
   CHANGELOG
   ======================================== */
.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 720px;
  margin: 0 auto;
}

.changelog-entry {
  padding-left: 32px;
  border-left: 2px solid var(--border);
  position: relative;
}

.changelog-entry::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-main);
}

.changelog-version {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.changelog-version .badge {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--accent-light);
  color: var(--accent);
}

.changelog-version .date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.changelog-entry h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.changelog-entry ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.changelog-entry li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}

.changelog-entry li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ========================================
   LEGAL PAGES
   ======================================== */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: var(--section-padding);
}

.legal-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.legal-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.legal-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content ul li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  list-style: disc;
  margin-bottom: 4px;
}

.legal-content a {
  color: var(--accent);
  font-weight: 500;
}

.legal-updated {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* ========================================
   ABOUT PAGE
   ======================================== */
.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.about-value-card {
  padding: 36px;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.about-value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.about-value-card .feature-icon {
  margin-bottom: 20px;
}

.about-value-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.about-value-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin: 80px 0;
}

.about-stat {
  text-align: center;
  padding: 32px;
}

.about-stat .stat-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.about-stat .stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.team-card {
  text-align: center;
  padding: 32px 20px;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.team-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-card p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ========================================
   COMPARISON TABLE (PRICING PAGE)
   ======================================== */
.comparison-table-wrap {
  overflow-x: auto;
  margin-top: 80px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.comparison-table thead th {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  background: rgba(255,255,255,0.5);
  position: sticky;
  top: 72px;
}

.comparison-table thead th:first-child {
  border-radius: var(--radius-md) 0 0 0;
}

.comparison-table thead th:last-child {
  border-radius: 0 var(--radius-md) 0 0;
}

.comparison-table tbody td {
  color: var(--text-secondary);
}

.comparison-table tbody td:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

.comparison-table .check {
  color: var(--accent);
  font-weight: 700;
}

.comparison-table .dash {
  color: var(--text-muted);
}

/* ========================================
   TOAST NOTIFICATION
   ======================================== */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  padding: 16px 24px;
  background: var(--surface-deep);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  z-index: 10001;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--error); }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  :root { --section-padding: 100px; }

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

  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card:last-child { grid-column: 1 / -1; max-width: 400px; margin: 0 auto; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-4px); }

  .integrations-grid { grid-template-columns: repeat(3, 1fr); }

  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .about-values-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }

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

  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  :root { --section-padding: 80px; }

  .container, .container-wide, .container-narrow { padding: 0 24px; }
  .navbar { padding: 0 24px; }

  .nav-center, .nav-right .btn-ghost, .nav-right .btn-primary { display: none; }
  .mobile-menu-btn { display: flex; }
  .nav-right { min-width: auto; }

  .hero h1 { font-size: 40px; }
  .hero-sub { font-size: 16px; }
  .hero-content { padding: 0 20px; }
  .hero-layout-shifted { min-height: auto; padding: 116px 0 220px; }

  .page-hero { padding: 130px 0 60px; }

  .chat-layout { height: auto; }
  .chat-sidebar { display: none; }
  .chat-main-header { padding: 12px 16px; }
  .chat-main-status { display: none; }
  .chat-demo-switcher { gap: 4px; }
  .chat-demo-tab { padding: 7px 10px; font-size: 10px; }
  .chat-messages { min-height: 380px; }
  .msg-media-grid { grid-template-columns: 1fr; }
  .chat-belief-grid { grid-template-columns: 1fr; }
  .chat-belief-quote { font-size: 16px; padding: 16px 18px; }
  .chat-belief-support { font-size: 14px; }
  .chat-demo-overlap { margin-top: -120px; }
  .chat-demo-overlap .chat-layout { height: auto; }

  .steps-grid { grid-template-columns: 1fr; gap: 48px; }
  .steps-grid::before { display: none; }

  .split-grid, .split-grid.reverse { grid-template-columns: 1fr; gap: 40px; direction: ltr; }

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

  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .pricing-card:last-child { max-width: none; }

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

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  .cta-box { padding: 60px 32px; }
  .hero-scroll-hint { display: none; }

  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 32px 24px; }

  .blog-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .about-values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }

  .career-card { flex-direction: column; align-items: flex-start; }

  .auth-wrapper { padding: 100px 20px 40px; }
  .auth-card .form-card { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 34px; }
  .hero-layout-shifted { padding: 108px 0 180px; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; }
  .chat-main-header { padding: 12px; }
  .chat-main-title { font-size: 14px; }
  .chat-demo-switcher { max-width: 100%; }
  .chat-demo-tab { padding: 7px 9px; }
  .chat-demo-overlap { margin-top: -90px; }
  .chat-belief { margin-top: 18px; }
  .chat-belief-quote { font-size: 15px; }
  .proof-logos { gap: 24px; }
  .proof-logo { font-size: 15px; }
  .cta-buttons { flex-direction: column; width: 100%; }
  .cta-buttons .btn { width: 100%; }
  .about-stats { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .blog-article { padding: 0 16px var(--section-padding); }
  .blog-article-back { margin: 0 16px; }
}

/* ========================================
   BLOG ARTICLE PAGES
   ======================================== */
.blog-article-back {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 0 0;
}
.blog-article-back a {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition-base);
}
.blog-article-back a:hover { gap: 10px; }
.blog-article-back svg { width: 14px; height: 14px; }

.blog-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 0 var(--section-padding);
}
.blog-article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.blog-article-tag {
  background: rgba(213,171,143,0.12);
  color: var(--accent);
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.blog-article-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}
.blog-article h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  margin: 48px 0 16px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.blog-article h3 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  margin: 36px 0 12px;
  line-height: 1.35;
}
.blog-article p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.blog-article ul, .blog-article ol {
  margin: 0 0 24px 24px;
}
.blog-article li {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 8px;
  list-style: disc;
}
.blog-article ol li { list-style: decimal; }
.blog-article strong { color: var(--text-primary); font-weight: 600; }
.blog-article blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 24px;
  margin: 32px 0;
}
.blog-article blockquote p {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 0;
}
