/* ========================================
   AI-first homepage enhancements
   ======================================== */

/* ---------- Hero ---------- */
.ai-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: 0.02em;
}

.ai-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8b5cf6;
  box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.6);
  animation: aiPulse 2s infinite;
}

@keyframes aiPulse {
  0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(139, 92, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

.hero-title.ai-hero-title {
  font-size: 3.6rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: none;
  -webkit-text-fill-color: var(--text-primary);
  color: var(--text-primary);
}

.ai-gradient-text {
  background: linear-gradient(90deg, #2563eb 0%, #7c3aed 50%, #06b6d4 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: aiShimmer 6s linear infinite;
}

@keyframes aiShimmer {
  to { background-position: 200% center; }
}

.ai-hero-lead {
  font-size: 1.25rem;
  max-width: 34rem;
}

.ai-hero-lead strong {
  color: var(--text-primary);
}

.hero-buttons .btn-lg {
  height: auto;
  border-radius: 12px;
}

a.btn.ai-btn-glow {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.35);
}

a.btn.ai-btn-glow:hover {
  box-shadow: 0 14px 36px rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
}

a.btn.ai-btn-outline,
a.btn.ai-btn-outline:focus,
a.btn.ai-btn-outline:active {
  color: var(--text-primary) !important;
  background: transparent;
}

a.btn.ai-btn-outline:hover {
  color: var(--primary-600) !important;
}

@media (max-width: 768px) {
  .hero-title.ai-hero-title { font-size: 2.3rem; }
  .ai-hero-lead { font-size: 1.1rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero-title.ai-hero-title { font-size: 2.8rem; }
}

/* ---------- AI section ---------- */
.ai-section {
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem;
  background: radial-gradient(ellipse at top, #1e1b4b 0%, #0f172a 55%, #020617 100%);
  color: #e2e8f0;
}

.ai-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}

.ai-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
}

.ai-glow-1 {
  width: 420px;
  height: 420px;
  background: #7c3aed;
  top: -120px;
  left: -100px;
}

.ai-glow-2 {
  width: 380px;
  height: 380px;
  background: #0891b2;
  bottom: -140px;
  right: -80px;
}

.ai-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.ai-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.ai-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a5b4fc;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(165, 180, 252, 0.3);
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.1);
  margin-bottom: 1.5rem;
}

.ai-header h2 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  background: linear-gradient(90deg, #ffffff 0%, #c7d2fe 50%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ai-header p {
  font-size: 1.2rem;
  color: #cbd5e1;
  margin: 0;
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.ai-card {
  position: relative;
  padding: 1.75rem 1.5rem;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.ai-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 20px 40px rgba(76, 29, 149, 0.35);
}

.ai-card-wide {
  grid-column: span 2;
}

.ai-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  color: #fff;
  margin-bottom: 1.1rem;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.ai-card-icon svg {
  width: 24px;
  height: 24px;
}

.ai-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  color: #f8fafc;
  margin: 0;
}

/* From ... chips */
.ai-spectrum {
  margin: 4rem auto 0;
  text-align: center;
}

.ai-spectrum-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 1.1rem;
}

.ai-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.ai-chips span {
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e0e7ff;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(129, 140, 248, 0.35);
}

/* Goal */
.ai-goal {
  margin: 4rem auto 0;
  max-width: 960px;
  padding: 2.5rem 2rem;
  border-radius: 24px;
  text-align: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18) 0%, rgba(124, 58, 237, 0.18) 100%);
  border: 1px solid rgba(165, 180, 252, 0.25);
}

.ai-goal-lead {
  font-size: 1.45rem;
  color: #e2e8f0;
  margin: 0 0 1.75rem;
}

.ai-goal-lead strong {
  color: #fff;
}

.ai-outcomes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.ai-outcomes div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: #f1f5f9;
}

.ai-outcome-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(103, 232, 249, 0.35);
}

