@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-black: #000000;
  --bg-dark-gray: #0A0A0C;
  --bg-card: #0D0D11;
  --bg-card-hover: #14141A;
  --accent-pink: #FB6F92;
  --accent-pink-rgb: 251, 111, 146;
  --accent-pink-glow: rgba(251, 111, 146, 0.4);
  --accent-pink-subtle: rgba(251, 111, 146, 0.08);
  --text-primary: #FFFFFF;
  --text-secondary: #A3A3B3;
  --text-muted: #626272;
  --border-thin: rgba(255, 255, 255, 0.08);
  --border-active: rgba(251, 111, 146, 0.3);
  --font-sans: 'Poppins', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --nav-height: 80px;
}

/* Base resets */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-black);
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden !important;
  max-width: 100vw;
}

body {
  background-color: var(--bg-black);
  min-height: 100vh;
  overflow-x: hidden !important;
  font-family: 'Poppins', sans-serif;
  max-width: 100vw;
  width: 100%;
}

/* Background Gradients & Grid Lines (Luxury Film Noir Texture) */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 1;
}

.glow-ambient {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  max-width: 100%;
  height: 400px;
  background: radial-gradient(circle, rgba(var(--accent-pink-rgb), 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

/* Layout Container */
.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Sticky Navbar styling */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background-color: rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid var(--border-thin);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background-color: rgba(0, 0, 0, 0.85);
  border-bottom: 1px solid rgba(var(--accent-pink-rgb), 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  transition: var(--transition-smooth);
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(var(--accent-pink-rgb), 0.2), rgba(var(--accent-pink-rgb), 0.05));
  border: 1px solid rgba(var(--accent-pink-rgb), 0.4);
  color: var(--accent-pink);
  box-shadow: 0 0 10px rgba(var(--accent-pink-rgb), 0.15);
}

.logo-text span {
  color: var(--accent-pink);
  font-weight: 800;
}

.logo-text-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  gap: 1px;
}

.logo-subtext {
  font-size: 0.52rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  font-family: 'Poppins', sans-serif;
  font-variant: small-caps;
  margin-top: -1px;
  text-transform: none;
  font-style: normal;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  position: relative;
  padding: 8px 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: var(--accent-pink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
  min-height: 3rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 8px;
}

.btn-outline {
  background-color: transparent;
  color: var(--accent-pink);
  border: 1px solid rgba(var(--accent-pink-rgb), 0.3);
}

.btn-outline:hover {
  background-color: rgba(var(--accent-pink-rgb), 0.08);
  border-color: var(--accent-pink);
  box-shadow: 0 0 15px rgba(var(--accent-pink-rgb), 0.2);
}

.btn-solid {
  background-color: var(--accent-pink);
  color: #FFFFFF;
  border: 1px solid var(--accent-pink);
  box-shadow: 0 4px 20px rgba(var(--accent-pink-rgb), 0.3);
}

.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(var(--accent-pink-rgb), 0.5), 0 0 10px rgba(var(--accent-pink-rgb), 0.2);
  background-color: #ff8fa3;
  border-color: #ff8fa3;
}

/* Hero Section */
.hero {
  padding-top: calc(var(--nav-height) + 64px);
  padding-bottom: 96px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

/* Left Hero Column */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}



.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.text-highlight {
  color: var(--accent-pink);
  position: relative;
  text-shadow: 0 0 20px rgba(var(--accent-pink-rgb), 0.15);
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  width: 100%;
}

.hero-actions .btn {
  padding: 16px 32px;
  font-size: 0.95rem;
}

/* Right Hero Column / Device Frame Viewport */
.hero-viewport {
  position: relative;
  width: 100%;
  perspective: 1000px;
}

.viewport-frame {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-thin);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 2px rgba(255, 255, 255, 0.1) inset;
  overflow: hidden;
  position: relative;
  transition: var(--transition-smooth);
}

