/* ========================================
   AI POWERED WEBSITES PAGE
   ======================================== */

/* HERO LAYOUT */
.aiw-hero {
  min-height: 100vh;
  padding: 200px 32px 120px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.aiw-hero-grid {
  width: 100%;
  max-width: 1280px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.aiw-hero-copy {
  text-align: left;
}

.aiw-hero-copy .sales-headline {
  font-size: 56px;
  line-height: 1.05;
  margin-bottom: 24px;
}

.aiw-hero-copy .sales-sub {
  margin: 0 0 32px;
  max-width: 540px;
}

/* ABSTRACT ANIMATED VISUAL — browser mockup */
.aiw-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1400px;
}

/* Glow ring behind */
.aiw-glow-ring {
  position: absolute;
  width: 110%;
  height: 110%;
  top: -5%;
  left: -5%;
  border-radius: 32px;
  background: conic-gradient(
    from 0deg,
    rgba(139, 92, 246, 0) 0%,
    rgba(139, 92, 246, 0.7) 25%,
    rgba(192, 132, 252, 0.9) 50%,
    rgba(139, 92, 246, 0.7) 75%,
    rgba(139, 92, 246, 0) 100%
  );
  filter: blur(40px);
  opacity: 0.45;
  z-index: 0;
  animation: aiwGlowSpin 12s linear infinite;
}

@keyframes aiwGlowSpin {
  to { transform: rotate(360deg); }
}

/* Browser shell — slim rectangle, top of website only */
.aiw-browser {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: rgba(12, 10, 22, 0.75);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(139, 92, 246, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  z-index: 1;
  transform: rotateX(4deg) rotateY(-6deg);
  animation: aiwBrowserFloat 8s ease-in-out infinite;
}

@keyframes aiwBrowserFloat {
  0%, 100% { transform: rotateX(4deg) rotateY(-6deg) translateY(0); }
  50%      { transform: rotateX(4deg) rotateY(-6deg) translateY(-12px); }
}

/* Chrome bar */
.aiw-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(20, 16, 36, 0.95);
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.aiw-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}

.aiw-dot-red    { background: #ff5f57; }
.aiw-dot-yellow { background: #febc2e; }
.aiw-dot-green  { background: #28c840; }

.aiw-url {
  flex: 1;
  margin-left: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12px;
  color: rgba(216, 180, 254, 0.9);
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  align-items: center;
  gap: 6px;
}

.aiw-lock {
  font-size: 10px;
  opacity: 0.7;
}

/* Mock screen — slim, only top of a website */
.aiw-screen {
  position: relative;
  height: 220px;
  padding: 14px 22px 18px;
  background:
    radial-gradient(circle at 20% 0%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(circle at 80% 100%, rgba(192, 132, 252, 0.18), transparent 60%),
    rgba(8, 6, 16, 0.65);
  overflow: hidden;
}

/* Hide the lower-half elements — keep mockup as a slim "above the fold" rectangle */
.aiw-mock-sub,
.aiw-mock-cta-row,
.aiw-mock-trust,
.aiw-mock-cards,
.aiw-chat,
.aiw-mock-notif {
  display: none;
}

/* Floating orbs inside the mock */
.aiw-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.6;
  pointer-events: none;
}

.aiw-orb-1 {
  width: 80px;
  height: 80px;
  top: 10%;
  right: -20px;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.6), transparent 70%);
  animation: aiwOrbFloat1 9s ease-in-out infinite;
}

.aiw-orb-2 {
  width: 50px;
  height: 50px;
  bottom: 30%;
  left: -10px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.55), transparent 70%);
  animation: aiwOrbFloat2 11s ease-in-out infinite;
}

.aiw-orb-3 {
  width: 30px;
  height: 30px;
  top: 50%;
  left: 40%;
  background: radial-gradient(circle, rgba(216, 180, 254, 0.55), transparent 70%);
  animation: aiwOrbFloat3 7s ease-in-out infinite;
}

