/*
  WebPal Landing Styles
  Palette:
    - Base: #001414, #141414
    - Blue: #0078FF, #14B4FF, #3CC8FF
    - Purple: #5443C7, #A020F0, #9196F7
    - Text: #ffffff, #B8B8C5
*/

/* Conthrax Font */
@font-face {
  font-family: 'Conthrax';
  src: url('./public/fonts/conthrax/Conthrax-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Poppins Font */
@font-face {
  font-family: 'Poppins';
  src: url('./public/fonts/poppins/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #192239; /* Brand navy - main background */
  --bg-alt: #141929;
  --bg-card: #2C2F38; /* Brand dark gray - for cards */
  --text: #e8ecf1;
  --muted: #b8b8c5;
  --accent: #FFED00; /* Brand yellow - primary accent */
  --accent-dark: #E8D400;
  --secondary: #3D474E; /* Brand medium gray - borders, muted */
  --secondary-dark: #2C2F38;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --font-heading: 'Conthrax', 'Space Grotesk', Montserrat, sans-serif;
  --font-body: 'Poppins', Inter, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(
      1200px 500px at 80% -10%,
      rgba(255, 237, 0, 0.08),
      transparent 60%
    ),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  overflow-x: hidden;
}

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(140%) blur(10px);
  background: linear-gradient(
    180deg,
    rgba(25, 34, 57, 0.95),
    rgba(25, 34, 57, 0.7) 70%,
    rgba(25, 34, 57, 0)
  );
  border-bottom: 1px solid rgba(61, 71, 78, 0.2);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand-logo {
  width: 150px;
  filter: drop-shadow(0 4px 12px rgba(255, 237, 0, 0.25));
  border-radius: 8px;
  transition: all 0.3s ease;
}
.brand-logo:hover {
  transform: scale(1.05) rotate(2deg);
  filter: drop-shadow(0 6px 16px rgba(255, 237, 0, 0.4));
}
.brand-logo.small {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.brand-name {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-list {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}
.nav-list li {
  position: relative;
}
.nav-list a {
  font-family: var(--font-body);
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.nav-list a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-list a::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 237, 0, 0.05), rgba(255, 237, 0, 0.02));
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.nav-list a:hover {
  color: var(--accent);
  transform: translateY(-2px);
  text-shadow: 0 0 8px rgba(255, 237, 0, 0.3);
}

.nav-list a:hover::before {
  width: 80%;
  box-shadow: 0 0 8px rgba(255, 237, 0, 0.4);
}

.nav-list a:hover::after {
  opacity: 1;
  box-shadow: 0 0 12px rgba(255, 237, 0, 0.2);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.nav-toggle:hover {
  background: rgba(255, 237, 0, 0.1);
  border-color: rgba(255, 237, 0, 0.3);
  transform: scale(1.05);
}

.nav-toggle:hover span {
  background: var(--accent);
}

.nav-toggle[aria-expanded="true"] {
  background: rgba(255, 237, 0, 0.1);
  border-color: rgba(255, 237, 0, 0.3);
}

.nav-toggle[aria-expanded="true"] span {
  background: var(--accent);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px auto;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.cta {
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}
.cta:hover::before {
  left: 100%;
}
.cta-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #192239;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(255, 237, 0, 0.3), 0 0 20px rgba(255, 237, 0, 0.2);
  animation: pulseGlow 3s ease-in-out infinite;
}
.cta-ghost {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.cta:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}
.cta-primary:hover {
  box-shadow: 0 15px 30px rgba(255, 237, 0, 0.5),
    0 0 30px rgba(255, 237, 0, 0.4);
}
.cta-primary:disabled,
.cta:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  animation: none;
}
@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 8px 18px rgba(255, 237, 0, 0.3), 0 0 20px rgba(255, 237, 0, 0.2);
  }
  50% {
    box-shadow: 0 8px 18px rgba(255, 237, 0, 0.5), 0 0 30px rgba(255, 237, 0, 0.4);
  }
}

/* Hero */
.hero {
  position: relative;
  padding: 96px 0 48px;
  overflow: hidden;
}
.gradient-bg {
  position: absolute;
  inset: -10%;
  background: radial-gradient(
      800px 500px at 20% 10%,
      rgba(255, 237, 0, 0.12),
      transparent 50%
    ),
    radial-gradient(
      1000px 500px at 90% 10%,
      rgba(61, 71, 78, 0.18),
      transparent 50%
    );
  filter: blur(40px);
  pointer-events: none;
  animation: gradientShift 8s ease-in-out infinite alternate;
}
@keyframes gradientShift {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.1) rotate(2deg);
    opacity: 1;
  }
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 95%;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}
.text-gradient {
  background: linear-gradient(
    90deg,
    var(--accent),
    #FFF27A,
    var(--accent),
    #FFD700
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 3s ease-in-out infinite;
}
@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
.subtitle {
  color: var(--b8b8c5, #b8b8c5);
  font-family: var(--font-body);
  font-size: 18px;
  margin: 0 0 28px;
  max-width: 58ch;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}
.hero-points {
  font-family: var(--font-body);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  padding: 0;
  margin: 8px 0 0;
  list-style: none;
}
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 237, 0, 0.15);
  color: var(--accent);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  margin-right: 6px;
  transition: all 0.3s ease;
  animation: badgePulse 2s ease-in-out infinite;
}
.badge:hover {
  transform: scale(1.1);
  background: rgba(255, 237, 0, 0.25);
}
.badge-purple {
  background: rgba(61, 71, 78, 0.2);
  color: #B8C5D1;
  animation: badgePulsePurple 2.5s ease-in-out infinite;
}
.badge-purple:hover {
  background: rgba(61, 71, 78, 0.3);
}
.badge-cyan {
  background: rgba(255, 237, 0, 0.15);
  color: var(--accent);
  animation: badgePulseCyan 2.2s ease-in-out infinite;
}
.badge-cyan:hover {
  background: rgba(255, 237, 0, 0.25);
}
@keyframes badgePulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
@keyframes badgePulsePurple {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
@keyframes badgePulseCyan {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.hero-logo-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 500px;
  animation: logoFloat 6s ease-in-out infinite;
}

.hero-logo {
  width: 100%;
  max-width: 500px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(255, 237, 0, 0.3));
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
}

