/* ============================================
   Anyone Can AI — Design System
   Blue trust palette, clean & professional
   ============================================ */

:root {
  /* Primary blues */
  --navy-900: #0B1A2E;
  --navy-800: #0F2440;
  --navy-700: #153157;
  --navy-600: #1B3F6E;
  
  /* Accent */
  --blue-500: #2563EB;
  --blue-400: #3B82F6;
  --blue-300: #60A5FA;
  
  /* Light tints */
  --sky-100: #E0F2FE;
  --sky-50: #F0F9FF;
  --slate-50: #F8FAFC;
  
  /* Neutrals */
  --slate-900: #0F172A;
  --slate-700: #334155;
  --slate-500: #64748B;
  --slate-300: #CBD5E1;
  --slate-100: #F1F5F9;
  --white: #FFFFFF;
  
  /* Semantic */
  --success: #10B981;
  --warning: #F59E0B;
  
  /* Typography */
  --font-display: 'DM Sans', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Spacing */
  --section-py: 5rem;
  --container-max: 1200px;
  --container-px: 1.5rem;
  
  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* ============================================
   Reset & Base
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--slate-700);
  line-height: 1.7;
  font-size: 16px;
  background: var(--white);
}

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

a {
  color: var(--blue-500);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--blue-400);
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--slate-900);
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

p {
  margin-bottom: 1rem;
}

/* ============================================
   Layout
   ============================================ */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.section {
  padding: var(--section-py) 0;
}

.section--dark {
  background: var(--navy-900);
  color: var(--white);
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section--dark p {
  color: var(--slate-300);
}

.section--light {
  background: var(--sky-50);
}

.section--muted {
  background: var(--slate-50);
}

/* ============================================
   Video Embed
   ============================================ */

.video-embed {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-100);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--container-px);
  max-width: var(--container-max);
  margin: 0 auto;
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__logo span {
  color: var(--blue-500);
}

.nav__logo-img {
  height: 32px;
  width: auto;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  color: var(--slate-700);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--blue-500);
}

.nav__cta {
  background: var(--blue-500);
  color: var(--white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.nav__cta:hover {
  background: var(--blue-400);
  color: var(--white) !important;
}

/* Mobile nav */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--slate-700);
}

@media (max-width: 768px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem var(--container-px);
    border-bottom: 1px solid var(--slate-100);
    gap: 0.5rem;
  }
  .nav__links.active { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 0.75rem 0; }
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn--primary {
  background: var(--blue-500);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--blue-400);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn--secondary {
  background: var(--white);
  color: var(--blue-500);
  border: 2px solid var(--blue-500);
}

.btn--secondary:hover {
  background: var(--sky-50);
  color: var(--blue-500);
}

.btn--dark {
  background: var(--white);
  color: var(--navy-900);
}

.btn--dark:hover {
  background: var(--sky-50);
  color: var(--navy-900);
}

.btn--large {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
}

/* ============================================
   Cards
   ============================================ */

.card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.25s;
}

.card:hover {
  border-color: var(--blue-300);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.08);
  transform: translateY(-2px);
}

.card__icon {
  width: 48px;
  height: 48px;
  background: var(--sky-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}

.card__icon svg,
.card__icon i,
.card__icon [data-lucide] {
  width: 24px;
  height: 24px;
  color: var(--blue-600);
  stroke-width: 1.75;
}

.card__title {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.card__desc {
  color: var(--slate-500);
  font-size: 0.95rem;
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

/* ============================================
   Hero
   ============================================ */

.hero {
  background: var(--navy-900);
  color: var(--white);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero__sub {
  font-size: 1.15rem;
  color: var(--slate-300);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================
   Stats
   ============================================ */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  text-align: center;
  padding: 3rem 0;
}

.stat__number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--blue-500);
  line-height: 1;
}

.section--dark .stat__number {
  color: var(--blue-300);
}

.stat__label {
  font-size: 0.9rem;
  color: var(--slate-500);
  margin-top: 0.5rem;
}

.section--dark .stat__label {
  color: var(--slate-300);
}

/* ============================================
   Testimonial
   ============================================ */

.testimonial {
  background: var(--sky-50);
  border-left: 4px solid var(--blue-500);
  padding: 1.5rem 2rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2rem 0;
}

.testimonial__quote {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--slate-700);
  margin-bottom: 0.75rem;
}

.testimonial__author {
  font-weight: 600;
  color: var(--slate-900);
  font-size: 0.9rem;
}

/* ============================================
   Forms
   ============================================ */

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--slate-700);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

/* ============================================
   Pricing Table
   ============================================ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.pricing-card--featured {
  border-color: var(--blue-500);
  border-width: 2px;
  position: relative;
}

.pricing-card--featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-500);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
}

.pricing-card__price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-500);
  margin-bottom: 0.5rem;
}

.pricing-card__price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--slate-500);
}

.pricing-card__desc {
  color: var(--slate-500);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.pricing-card__features {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.pricing-card__features li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--slate-700);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.pricing-card__features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================
   FAQ Accordion
   ============================================ */

.faq-item {
  border-bottom: 1px solid var(--slate-100);
}

.faq-item summary {
  padding: 1.25rem 0;
  font-weight: 600;
  color: var(--slate-900);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--blue-500);
  font-weight: 300;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item__answer {
  padding: 0 0 1.25rem;
  color: var(--slate-500);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   Blog
   ============================================ */

.blog-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.25s;
  text-decoration: none;
}

.blog-card:hover {
  border-color: var(--blue-300);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.08);
  transform: translateY(-2px);
}

.blog-card__date {
  font-size: 0.8rem;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.blog-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-card__excerpt {
  color: var(--slate-500);
  font-size: 0.9rem;
  line-height: 1.6;
}

.blog-card__read-time {
  font-size: 0.8rem;
  color: var(--blue-500);
  font-weight: 600;
  margin-top: 1rem;
}

/* Blog post layout */
.blog-post {
  max-width: 740px;
  margin: 0 auto;
  padding: 3rem var(--container-px);
}

.blog-post__meta {
  color: var(--slate-500);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.blog-post h1 {
  margin-bottom: 1rem;
}

.blog-post h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.blog-post h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--navy-900);
  color: var(--slate-300);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer__brand span {
  color: var(--blue-400);
}

.footer__desc {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 0.5rem;
}

.footer__links a {
  color: var(--slate-300);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--blue-300);
}

.footer__bottom {
  border-top: 1px solid var(--navy-700);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--slate-500);
  text-align: center;
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Utilities
   ============================================ */

.text-center { text-align: center; }
.text-white { color: var(--white); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Smooth fade-in on load */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeUp 0.6s ease-out forwards;
}

.animate-in--delay {
  animation-delay: 0.15s;
  opacity: 0;
}

/* ============================================
   Mobile — Tablet (768px)
   ============================================ */

@media (max-width: 768px) {
  .hero {
    padding: 4rem 0 3.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero__sub {
    font-size: 1rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .section {
    padding: 3.5rem 0;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 2rem 0;
  }

  .stat__number {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .testimonial__quote {
    font-size: 1.05rem;
  }
}

/* ============================================
   Mobile — Phone (480px)
   ============================================ */

@media (max-width: 480px) {
  .hero {
    padding: 3rem 0 2.5rem;
  }

  .hero h1 {
    font-size: 1.65rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .card {
    padding: 1.5rem;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .stat__number {
    font-size: 1.75rem;
  }

  .stat__label {
    font-size: 0.8rem;
  }

  .btn--large {
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }
}