/* Tagline */
.ai-tagline {
  margin-top: 4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.2rem;
  text-align: center;
}

.ai-tagline span {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: linear-gradient(90deg, #ffffff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ai-tagline span:nth-child(even) {
  background: linear-gradient(90deg, #67e8f9 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Responsive */
@media (max-width: 1024px) {
  .ai-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-card-wide { grid-column: span 2; }
  .ai-header h2 { font-size: 2.4rem; }
  .ai-tagline span { font-size: 1.5rem; }
}

@media (max-width: 600px) {
  .ai-section { padding: 4rem 1rem; }
  .ai-grid { grid-template-columns: 1fr; }
  .ai-card-wide { grid-column: auto; }
  .ai-header h2 { font-size: 2rem; }
  .ai-outcomes { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }
  .ai-goal { padding: 2rem 1.25rem; }
  .ai-goal-lead { font-size: 1.2rem; }
  .ai-tagline { flex-direction: column; }
  .ai-tagline span { font-size: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ai-pulse, .ai-gradient-text { animation: none; }
}

/* ---------- Anchor offset for sticky navbar ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

/* ---------- AI-styled feature cards ---------- */
.features-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(124, 58, 237, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 100%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
    var(--bg-primary);
}

.features-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(99, 102, 241, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  pointer-events: none;
}

.features-section .section-header,
.features-section .features-grid {
  position: relative;
  z-index: 1;
}

.ai-feature-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7c3aed;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.25);
  margin-bottom: 1.25rem;
}

.features-section .feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
  border-radius: 20px;
  background:
    linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
    linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(124, 58, 237, 0.25), rgba(6, 182, 212, 0.25)) border-box;
  overflow: hidden;
  isolation: isolate;
}

/* soft corner glow */
.features-section .feature-card::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.18) 0%, transparent 70%);
  z-index: -1;
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 0.6;
}

/* sparkle mark */
.features-section .feature-card::after {
  content: '✦';
  position: absolute;
  top: 1.4rem;
  right: 1.5rem;
  font-size: 1.1rem;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.7;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.features-section .feature-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  background:
    linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
    linear-gradient(135deg, #2563eb, #7c3aed, #06b6d4) border-box;
  box-shadow: 0 20px 45px rgba(99, 102, 241, 0.18);
}

.features-section .feature-card:hover::before {
  transform: scale(1.6);
  opacity: 1;
}

.features-section .feature-card:hover::after {
  transform: rotate(90deg) scale(1.2);
  opacity: 1;
}

.features-section .feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 55%, #06b6d4 100%);
  background-size: 200% 200%;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.35);
  animation: aiIconShift 6s ease infinite;
}

.features-section .feature-icon svg {
  width: 28px;
  height: 28px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.features-section .feature-card:hover .feature-icon {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 14px 32px rgba(124, 58, 237, 0.45);
}

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

.features-section .feature-card h3 {
  font-weight: 700;
}

.ai-feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  margin-top: auto;
  padding: 0.35rem 0.8rem 0.35rem 0.35rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6d28d9;
  background: rgba(124, 58, 237, 0.07);
  border: 1px solid rgba(124, 58, 237, 0.18);
}

.features-section .feature-card p {
  margin-bottom: 1.25rem;
}

.ai-feature-tag-ai {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

body.dark-theme .ai-feature-eyebrow,
body.dark-theme .ai-feature-tag {
  color: #c4b5fd;
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(167, 139, 250, 0.3);
}

@media (prefers-reduced-motion: reduce) {
  .features-section .feature-icon { animation: none; }
}

/* =========================================================
   SITE-WIDE MODERN LAYER
   ========================================================= */
:root {
  --ai-blue: #2563eb;
  --ai-violet: #7c3aed;
  --ai-cyan: #06b6d4;
  --ai-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 55%, #06b6d4 100%);
  --ai-gradient-soft: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(124, 58, 237, 0.25), rgba(6, 182, 212, 0.25));
  /* previously undefined tokens referenced by index-modern.css */
  --primary-color: #2563eb;
  --primary-hover: #7c3aed;
  --primary-light: #60a5fa;
  --br-base: 20px;
  --br-5xs: 10px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(124, 58, 237, 0.2);
}

