:root {
  /* Primary colors */
  --primary-color: #d97706;
  --secondary-color: #f59e0b;
  --accent-color: #fbbf24;
  --light-color: #f3f4f6;

  /* Grayscale */
  --gray-900: #262626;
  --gray-850: #303030;
  --gray-800: #3a3a3a;
  --gray-700: #525252;
  --gray-600: #676767;
  --gray-500: #878787;
  --gray-400: #b3b3b3;
  --gray-300: #d1d1d1;
  --gray-200: #efefef;
  --gray-100: #f6f6f6;
  --gray-50: #fafafa;
  --white: #ffffff;

  /* Semantic colors */
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-muted: var(--gray-400);
  --bg-primary: var(--white);
  --bg-secondary: var(--gray-50);
  --border-light: var(--gray-200);
  --border-primary: var(--gray-300);

  /* Accent colors */
  --success: #22c55e;
  --error: #ef4444;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);

  /* Hero gradient (overridden in dark mode) */
  --hero-gradient: linear-gradient(
    135deg,
    var(--light-color) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  --hero-h1-gradient: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );

  /* Comparison table highlight */
  --compare-highlight-bg: var(--light-color);
  --compare-highlight-color: var(--primary-color);
}

[data-theme="dark"] {
  --text-primary: var(--gray-100);
  --text-secondary: var(--gray-300);
  --text-muted: var(--gray-500);
  --bg-primary: var(--gray-900);
  --bg-secondary: var(--gray-850);
  --border-light: var(--gray-800);
  --border-primary: var(--gray-700);

  --hero-gradient: linear-gradient(
    135deg,
    rgba(217, 119, 6, 0.5) 0%,
    rgba(15, 23, 42, 0) 100%
  );
  --hero-h1-gradient: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--light-color)
  );

  --compare-highlight-bg: rgba(217, 119, 6, 0.2);
  --compare-highlight-color: var(--light-color);
}

body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.75;
  transition: background-color 0.3s ease, color 0.3s ease;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ----------------------------------------------------------------
 * Global styles for light-DOM content projected via <slot>.
 *
 * ::slotted() only reaches direct children; these rules style
 * nested elements inside SSR-rendered slot content (feature cards,
 * FAQ accordion, privacy cards, section headings, etc.).
 * ---------------------------------------------------------------- */

/* --- Section headings --- */

.section-title {
  font-size: 2rem;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

/* --- Feature cards (introduction-section) --- */

.feature-card {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--light-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.feature-card h3 {
  font-family: "Raleway", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- FAQ accordion (faq-section) --- */

.faq-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.faq-item:hover {
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  color: var(--text-primary);
}

.faq-icon {
  transition: transform 0.3s ease;
  color: var(--text-secondary);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  padding: 0 1.5rem 1.5rem;
}

/* --- Privacy page (privacy-section slotted content) --- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary-color) 12%, transparent);
  color: var(--primary-color);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-title {
  font-family: "Raleway", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin: 0;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.8;
  margin: 0;
}

.card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-xs);
}

.card + .card {
  margin-top: 1.5rem;
}

.card-title {
  font-family: "Raleway", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.card-title .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary-color) 15%, transparent);
  color: var(--primary-color);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.card p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
}

.data-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.data-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--bg-secondary);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.data-list li .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-color);
  flex-shrink: 0;
}

.contact-card {
  background: color-mix(in srgb, var(--primary-color) 8%, var(--bg-primary));
  border-color: color-mix(in srgb, var(--primary-color) 25%, transparent);
}

.contact-card p {
  margin-bottom: 1rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: opacity 0.2s ease;
}

.contact-link:hover {
  opacity: 0.75;
}

/* --- Fade-up animation (used in both shadow and light DOM) --- */

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 {
  transition-delay: 0.1s;
}
.stagger-2 {
  transition-delay: 0.2s;
}
.stagger-3 {
  transition-delay: 0.3s;
}