@keyframes aiwOrbFloat1 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-30px, 25px); }
}

@keyframes aiwOrbFloat2 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(20px, -30px); }
}

@keyframes aiwOrbFloat3 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-15px, -20px); }
}

/* Mock nav */
.aiw-mock-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
  position: relative;
  z-index: 2;
}

.aiw-mock-brand {
  display: flex;
  align-items: center;
  gap: 7px;
}

.aiw-mock-brand-logo {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--purple), #c084fc);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.55), inset 0 0 0 1px rgba(255,255,255,0.2);
  color: #fff;
}

.aiw-mock-brand-logo svg {
  width: 13px;
  height: 13px;
}

.aiw-mock-brand-text {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

.aiw-mock-brand-dot {
  color: var(--purple);
  font-weight: 800;
}

.aiw-mock-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.aiw-mock-link {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.aiw-mock-link-cta {
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #d8b4fe;
  font-weight: 600;
}

/* Mock hero — CENTERED */
.aiw-mock-hero {
  position: relative;
  z-index: 2;
  margin: 18px 0 22px;
  text-align: center;
}

.aiw-mock-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #d8b4fe;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.35);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.aiw-mock-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  animation: aiwOnlinePulse 1.6s ease-in-out infinite;
}

.aiw-mock-h1 {
  font-size: 20px;
  line-height: 1.15;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 8px;
  letter-spacing: -0.015em;
  max-width: 90%;
  background: linear-gradient(90deg,
    #ffffff 0%,
    #c084fc 50%,
    #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: aiwGradientShift 5s ease-in-out infinite;
}

.aiw-mock-h1 em {
  font-style: italic;
  font-weight: 400;
}

@keyframes aiwGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.aiw-mock-sub {
  font-size: 10px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 auto 14px;
  max-width: 78%;
}

.aiw-mock-cta-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.aiw-mock-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 14px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), #c084fc);
  border-radius: 100px;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
  animation: aiwCtaPulse 2.5s ease-in-out infinite;
}

.aiw-mock-cta span {
  font-size: 11px;
}

.aiw-mock-cta-secondary {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  padding: 6px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes aiwCtaPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.4); }
  50%      { box-shadow: 0 0 35px rgba(192, 132, 252, 0.7); }
}

/* Trust row */
.aiw-mock-trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.55);
}

.aiw-mock-stars {
  color: #fbbf24;
  letter-spacing: 1px;
  font-size: 10px;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

/* Floating notification toast */
.aiw-mock-notif {
  position: absolute;
  top: 60px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 16, 36, 0.96);
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: 10px;
  padding: 7px 10px 7px 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(74, 222, 128, 0.2);
  z-index: 4;
  opacity: 0;
  transform: translateX(-120%);
  animation: aiwNotifSlide 8s ease-in-out infinite;
}

.aiw-mock-notif-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #4ade80;
  color: #052e1a;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

.aiw-mock-notif-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.aiw-mock-notif-title {
  font-size: 9.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

.aiw-mock-notif-sub {
  font-size: 8.5px;
  color: rgba(255, 255, 255, 0.55);
}

@keyframes aiwNotifSlide {
  0%, 4%   { opacity: 0; transform: translateX(-120%); }
  10%      { opacity: 1; transform: translateX(0); }
  35%      { opacity: 1; transform: translateX(0); }
  42%      { opacity: 0; transform: translateX(-120%); }
  100%     { opacity: 0; transform: translateX(-120%); }
}

/* Service cards row */
.aiw-mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  position: relative;
  z-index: 2;
}

.aiw-mock-card {
  background: rgba(20, 16, 36, 0.7);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 8px;
  padding: 10px 9px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aiw-mock-card-icon {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(139, 92, 246, 0.18);
  margin-bottom: 4px;
  position: relative;
}

.aiw-mock-card-icon::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1.5px solid var(--purple);
  border-radius: 2px;
}

.aiw-mock-card-icon-2::after {
  border-radius: 50%;
}