.viewport-frame:hover {
  border-color: rgba(var(--accent-pink-rgb), 0.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 15px rgba(var(--accent-pink-rgb), 0.05);
}

/* Mockup window controls header */
.viewport-header {
  height: 44px;
  background-color: rgba(10, 10, 12, 0.9);
  border-bottom: 1px solid var(--border-thin);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
}

.window-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--text-muted);
  opacity: 0.6;
}
.dot-red { background-color: #FF5F56; opacity: 0.8; }
.dot-yellow { background-color: #FFBD2E; opacity: 0.8; }
.dot-green { background-color: #27C93F; opacity: 0.8; }

.window-title {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.window-status {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(39, 201, 63, 0.1);
  border: 1px solid rgba(39, 201, 63, 0.2);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  color: #27C93F;
  font-weight: 600;
}

.status-indicator {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #27C93F;
  animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

/* Workflow Canvas Area */
.canvas-area {
  padding: 32px 24px;
  min-height: 380px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(13, 13, 17, 0.2) 0%, rgba(5, 5, 7, 0.8) 100%), #060608;
  display: flex;
  justify-content: center;
  align-items: center;
}

.canvas-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 20px 20px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.012) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  z-index: 1;
}

/* Nodes Wrapper */
.workflow-nodes {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  text-align: center;
  gap: 24px;
  width: 100%;
  max-width: 500px;
  position: relative;
  z-index: 5;
}

.workflow-column {
  display: flex;
  flex-direction: column;
  gap: 48px;
  z-index: 10;
}

/* Node Elements */
.node {
  background-color: rgba(13, 13, 17, 0.85);
  border: 1px solid var(--border-thin);
  border-radius: 12px;
  padding: 12px;
  width: 140px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  position: relative;
}

.node:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-pink-rgb), 0.4);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 0 0 10px rgba(var(--accent-pink-rgb), 0.15);
}

.node.active {
  border-color: var(--accent-pink);
  box-shadow: 0 0 20px rgba(var(--accent-pink-rgb), 0.25);
}

.node-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background-color: #1c1c24;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.node:hover .node-icon-wrap {
  background-color: rgba(var(--accent-pink-rgb), 0.1);
  color: var(--accent-pink);
  border-color: rgba(var(--accent-pink-rgb), 0.2);
}

.node-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.node-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.node-type {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Ports for SVG connections */
.port {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--bg-black);
  border: 2px solid var(--text-muted);
  z-index: 10;
  transition: var(--transition-smooth);
}

.port-left {
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
}

.port-right {
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
}

.node.active .port {
  border-color: var(--accent-pink);
  box-shadow: 0 0 6px var(--accent-pink);
  background-color: var(--accent-pink);
}

/* Connecting SVG lines overlay */
.svg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20;
}

.connector-path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 2;
  transition: stroke 0.3s ease;
}

.connector-path-flow {
  fill: none;
  stroke: var(--accent-pink);
  stroke-width: 2;
  stroke-dasharray: 6 30;
  stroke-linecap: round;
  animation: flow 4s linear infinite;
  opacity: 0.9;
}

@keyframes flow {
  from {
    stroke-dashoffset: 200;
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* ========================================
   3. Partners / Social Proof Section
   ======================================== */
.partners {
  position: relative;
  z-index: 10;
  padding: 60px 0;
  border-top: 1px solid var(--border-thin);
  border-bottom: 1px solid var(--border-thin);
  background-color: var(--bg-black);
  overflow: hidden;
}

.partners-headline {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 32px;
  text-transform: uppercase;
}

/* Marquee Container */
.partners-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

/* Marquee Track */
.partners-marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 25s linear infinite;
  gap: 24px;
}

.partners-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Partner Brand Card styling */
.partner-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-thin);
  padding: 14px 24px;
  border-radius: 12px;
  user-select: none;
  cursor: default;
  transition: var(--transition-smooth);
}

.partner-card:hover {
  border-color: rgba(var(--accent-pink-rgb), 0.3);
  box-shadow: 0 0 15px rgba(var(--accent-pink-rgb), 0.1);
  transform: translateY(-2px);
}

.partner-card svg {
  color: var(--accent-pink);
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(var(--accent-pink-rgb), 0.2));
  transition: var(--transition-smooth);
}

.partner-card:hover svg {
  filter: drop-shadow(0 0 8px rgba(var(--accent-pink-rgb), 0.5));
}

.partner-card span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.partner-card:hover span {
  color: var(--text-primary);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}


/* ========================================
   4. Benefits / Bento Grid Section
   ======================================== */
.benefits {
  position: relative;
  z-index: 10;
  padding: 112px 0 120px;
  background-color: var(--bg-black);
}

.benefits-header {
  text-align: center;
  margin-bottom: 64px;
}

.benefits-badge {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-pink);
  margin-bottom: 16px;
}

