/* ================================================================
   itvibe.party — landing enhancements (3 new sections)
   - AI Tools Showcase (bento grid, bg-primary)
   - Meet Eve Spotlight (bg-alt + wave divider)
   - Use Cases (bg-primary + wave divider)
   Uses existing design tokens. Drop-in CSS file.
   ================================================================ */

/* ---------- Shared section divider (reuses how-section pattern) ---------- */
.wave-top-from-primary {
  position: relative;
}
.wave-top-from-primary::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--bg-primary);
  clip-path: ellipse(55% 100% at 50% 0%);
  z-index: 1;
}
.wave-top-from-alt {
  position: relative;
}
.wave-top-from-alt::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--bg-alt);
  clip-path: ellipse(55% 100% at 50% 0%);
  z-index: 1;
}

/* ================================================================
   1. AI TOOLS SHOWCASE
   ================================================================ */
.ai-tools-section {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.ai-tools-section::after {
  content: '';
  position: absolute;
  top: 20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 98, 122, 0.10), transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.ai-tools-section .container {
  position: relative;
  z-index: 2;
}

.section-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 20px;
}

.tool-card {
  background: var(--surface-color);
  border: 1px solid rgba(232, 221, 225, 0.6);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.tool-card .feature-icon {
  margin-bottom: 4px;
}

.tool-card h3 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1.25rem;
  margin: 0;
}

.tool-card p {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

.tool-card .tool-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--bg-primary);
  color: var(--primary-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Featured (large) card holding the AI Support screenshot */
.tool-card.tool-featured {
  grid-column: span 2;
  grid-row: span 2;
  padding: 32px;
  background:
    radial-gradient(circle at 100% 0%, rgba(112, 89, 166, 0.10), transparent 50%),
    linear-gradient(160deg, #FFFFFF 0%, #FBF3F6 100%);
  border: 1px solid var(--border-color);
}

.tool-featured-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  max-width: 480px;
}

.tool-featured-head h3 {
  font-size: 1.75rem;
  letter-spacing: -0.5px;
}

.tool-featured-head p {
  font-size: 1rem;
}

/* Browser/desktop mockup wrapper */
.device-desktop {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(168, 98, 122, 0.30),
              0 10px 24px rgba(168, 98, 122, 0.10);
  position: relative;
}

.device-desktop-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #FBF3F6, #F5E6EB);
  border-bottom: 1px solid var(--border-color);
}

.device-desktop-bar .dots {
  display: flex;
  gap: 6px;
}
.device-desktop-bar .dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
}
.device-desktop-bar .dots span:nth-child(1) { background: #FF5F57; }
.device-desktop-bar .dots span:nth-child(2) { background: #FFBD2E; }
.device-desktop-bar .dots span:nth-child(3) { background: #28C841; }

.device-desktop-bar .addr {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  max-width: 240px;
  margin: 0 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.device-desktop-bar .addr svg {
  vertical-align: -2px;
  margin-right: 4px;
}

.device-desktop-bar .addr-spacer { width: 52px; }

.device-desktop img {
  display: block;
  width: 100%;
  height: auto;
}

.tool-featured .device-desktop {
  margin-top: 8px;
  transform: translateY(0);
}

/* ================================================================
   2. MEET EVE — SPOTLIGHT
   ================================================================ */
.eve-section {
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
  padding: 120px 0;
}

.eve-section::after {
  content: '';
  position: absolute;
  left: -10%;
  bottom: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(112, 89, 166, 0.12), transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.eve-section .container {
  position: relative;
  z-index: 2;
}

.eve-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: center;
}

.eve-copy h2 {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  margin-bottom: 20px;
}

.eve-copy .eve-lead {
  font-size: 1.125rem;
  margin-bottom: 28px;
  max-width: 480px;
}

.eve-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 32px;
  padding: 0;
}

.eve-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.eve-list .check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(168, 98, 122, 0.25);
  margin-top: 2px;
}

.eve-list h4 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: var(--text-primary);
}

.eve-list p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

.eve-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Visual side: desktop mockup with overlapping phone mockup */
.eve-visual {
  position: relative;
  padding: 20px;
}

.eve-visual .device-desktop {
  transform: rotate(-1deg);
  transition: var(--transition);
}

.eve-visual:hover .device-desktop {
  transform: rotate(-0.5deg) translateY(-4px);
}

/* Phone mockup */
.device-phone {
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 200px;
  background: #1a1a1a;
  border-radius: 36px;
  padding: 8px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.35),
              0 10px 24px rgba(168, 98, 122, 0.18);
  z-index: 3;
  transform: rotate(-6deg);
  transition: var(--transition);
}