/* ---------- Section headers ---------- */
.section-eyebrow,
.ai-feature-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7c3aed;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.22);
  margin-bottom: 1.25rem;
}

body.dark-theme .section-eyebrow,
body.dark-theme .ai-feature-eyebrow {
  color: #c4b5fd;
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(167, 139, 250, 0.3);
}

.section-header {
  max-width: 720px;
}

.section-header h2 {
  font-size: 2.75rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-primary) 40%, #4f46e5 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Section rhythm */
.features-section,
.solutions-section,
.benefits-section,
.usecase-section,
.pricing-section,
.contact-section,
.company-section {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

/* Shared gradient-border card treatment */
.solution-card,
.benefit-item,
.usecase-card,
.pricing-card,
.company-info,
.value-card,
.contact-form,
.stat {
  border: 1px solid transparent;
  border-radius: 20px;
  background:
    linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
    var(--ai-gradient-soft) border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.solution-card:hover,
.benefit-item:hover,
.usecase-card:hover,
.company-info:hover,
.value-card:hover,
.stat:hover {
  transform: translateY(-6px);
  border-color: transparent;
  background:
    linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
    var(--ai-gradient) border-box;
  box-shadow: 0 20px 45px rgba(99, 102, 241, 0.16);
}

/* Shared gradient icon tile */
.stat-icon,
.solution-icon,
.benefit-icon,
.usecase-icon-svg,
.contact-icon-svg {
  color: #fff;
  background: var(--ai-gradient);
  background-size: 200% 200%;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-icon svg,
.solution-icon svg,
.benefit-icon svg,
.usecase-icon-svg svg,
.contact-icon-svg svg {
  width: 26px;
  height: 26px;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.dark-theme .stat-icon,
body.dark-theme .usecase-icon-svg,
body.dark-theme .contact-icon-svg {
  background: var(--ai-gradient);
}

/* ---------- Navbar ---------- */
.navbar {
  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: transparent;
  transition: box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.navbar.is-scrolled {
  border-bottom-color: var(--border-color);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

body.dark-theme .navbar {
  background-color: rgba(15, 23, 42, 0.75);
}

.navbar-menu {
  gap: 0.35rem;
}

.nav-link {
  position: relative;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border-bottom: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(124, 58, 237, 0.08);
  border-bottom: none;
}

.nav-link[href="#ai"] {
  color: #7c3aed;
}

.nav-link[href="#ai"]::before {
  content: '✦ ';
}

body.dark-theme .nav-link[href="#ai"] {
  color: #c4b5fd;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .navbar-container { position: relative; }

  .nav-toggle { display: inline-flex; }

  .navbar-brand { flex: 1; }

  .navbar .navbar-menu {
    display: flex;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.75rem 1rem 1.25rem;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  body.nav-open .navbar .navbar-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .navbar .nav-link {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 1rem;
  }
}

/* ---------- Hero polish ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(124, 58, 237, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(6, 182, 212, 0.1) 0%, transparent 40%),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero-content {
  align-items: center;
}

.hero-footnote {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.hero-image img {
  filter: drop-shadow(0 30px 60px rgba(99, 102, 241, 0.25));
}

/* ---------- Stats ---------- */
.stats-section {
  position: relative;
  padding: 4rem 2rem;
  background: var(--bg-secondary);
  border-bottom: none;
}

.stats-container {
  gap: 1.5rem;
}

.stat {
  padding: 2rem 1.5rem;
  gap: 0.5rem;
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin-bottom: 0.75rem;
  animation: none;
}

.stat-number {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--ai-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
}

/* ---------- Solutions ---------- */
.solutions-section {
  background: var(--bg-secondary);
}

.solutions-grid {
  max-width: 1280px;
  margin-top: 0;
}

.solution-card {
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.solution-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  border-radius: 20px;
  align-items: center;
}

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

.solution-card:hover .solution-icon {
  transform: scale(1.08) rotate(-4deg);
}

.solution-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

/* ---------- Benefits ---------- */
.benefits-section {
  background:
    radial-gradient(circle at 0% 50%, rgba(37, 99, 235, 0.06) 0%, transparent 40%),
    var(--bg-primary);
}

.benefit-item {
  position: relative;
  padding: 2.25rem 2rem;
  overflow: hidden;
}

.benefit-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin-bottom: 0.25rem;
}

.benefit-number {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(124, 58, 237, 0.25);
  transition: -webkit-text-stroke-color 0.3s ease;
}

.benefit-item:hover .benefit-number {
  -webkit-text-stroke-color: rgba(124, 58, 237, 0.6);
}

.benefit-item h3 {
  font-weight: 700;
}

.benefit-item:hover .benefit-icon {
  transform: scale(1.08) rotate(-4deg);
}

/* ---------- Use cases ---------- */
.usecase-section {
  background: var(--bg-secondary);
}

.usecase-card {
  position: relative;
  padding: 2.75rem 2rem 2rem;
  overflow: hidden;
}

.usecase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--ai-gradient);
}

.usecase-icon-svg {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  margin: 0 auto 1.5rem;
}

.usecase-card h3 {
  font-weight: 700;
}

.usecase-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  font-weight: 500;
  color: var(--text-primary);
}

/* ---------- Pricing ---------- */
.pricing-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
    var(--bg-primary);
}

.pricing-card {
  padding: 2.75rem 2.5rem;
  background:
    linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
    var(--ai-gradient) border-box;
  box-shadow: 0 30px 60px rgba(99, 102, 241, 0.14);
}

.pricing-card:hover {
  box-shadow: 0 36px 70px rgba(99, 102, 241, 0.22);
}

.pricing-header {
  text-align: center;
}

.pricing-header h3 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--ai-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pricing-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
}

.pricing-features li {
  color: var(--text-primary);
  font-weight: 500;
}

.check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #fff;
  background: var(--ai-gradient);
}