.benefits-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.benefits-sub {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

/* Bento Grid Layout */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Large card: spans 2 columns */
.bento-large {
  grid-column: span 2;
}

/* Medium card: spans 1 column */
.bento-medium {
  grid-column: span 1;
}

/* Core Bento Card */
.bento-card {
  position: relative;
  background-color: var(--bg-black);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(circle at 30% 20%, rgba(var(--accent-pink-rgb), 0.03) 0%, transparent 60%);
  pointer-events: none;
  transition: opacity 0.4s ease;
  opacity: 0;
}

.bento-card:hover {
  border-color: rgba(var(--accent-pink-rgb), 0.25);
  box-shadow:
    0 0 30px rgba(var(--accent-pink-rgb), 0.07),
    0 0 60px rgba(var(--accent-pink-rgb), 0.04),
    0 8px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(-3px);
}

.bento-card:hover::before {
  opacity: 1;
}

/* Card Icon */
.bento-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(var(--accent-pink-rgb), 0.12), rgba(var(--accent-pink-rgb), 0.04));
  border: 1px solid rgba(var(--accent-pink-rgb), 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-pink);
  transition: var(--transition-smooth);
}

.bento-card:hover .bento-card-icon {
  background: linear-gradient(135deg, rgba(var(--accent-pink-rgb), 0.2), rgba(var(--accent-pink-rgb), 0.08));
  box-shadow: 0 0 16px rgba(var(--accent-pink-rgb), 0.2);
  border-color: rgba(var(--accent-pink-rgb), 0.4);
}

/* Card Title */
.bento-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* Card Description */
.bento-card-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* Card Tag */
.bento-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.bento-tag-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--accent-pink);
  box-shadow: 0 0 6px rgba(var(--accent-pink-rgb), 0.5);
}

/* ========================================
   5. How It Works Section
   ======================================== */
.how-it-works {
  position: relative;
  z-index: 10;
  padding: 112px 0 120px;
  background-color: var(--bg-black);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hiw-header {
  text-align: center;
  margin-bottom: 72px;
}

.hiw-badge {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-pink);
  margin-bottom: 16px;
}

.hiw-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hiw-subtitle {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
}

/* Split 2-column layout */
.hiw-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* ---- Left Column: Device Mockup ---- */
.hiw-visual {
  position: sticky;
  top: calc(var(--nav-height) + 32px);
}

.hiw-mobile-visual {
  display: none;
}

.hiw-device-frame {
  background: var(--bg-black);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  position: relative;
}

.hiw-device-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 24px 8px;
  background: rgba(10, 10, 12, 0.95);
  border-bottom: 1px solid var(--border-thin);
}

.hiw-device-notch {
  width: 90px;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
}

.hiw-device-status-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hiw-time {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

.hiw-status-icons {
  display: flex;
  gap: 6px;
  color: var(--text-secondary);
}

.hiw-device-content {
  position: relative;
  min-height: 420px;
  background: radial-gradient(circle at 50% 0%, rgba(var(--accent-pink-rgb), 0.02) 0%, transparent 60%), #060608;
}

/* --- Dynamic States --- */
.hiw-state {
  position: absolute;
  inset: 0;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hiw-state-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* --- State 1: Code Block --- */
.hiw-state-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-thin);
  border-radius: 8px;
}

.hiw-state-dots {
  display: flex;
  gap: 5px;
}