.aiw-mock-card-icon-3::after {
  border-radius: 2px;
  border-bottom-width: 0;
  border-right-width: 0;
  transform: rotate(-45deg);
}

.aiw-mock-card-title {
  width: 70%;
  height: 6px;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 3px;
}

.aiw-mock-card-line {
  width: 90%;
  height: 4px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 2px;
}

.aiw-mock-card-line-short {
  width: 60%;
}

/* Shimmer sweeping across the mock */
.aiw-screen-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(192, 132, 252, 0.08) 50%,
    transparent 70%
  );
  background-size: 200% 100%;
  background-position: -100% 0;
  animation: aiwScreenShimmer 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
}

@keyframes aiwScreenShimmer {
  0%   { background-position: 200% 0; }
  60%  { background-position: -100% 0; }
  100% { background-position: -100% 0; }
}

/* ANIMATED MOUSE CURSOR */
.aiw-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
  animation: aiwCursorPath 14s cubic-bezier(0.65, 0.05, 0.35, 1) infinite;
}

.aiw-cursor svg {
  width: 100%;
  height: 100%;
}

.aiw-cursor-click {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(192, 132, 252, 0.9);
  opacity: 0;
  transform: scale(0.4);
  animation: aiwCursorClick 14s ease-in-out infinite;
}

@keyframes aiwCursorPath {
  /* Start top-left near brand */
  0%   { transform: translate(30px, 30px); }
  /* Hover "Services" nav link */
  12%  { transform: translate(220px, 28px); }
  18%  { transform: translate(220px, 28px); }
  22%  { transform: translate(220px, 28px); }
  /* "Book a Demo" pill on the right */
  32%  { transform: translate(425px, 28px); }
  38%  { transform: translate(425px, 28px); }
  /* AI POWERED badge (centered, ~y=85) */
  52%  { transform: translate(245px, 90px); }
  58%  { transform: translate(245px, 90px); }
  /* Headline area (centered, ~y=130) */
  72%  { transform: translate(245px, 140px); }
  78%  { transform: translate(245px, 140px); }
  /* Return */
  90%  { transform: translate(30px, 30px); }
  100% { transform: translate(30px, 30px); }
}

@keyframes aiwCursorClick {
  0%, 19%   { opacity: 0; transform: translate(220px, 28px) scale(0.4); }
  22%       { opacity: 0.9; transform: translate(220px, 28px) scale(1); }
  25%       { opacity: 0; transform: translate(220px, 28px) scale(1.2); }

  35%       { opacity: 0; transform: translate(425px, 28px) scale(0.4); }
  38%       { opacity: 0.9; transform: translate(425px, 28px) scale(1); }
  41%       { opacity: 0; transform: translate(425px, 28px) scale(1.2); }

  55%       { opacity: 0; transform: translate(245px, 90px) scale(0.4); }
  58%       { opacity: 0.9; transform: translate(245px, 90px) scale(1); }
  61%       { opacity: 0; transform: translate(245px, 90px) scale(1.2); }

  75%       { opacity: 0; transform: translate(245px, 140px) scale(0.4); }
  78%       { opacity: 0.9; transform: translate(245px, 140px) scale(1); }
  81%       { opacity: 0; transform: translate(245px, 140px) scale(1.2); }

  100%      { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .aiw-cursor,
  .aiw-cursor-click {
    animation: none;
    opacity: 0;
  }
}

/* Chat widget overlay */
.aiw-chat {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 200px;
  background: rgba(20, 16, 36, 0.95);
  border: 1px solid rgba(139, 92, 246, 0.45);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(139, 92, 246, 0.25);
  z-index: 4;
  animation: aiwChatFloat 6s ease-in-out infinite;
}

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

.aiw-chat-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.aiw-chat-avatar {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), #c084fc);
}

.aiw-chat-online {
  margin-left: auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  animation: aiwOnlinePulse 1.6s ease-in-out infinite;
}