.hero-logo:hover {
  transform: scale(1.05) rotate(2deg);
  filter: drop-shadow(0 30px 60px rgba(255, 237, 0, 0.5));
}

.logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 237, 0, 0.15) 0%,
    rgba(255, 237, 0, 0.08) 30%,
    transparent 70%
  );
  filter: blur(30px);
  animation: logoGlow 4s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes logoGlow {
  0% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Integration Section */
.integration {
  background: linear-gradient(
    180deg,
    rgba(25, 34, 57, 0.5),
    rgba(44, 47, 56, 0.3)
  );
  border-top: 1px solid rgba(61, 71, 78, 0.2);
  border-bottom: 1px solid rgba(61, 71, 78, 0.2);
}

.integration-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.integration-content h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 42px;
  line-height: 95%;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.integration-subtitle {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 18px;
  margin: 0 0 32px;
  max-width: 35ch;
}

.integration-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--muted);
}

.integration-demo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.demo-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  max-width: 900px;
}

.widget-demo-container {
  background: linear-gradient(
    180deg,
    rgba(44, 47, 56, 0.95),
    rgba(44, 47, 56, 0.85)
  );
  border: 1px solid rgba(61, 71, 78, 0.4);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 237, 0, 0.1);
  overflow: hidden;
  animation: codePanelFloat 4s ease-in-out infinite;
  transition: all 0.3s ease;
}

.widget-demo-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 237, 0, 0.2);
  border-color: rgba(255, 237, 0, 0.3);
}

.widget-demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(25, 34, 57, 0.5);
  border-bottom: 1px solid rgba(61, 71, 78, 0.3);
}

.widget-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.widget-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #27c93f;
  box-shadow: 0 0 6px rgba(39, 201, 63, 0.6);
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

.widget-demo {
  background: rgba(25, 34, 57, 0.3);
  height: 350px;
  display: flex;
  flex-direction: column;
}