.hiw-state-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.hiw-state-dots span:first-child { background: #FF5F56; }
.hiw-state-dots span:nth-child(2) { background: #FFBD2E; }
.hiw-state-dots span:nth-child(3) { background: #27C93F; }

.hiw-state-filename {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hiw-code-block {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-thin);
  border-radius: 10px;
  padding: 18px 16px;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.78rem;
  line-height: 1.9;
  position: relative;
}

.hiw-code-line {
  display: flex;
  gap: 14px;
  align-items: baseline;
}

.code-line-num {
  color: rgba(255, 255, 255, 0.15);
  font-size: 0.68rem;
  min-width: 14px;
  text-align: right;
  user-select: none;
}

.code-bracket { color: rgba(255, 255, 255, 0.5); }
.code-key { color: #7dd3fc; }
.code-colon { color: rgba(255, 255, 255, 0.35); }
.code-string { color: #fda4af; }
.code-number { color: #d8b4fe; }
.code-bool { color: #86efac; }
.code-comma { color: rgba(255, 255, 255, 0.25); }

.hiw-code-cursor {
  position: absolute;
  bottom: 18px;
  left: 50px;
  width: 2px;
  height: 16px;
  background-color: var(--accent-pink);
  border-radius: 1px;
  animation: blink-cursor 1s step-end infinite;
  box-shadow: 0 0 6px rgba(var(--accent-pink-rgb), 0.5);
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* State badge indicators */
.hiw-state-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: auto;
  width: fit-content;
}

.hiw-badge-success {
  background: rgba(39, 201, 63, 0.08);
  border: 1px solid rgba(39, 201, 63, 0.2);
  color: #27C93F;
}

.hiw-badge-info {
  background: rgba(125, 211, 252, 0.08);
  border: 1px solid rgba(125, 211, 252, 0.2);
  color: #7dd3fc;
}

/* --- State 2: API Connections --- */
.hiw-api-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hiw-api-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-thin);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s ease;
}

.hiw-api-connected {
  border-color: rgba(39, 201, 63, 0.15);
}

.hiw-api-pending {
  border-color: rgba(255, 189, 46, 0.15);
  opacity: 0.6;
}

.hiw-api-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.hiw-api-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hiw-api-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.hiw-api-status {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.hiw-api-connected .hiw-api-status {
  color: rgba(39, 201, 63, 0.7);
}

.hiw-api-check {
  flex-shrink: 0;
}

.hiw-api-check-pending {
  color: rgba(255, 189, 46, 0.5);
}

/* --- State 3: Live Graph --- */
.hiw-live-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hiw-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #27C93F;
  text-transform: uppercase;
}

.hiw-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #27C93F;
  animation: pulse-green 1.5s infinite;
  box-shadow: 0 0 8px rgba(39, 201, 63, 0.5);
}

.hiw-live-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hiw-graph-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-thin);
  border-radius: 10px;
  padding: 16px 12px 8px;
  overflow: hidden;
}

.hiw-graph-svg {
  width: 100%;
  height: 120px;
  display: block;
}

.hiw-graph-line {
  filter: drop-shadow(0 0 4px rgba(var(--accent-pink-rgb), 0.5));
}

.hiw-graph-dot {
  filter: drop-shadow(0 0 6px rgba(var(--accent-pink-rgb), 0.8));
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { r: 4; opacity: 1; }
  50% { r: 6; opacity: 0.7; }
}

.hiw-stats-row {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.hiw-stat {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-thin);
  border-radius: 10px;
}

.hiw-stat-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.hiw-stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* ---- Right Column: Steps Stack ---- */
.hiw-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hiw-step {
  background: var(--bg-black);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.hiw-step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  border-radius: 0 3px 3px 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hiw-step:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

/* Active step styling */
.hiw-step-active {
  border-color: rgba(var(--accent-pink-rgb), 0.3);
  box-shadow:
    0 0 30px rgba(var(--accent-pink-rgb), 0.06),
    0 8px 32px rgba(0, 0, 0, 0.4);
}

.hiw-step-active::before {
  background: var(--accent-pink);
  box-shadow: 0 0 12px rgba(var(--accent-pink-rgb), 0.5);
}

/* Step header */
.hiw-step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
}

.hiw-step-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hiw-step-number {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-pink);
  font-variant-numeric: tabular-nums;
}

.hiw-step-divider {
  color: rgba(255, 255, 255, 0.15);
  font-weight: 300;
  font-size: 0.9rem;
}

.hiw-step-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.hiw-step:not(.hiw-step-active) .hiw-step-label {
  color: var(--text-secondary);
}

.hiw-step-chevron {
  color: var(--text-muted);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hiw-step-active .hiw-step-chevron {
  color: var(--accent-pink);
  transform: rotate(180deg);
}

/* Step body (collapsible) */
.hiw-step-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s ease;
  opacity: 0;
  padding: 0 28px;
}

.hiw-step-active .hiw-step-body {
  max-height: 200px;
  padding: 0 28px 24px;
  opacity: 1;
}

.hiw-step-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.hiw-step-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-pink);
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.01em;
}

.hiw-step-link:hover {
  gap: 10px;
  text-shadow: 0 0 12px rgba(var(--accent-pink-rgb), 0.3);
}

/* ========================================
   6. Pricing Section
   ======================================== */
.pricing {
  position: relative;
  z-index: 10;
  padding: 112px 0 120px;
  background-color: var(--bg-black);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-header {
  text-align: center;
  margin-bottom: 72px;
}

.pricing-badge {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-pink);
  margin-bottom: 16px;
}

.pricing-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.pricing-sub {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: center;
}

/* Base Card */
.pricing-card {
  position: relative;
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#vip-pricing {
  scroll-margin-top: 120px;
}

