/* Light Variables */
:root,
[data-theme="light"] {
  --bg: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --text: #1d1d1f;
  --text-primary: #000000;
  --text-muted: #86868b;
  --accent: #ff6a00;
  --accent-gradient: linear-gradient(135deg, #ff6a00, #ff924d);
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.06);
  --max-width: 640px;
  --icon-bg: rgba(255, 106, 0, 0.1);
  --btn-secondary-bg: rgba(255, 255, 255, 0.8);
  --btn-secondary-border: rgba(0, 0, 0, 0.05);
}

/* Dark Variables */
[data-theme="dark"] {
  --bg: #000000;
  --surface: rgba(28, 28, 30, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --text-primary: #ffffff;
  --text-muted: #a1a1a6;
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.4);
  --icon-bg: rgba(255, 106, 0, 0.15);
  --btn-secondary-bg: rgba(44, 44, 46, 0.8);
  --btn-secondary-border: rgba(255, 255, 255, 0.1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --surface: rgba(28, 28, 30, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text: #f5f5f7;
    --text-primary: #ffffff;
    --text-muted: #a1a1a6;
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.4);
    --icon-bg: rgba(255, 106, 0, 0.15);
    --btn-secondary-bg: rgba(44, 44, 46, 0.8);
    --btn-secondary-border: rgba(255, 255, 255, 0.1);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  background-image: radial-gradient(circle at 15% 50%, rgba(255, 106, 0, 0.05), transparent 30%),
    radial-gradient(circle at 85% 30%, rgba(0, 113, 227, 0.04), transparent 30%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding: 24px 16px 80px 16px;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.app-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

/* Theme Toggle */
.theme-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
  background: var(--btn-secondary-bg);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.theme-toggle:active svg {
  transform: rotate(45deg) scale(0.9);
}

/* Entrance Animation */
@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.app-container>*:nth-child(1) {
  animation-delay: 0.1s;
}

.app-container>*:nth-child(2) {
  animation-delay: 0.2s;
}

.app-container>*:nth-child(3) {
  animation-delay: 0.3s;
}

.app-container>*:nth-child(4) {
  animation-delay: 0.4s;
}

.app-container>*:nth-child(5) {
  animation-delay: 0.5s;
}

.app-container>*:nth-child(6) {
  animation-delay: 0.6s;
}

.app-container>*:nth-child(7) {
  animation-delay: 0.7s;
}

.app-container>*:nth-child(8) {
  animation-delay: 0.8s;
}

.app-container>*:nth-child(9) {
  animation-delay: 0.9s;
}

.app-container>*:nth-child(10) {
  animation-delay: 1.0s;
}

/* Header */
.hero {
  text-align: center;
  padding: 30px 10px 10px;
}

.logo-container {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 16px;
}

.logo-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 32px;
  box-shadow: 0 12px 24px rgba(255, 106, 0, 0.25);
  animation: float 6s ease-in-out infinite;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(255, 106, 0, 0.3);
  }
}

.logo-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.logo-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 90%;
  margin: 0 auto;
}

/* Base Bento Card */
.glass-card {
  background: var(--surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(255, 106, 0, 0.2);
}

[data-theme="dark"] .glass-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 106, 0, 0.3);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .glass-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 106, 0, 0.3);
  }
}

/* Buttons */
.mobile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-primary:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 106, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-accent::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
  transform: skewX(-25deg);
  animation: shimmer 4s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  20% {
    left: 200%;
  }

  100% {
    left: 200%;
  }
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 106, 0, 0.35);
}

.btn-accent:active {
  transform: scale(0.97);
}

.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--text-primary);
  border: 1px solid var(--btn-secondary-border);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.btn-secondary:active,
.btn-secondary:hover {
  transform: translateY(-2px) scale(0.99);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

/* Bento Grid System */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.bento-full {
  grid-column: 1 / -1;
}

/* Feature Item */
.feature-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover .feature-icon-wrapper {
  transform: scale(1.15) rotate(5deg);
}

.feature-icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.service-icon {
  color: var(--accent);
  margin-bottom: 4px;
}

h3.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

p.feature-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Section Header */
.section-headline {
  margin: 10px 0 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  padding-left: 4px;
  letter-spacing: -0.3px;
}

/* Reviews Carousel */
.reviews-wrapper {
  margin: 0 -16px;
  /* Bleed out of padding on mobile */
  padding: 0 16px 10px 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* Firefox */
  -webkit-overflow-scrolling: touch;
}

.reviews-wrapper::-webkit-scrollbar {
  display: none;
}

.reviews-scroller {
  display: flex;
  gap: 16px;
  width: max-content;
}

.review-item {
  width: 280px;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review-stars {
  color: #ffb400;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.review-text {
  font-size: 0.95rem;
  color: var(--text);
  font-style: italic;
  line-height: 1.5;
  flex-grow: 1;
}

.review-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: right;
  margin-top: auto;
}

/* FAQ Accordion */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  padding: 16px;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.faq-item summary {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
  outline: none;
  list-style: none;
  /* Hide default arrow */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.3s ease;
  font-weight: 400;
  line-height: 1;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-content {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  border-top: 1px solid var(--glass-border);
  padding-top: 12px;
  animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* SEO Tags Cloud */
.seo-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  border-top: none;
  /* Override default faq-content border */
  padding-top: 0;
}

.seo-tag {
  background: var(--btn-secondary-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.seo-tag:hover {
  background: var(--icon-bg);
  color: var(--accent);
  border-color: var(--accent);
}

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: var(--accent-gradient);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(255, 106, 0, 0.4);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.9);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  animation: pulse-ring 2s infinite;
}

.sticky-cta.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.sticky-cta:active {
  transform: scale(0.95);
}

.sticky-cta svg {
  width: 28px;
  height: 28px;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 106, 0, 0.6);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(255, 106, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 106, 0, 0);
  }
}

/* SEO text */
.seo-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

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