:root {
  --color-primary: #2cc295;
  --color-primary-hover: #25a87d;
  --color-accent: #1004c2;
  --ai-purple-rgb: 147, 51, 234;
  --ai-purple: #9333ea;
}

/* Light Theme Gradient Background */
html,
body {
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 60%, #d5dff5 100%);
  min-height: 100vh;
}

body {
  background-attachment: fixed;
}

/* Shimmer Animation for Title */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.shimmer-text {
  background: linear-gradient(90deg, #2cc295 0%, #948eed 100%);
  background-size: 1000px 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s infinite;
  overflow: visible;
  line-height: 1.2;
  padding-bottom: 0.1em;
}

/* Logo Hover Effect */
@keyframes logoHover {
  0% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.1) rotate(3deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

.logo-hover:hover {
  animation: logoHover 0.6s ease-in-out;
  filter: drop-shadow(0 10px 15px rgba(33, 201, 209, 0.3));
}

/* Logo image retains original ratio but fits nav */
.logo-mark {
  height: 40px;
  width: auto;
}

/* Fade-in Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in-delay-1 {
  animation: fadeInUp 0.6s ease-out 0.2s forwards;
  opacity: 0;
}

.fade-in-delay-2 {
  animation: fadeInUp 0.6s ease-out 0.4s forwards;
  opacity: 0;
}

.fade-in-delay-3 {
  animation: fadeInUp 0.6s ease-out 0.6s forwards;
  opacity: 0;
}

/* Dark Theme Support */
.dark,
.dark html,
.dark body {
  background: linear-gradient(
    135deg,
    #0d0d0d 0%,
    #1a0933 25%,
    #111827 50%,
    #0f172a 75%,
    #0d0d0d 100%
  );
  background-attachment: fixed;
  color: #f9fafb;
}

.dark header {
  background: transparent;
  border-bottom: 1px solid rgba(var(--ai-purple-rgb), 0.2);
}

.dark h1,
.dark h2,
.dark h3,
.dark p {
  color: #f9fafb;
}

.dark .shimmer-text {
  background: linear-gradient(90deg, #c084fc, #9333ea, #c084fc);
  background-size: 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dark .hero-badge {
  background-color: rgba(147, 51, 234, 0.1);
  color: #c084fc;
  border: 1px solid rgba(var(--ai-purple-rgb), 0.3);
}

.dark main {
  background: transparent;
}

.dark section {
  background: transparent !important;
}

.dark .bg-gray-50 {
  background-color: rgba(147, 51, 234, 0.05) !important;
  border: 1px solid rgba(var(--ai-purple-rgb), 0.2);
}

.dark .bg-white {
  background-color: rgba(147, 51, 234, 0.08) !important;
  border: 1px solid rgba(var(--ai-purple-rgb), 0.15);
}

.dark article {
  background-color: rgba(147, 51, 234, 0.05) !important;
  border: 1px solid rgba(var(--ai-purple-rgb), 0.2);
}

.dark .text-gray-900 {
  color: #f9fafb;
}

.dark .text-gray-600 {
  color: #d1d5db;
}

.dark .text-accent {
  color: #c084fc;
}

.dark .border-gray-300 {
  border-color: rgba(var(--ai-purple-rgb), 0.3);
}

.dark input[type="email"] {
  background-color: rgba(147, 51, 234, 0.1);
  color: #f9fafb;
  border-color: rgba(var(--ai-purple-rgb), 0.3);
}

.dark input[type="email"]::placeholder {
  color: #9ca3af;
}

.dark input[type="email"]:hover {
  border-color: rgba(var(--ai-purple-rgb), 0.8);
  box-shadow:
    0 4px 6px -1px rgba(var(--ai-purple-rgb), 0.3),
    0 2px 4px -2px rgba(var(--ai-purple-rgb), 0.3);
}

.dark input[type="email"]:focus {
  border-color: var(--ai-purple);
  box-shadow:
    0 4px 6px -1px rgba(var(--ai-purple-rgb), 0.4),
    0 2px 4px -2px rgba(var(--ai-purple-rgb), 0.4);
}

.dark button {
  transition: all 0.3s ease;
}

.dark .btn-primary {
  background-color: var(--ai-purple);
  color: #ffffff;
  border-color: var(--ai-purple);
}

.dark .btn-primary:hover {
  background-color: #a855f7;
  border-color: #a855f7;
  box-shadow:
    0 4px 6px -1px rgba(var(--ai-purple-rgb), 0.4),
    0 2px 4px -2px rgba(var(--ai-purple-rgb), 0.4);
}

.dark a {
  color: #c084fc;
}

.dark a:hover {
  color: #a855f7;
}

/* Primary CTA buttons */
.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--color-primary);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(33, 201, 209, 0.3);
}

/* Accent text */
.text-accent {
  color: var(--color-accent);
}

/* Hero badge styling */
.hero-badge {
  background-color: #dae3ff;
  color: var(--color-accent);
  transition: all 0.2s ease;
  text-align: center;
}

@media (max-width: 640px) {
  .hero-badge {
    line-height: 1.5;
  }
}

/* Hero chips for first impression */
@keyframes floatSoftly {
  0% {
    transform: translateY(0px);
    box-shadow: 0 10px 30px rgba(20, 71, 230, 0.12);
  }
  50% {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(68, 189, 161, 0.2);
  }
  100% {
    transform: translateY(0px);
    box-shadow: 0 10px 30px rgba(20, 71, 230, 0.12);
  }
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(20, 71, 230, 0.15);
  background: linear-gradient(
    135deg,
    rgba(68, 189, 161, 0.12),
    rgba(20, 71, 230, 0.14)
  );
  color: #0f172a;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  animation: floatSoftly 6s ease-in-out infinite;
}

/* Step items styling */
.step-item {
  display: block;
}

@media (min-width: 769px) {
  .step-item {
    display: block;
  }
  
  .step-item .step-number {
    margin-bottom: 0.5rem;
  }
}

.hero-chip:nth-child(2) {
  animation-delay: 0.4s;
}

.hero-chip:nth-child(3) {
  animation-delay: 0.8s;
}

.hero-chip .chip-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 10px 20px rgba(0, 0, 0, 0.05);
}

.hero-chip .chip-icon svg {
  width: 18px;
  height: 18px;
  color: #1447e6;
}

.dark .hero-chip {
  border-color: rgba(var(--ai-purple-rgb), 0.3);
  background: linear-gradient(
    135deg,
    rgba(147, 51, 234, 0.16),
    rgba(68, 189, 161, 0.16)
  );
  color: #f9fafb;
}

.dark .hero-chip .chip-icon {
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 20px rgba(0, 0, 0, 0.3);
}

.dark .hero-chip .chip-icon svg {
  color: #c084fc;
}

/* Icon container (48x48 with thick border) */
.icon-box {
  /* width: 48px;
  height: 48px; */
  width: 60px;
  height: 60px;
  border: 8px solid #f5f7fe;
  background: #d8e1fe;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* Inner icon circle */
.icon-circle {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: #d8e1fe;
  /* border: 1.75px solid #1447e6; */

  display: flex;
  align-items: center;
  justify-content: center;
}

/* SVG inside */
.icon-circle svg {
  width: 14px;
  height: 14px;
  color: #1447e6;
}

/* Dark Theme Icon Styling */
.dark .icon-box {
  border: 8px solid rgba(147, 51, 234, 0.08);
  background: rgba(147, 51, 234, 0.02);
}

.dark .icon-circle {
  background: rgba(147, 51, 234, 0.12);
}

.dark .icon-circle img {
  filter: hue-rotate(265deg) saturate(1.2) brightness(1.1);
}

/* Footer Styling */
.footer-copyright {
  text-align: center;
  padding: 24px 20px;
  background: transparent;
  font-size: 0.9rem;
  color: #666666;
  margin-top: 40px;
}

.dark .footer-copyright {
  color: #9ca3af;
  box-shadow: inset 0 1px 0 rgba(147, 51, 234, 0.1);
}

.footer-copyright a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-copyright a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

.dark .footer-copyright a {
  color: #c084fc;
}

.dark .footer-copyright a:hover {
  color: #a855f7;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Tablet (min-width: 641px and max-width: 768px) */
@media (min-width: 641px) and (max-width: 768px) {
  /* Steps section - 2 columns on tablet */
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .step-item {
    display: block;
    text-align: center;
  }

  .step-item .step-number {
    margin-bottom: 0.5rem;
  }
}

/* Tablet and below (max-width: 768px) */
@media (max-width: 768px) {
  /* Section spacing adjustments */
  section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  /* Typography adjustments */
  h2 {
    font-size: 1.75rem;
    line-height: 1.3;
  }
}

/* Mobile (max-width: 640px) */
@media (max-width: 640px) {
  /* Disable floating animation on mobile for performance */
  .hero-chip {
    animation: none;
    transform: none;
  }

  /* Sticky header with blur */
  header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  /* Paragraph text containment - only for centered section paragraphs */
  section > .text-center > p,
  section > div > .text-center > p,
  section.text-center > p {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  /* Reset for paragraphs inside cards/articles and text-content blocks */
  article p,
  .text-content p {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  /* Smaller icons on mobile */
  .icon-box {
    width: 48px;
    height: 48px;
    border-width: 6px;
  }

  .icon-circle {
    width: 22px;
    height: 22px;
  }

  /* Full-width form elements */
  form input,
  form button {
    width: 100%;
  }

  /* Smaller hero chips */
  .hero-chip {
    padding: 8px 12px;
    font-size: 0.85rem;
    gap: 8px;
  }

  .hero-chip .chip-icon {
    width: 28px;
    height: 28px;
  }

  .hero-chip .chip-icon svg {
    width: 14px;
    height: 14px;
  }

  /* Hero image adjustments */
  #early-access img {
    border-radius: 12px;
  }

  /* Hero section mobile adjustments */
  .hero-image-container {
    height: 280px;
  }

  /* Reduce section vertical padding on mobile */
  .section-padding {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  /* Steps grid - single column on mobile */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Step items styling for mobile */
  .step-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
    padding: 1rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }

  .step-item .step-number {
    flex-shrink: 0;
    min-width: 2rem;
  }

  .step-item p {
    max-width: 100%;
    margin: 0;
  }

  /* CTA section mobile adjustments */
  .cta-card {
    padding: 1.5rem;
    margin: 0 0.5rem;
  }

  /* Analytics section - image below text on mobile */
  .analytics-section {
    display: flex;
    flex-direction: column;
  }

  .analytics-section figure {
    order: 2;
    margin-top: 2rem;
  }

  /* Built for section - vertical layout */
  .built-for-grid {
    gap: 2rem;
  }

  /* Features grid adjustments */
  .features-grid article {
    padding: 1.25rem;
  }
}

/* Small mobile (max-width: 480px) */
@media (max-width: 480px) {
  /* Even smaller typography for very small screens */
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  /* Reduce horizontal padding */
  .container-padding {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Hero badge adjustments */
  .hero-badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }

  /* Hero chips wrap better */
  .hero-chips-container {
    gap: 0.5rem;
  }

  .hero-chip {
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  /* Form button text size */
  .btn-primary {
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
  }

  /* Footer adjustments */
  .footer-copyright {
    font-size: 0.8rem;
    padding: 1rem;
  }
}