.pricing-card-inner {
  background-color: var(--bg-black);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px 32px 36px;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Subtle radial glow on hover for all cards */
.pricing-card-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 0%, rgba(var(--accent-pink-rgb), 0.04) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.pricing-card:hover .pricing-card-inner {
  border-color: rgba(var(--accent-pink-rgb), 0.2);
  box-shadow:
    0 0 40px rgba(var(--accent-pink-rgb), 0.05),
    0 12px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(-4px);
}

.pricing-card:hover .pricing-card-inner::before {
  opacity: 1;
}

/* Featured Card (Middle) */
.pricing-card-featured {
  z-index: 5;
}

.pricing-card-featured .pricing-card-inner {
  border-color: rgba(var(--accent-pink-rgb), 0.35);
  padding: 48px 36px 40px;
  box-shadow:
    0 0 50px rgba(var(--accent-pink-rgb), 0.08),
    0 0 100px rgba(var(--accent-pink-rgb), 0.04),
    0 16px 48px rgba(0, 0, 0, 0.6);
  transform: scale(1.05);
}

.pricing-card-featured .pricing-card-inner::before {
  opacity: 1;
  background: radial-gradient(circle at 50% 0%, rgba(var(--accent-pink-rgb), 0.06) 0%, transparent 50%);
}

.pricing-card-featured:hover .pricing-card-inner {
  border-color: rgba(var(--accent-pink-rgb), 0.5);
  box-shadow:
    0 0 60px rgba(var(--accent-pink-rgb), 0.12),
    0 0 120px rgba(var(--accent-pink-rgb), 0.06),
    0 20px 60px rgba(0, 0, 0, 0.7);
  transform: scale(1.05) translateY(-4px);
}

/* MOST POPULAR Badge */
.pricing-popular-badge {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 99px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-pink);
  background: rgba(var(--accent-pink-rgb), 0.1);
  border: 1px solid rgba(var(--accent-pink-rgb), 0.3);
  margin-bottom: 16px;
  box-shadow: 0 0 16px rgba(var(--accent-pink-rgb), 0.15);
}

/* Card Head */
.pricing-card-head {
  display: flex;
  flex-direction: column;
}

.pricing-plan-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.pricing-price {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  line-height: 1;
}

.pricing-frequency {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.pricing-card-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Divider */
.pricing-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 28px 0;
}

/* Features List */
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
  flex: 1;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pricing-feature-icon {
  flex-shrink: 0;
  color: var(--text-muted);
  opacity: 0.6;
  margin-top: 2px;
}

.pricing-icon-check {
  color: #FB6F92;
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(251, 111, 146, 0.5));
}

.pricing-icon-pink {
  color: var(--accent-pink);
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(var(--accent-pink-rgb), 0.4));
}

.pricing-feature-highlight {
  color: var(--text-primary);
}

/* CTA */
.pricing-cta {
  width: 100%;
  text-align: center;
  padding: 16px 24px;
  font-size: 0.92rem;
  margin-top: auto;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
    width: 100%;
    max-width: 100%;
  }
  
  .hero-content {
    align-items: center;
    text-align: center;
  }
  
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }

  .hero-viewport {
    max-width: 100%;
    overflow: hidden;
  }

  .partners-row {
    gap: 40px;
  }

  .benefits-title {
    font-size: 2.2rem;
  }

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

  .bento-large,
  .bento-medium {
    grid-column: span 1;
  }

  .hiw-title {
    font-size: 2.2rem;
  }

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

  .hiw-visual {
    position: relative;
    top: auto;
    max-width: 440px;
    margin: 0 auto;
  }

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

  .pricing-card-featured .pricing-card-inner {
    transform: none;
  }
}

@media (max-width: 640px) {
  :root {
    --nav-height: 70px;
  }

  .container {
    padding: 0 0.75rem;
    overflow: hidden;
  }
  
  .hero-title {
    font-size: clamp(1.5rem, 5.5vw, 2rem);
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
    max-width: 100%;
    padding: 14px 16px;
    font-size: 0.85rem;
  }

  .nav-menu {
    display: none;
  }

  .nav-actions {
    display: none;
  }
  
  .partners-row {
    gap: 16px;
  }

  .partner-logo span {
    font-size: 0.8rem;
  }

  .partner-logo svg {
    width: 20px;
    height: 20px;
  }

  .benefits {
    padding: 56px 0 64px;
  }

  .benefits-title {
    font-size: 1.5rem;
  }

  .benefits-sub {
    font-size: 0.9rem;
  }


  .how-it-works {
    padding: 56px 0 64px;
  }

  .hiw-title {
    font-size: 1.5rem;
  }

  .hiw-subtitle {
    font-size: 0.9rem;
  }

  .hiw-device-frame {
    border-radius: 20px;
  }

  .hiw-device-content {
    min-height: 300px;
  }

  .hiw-step-header {
    padding: 16px 16px;
  }

  .hiw-step-active .hiw-step-body {
    padding: 0 16px 16px;
  }

  .hiw-step-body {
    padding: 0 16px;
  }

  .hiw-step-label {
    font-size: 0.9rem;
  }

  .hiw-step-desc {
    font-size: 0.85rem;
  }

  .hiw-stats-row {
    gap: 6px;
  }

  .hiw-stat {
    padding: 8px 4px;
  }

  .hiw-stat-value {
    font-size: 0.85rem;
  }

  .hiw-stat-label {
    font-size: 0.58rem;
  }

  .pricing-price {
    font-size: 2.5rem;
  }

  .faq {
    padding: 56px 0 64px;
  }

  .faq-question {
    font-size: 0.9rem;
    gap: 8px;
  }

  .faq-question span {
    flex: 1;
    min-width: 0;
  }
}