.widget-placeholder {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.widget-chat {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  scroll-behavior: smooth;
}

.widget-chat::-webkit-scrollbar {
  width: 6px;
}

.widget-chat::-webkit-scrollbar-track {
  background: rgba(44, 47, 56, 0.3);
}

.widget-chat::-webkit-scrollbar-thumb {
  background: rgba(61, 71, 78, 0.5);
  border-radius: 3px;
}

.widget-chat::-webkit-scrollbar-thumb:hover {
  background: rgba(61, 71, 78, 0.7);
}

.widget-message {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  animation: messageSlideIn 0.4s ease-out;
}

.widget-message.user {
  flex-direction: row-reverse;
}

.widget-message.bot {
  flex-direction: row;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #192239;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
  overflow: hidden;
}

.message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.message-content {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.4;
}

.widget-message.bot .message-content {
  background: rgba(255, 237, 0, 0.1);
  border: 1px solid rgba(255, 237, 0, 0.2);
  color: var(--text);
}

.widget-message.user .message-content {
  background: rgba(61, 71, 78, 0.4);
  border: 1px solid rgba(61, 71, 78, 0.5);
  color: var(--text);
}

.message-content p {
  margin: 0;
}

.widget-message.typing {
  animation: typingAnimation 1.5s ease-in-out infinite;
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}

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

.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

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

@keyframes typingAnimation {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.widget-input {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(25, 34, 57, 0.5);
  border-top: 1px solid rgba(61, 71, 78, 0.3);
}

.widget-input input {
  flex: 1;
  background: rgba(44, 47, 56, 0.6);
  border: 1px solid rgba(61, 71, 78, 0.4);
  border-radius: 20px;
  padding: 10px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
}

.widget-input input::placeholder {
  color: var(--muted);
}

.widget-input input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 237, 0, 0.1);
}

.widget-input input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.widget-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border: none;
  color: #192239;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.widget-send-btn:hover:not(:disabled) {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 4px 12px rgba(255, 237, 0, 0.4);
}

.widget-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.widget-send-btn svg {
  width: 18px;
  height: 18px;
}

/* Code Snippet Panel */
.code-snippet-panel {
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(44, 47, 56, 0.95),
    rgba(44, 47, 56, 0.85)
  );
  border: 1px solid rgba(61, 71, 78, 0.4);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 237, 0, 0.1);
  overflow: hidden;
  animation: codePanelFloat 4s ease-in-out infinite;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  max-width: 600px;
  width: 100%;
}

.code-snippet-panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 237, 0, 0.2);
  border-color: rgba(255, 237, 0, 0.3);
}

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

.panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(25, 34, 57, 0.5);
  border-bottom: 1px solid rgba(61, 71, 78, 0.3);
}

.panel-dots {
  display: flex;
  gap: 6px;
}

.panel-header .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.dot-red {
  background: #ff5f56;
  box-shadow: 0 0 4px rgba(255, 95, 86, 0.4);
}

.dot-yellow {
  background: #ffbd2e;
  box-shadow: 0 0 4px rgba(255, 189, 46, 0.4);
}

.dot-green {
  background: #27c93f;
  box-shadow: 0 0 4px rgba(39, 201, 63, 0.4);
}

.panel-header:hover .dot {
  transform: scale(1.1);
}

.panel-title {
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
}

.panel-body {
  padding: 20px;
  background: rgba(25, 34, 57, 0.3);
  overflow-x: auto;
}

.panel-body pre {
  margin: 0;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.code-sample {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: transparent;
}

.code-line {
  display: block;
  animation: typeIn 0.5s ease-out forwards;
  opacity: 0;
}

.code-line:nth-child(1) { animation-delay: 0.2s; }
.code-line:nth-child(2) { animation-delay: 0.4s; }
.code-line:nth-child(3) { animation-delay: 0.6s; }

@keyframes typeIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.code-comment {
  color: rgba(255, 237, 0, 0.6);
  font-style: italic;
}

.code-keyword {
  color: #FF79C6;
}

.code-string {
  color: #C9D287;
}

.code-function {
  color: #82AAFF;
}

.code-attr {
  color: #FFCB6B;
}

/* Sections */
.section {
  padding: 72px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 28px;
}
.section-header h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 32px;
  line-height: 95%;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.section-header p {
  font-family: var(--font-body);
  color: var(--muted);
  margin: 0;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: linear-gradient(
    180deg,
    rgba(44, 47, 56, 0.6),
    rgba(44, 47, 56, 0.3)
  );
  border: 1px solid rgba(61, 71, 78, 0.3);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #FFF27A);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.card:hover::before {
  transform: scaleX(1);
}
.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 237, 0, 0.1);
  border-color: rgba(255, 237, 0, 0.3);
}
.card .icon {
  width: 38px;
  height: 38px;
  color: var(--accent);
  margin-bottom: 8px;
  transition: all 0.3s ease;
}
.card:hover .icon {
  transform: scale(1.1) rotate(5deg);
  color: var(--accent-dark);
}
.card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 6px 0 6px;
  transition: color 0.3s ease;
}
.card:hover h3 {
  color: var(--accent);
}
.card p {
  font-family: var(--font-body);
  color: var(--muted);
  margin: 0;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card {
  background: linear-gradient(
    180deg,
    rgba(255, 237, 0, 0.05),
    rgba(61, 71, 78, 0.05)
  );
  border: 1px solid rgba(61, 71, 78, 0.3);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 237, 0, 0.1),
    rgba(61, 71, 78, 0.1)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-card:hover::after {
  opacity: 1;
}
.service-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 25px rgba(255, 237, 0, 0.2);
  border-color: rgba(255, 237, 0, 0.4);
}
.service-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 4px 0 8px;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}
.service-card:hover h3 {
  color: var(--accent);
}
.service-card p {
  font-family: var(--font-body);
  color: var(--muted);
  position: relative;
  z-index: 1;
}
.service-card ul {
  font-family: var(--font-body);
  margin: 0;
  padding-left: 18px;
  color: #cfd6de;
  position: relative;
  z-index: 1;
}

