:root {
  color-scheme: dark;
  
  /* HSL Tailored Colors */
  --bg-hue: 220;
  --bg-sat: 20%;
  --bg-light: 8%;
  
  --bg: hsl(var(--bg-hue), var(--bg-sat), var(--bg-light));
  --surface: hsl(var(--bg-hue), var(--bg-sat), 12%);
  --surface-border: hsl(var(--bg-hue), var(--bg-sat), 20%);
  --surface-hover: hsl(var(--bg-hue), var(--bg-sat), 16%);
  
  --brand-hue: 250;
  --brand: hsl(var(--brand-hue), 80%, 65%);
  --brand-light: hsl(var(--brand-hue), 90%, 75%);
  --brand-glow: hsla(var(--brand-hue), 80%, 65%, 0.4);
  
  --accent: hsl(190, 80%, 60%);
  
  --ink: hsl(0, 0%, 98%);
  --muted: hsl(var(--bg-hue), 10%, 65%);
  
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  background-image: 
    linear-gradient(hsla(0,0%,100%,0.02) 1px, transparent 1px),
    linear-gradient(90deg, hsla(0,0%,100%,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Blobs for Premium Feel */
.blob-bg {
  position: absolute;
  top: -20vh;
  left: -10vw;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--brand-glow) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.6;
  animation: float 20s ease-in-out infinite alternate;
}

.blob-bg.blob-2 {
  top: 40vh;
  left: auto;
  right: -20vw;
  background: radial-gradient(circle, hsla(190, 80%, 60%, 0.25) 0%, rgba(0,0,0,0) 70%);
  animation-duration: 25s;
  animation-direction: alternate-reverse;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(10vw, 10vh) scale(1.1); }
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

/* Typography Defaults */
h1, h2, h3, h4 {
  line-height: 1.1;
  margin: 0 0 1rem 0;
  letter-spacing: -0.02em;
}

p {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.mt-4 { margin-top: 2rem; }
.text-center { text-align: center; }

/* Glassmorphism Utilities */
.glass {
  background: hsla(var(--bg-hue), var(--bg-sat), 8%, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid hsla(0, 0%, 100%, 0.08);
}

.glass-panel {
  background: linear-gradient(145deg, hsla(var(--bg-hue), var(--bg-sat), 14%, 0.7), hsla(var(--bg-hue), var(--bg-sat), 10%, 0.4));
  backdrop-filter: blur(12px);
  border: 1px solid hsla(0, 0%, 100%, 0.05);
  box-shadow: var(--shadow);
  border-radius: 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid hsla(0,0%,100%,0.05);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: hsla(var(--bg-hue), var(--bg-sat), 6%, 0.9);
  border-bottom: 1px solid hsla(0,0%,100%,0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.header-row {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: min-height 0.3s ease;
}

.site-header.scrolled .header-row {
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-cta {
  background: hsla(0,0%,100%,0.1);
  padding: 8px 16px;
  border-radius: 99px;
  color: var(--ink) !important;
  border: 1px solid hsla(0,0%,100%,0.1);
}

.nav-cta:hover {
  background: hsla(0,0%,100%,0.2);
  transform: translateY(-2px);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  min-height: 52px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.button-primary {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  box-shadow: 0 4px 14px var(--brand-glow);
  border: none;
}

.button-primary:hover {
  box-shadow: 0 6px 20px var(--brand-glow);
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.button-secondary {
  background: hsla(0,0%,100%,0.05);
  border: 1px solid hsla(0,0%,100%,0.15);
  color: var(--ink);
}

.button-secondary:hover {
  background: hsla(0,0%,100%,0.1);
  border-color: hsla(0,0%,100%,0.3);
  transform: translateY(-2px);
}

.button-outline {
  border: 1px solid var(--brand);
  color: var(--brand-light);
  background: transparent;
}

.button-outline:hover {
  background: hsla(var(--brand-hue), 80%, 65%, 0.1);
  transform: translateY(-2px);
}

/* Eyebrow & Labels */
.eyebrow, .panel-tag {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--brand-light);
  margin-bottom: 1rem;
}

.panel-tag {
  background: hsla(var(--brand-hue), 80%, 65%, 0.15);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

/* Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 120px 0;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  max-width: 15ch;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--brand-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-copy {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Bands (Sections) */
.band {
  padding: 100px 0;
  position: relative;
  z-index: 10;
}

.section-head {
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-head h2, .product-copy h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.section-head p, .product-copy p {
  font-size: 1.15rem;
  color: var(--muted);
}

/* Integration Grid */
.integration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.integration-band {
  padding: 80px 40px;
  border-left: none;
  border-right: none;
  border-radius: 0;
}

.integration-card {
  padding: 32px;
  background: hsla(0,0%,100%,0.02);
  border: 1px solid hsla(0,0%,100%,0.06);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.integration-card:hover {
  background: hsla(0,0%,100%,0.04);
  border-color: hsla(0,0%,100%,0.15);
  transform: translateY(-4px);
}

.icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, hsla(var(--brand-hue), 80%, 65%, 0.2), hsla(190, 80%, 60%, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-light);
  margin-bottom: 24px;
  border: 1px solid hsla(var(--brand-hue), 80%, 65%, 0.3);
}

.integration-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.integration-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Products Section */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.visual-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.visual-panel {
  padding: 40px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.visual-panel:hover {
  transform: translateY(-4px);
}

.highlight-panel {
  background: linear-gradient(145deg, var(--surface-hover), var(--surface));
  border: 1px solid hsla(0,0%,100%,0.1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.outline-panel {
  background: transparent;
  border: 1px dashed hsla(0,0%,100%,0.2);
}

.visual-panel strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #fff;
}

.visual-panel p {
  color: var(--muted);
  margin: 0;
}

/* Privacy */
.privacy-box {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px;
}

.privacy-box p {
  color: var(--muted);
  font-size: 1.1rem;
}

code {
  background: hsla(0,0%,100%,0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: monospace;
}

/* Footer */
.site-footer {
  padding: 80px 0 40px;
  border-top: 1px solid hsla(0,0%,100%,0.08);
}

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

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-desc {
  color: var(--muted);
  max-width: 300px;
  margin-bottom: 16px;
}

.contact-email {
  font-weight: 600;
  color: var(--brand-light);
}

.contact-email:hover {
  text-decoration: underline;
}

.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

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

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

.footer-bottom {
  border-top: 1px solid hsla(0,0%,100%,0.08);
  padding-top: 32px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* FAQ Interaction */
details > summary {
  transition: background 0.2s ease;
}
details > summary:hover {
  background: hsla(0,0%,100%,0.02);
}
details[open] > summary .toggle-icon {
  transform: rotate(45deg);
}
.toggle-icon {
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 1.2rem;
}

/* Micro-animations */
.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(150px);
  width: min(90%, 600px);
  padding: 16px 24px;
  border-radius: 16px;
  z-index: 100;
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  border: 1px solid hsla(0,0%,100%,0.1);
}

.cookie-banner.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}

.cookie-content a {
  color: var(--brand-light);
  text-decoration: underline;
}

@media (max-width: 600px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .cookie-banner {
    bottom: 16px;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

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

/* Responsive */
@media (max-width: 960px) {
  .site-nav { display: none; }
  
  .integration-grid {
    grid-template-columns: 1fr;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .privacy-box {
    padding: 40px 24px;
  }
  
  .integration-band {
    padding: 60px 20px;
  }

  .split-panel {
    grid-template-columns: 1fr;
  }
  .panel-demo {
    padding: 24px;
  }
}

/* Split Panels */
.split-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0;
}

.panel-info {
  padding: 40px;
}

.panel-demo {
  padding: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: hsla(0,0%,0%,0.2);
  height: 100%;
}

/* Review Demo */
.demo-card {
  width: 100%;
  max-width: 340px;
  padding: 24px;
  border-radius: 12px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stars { color: #f59e0b; letter-spacing: 2px; font-size: 0.9rem; }
.review-time { color: var(--muted); font-size: 0.8rem; }
.review-text { font-style: italic; margin-bottom: 20px; font-size: 0.95rem; }

.ai-reply {
  background: hsla(var(--brand-hue), 80%, 65%, 0.1);
  padding: 16px;
  border-radius: 8px;
  border-left: 3px solid var(--brand);
}

.ai-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--brand-light);
  font-weight: 800;
  margin-bottom: 8px;
}

.anim-container {
  display: grid;
  align-items: start;
  justify-items: start;
}
.anim-container > * {
  grid-area: 1 / 1;
}

.typing-indicator {
  display: flex;
  gap: 4px;
  animation: hideTyping 8s infinite;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background: var(--brand-light);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

.ai-text {
  font-size: 0.9rem;
  margin: 0;
  opacity: 0;
  animation: showReply 8s infinite;
}

@keyframes typing {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

@keyframes hideTyping {
  0%, 35% { opacity: 1; pointer-events: auto; }
  38%, 100% { opacity: 0; pointer-events: none; }
}

@keyframes showReply {
  0%, 38% { opacity: 0; transform: translateY(4px); pointer-events: none; }
  42%, 100% { opacity: 1; transform: translateY(0); pointer-events: auto; }
}

/* Chat Demo */
.demo-phone {
  width: 100%;
  max-width: 280px;
  border-radius: 24px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 4px solid hsla(0,0%,100%,0.1);
}

.chat-message {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
  max-width: 85%;
  line-height: 1.4;
}

.chat-message.user {
  background: hsla(0,0%,100%,0.1);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-message.bot {
  background: var(--brand);
  color: white;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.msg-hidden {
  opacity: 0;
  animation: showMsg 8s infinite;
}

.typing {
  animation: hideTyping 8s infinite;
  background: hsla(var(--brand-hue), 80%, 65%, 0.2) !important;
  border-bottom-left-radius: 16px !important;
}

@keyframes showMsg {
  0%, 38% { opacity: 0; transform: scale(0.95); pointer-events: none; }
  42%, 100% { opacity: 1; transform: scale(1); pointer-events: auto; }
}