.pricing-card .btn-primary,
.contact-form .btn-primary {
  height: auto;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: 1rem;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.pricing-card .btn-primary:hover,
.contact-form .btn-primary:hover {
  box-shadow: 0 14px 32px rgba(99, 102, 241, 0.45);
  transform: translateY(-2px);
}

.pricing-note {
  border-top-color: var(--border-color);
}

@media (max-width: 600px) {
  .pricing-features { grid-template-columns: 1fr; }
  .pricing-card { padding: 2rem 1.5rem; }
}

/* ---------- CTA ---------- */
.cta-section {
  padding: 6rem 2rem;
  background: radial-gradient(ellipse at top, #312e81 0%, #1e1b4b 45%, #0f172a 100%);
}

.cta-section::before {
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.55) 0%, transparent 70%);
  filter: blur(40px);
}

.cta-section::after {
  bottom: -140px;
  left: -60px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.45) 0%, transparent 70%);
  filter: blur(40px);
}

.cta-section h2 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ffffff 0%, #c7d2fe 50%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-section p {
  color: #cbd5e1;
  font-size: 1.15rem;
}

.cta-section .btn {
  height: auto;
  border-radius: 12px;
}

.cta-section .btn-primary {
  background: #fff;
  color: #4338ca;
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.15);
}

/* ---------- Contact ---------- */
.contact-section {
  background: var(--bg-secondary);
}

.contact-container {
  align-items: start;
}

.contact-info {
  gap: 1rem;
}

.contact-item {
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-radius: 18px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact-item:hover {
  transform: translateX(4px);
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.12);
}