/* Tiers */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.tier-card {
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(44, 47, 56, 0.6),
    rgba(44, 47, 56, 0.3)
  );
  border: 1px solid rgba(61, 71, 78, 0.3);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.tier-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.tier-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 237, 0, 0.1);
}
.tier-pro {
  background: linear-gradient(
    180deg,
    rgba(255, 237, 0, 0.08),
    rgba(61, 71, 78, 0.08)
  );
  border-color: rgba(255, 237, 0, 0.45);
  animation: tierProGlow 4s ease-in-out infinite alternate;
}
.tier-pro:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 237, 0, 0.3);
}
@keyframes tierProGlow {
  0% {
    box-shadow: var(--shadow);
  }
  100% {
    box-shadow: var(--shadow), 0 0 20px rgba(255, 237, 0, 0.2);
  }
}
.badge-ribbon {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #192239;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 700;
}
.price {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 8px 0 6px;
  font-family: var(--font-heading);
}
.price span {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-left: 2px;
}
.tier-list {
  font-family: var(--font-body);
  margin: 0 0 12px;
  padding-left: 18px;
  color: #cfd6de;
}

/* Roadmap */
.timeline {
  position: relative;
  display: grid;
  gap: 16px;
  padding-left: 12px;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
}
.milestone {
  display: grid;
  grid-template-columns: 20px auto;
  gap: 12px;
  align-items: start;
}
.milestone h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.milestone p {
  font-family: var(--font-body);
  color: var(--muted);
  margin: 4px 0;
}
.milestone .dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #FFF27A);
  box-shadow: 0 0 0 4px rgba(255, 237, 0, 0.08);
  margin-top: 6px;
}