.eve-visual:hover .device-phone {
  transform: rotate(-4deg) translateY(-6px);
}

.device-phone-screen {
  background: var(--bg-primary);
  border-radius: 28px;
  overflow: hidden;
  padding: 16px 12px;
  min-height: 360px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.device-phone-notch {
  width: 60px;
  height: 16px;
  background: #1a1a1a;
  border-radius: 0 0 12px 12px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.phone-msg {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-primary);
  background: var(--surface-color);
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.phone-msg.user {
  align-self: flex-end;
  background: var(--primary-color);
  color: white;
  border-bottom-right-radius: 4px;
}

.phone-msg.ai {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.phone-typing {
  align-self: flex-start;
  padding: 10px 12px;
  background: var(--surface-color);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  display: flex;
  gap: 4px;
}
.phone-typing span {
  width: 6px;
  height: 6px;
  background: var(--primary-medium);
  border-radius: 50%;
  animation: phoneTypingBounce 1.4s infinite ease-in-out both;
}
.phone-typing span:nth-child(2) { animation-delay: 0.15s; }
.phone-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes phoneTypingBounce {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

.phone-mic {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: var(--surface-color);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  font-size: 11px;
  color: var(--text-secondary);
}
.phone-mic-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(168, 98, 122, 0.35);
}

/* Floating language pill near Eve */
.eve-floating-pill {
  position: absolute;
  top: -10px;
  right: -8px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 3;
  transform: rotate(4deg);
  animation: floatPill 5s ease-in-out infinite alternate;
}

.eve-floating-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #28C841;
  box-shadow: 0 0 0 4px rgba(40, 200, 65, 0.18);
}

@keyframes floatPill {
  from { transform: rotate(4deg) translateY(0); }
  to   { transform: rotate(4deg) translateY(-8px); }
}

/* ================================================================
   3. USE CASES
   ================================================================ */
.usecases-section {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.usecases-section::after {
  content: '';
  position: absolute;
  top: 30%;
  left: -8%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(168, 98, 122, 0.10), transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.usecases-section .container {
  position: relative;
  z-index: 2;
}

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

.usecase-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 320px;
}

.usecase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-medium), #7059A6);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.usecase-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

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

.usecase-illu {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary-light), rgba(112, 89, 166, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.usecase-illu svg {
  width: 30px;
  height: 30px;
}

.usecase-card h3 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.usecase-card p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

.usecase-phrases {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
}

.usecase-phrase {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.usecase-phrase .flag {
  font-size: 0.7rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 1px 5px;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.usecase-phrase .text {
  font-style: italic;
  color: var(--text-primary);
  font-weight: 500;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(200px, auto);
  }
  .tool-card.tool-featured {
    grid-column: span 2;
    grid-row: span 1;
  }
  .eve-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .eve-visual {
    max-width: 560px;
    margin: 0 auto;
  }
  .usecases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .eve-section { padding: 80px 0; }
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .tool-card.tool-featured {
    grid-column: span 1;
  }
  .tool-featured-head h3 {
    font-size: 1.45rem;
  }
  .usecases-grid {
    grid-template-columns: 1fr;
  }
  .device-phone {
    width: 160px;
    bottom: -20px;
    left: -10px;
  }
  .device-phone-screen { min-height: 280px; }
  .eve-floating-pill {
    right: 12px;
    top: 0;
  }
  .eve-copy h2 { font-size: 1.85rem; }
  .eve-list h4 { font-size: 1rem; }
}

@media (max-width: 480px) {
  .device-phone { display: none; }
  .eve-visual { padding: 0; }
  .tool-card { padding: 22px; }
  .usecase-card { padding: 22px 20px; min-height: auto; }
}