@keyframes aiwOnlinePulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.aiw-chat-bubble {
  font-size: 9px;
  line-height: 1.4;
  padding: 5px 8px;
  border-radius: 10px;
  margin-bottom: 4px;
  max-width: 85%;
  opacity: 0;
  animation: aiwBubbleIn 0.5s ease forwards;
}

.aiw-chat-bubble-bot {
  background: rgba(139, 92, 246, 0.15);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-bottom-left-radius: 3px;
}

.aiw-chat-bubble-user {
  background: linear-gradient(135deg, var(--purple), #c084fc);
  color: #fff;
  border-bottom-right-radius: 3px;
  margin-left: auto;
}

.aiw-chat-bubble:nth-of-type(1) { animation-delay: 0.6s; }
.aiw-chat-bubble:nth-of-type(2) { animation-delay: 1.6s; }
.aiw-chat-bubble:nth-of-type(3) { animation-delay: 2.6s; }

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

/* Typing indicator */
.aiw-typing {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 6px 8px;
}

.aiw-typing span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(216, 180, 254, 0.9);
  animation: aiwTypingBounce 1.2s ease-in-out infinite;
}

.aiw-typing span:nth-child(2) { animation-delay: 0.15s; }
.aiw-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes aiwTypingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40%           { transform: translateY(-3px); opacity: 1; }
}

/* ========================================
   CONTENT SECTIONS
   ======================================== */

/* Make all sections on this page transparent so the video background shows through */
.aiw-hero,
.aiw-section,
.aiw-section:nth-child(even),
body .sales-final {
  background: transparent !important;
}

.aiw-section {
  position: relative;
}

.aiw-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 16px;
  padding: 6px 14px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 100px;
}

.aiw-body {
  font-size: 19px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  max-width: 760px;
  margin: 0 auto;
}

/* CARD GRID */
.aiw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  text-align: left;
}

.aiw-card {
  position: relative;
  background: rgba(12, 10, 22, 0.6);
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 18px;
  padding: 28px 26px;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.aiw-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.aiw-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(139, 92, 246, 0.15);
}

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

.aiw-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.1);
  color: var(--purple);
  margin-bottom: 18px;
}

.aiw-card-icon svg {
  width: 22px;
  height: 22px;
}

.aiw-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 8px;
}

.aiw-card p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

.aiw-who {
  margin-top: 32px;
}

/* ========================================
   BOOK A FREE DEMO MODAL
   ======================================== */

.aiw-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.aiw-modal.open {
  display: flex;
  -webkit-animation: aiwModalFade 0.25s ease forwards;
  animation: aiwModalFade 0.25s ease forwards;
}

@-webkit-keyframes aiwModalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes aiwModalFade { from { opacity: 0; } to { opacity: 1; } }

.aiw-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 2, 12, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.aiw-modal-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(160deg, rgba(18, 12, 32, 0.985) 0%, rgba(10, 7, 20, 0.985) 100%);
  border: 1px solid rgba(139, 92, 246, 0.45);
  border-radius: 18px;
  padding: 30px 30px 24px;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(139, 92, 246, 0.15),
    0 0 35px rgba(139, 92, 246, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  -webkit-animation: aiwModalRise 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation: aiwModalRise 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@-webkit-keyframes aiwModalRise {
  from { transform: translateY(20px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes aiwModalRise {
  from { transform: translateY(20px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* Aura — subtle border glow, not a wash */
.aiw-modal-aura {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 18px;
  pointer-events: none;
  z-index: 0;
  -webkit-box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.3) inset;
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.3) inset;
  -webkit-animation: aiwModalBorderPulse 4s ease-in-out infinite;
  animation: aiwModalBorderPulse 4s ease-in-out infinite;
}

@-webkit-keyframes aiwModalBorderPulse {
  0%, 100% { -webkit-box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.25) inset; box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.25) inset; }
  50%      { -webkit-box-shadow: 0 0 0 1px rgba(192, 132, 252, 0.55) inset; box-shadow: 0 0 0 1px rgba(192, 132, 252, 0.55) inset; }
}
@keyframes aiwModalBorderPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.25) inset; }
  50%      { box-shadow: 0 0 0 1px rgba(192, 132, 252, 0.55) inset; }
}

