/* ============================================
   RyterAi — Page-Specific Styles
   ============================================ */

/* ── Hero Sections ── */
.hero {
  padding: var(--space-32) 0 var(--space-20);
  position: relative;
  overflow: hidden;
}

.hero--home {
  background: var(--gradient-hero);
  color: var(--color-white);
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + var(--space-16));
}

.hero--page {
  background: var(--gradient-hero);
  color: var(--color-white);
  padding: calc(var(--header-height) + var(--space-16)) 0 var(--space-16);
  text-align: center;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero--home .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.hero__title {
  margin-bottom: var(--space-6);
  color: var(--color-white);
}

.hero__subtitle {
  font-size: var(--font-size-xl);
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  margin-bottom: var(--space-8);
  line-height: var(--line-height-relaxed);
}

.hero--page .hero__subtitle {
  margin-left: auto;
  margin-right: auto;
  max-width: 700px;
}

.hero__buttons {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero--page .hero__buttons {
  justify-content: center;
}

.hero__trust {
  margin-top: var(--space-8);
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero__trust-icon {
  color: var(--color-warning);
}

.hero__image {
  position: relative;
  z-index: 2;
}

.hero__image img {
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(37, 99, 235, 0.15);
  width: 100%;
}

.hero--page .hero__image {
  margin-top: var(--space-12);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Decorative orbs */
.hero--home::before,
.hero--home::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
}

.hero--home::before {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25), transparent 70%);
  top: -200px;
  right: -100px;
  animation: heroFloat 8s ease-in-out infinite;
}

.hero--home::after {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.2), transparent 70%);
  bottom: -150px;
  left: -100px;
  animation: heroFloat 10s ease-in-out infinite reverse;
}

.hero--page::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15), transparent 70%);
  top: -200px;
  right: -100px;
  filter: blur(80px);
  pointer-events: none;
}

.hero--page::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12), transparent 70%);
  bottom: -100px;
  left: -100px;
  filter: blur(80px);
  pointer-events: none;
}

@keyframes heroFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(20px, -25px) scale(1.05);
  }
  66% {
    transform: translate(-15px, 15px) scale(0.95);
  }
}

/* Hero responsive */
@media (max-width: 1024px) {
  .hero--home .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero--home {
    min-height: auto;
    padding-bottom: var(--space-16);
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__buttons {
    justify-content: center;
  }

  .hero__trust {
    justify-content: center;
  }

  .hero__image {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: calc(var(--header-height) + var(--space-10));
  }

  .hero--page {
    padding-top: calc(var(--header-height) + var(--space-10));
    padding-bottom: var(--space-10);
  }

  .hero__title {
    font-size: var(--font-size-3xl);
  }

  .hero__subtitle {
    font-size: var(--font-size-base);
  }
}

/* ── CTA Sections ── */
.cta-section {
  text-align: center;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-size-lg);
  max-width: 600px;
  margin: 0 auto var(--space-8);
}

.cta-section .hero__buttons {
  justify-content: center;
}

/* ── About Page ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.about-grid__image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-grid__image img {
  width: 100%;
  display: block;
}

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

  .about-grid__image {
    order: -1;
  }
}

/* ── Values Grid (About page) ── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

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

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

/* ── Demo Booking Card ── */
.demo-card {
  margin-top: var(--space-8);
  padding: var(--space-8);
  background: var(--gradient-subtle);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-light);
}

.demo-card h3 {
  margin-bottom: var(--space-3);
}

.demo-card p {
  color: var(--color-text-light);
  margin-bottom: var(--space-5);
}

/* ── Blog detail-like extra ── */
.blog-card__read-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  margin-top: var(--space-3);
  transition: gap var(--transition-fast);
}

.blog-card__read-link:hover {
  gap: 8px;
}

/* ── Gradient text in dark sections ── */
.section--gradient .text-gradient,
.hero .text-gradient {
  background: linear-gradient(135deg, #60A5FA, #A78BFA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Newsletter section styles ── */
.newsletter-section {
  text-align: center;
}

.newsletter-section .section-subtitle {
  margin-bottom: var(--space-8);
}

.newsletter-note {
  font-size: var(--font-size-xs);
  color: var(--color-text-lighter);
  margin-top: var(--space-3);
  text-align: center;
}

/* ── Pricing Page Toggle ── */
.pricing-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  justify-content: center;
  margin-bottom: var(--space-12);
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

.pricing-toggle__switch {
  width: 48px;
  height: 26px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.pricing-toggle__switch.active {
  background: var(--color-primary);
}

.pricing-toggle__switch::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-white);
  top: 3px;
  left: 3px;
  transition: transform var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.pricing-toggle__switch.active::after {
  transform: translateX(22px);
}

.pricing-toggle__label--active {
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
}

.pricing-toggle__badge {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
}