.contact-icon-svg {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

.contact-details h4 {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 0.25rem;
}

.contact-details a,
.contact-details p {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
}

.contact-details a:hover {
  color: #7c3aed;
}

.contact-form {
  padding: 2.5rem;
  gap: 1.1rem;
  box-shadow: 0 30px 60px rgba(99, 102, 241, 0.1);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.95rem 1.1rem;
  border-radius: 12px;
  border: 1.5px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.98rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #7c3aed;
  background: var(--card-bg);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

@media (max-width: 600px) {
  .contact-form { padding: 1.75rem 1.25rem; }
  .contact-item { padding: 1rem; }
}

/* ---------- Company ---------- */
.company-section {
  background:
    radial-gradient(circle at 100% 0%, rgba(124, 58, 237, 0.07) 0%, transparent 40%),
    var(--bg-primary);
}

.company-content {
  max-width: 1280px;
  margin-top: 0;
  gap: 2rem;
}

.company-info {
  position: relative;
  padding: 2.5rem 2rem 2rem;
  overflow: hidden;
}

.company-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2rem;
  width: 48px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--ai-gradient);
  transition: width 0.4s ease;
}

.company-info:hover::before {
  width: calc(100% - 4rem);
}

.company-info h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

.team-section {
  max-width: 1280px;
  margin-top: 5rem;
}

.team-section h3 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.value-card {
  padding: 2.25rem 1.75rem;
}

.value-number {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--ai-gradient);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
  font-weight: 800;
}

.value-card h4 {
  font-weight: 700;
  font-size: 1.15rem;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  padding: 5rem 2rem 1.5rem;
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  border-top: none;
  color: #cbd5e1;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ai-gradient);
}

.footer-content {
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.6fr;
  gap: 2.5rem;
}

.footer-section h3 {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(90deg, #ffffff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-section h4 {
  color: #f8fafc;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer-section p,
.footer-section a {
  color: #94a3b8;
}

.footer-section a:hover {
  color: #fff;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.social-links a:hover {
  background: var(--ai-gradient);
  border-color: transparent;
  transform: translateY(-3px);
}

.footer-map iframe {
  width: 100%;
  height: 180px;
  border: 0;
  border-radius: 16px;
  filter: grayscale(0.2);
}

.footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.08);
  color: #64748b;
}

@media (max-width: 1024px) {
  .footer-content { grid-template-columns: 1fr 1fr; }
  .footer-content .footer-section:first-child,
  .footer-map { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .footer { padding: 3.5rem 1rem 1.5rem; }
}

/* ---------- Responsive typography ---------- */
@media (max-width: 768px) {
  .section-header h2 { font-size: 2rem; }
  .cta-section h2 { font-size: 2.1rem; }
  .features-section,
  .solutions-section,
  .benefits-section,
  .usecase-section,
  .pricing-section,
  .contact-section,
  .company-section,
  .cta-section,
  .ai-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ---------- Contact form status ---------- */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-status {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-status.is-success {
  color: #065f46;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.contact-status.is-error {
  color: #991b1b;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

body.dark-theme .contact-status.is-success { color: #6ee7b7; }
body.dark-theme .contact-status.is-error { color: #fca5a5; }

.contact-form { position: relative; }
.contact-form button[disabled] { opacity: 0.7; cursor: wait; }

/* ---------- Contact layout without the form ---------- */
.contact-form[hidden] { display: none !important; }

.contact-container.contact-no-form {
  grid-template-columns: 1fr;
}

.contact-no-form .contact-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.contact-no-form .contact-item {
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.75rem 1.5rem;
}

.contact-no-form .contact-item:hover {
  transform: translateY(-4px);
}

.contact-no-form .contact-details a {
  word-break: break-word;
}

@media (max-width: 1024px) {
  .contact-no-form .contact-info { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .contact-no-form .contact-info { grid-template-columns: 1fr; }
}

/* keep form fields inside the card (for when the form is re-enabled) */
.form-group input,
.form-group textarea {
  box-sizing: border-box;
  max-width: 100%;
}