.aiw-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.1);
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  z-index: 2;
}

.aiw-modal-close:hover {
  background: rgba(139, 92, 246, 0.25);
  color: #fff;
  transform: rotate(90deg);
}

/* Header */
.aiw-modal-header {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.aiw-modal-badge {
  margin-bottom: 10px;
  font-size: 11px;
  padding: 4px 12px;
}

.aiw-modal-title {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  font-family: 'Inter', sans-serif;
  line-height: 1.15;
}

.aiw-modal-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  line-height: 1.45;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* Form */
.aiw-form {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.aiw-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.aiw-field {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 5px;
}

.aiw-field label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.02em;
}

.aiw-req {
  color: #c084fc;
}

.aiw-hint {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  margin-left: 4px;
}

.aiw-field input[type="text"],
.aiw-field input[type="email"],
.aiw-field input[type="tel"],
.aiw-field input[type="url"],
.aiw-field select,
.aiw-field textarea {
  width: 100%;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  background: rgba(8, 6, 16, 0.6);
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 9px;
  padding: 9px 12px;
  color: #fff;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  -webkit-transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.aiw-field textarea {
  resize: vertical;
  min-height: 60px;
  font-family: inherit;
}

.aiw-field select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1l5 5 5-5' stroke='%23c084fc' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.aiw-field select option {
  background: #14102a;
  color: #fff;
}

.aiw-field input:focus,
.aiw-field select:focus,
.aiw-field textarea:focus {
  outline: none;
  border-color: rgba(192, 132, 252, 0.7);
  background: rgba(20, 14, 36, 0.95);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15), 0 0 18px rgba(139, 92, 246, 0.25);
}

.aiw-field input::placeholder,
.aiw-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* Checkboxes */
.aiw-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  margin-top: 2px;
}

.aiw-check {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: rgba(255, 255, 255, 0.8) !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  padding: 7px 10px;
  background: rgba(8, 6, 16, 0.4);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 7px;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.aiw-check:hover {
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.08);
}

.aiw-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid rgba(139, 92, 246, 0.5);
  background: transparent;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.aiw-check input[type="checkbox"]:checked {
  background: linear-gradient(135deg, var(--purple), #c084fc);
  border-color: #c084fc;
}

.aiw-check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Honeypot — hidden from real users */
.aiw-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Submit button */
.aiw-submit {
  position: relative;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  margin-top: 4px;
  background: -webkit-linear-gradient(135deg, var(--purple) 0%, #c084fc 100%);
  background: linear-gradient(135deg, var(--purple) 0%, #c084fc 100%);
  border: none;
  border-radius: 100px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.01em;
  cursor: pointer;
  overflow: hidden;
  -webkit-box-shadow: 0 0 24px rgba(139, 92, 246, 0.4);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.4);
  -webkit-transition: -webkit-transform 0.2s ease, -webkit-box-shadow 0.3s ease;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.aiw-submit:hover:not([disabled]) {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(192, 132, 252, 0.7);
}

.aiw-submit[disabled] {
  cursor: not-allowed;
  opacity: 0.7;
}

.aiw-submit-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  -webkit-animation: aiwSpin 0.8s linear infinite;
  animation: aiwSpin 0.8s linear infinite;
}

.aiw-submit.loading .aiw-submit-label { display: none; }
.aiw-submit.loading .aiw-submit-spinner { display: inline-block; }

@-webkit-keyframes aiwSpin { to { transform: rotate(360deg); } }
@keyframes aiwSpin { to { transform: rotate(360deg); } }

.aiw-turnstile-wrap {
  display: flex;
  justify-content: center;
  margin: 4px 0 0;
  min-height: 65px;
}

.aiw-turnstile-wrap .cf-turnstile {
  width: 100%;
  max-width: 300px;
}

.aiw-form-error {
  font-size: 13px;
  color: #fca5a5;
  text-align: center;
  min-height: 18px;
}

.aiw-form-fineprint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  margin: 4px 0 0;
  line-height: 1.5;
}

/* Success state */
.aiw-modal-success {
  text-align: center;
  padding: 24px 8px 12px;
}

.aiw-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), #c084fc);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