/* ========================================
   7. Testimonials Section
   ======================================== */
.testimonials {
  position: relative;
  z-index: 10;
  padding: 112px 0 120px;
  background-color: var(--bg-black);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 64px;
}

.testimonials-badge {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-pink);
  margin-bottom: 16px;
}

.testimonials-title {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 20px;
}

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

@media (max-width: 768px) {
  .testimonials-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 12px 16px 24px;
    margin: 0 -16px;
    scrollbar-width: none;
  }
  .testimonials-grid::-webkit-scrollbar {
    display: none;
  }
  .testimonials-grid .testimonial-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  }
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden !important;
    max-width: 100vw;
    width: 100%;
  }

  .container {
    padding: 0 1rem;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
  }

  /* Hero Section - use flex instead of grid */
  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
  }

  .hero-content {
    align-items: center;
    text-align: center;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .hero-actions {
    justify-content: center;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none;
    max-width: 100%;
  }

  .hero {
    padding-bottom: 3rem;
    min-height: auto;
  }

  .hero-viewport {
    max-width: 100%;
    width: 100%;
    overflow: hidden;
  }

  /* Mobile Wrapper - centers and constrains visual components */
  .mobile-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    padding: 0;
  }

  .mobile-wrapper > * {
    width: 90%;
    max-width: 100% !important;
    height: auto;
    margin: 0 auto;
  }

  /* Viewport frame in hero */
  .viewport-frame {
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 12px;
  }

  .viewport-header {
    padding: 0 12px;
    height: 36px;
  }

  .window-title {
    font-size: 0.6rem;
    max-width: 40%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .window-status {
    font-size: 0.6rem;
    padding: 2px 6px;
  }

  .canvas-area {
    padding: 20px 10px;
    min-height: 220px;
  }

  /* Scale the entire workflow node network to fit mobile cleanly */
  .workflow-nodes {
    max-width: 100%;
    gap: 16px;
    overflow: visible;
    transform: scale(0.78);
    transform-origin: center center;
  }

  .node {
    width: 120px;
    min-width: 0;
    max-width: 120px;
    padding: 8px 6px;
    gap: 6px;
    border-radius: 8px;
  }

  .node-icon-wrap {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    flex-shrink: 0;
  }

  .node-icon-wrap svg,
  .node-icon-wrap i {
    width: 12px !important;
    height: 12px !important;
  }

  .node-name {
    font-size: 0.62rem;
  }

  .node-type {
    font-size: 0.48rem;
  }

  .workflow-column {
    gap: 24px;
  }

  .port {
    width: 6px;
    height: 6px;
  }

  .port-left {
    left: -3px;
  }

  .port-right {
    right: -3px;
  }

  /* Bento Grid / Feature Cards mobile adjustments */
  .bento-grid {
    grid-template-columns: 1fr !important;
    gap: 0;
  }

  .bento-large,
  .bento-medium {
    grid-column: span 1 !important;
  }

  .bento-card {
    margin-bottom: 2rem;
    padding: 1.5rem !important;
    min-height: auto;
    height: auto;
  }

  .bento-card-title {
    margin-bottom: 1rem;
  }

  /* Section headers - visual hierarchy spacing */
  .hero-badge {
    margin-bottom: 1.5rem;
  }

  .benefits-header,
  .hiw-header,
  .pricing-header,
  .testimonials-header,
  .faq-header {
    margin-bottom: 2rem;
  }

  /* How It Works section */
  .hiw-split {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  .hiw-visual {
    display: none !important;
  }

  .hiw-mobile-visual {
    display: block;
    margin-top: 24px;
    width: 100%;
  }

  .hiw-step-active .hiw-step-body {
    max-height: 800px;
  }

  .hiw-device-frame {
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 20px;
  }

  .hiw-device-content {
    min-height: 340px;
  }

  /* Code block / JSON preview fixes */
  .hiw-code-block {
    padding: 14px 10px;
    font-size: 0.68rem;
    overflow: hidden;
  }

  .hiw-code-line {
    gap: 8px;
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .code-line-num {
    font-size: 0.6rem;
    min-width: 12px;
  }

  .code-key,
  .code-string,
  .code-number,
  .code-bool,
  .code-bracket,
  .code-colon,
  .code-comma {
    font-size: 0.68rem;
    white-space: nowrap;
  }

  .hiw-code-cursor {
    left: 36px;
  }

  /* State top bar */
  .hiw-state-topbar {
    padding: 8px 10px;
  }

  .hiw-state-filename {
    font-size: 0.62rem;
  }

  .hiw-state {
    padding: 16px 14px;
  }

  .hiw-state-badge {
    font-size: 0.68rem;
    padding: 6px 10px;
  }

  /* API rows */
  .hiw-api-row {
    padding: 10px 12px;
    gap: 10px;
  }

  .hiw-api-icon {
    width: 28px;
    height: 28px;
  }

  .hiw-api-name {
    font-size: 0.75rem;
  }

  .hiw-api-status {
    font-size: 0.6rem;
  }

  /* Testimonials */
  .testimonials {
    padding: 4rem 0;
  }

  .testimonials-title {
    font-size: 1.75rem;
  }

  .testimonial-card {
    padding: 1.5rem;
    max-width: 100%;
  }

  .faq-question {
    font-size: 1rem;
  }

  .pricing-title {
    font-size: 1.75rem;
  }

  .pricing {
    padding: 4rem 0;
  }

  .faq-title {
    font-size: 1.75rem;
  }

  .cta-title {
    font-size: 1.75rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Constrain all images and SVGs */
  img,
  svg,
  canvas,
  video {
    max-width: 100%;
    height: auto;
  }

  /* Glow ambient constraint */
  .glow-ambient {
    width: 100%;
    max-width: 100vw;
  }

  /* Noise overlay */
  .noise-overlay {
    max-width: 100vw;
  }

  /* Footer */
  .footer-links {
    gap: 24px;
  }
}

.testimonial-card {
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  border-color: rgba(var(--accent-pink-rgb), 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.testimonial-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-pink);
  font-weight: 700;
  font-size: 0.85rem;
  text-shadow: 0 0 10px rgba(var(--accent-pink-rgb), 0.4);
}

.testimonial-quote {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
  font-style: italic;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--accent-pink-rgb), 0.2), rgba(var(--accent-pink-rgb), 0.05));
  border: 1px solid rgba(var(--accent-pink-rgb), 0.4);
  color: var(--accent-pink);
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  box-shadow: 0 0 10px rgba(var(--accent-pink-rgb), 0.15);
  flex-shrink: 0;
}