/* Live */
.live-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.live-item {
  font-family: var(--font-body);
  background: rgba(44, 47, 56, 0.6);
  border: 1px solid rgba(61, 71, 78, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: #d9e6f2;
}
.check {
  color: var(--accent);
  margin-right: 8px;
  font-weight: bold;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}
.contact-form {
  background: linear-gradient(
    180deg,
    rgba(44, 47, 56, 0.6),
    rgba(44, 47, 56, 0.3)
  );
  border: 1px solid rgba(61, 71, 78, 0.3);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.field {
  margin-bottom: 12px;
}
.field.full {
  grid-column: 1 / -1;
}
.field label {
  font-family: var(--font-body);
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}
.field input,
.field textarea {
  font-family: var(--font-body);
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 12px;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s ease;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 237, 0, 0.15);
}
.form-status {
  font-family: var(--font-body);
  color: var(--muted);
  margin-top: 8px;
  min-height: 20px;
}

.contact-aside {
  display: grid;
  gap: 12px;
}
.contact-card {
  background: linear-gradient(
    180deg,
    rgba(255, 237, 0, 0.05),
    rgba(61, 71, 78, 0.05)
  );
  border: 1px solid rgba(61, 71, 78, 0.3);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}
.contact-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.contact-card p {
  font-family: var(--font-body);
  color: var(--muted);
  margin: 0 0 8px;
}
.link {
  color: var(--accent);
  text-decoration: none;
}
.link:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  margin-top: 24px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.35));
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}
.footer-nav {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-nav a {
  font-family: var(--font-body);
  color: var(--muted);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.footer-nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--accent);
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-nav a:hover {
  color: var(--accent);
  transform: translateY(-2px);
  text-shadow: 0 0 6px rgba(255, 237, 0, 0.3);
}

.footer-nav a:hover::before {
  width: 60%;
  box-shadow: 0 0 6px rgba(255, 237, 0, 0.4);
}
.legal {
  font-family: var(--font-body);
  color: var(--muted);
  text-align: right;
  margin: 0;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 800ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 800ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    margin-top: 12px;
  }
  .hero-logo-container {
    max-width: 400px;
  }
  .hero-logo {
    max-width: 400px;
  }
  .integration-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .integration-content {
    text-align: center;
  }
  .integration-content h2 {
    font-size: 36px;
  }
  .integration-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .integration-stats {
    justify-content: center;
  }
  .demo-wrapper {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .widget-demo {
    height: 300px;
  }
}

@media (max-width: 860px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .live-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tier-grid {
    grid-template-columns: 1fr;
  }
  .integration-content {
    text-align: center;
  }
  .integration-content h2 {
    font-size: 32px;
  }
  .integration-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .integration-stats {
    gap: 16px;
    justify-content: center;
  }
  .stat-number {
    font-size: 28px;
  }
  .widget-demo {
    height: 400px;
  }
  .message-content {
    max-width: 85%;
  }

  .nav-toggle {
    display: inline-block;
  }
  .nav-list {
    position: absolute;
    right: 24px;
    top: 64px;
    background: linear-gradient(
      180deg,
      rgba(25, 34, 57, 0.98),
      rgba(44, 47, 56, 0.95)
    );
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 237, 0, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 237, 0, 0.15);
    backdrop-filter: blur(20px);
    display: none;
    flex-direction: column;
    gap: 4px;
    max-width: calc(100% - 24px);
    min-width: 240px;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .nav-list li {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .nav-list li:nth-child(1) { transition-delay: 0.05s; }
  .nav-list li:nth-child(2) { transition-delay: 0.1s; }
  .nav-list li:nth-child(3) { transition-delay: 0.15s; }
  .nav-list li:nth-child(4) { transition-delay: 0.2s; }
  .nav-list li:nth-child(5) { transition-delay: 0.25s; }
  .nav-list li:nth-child(6) { transition-delay: 0.3s; }
  
  .nav-list.open {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: menuAppear 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  @keyframes menuAppear {
    from {
      opacity: 0;
      transform: translateY(-10px) scale(0.95);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  
  .nav-list.open li {
    opacity: 1;
    transform: translateX(0);
  }
  
  .nav-list.open li a {
    padding: 12px 16px;
    background: rgba(255, 237, 0, 0.05);
    border: 1px solid rgba(255, 237, 0, 0.1);
    border-radius: 10px;
    color: var(--text);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .nav-list.open li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 237, 0, 0.1), transparent);
    transition: left 0.5s ease;
  }
  
  .nav-list.open li a:hover {
    background: rgba(255, 237, 0, 0.1);
    border-color: rgba(255, 237, 0, 0.3);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(255, 237, 0, 0.2);
    color: var(--accent);
  }
  
  .nav-list.open li a:hover::before {
    left: 100%;
  }
  
  .site-header {
    padding: 10px 0px;
  }

  #get-started {
    display: none;
  }
  .primary-nav {
    gap: 10px;
  }
  .hero-actions {
    flex-wrap: wrap;
  }
  .hero-points {
    gap: 10px;
  }
  .container {
    padding: 0 16px;
  }
}

@media (max-width: 560px) {
  .features-grid,
  .services-grid,
  .live-grid {
    grid-template-columns: 1fr;
  }
  .header-inner {
    padding: 12px 0;
  }
  .section {
    padding: 56px 0;
  }
  .hero {
    padding: 72px 0 40px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .subtitle {
    font-size: 16px;
  }
  .hero-logo-container {
    max-width: 300px;
  }
  .hero-logo {
    max-width: 300px;
  }
  .integration-content {
    text-align: center;
  }
  .integration-content h2 {
    font-size: 28px;
  }
  .integration-subtitle {
    font-size: 16px;
    margin-left: auto;
    margin-right: auto;
  }
  .integration-stats {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  .stat-number {
    font-size: 24px;
  }
  .widget-demo {
    height: 350px;
  }
  .message-content {
    max-width: 90%;
    font-size: 12px;
  }
  .panel-body {
    padding: 16px;
  }
  .code-sample {
    font-size: 11px;
  }
  .cta {
    width: 100%;
  }
  .container {
    padding: 0 12px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
  }
  .legal {
    text-align: center;
  }
  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .site-header {
    padding: 0px 10px;
  }
  .brand-name {
    display: none;
  }
  .header-inner {
    padding: 10px 0;
  }
  .nav-list {
    right: 12px;
    left: 12px;
    top: 58px;
    max-width: calc(100% - 24px);
    min-width: auto;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero-actions {
    gap: 8px;
  }
  .card,
  .service-card,
  .tier-card,
  .contact-form,
  .contact-card {
    padding: 14px;
  }
  .live-item {
    padding: 10px 12px;
  }
}