.aiw-success-icon svg {
  width: 32px;
  height: 32px;
}

.aiw-modal-success h3 {
  font-size: 22px;
  color: #fff;
  margin: 0 0 8px;
  font-weight: 700;
}

.aiw-modal-success p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 24px;
}

.aiw-success-close {
  background: transparent;
  border: 1px solid rgba(139, 92, 246, 0.5);
  color: #fff;
  padding: 10px 32px;
  border-radius: 100px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.aiw-success-close:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: #c084fc;
}

/* Mobile modal */
@media (max-width: 640px) {
  .aiw-modal { padding: 8px; }
  .aiw-modal-card {
    padding: 22px 18px 18px;
    max-height: 94vh;
    border-radius: 16px;
  }
  .aiw-modal-aura { border-radius: 16px; }
  .aiw-modal-header { margin-bottom: 16px; }
  .aiw-modal-title { font-size: 22px; line-height: 1.15; }
  .aiw-modal-sub { font-size: 12.5px; }
  .aiw-modal-badge { font-size: 10px; padding: 3px 10px; margin-bottom: 8px; }

  .aiw-form { gap: 11px; }
  .aiw-form-row { grid-template-columns: 1fr; gap: 11px; }
  .aiw-field label { font-size: 11.5px; }
  .aiw-field input, .aiw-field select, .aiw-field textarea { font-size: 14px; padding: 9px 11px; }

  .aiw-checks { grid-template-columns: 1fr; gap: 5px; }
  .aiw-check { padding: 6px 10px; font-size: 12.5px !important; }

  .aiw-submit { height: 44px; font-size: 14.5px; }
  .aiw-form-fineprint { font-size: 10.5px; line-height: 1.4; }

  .aiw-modal-close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
  }
}

/* ========================================
   MOBILE
   ======================================== */
@media (max-width: 1024px) {
  .aiw-hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
    text-align: center;
  }

  .aiw-hero-copy {
    text-align: center;
  }

  .aiw-hero-copy .sales-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .aiw-visual {
    max-width: 420px;
    margin: 0 auto;
  }

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

@media (max-width: 768px) {
  .aiw-hero {
    padding: 130px 20px 80px;
    min-height: auto;
  }

  .aiw-hero-grid {
    gap: 40px;
  }

  .aiw-hero-copy .sales-headline {
    font-size: 38px;
  }

  /* Compact mobile mockup — slim rectangle */
  .aiw-visual {
    max-width: 380px;
  }

  .aiw-browser {
    transform: none;
    max-width: 380px;
  }

  .aiw-screen {
    height: 190px;
    padding: 12px 16px 14px;
  }

  .aiw-chrome {
    padding: 10px 12px;
  }

  .aiw-url {
    font-size: 11px;
    padding: 4px 10px;
  }

  .aiw-mock-nav {
    margin-bottom: 14px;
    padding-bottom: 10px;
  }

  .aiw-mock-brand-text { font-size: 11px; }
  .aiw-mock-link { font-size: 8px; }
  .aiw-mock-link-cta { padding: 3px 8px; }

  .aiw-mock-hero {
    margin: 10px 0 0;
  }

  .aiw-mock-h1 {
    font-size: 16px;
  }

  /* Cursor path is desktop-tuned — hide on mobile */
  .aiw-cursor,
  .aiw-cursor-click {
    display: none;
  }

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

  .aiw-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 40px;
  }

  .aiw-body {
    font-size: 16px;
  }
}