.author-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
}

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

/* ========================================
   8. FAQ Section
   ======================================== */
.faq {
  position: relative;
  z-index: 10;
  padding: 80px 0 120px;
  background-color: var(--bg-black);
}

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

.faq-badge {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-pink);
  margin-bottom: 16px;
}

.faq-title {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.faq-stack {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 8px 16px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.faq-item:hover {
  border-color: rgba(var(--accent-pink-rgb), 0.2);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(var(--accent-pink-rgb), 0.05);
  transform: translateY(-2px);
}

.faq-item.active {
  border-color: rgba(var(--accent-pink-rgb), 0.3);
  background-color: var(--bg-card-hover);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(var(--accent-pink-rgb), 0.08);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 8px;
  min-height: 3.5rem;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.3s ease;
  user-select: none;
}

.faq-question:hover {
  color: var(--accent-pink);
}

.faq-item.active .faq-question {
  color: var(--accent-pink);
  text-shadow: 0 0 10px rgba(var(--accent-pink-rgb), 0.15);
}

.faq-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.3s ease,
              background-color 0.3s ease,
              border-color 0.3s ease;
  flex-shrink: 0;
}

.faq-question:hover .faq-toggle {
  color: var(--accent-pink);
  background-color: rgba(var(--accent-pink-rgb), 0.08);
  border-color: rgba(var(--accent-pink-rgb), 0.3);
  filter: drop-shadow(0 0 4px rgba(var(--accent-pink-rgb), 0.3));
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
  color: #FFFFFF;
  background-color: var(--accent-pink);
  border-color: var(--accent-pink);
  box-shadow: 0 0 12px rgba(var(--accent-pink-rgb), 0.4);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 8px;
}

.faq-answer p {
  padding-bottom: 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ========================================
   9. Final CTA Section
   ======================================== */
.final-cta {
  position: relative;
  z-index: 10;
  padding: 60px 0 120px;
  background-color: var(--bg-black);
}

.cta-box {
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid rgba(251, 111, 146, 0.2);
  border-radius: 24px;
  padding: 80px 40px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(var(--accent-pink-rgb), 0.1), 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Ambient inner glow */
.cta-box::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(var(--accent-pink-rgb), 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.cta-box > * {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.cta-desc {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
}

.cta-btn {
  font-size: 1.1rem;
  padding: 20px 40px;
  border-radius: 12px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.cta-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.cta-btn:hover::after {
  opacity: 1;
  animation: btnGlowPulse 2s infinite;
}

@keyframes btnGlowPulse {
  0% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.5; }
}

.cta-micro {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .cta-box {
    padding: 48px 16px;
    border-radius: 16px;
  }
  
  .cta-title {
    font-size: 1.75rem;
  }
  
  .cta-desc {
    font-size: 0.95rem;
  }
  
  .cta-btn {
    width: 100%;
    max-width: 100%;
    padding: 16px 20px;
  }

  .final-cta {
    padding: 40px 0 60px;
  }
}

/* ========================================
   10. Footer Section
   ======================================== */
.footer {
  position: relative;
  z-index: 10;
  background-color: var(--bg-black);
  border-top: 1px solid var(--border-thin);
  padding: 80px 0 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .logo-link {
  margin-bottom: 20px;
  display: inline-flex;
}

.footer-brand-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 80px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.social-link {
  color: var(--text-muted);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link:hover {
  color: var(--accent-pink);
  filter: drop-shadow(0 0 8px rgba(var(--accent-pink-rgb), 0.6));
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
  }
  
  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-links {
    width: 100%;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
}

/* Typography Update: Playfair Display for pink-highlighted text elements */
.logo-text span,
.btn-outline,
.text-highlight,
.benefits-badge,
.hiw-badge,
.hiw-step-number,
.hiw-step-link,
.pricing-badge,
.pricing-popular-badge,
.testimonials-badge,
.testimonial-rating,
.faq-badge,
.faq-question:hover,
.faq-item.active .faq-question {
  font-weight: 500;
}

/* ========================================
   11. New Testimonials Section
   ======================================== */
.author-picture-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--accent-pink-rgb), 0.2), rgba(var(--accent-pink-rgb), 0.05));
  border: 1px solid rgba(var(--accent-pink-rgb), 0.4);
  color: var(--accent-pink);
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(var(--accent-pink-rgb), 0.15);
  flex-shrink: 0;
}
/* ========================================
   12. Social Proof Section
   ======================================== */
.social-proof {
  padding: 80px 0;
  background-color: var(--bg-black);
  text-align: center;
}

.social-proof-avatars {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}

.social-proof-avatars .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--bg-black);
  margin-left: -12px; /* overlap */
  background: var(--bg-black);
}

.social-proof-avatars .avatar:first-child {
  margin-left: 0;
}

.social-proof-avatars .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-proof-text {
  font-size: 1.125rem;
  color: var(--text-primary);
}

.social-proof-text .highlight {
  color: var(--accent-pink);
  font-weight: 600;
}

/* ========================================
   12. Checkout Modal
   ======================================== */
.checkout-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.checkout-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.checkout-modal-card {
  background-color: var(--bg-dark-gray);
  border: 1px solid rgba(var(--accent-pink-rgb), 0.2);
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  padding: 40px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  opacity: 0;
}

.checkout-modal-overlay.active .checkout-modal-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.checkout-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 4px;
}

.checkout-modal-close:hover {
  color: var(--text-primary);
}

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

.checkout-modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.checkout-modal-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.checkout-modal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.checkout-modal-form label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.checkout-modal-form input {
  background-color: var(--bg-black);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.checkout-modal-form input:focus {
  border-color: var(--accent-pink);
  box-shadow: 0 0 0 3px rgba(var(--accent-pink-rgb), 0.15);
}

.checkout-modal-form input::placeholder {
  color: var(--text-muted);
}

.checkout-modal-submit {
  width: 100%;
  margin-top: 12px;
  padding: 16px;
  font-size: 1.05rem;
  display: flex;
  justify-content: center;
}

/* ========================================
   13. Legal Pages
   ======================================== */
.legal-page {
  padding-top: 140px;
  padding-bottom: 80px;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-content h1 {
  font-size: 3rem;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.legal-content h2 {
  font-size: 1.75rem;
  color: var(--accent-pink);
  margin-top: 48px;
  margin-bottom: 16px;
}

.legal-content p {
  margin-bottom: 24px;
}

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

.legal-content li {
  margin-bottom: 8px;
}

.legal-last-updated {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 48px;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 16px;
}
