/* ============================================================
   CVai Landing Page – Pure CSS (no Tailwind)
   Color tokens resolved from the design system:
     background:        hsl(220 40% 7%)      = #0B1120
     foreground:        hsl(210 20% 95%)      = #EDF0F4
     card:              hsl(220 35% 10%)      = #111827
     primary:           hsl(174 72% 52%)      = #25D0AB
     primary-foreground:hsl(220 40% 7%)       = #0B1120
     muted-foreground:  hsl(215 15% 55%)      = #7E8A9A
     border:            hsl(220 20% 18%)      = #253040
   Fonts: Inter (body), Space Grotesk (headings)
   ============================================================ */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background-color: #0b1120;
  color: #edf0f4;
  line-height: 1.5;
  min-height: 100vh;
}

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(37, 48, 64, 0.5);
  background-color: rgba(11, 17, 32, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.navbar-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background-color: #25d0ab;
}

.navbar-brand-icon svg {
  width: 1rem;
  height: 1rem;
  color: #0b1120;
}

.navbar-brand-name {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #edf0f4;
}

.navbar-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.navbar-links a {
  font-size: 0.875rem;
  color: #7e8a9a;
  transition: color 0.2s ease;
}

.navbar-links a:hover {
  color: #edf0f4;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.2s ease, transform 0.15s ease;
  background-color: #25d0ab;
  color: #0b1120;
}

.btn:hover {
  background-color: #20bfa0;
}

.btn:focus-visible {
  outline: 2px solid #25d0ab;
  outline-offset: 2px;
}

.btn-sm {
  height: 2.25rem;
  padding: 0 0.75rem;
  border-radius: 0.375rem;
}

.btn-lg {
  height: 2.75rem;
  padding: 0 2rem;
  border-radius: 0.375rem;
  font-size: 1rem;
  font-weight: 600;
}

.btn-lg svg {
  transition: transform 0.2s ease;
}

.btn-lg:hover svg {
  transform: translateX(4px);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
}

/* Background glow effects */
.hero-glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.hero-glow-1 {
  position: absolute;
  left: 50%;
  top: 25%;
  width: 500px;
  height: 500px;
  transform: translateX(-50%);
  border-radius: 50%;
  background-color: rgba(37, 208, 171, 0.05);
  filter: blur(120px);
}

.hero-glow-2 {
  position: absolute;
  bottom: 25%;
  right: 25%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background-color: rgba(37, 208, 171, 0.08);
  filter: blur(100px);
}

/* Hero grid */
.hero-grid {
  position: relative;
  max-width: 72rem;
  width: 100%;
  margin: 0 auto;
  padding: 6rem 1.5rem 0;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 3rem;
}

/* Left column */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  border-radius: 9999px;
  border: 1px solid rgba(37, 208, 171, 0.2);
  background-color: rgba(37, 208, 171, 0.1);
  padding: 0.375rem 1rem;
}

.badge svg {
  width: 0.875rem;
  height: 0.875rem;
  color: #25d0ab;
  flex-shrink: 0;
}

.badge span {
  font-size: 0.75rem;
  font-weight: 500;
  color: #25d0ab;
}

/* Headline */
.hero-headline {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #edf0f4;
  text-wrap: balance;
}

.hero-headline .accent {
  color: #25d0ab;
}

/* Subheadline */
.hero-subheadline {
  max-width: 32rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: #7e8a9a;
}

/* CTA Group */
.cta-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-hint {
  font-size: 0.875rem;
  color: #7e8a9a;
}

/* Stats row */
.stats-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  border-top: 1px solid rgba(37, 48, 64, 0.5);
  padding-top: 2rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-value-row {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.stat-value-row svg {
  width: 1rem;
  height: 1rem;
  color: #25d0ab;
  flex-shrink: 0;
}

.stat-value {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #edf0f4;
}

.stat-label {
  font-size: 0.75rem;
  color: #7e8a9a;
}

/* Right column – Product visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual-inner {
  position: relative;
  width: 100%;
  max-width: 32rem;
}

/* Outer glow ring */
.hero-visual-glow {
  position: absolute;
  inset: -1rem;
  border-radius: 1rem;
  background-color: rgba(37, 208, 171, 0.1);
  filter: blur(24px);
}

/* Image container */
.hero-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(37, 48, 64, 0.5);
  background-color: #111827;
  box-shadow: 0 25px 50px -12px rgba(37, 208, 171, 0.05);
}

.hero-image-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* Floating cards */
.floating-card {
  position: absolute;
  border-radius: 0.75rem;
  border: 1px solid rgba(37, 48, 64, 0.5);
  background-color: #111827;
  padding: 0.75rem 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.floating-card-match {
  bottom: -1rem;
  left: -1rem;
}

.floating-card-keywords {
  top: -1rem;
  right: -1rem;
}

.floating-card-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.floating-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background-color: rgba(37, 208, 171, 0.15);
  flex-shrink: 0;
}

.floating-card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #25d0ab;
}

.floating-card-label {
  font-size: 0.75rem;
  color: #7e8a9a;
}

.floating-card-value {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #edf0f4;
}

/* ---------- Responsive ---------- */

/* md: 768px+ */
@media (min-width: 768px) {
  .navbar-links {
    display: flex;
  }

  .hero-headline {
    font-size: 3rem;
  }

  .floating-card-match {
    bottom: -1.5rem;
    left: -2rem;
  }

  .floating-card-keywords {
    top: -1.5rem;
    right: -2rem;
  }
}

/* sm: 640px+ */
@media (min-width: 640px) {
  .cta-group {
    flex-direction: row;
    align-items: center;
  }
}

/* lg: 1024px+ */
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding-top: 0;
  }

  .hero-headline {
    font-size: 3.75rem;
  }
}
