/* ============================================
   QUDOS — Query Unified Data Output Service
   Premium SaaS Design System v2.0
   Apple-inspired • Performance-optimized
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  /* Color Palette — Apple-inspired */
  --c-bg: #ffffff;
  --c-surface: #ffffff;
  --c-surface-elevated: #ffffff;
  --c-section: #f5f5f7;
  --c-section-warm: #fbfbfd;
  --c-text: #1d1d1f;
  --c-text-secondary: #6e6e73;
  --c-text-tertiary: #86868b;
  --c-primary: #0071e3;
  --c-primary-hover: #0077ed;
  --c-primary-soft: rgba(0, 113, 227, 0.06);
  --c-accent: #5e5ce6;
  --c-border: #d2d2d7;
  --c-border-light: #e8e8ed;
  --c-border-subtle: rgba(0, 0, 0, 0.04);
  --c-success: #34c759;
  --c-warning-bg: #fefce8;
  --c-warning-border: #fde047;
  --c-warning-text: #854d0e;
  --c-shimmer: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);

  /* Gradients */
  --g-hero: linear-gradient(135deg, #0071e3 0%, #5e5ce6 100%);
  --g-soft: linear-gradient(180deg, #f5f5f7 0%, #ffffff 100%);
  --g-mesh: radial-gradient(ellipse at 30% 20%, rgba(0, 113, 227, 0.05) 0%, transparent 55%),
            radial-gradient(ellipse at 70% 80%, rgba(94, 92, 230, 0.04) 0%, transparent 55%);

  /* Spacing Scale (4px base) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;
  --s-32: 128px;

  /* Typography Scale */
  --t-xs: 0.75rem;
  --t-sm: 0.8125rem;
  --t-base: 0.9375rem;
  --t-lg: 1.0625rem;
  --t-xl: 1.25rem;
  --t-2xl: 1.5rem;
  --t-3xl: 2rem;
  --t-4xl: 2.75rem;
  --t-5xl: 3.75rem;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 4px 20px rgba(0, 113, 227, 0.2);

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 24px;
  --r-full: 9999px;

  /* Motion */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 0.15s;
  --duration-base: 0.3s;
  --duration-slow: 0.5s;

  /* Layout */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --max-w: 1140px;
  --header-h: 68px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

ul, ol {
  list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.045em;
  color: var(--c-text);
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6vw, 3.75rem); }
h2 { font-size: clamp(1.625rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); }
h4 { font-size: var(--t-lg); }

p {
  color: var(--c-text-secondary);
  line-height: 1.65;
  text-wrap: pretty;
}

strong {
  color: var(--c-text);
  font-weight: 600;
}

/* ============================================
   UTILITIES
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.mt-16 { margin-top: var(--s-16); }
.mb-16 { margin-bottom: var(--s-16); }

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--s-5);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--s-10);
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: var(--s-12);
  }
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--c-border-subtle);
  z-index: 1000;
  transition: box-shadow var(--duration-base) var(--ease-out),
              background var(--duration-base) var(--ease-out);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--c-text);
  letter-spacing: -0.04em;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.logo:hover {
  opacity: 0.8;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--g-hero);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.22);
  flex-shrink: 0;
}

/* Desktop Navigation */
.nav-desktop {
  display: none;
}

.nav-desktop a {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--c-text);
  opacity: 0.65;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: var(--s-3);
  right: var(--s-3);
  height: 1.5px;
  background: var(--c-primary);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-base) var(--ease-out);
}

.nav-desktop a:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.03);
}

.nav-desktop a:hover::after {
  transform: scaleX(1);
}

.nav-desktop a.active {
  opacity: 1;
  color: var(--c-primary);
  background: var(--c-primary-soft);
}

.nav-desktop a.active::after {
  transform: scaleX(1);
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: var(--s-1);
  }
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  border-radius: var(--r-sm);
  transition: background var(--duration-fast) var(--ease-out);
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus-visible {
  background: rgba(0, 0, 0, 0.04);
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--c-text);
  border-radius: 2px;
  transition: all var(--duration-base) var(--ease-smooth);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--c-border-light);
  padding: var(--s-4) var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: all var(--duration-base) var(--ease-smooth);
  z-index: 999;
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
  visibility: visible;
}

.mobile-nav a {
  font-size: var(--t-lg);
  font-weight: 500;
  color: var(--c-text);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  transition: all var(--duration-fast) var(--ease-out);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible,
.mobile-nav a.active {
  background: var(--c-section);
  color: var(--c-primary);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 14px 28px;
  font-size: var(--t-base);
  font-weight: 500;
  border-radius: var(--r-full);
  border: none;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  white-space: nowrap;
  letter-spacing: -0.01em;
  min-height: 44px;
  position: relative;
  overflow: hidden;
}

.btn:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--c-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--c-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  background: transparent;
  color: var(--c-primary);
  border: 1.5px solid var(--c-border);
}

.btn-secondary:hover {
  background: var(--c-primary-soft);
  border-color: var(--c-primary);
}

.btn-secondary:active {
  transform: scale(0.98);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: calc(var(--header-h) + var(--s-24)) 0 var(--s-24);
  overflow: hidden;
  background: var(--c-bg);
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--g-mesh);
  z-index: 0;
}

.hero-shape-1 {
  position: absolute;
  top: -10%;
  right: -8%;
  width: 55vw;
  max-width: 700px;
  height: 55vw;
  max-height: 700px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.06) 0%, transparent 65%);
  border-radius: 50%;
  z-index: 0;
  animation: float 8s ease-in-out infinite;
}

.hero-shape-2 {
  position: absolute;
  bottom: -15%;
  left: -10%;
  width: 60vw;
  max-width: 800px;
  height: 60vw;
  max-height: 800px;
  background: radial-gradient(circle, rgba(94, 92, 230, 0.05) 0%, transparent 65%);
  border-radius: 50%;
  z-index: 0;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.02); }
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-16);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-20);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-4);
  background: var(--c-section);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-full);
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--c-text-secondary);
  margin-bottom: var(--s-6);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  background: var(--c-success);
  border-radius: 50%;
  animation: pulse-dot 3s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.hero-title {
  margin-bottom: var(--s-5);
  color: var(--c-text);
  letter-spacing: -0.05em;
  line-height: 1.05;
  text-wrap: balance;
}

.hero-title span {
  background: var(--g-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: clamp(var(--t-lg), 1.6vw, var(--t-xl));
  color: var(--c-text-secondary);
  margin-bottom: var(--s-8);
  max-width: 480px;
  line-height: 1.55;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--r-2xl);
  padding: var(--s-6);
  box-shadow: var(--shadow-xl);
  transform: perspective(1000px) rotateY(-3deg) rotateX(2deg);
  transition: transform var(--duration-slow) var(--ease-out);
}

.hero-card:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

@media (max-width: 1023px) {
  .hero-card {
    transform: none;
  }
  .hero-card:hover {
    transform: translateY(-4px);
  }
}

.code-block {
  background: #1d1d1f;
  border-radius: var(--r-md);
  padding: var(--s-5);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.code-header {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}

.code-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.code-dot.red { background: #ff5f57; }
.code-dot.yellow { background: #febc2e; }
.code-dot.green { background: #28c840; }

.code-content {
  font-family: SFMono-Regular, ui-monospace, Menlo, Monaco, 'Cascadia Code', monospace;
  font-size: 0.8125rem;
  line-height: 1.8;
  color: #f5f5f7;
  tab-size: 2;
}

.code-content .keyword { color: #ff9f0a; }
.code-content .string { color: #a5e8d6; }
.code-content .number { color: #ff9f0a; }
.code-content .comment { color: #86868b; }

/* ============================================
   DISCLAIMER BANNER
   ============================================ */
.disclaimer-banner {
  background: var(--c-warning-bg);
  border: 1px solid var(--c-warning-border);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
  margin-bottom: var(--s-12);
}

.disclaimer-banner p {
  font-size: var(--t-sm);
  color: var(--c-warning-text);
  line-height: 1.55;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: var(--s-20) 0;
  position: relative;
}

@media (min-width: 768px) {
  .section {
    padding: var(--s-24) 0;
  }
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto var(--s-16);
}

.section-label {
  display: inline-block;
  font-size: var(--t-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-primary);
  margin-bottom: var(--s-3);
}

.section-title {
  margin-bottom: var(--s-4);
}

.section-description {
  font-size: var(--t-xl);
  color: var(--c-text-secondary);
  line-height: 1.5;
}

/* ============================================
   OVERVIEW CARDS
   ============================================ */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}

@media (min-width: 640px) {
  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .overview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.overview-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: all var(--duration-base) var(--ease-out);
  will-change: transform;
  contain: layout style;
}

.overview-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--c-border);
}

.overview-icon {
  width: 44px;
  height: 44px;
  background: var(--c-section);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-4);
  transition: transform var(--duration-base) var(--ease-spring);
}

.overview-card:hover .overview-icon {
  transform: scale(1.08);
}

.overview-icon svg {
  width: 22px;
  height: 22px;
  color: var(--c-primary);
}

.overview-card h3 {
  margin-bottom: var(--s-2);
  font-size: var(--t-lg);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.overview-card p {
  font-size: var(--t-base);
  line-height: 1.55;
}

/* ============================================
   FEATURE CARDS
   ============================================ */
.feature-section {
  background: var(--c-section);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--c-surface);
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  contain: layout style;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--g-hero);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-border-light);
}

.feature-card h3 {
  font-size: var(--t-lg);
  font-weight: 600;
  margin-bottom: var(--s-2);
  letter-spacing: -0.02em;
}

.feature-card p {
  font-size: var(--t-base);
  line-height: 1.55;
}

/* ============================================
   CONTENT BLOCKS
   ============================================ */
.content-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-12);
  align-items: center;
  margin-bottom: var(--s-24);
}

.content-block:last-child {
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .content-block {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-20);
  }
  .content-block.reverse {
    direction: rtl;
  }
  .content-block.reverse > * {
    direction: ltr;
  }
}

.content-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-visual .glass-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--r-2xl);
  padding: var(--s-6);
  box-shadow: var(--shadow-lg);
}

.content-text h2 {
  margin-bottom: var(--s-4);
  letter-spacing: -0.035em;
}

.content-text p {
  margin-bottom: var(--s-4);
}

.content-text ul {
  margin-top: var(--s-5);
}

.content-text li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-2) 0;
  color: var(--c-text-secondary);
  font-size: var(--t-base);
}

.content-text li svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--c-primary);
  margin-top: 2px;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-10);
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  text-align: center;
  padding: var(--s-6) var(--s-4);
  background: var(--c-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border-light);
  transition: all var(--duration-base) var(--ease-out);
  contain: layout style;
}

.stat-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--c-border);
  transform: translateY(-2px);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  background: var(--g-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-label {
  font-size: var(--t-sm);
  color: var(--c-text-tertiary);
  margin-top: var(--s-2);
  font-weight: 500;
}

.stats-note {
  text-align: center;
  font-size: var(--t-xs);
  color: var(--c-text-tertiary);
  margin-top: var(--s-4);
  font-style: italic;
}

/* ============================================
   TRUST SECTION
   ============================================ */
.trust-section {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border-light);
  border-bottom: 1px solid var(--c-border-light);
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-8);
}

@media (min-width: 640px) {
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trust-item {
  text-align: center;
  padding: var(--s-6);
}

.trust-icon {
  width: 52px;
  height: 52px;
  background: var(--c-section);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s-4);
  transition: transform var(--duration-base) var(--ease-spring);
}

.trust-item:hover .trust-icon {
  transform: scale(1.08);
}

.trust-icon svg {
  width: 24px;
  height: 24px;
  color: var(--c-primary);
}

.trust-item h3 {
  font-size: var(--t-lg);
  font-weight: 600;
  margin-bottom: var(--s-2);
  letter-spacing: -0.02em;
}

.trust-item p {
  font-size: var(--t-base);
  line-height: 1.55;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-preview {
  background: var(--c-section);
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  background: var(--c-surface);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-md);
  margin-bottom: var(--s-3);
  overflow: hidden;
  transition: all var(--duration-base) var(--ease-out);
  contain: layout style;
}

.faq-item:hover {
  border-color: var(--c-border);
  box-shadow: var(--shadow-xs);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5) var(--s-6);
  background: none;
  border: none;
  font-size: var(--t-base);
  font-weight: 600;
  color: var(--c-text);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: -0.01em;
  min-height: 56px;
}

.faq-question:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: -2px;
  border-radius: var(--r-md);
}

.faq-question svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--c-text-tertiary);
  transition: transform var(--duration-base) var(--ease-smooth);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-smooth), padding var(--duration-base) var(--ease-out);
}

.faq-item.active .faq-answer {
  max-height: 600px;
}

.faq-answer p {
  padding: 0 var(--s-6) var(--s-5);
  font-size: var(--t-base);
  line-height: 1.6;
}

.faq-answer a {
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-answer a:hover {
  text-decoration: none;
}

/* ============================================
   CONTACT PREVIEW
   ============================================ */
.contact-preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}

@media (min-width: 640px) {
  .contact-preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  text-align: center;
  transition: all var(--duration-base) var(--ease-out);
  contain: layout style;
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--c-border);
}

.contact-card svg {
  width: 26px;
  height: 26px;
  color: var(--c-primary);
  margin: 0 auto var(--s-4);
}

.contact-card h3 {
  font-size: var(--t-lg);
  font-weight: 600;
  margin-bottom: var(--s-1);
  letter-spacing: -0.02em;
}

.contact-card p {
  font-size: var(--t-base);
  line-height: 1.55;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-12);
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-16);
  }
}

.contact-info-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--c-border-light);
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-info-item svg {
  width: 22px;
  height: 22px;
  color: var(--c-primary);
  flex-shrink: 0;
  margin-top: 1px;
}

.contact-info-item h4 {
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-tertiary);
  margin-bottom: var(--s-1);
  font-weight: 600;
}

.contact-info-item p {
  color: var(--c-text);
  font-weight: 500;
  line-height: 1.5;
}

.contact-form {
  background: var(--c-surface);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}

.form-group {
  margin-bottom: var(--s-5);
}

.form-group label {
  display: block;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: var(--s-2);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px; /* Prevents iOS zoom */
  font-family: inherit;
  color: var(--c-text);
  background: var(--c-section);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  transition: all var(--duration-fast) var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--c-text-tertiary);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  background: var(--c-surface);
  box-shadow: 0 0 0 4px var(--c-primary-soft);
}

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

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: var(--s-12);
  margin-bottom: var(--s-4);
  font-size: var(--t-2xl);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.legal-content h3 {
  margin-top: var(--s-8);
  margin-bottom: var(--s-3);
  font-size: var(--t-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.legal-content p,
.legal-content li {
  margin-bottom: var(--s-3);
  color: var(--c-text-secondary);
  line-height: 1.65;
}

.legal-content ul {
  list-style: disc;
  padding-left: var(--s-6);
  margin-bottom: var(--s-4);
}

.legal-content ol {
  list-style: decimal;
  padding-left: var(--s-6);
  margin-bottom: var(--s-4);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--c-section);
  color: var(--c-text-secondary);
  padding: var(--s-16) 0 var(--s-8);
  border-top: 1px solid var(--c-border-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-12);
  margin-bottom: var(--s-12);
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--s-8);
  }
}

.footer-brand .logo {
  color: var(--c-text);
  margin-bottom: var(--s-4);
}

.footer-brand p {
  color: var(--c-text-secondary);
  font-size: var(--t-base);
  max-width: 300px;
  line-height: 1.55;
}

.footer-col h4 {
  color: var(--c-text);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--s-4);
  font-weight: 700;
}

.footer-col a {
  display: block;
  padding: var(--s-1) 0;
  font-size: var(--t-base);
  color: var(--c-text-secondary);
  transition: color var(--duration-fast) var(--ease-out);
  min-height: 32px;
  display: flex;
  align-items: center;
}

.footer-col a:hover {
  color: var(--c-primary);
}

.footer-bottom {
  border-top: 1px solid var(--c-border-light);
  padding-top: var(--s-8);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-bottom p {
  font-size: var(--t-sm);
  color: var(--c-text-tertiary);
}

.footer-disclaimer {
  font-size: var(--t-xs);
  color: var(--c-text-tertiary);
  line-height: 1.55;
  max-width: 680px;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  padding: calc(var(--header-h) + var(--s-6)) 0 var(--s-4);
  background: var(--c-section);
  border-bottom: 1px solid var(--c-border-light);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
}

.breadcrumb li {
  font-size: var(--t-sm);
  color: var(--c-text-tertiary);
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: var(--s-2);
  color: var(--c-border);
}

.breadcrumb a {
  color: var(--c-text-secondary);
  transition: color var(--duration-fast) var(--ease-out);
}

.breadcrumb a:hover {
  color: var(--c-primary);
}

.breadcrumb [aria-current="page"] {
  color: var(--c-text);
  font-weight: 500;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
  padding: calc(var(--header-h) + var(--s-16)) 0 var(--s-16);
  background: var(--c-section);
  text-align: center;
  border-bottom: 1px solid var(--c-border-light);
}

.page-header h1 {
  margin-bottom: var(--s-3);
}

.page-header p {
  font-size: var(--t-xl);
  max-width: 580px;
  margin: 0 auto;
  color: var(--c-text-secondary);
  line-height: 1.5;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
  .hero {
    padding: calc(var(--header-h) + var(--s-16)) 0 var(--s-16);
    min-height: auto;
  }

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

  .section-header {
    margin-bottom: var(--s-10);
  }

  .hero-card,
  .glass-card {
    padding: var(--s-4);
  }

  .overview-card,
  .feature-card,
  .contact-card,
  .contact-info-card,
  .contact-form {
    padding: var(--s-5);
  }

  .content-block {
    gap: var(--s-8);
    margin-bottom: var(--s-16);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-header {
    padding: calc(var(--header-h) + var(--s-10)) 0 var(--s-10);
  }

  .footer-grid {
    gap: var(--s-8);
  }
}

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

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* ============================================
   ERROR PAGES
   ============================================ */
.error-page {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + var(--s-16)) var(--s-5) var(--s-16);
}

.error-code {
  font-size: clamp(5rem, 14vw, 9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  background: var(--g-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--s-4);
}

.error-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: var(--s-4);
}

.error-desc {
  font-size: var(--t-xl);
  color: var(--c-text-secondary);
  max-width: 480px;
  margin-bottom: var(--s-8);
  line-height: 1.5;
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--c-border-light);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.06);
  z-index: 9999;
  padding: var(--s-5) 0;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.5s var(--ease-smooth), opacity 0.4s var(--ease-out);
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
}

.cookie-banner-content p {
  font-size: var(--t-sm);
  color: var(--c-text-secondary);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.cookie-banner-content a {
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
  white-space: nowrap;
}

.cookie-banner-content a:hover {
  text-decoration: none;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-shrink: 0;
}

.cookie-banner-actions .btn {
  padding: 10px 20px;
  font-size: var(--t-sm);
  min-height: 40px;
}

@media (max-width: 767px) {
  .cookie-banner {
    padding: var(--s-4) 0;
  }

  .cookie-banner-content {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-4);
    padding: 0 var(--s-5);
  }

  .cookie-banner-actions {
    width: 100%;
  }

  .cookie-banner-actions .btn {
    flex: 1;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .header,
  .mobile-nav,
  .breadcrumb,
  .cookie-banner,
  .hero-shape-1,
  .hero-shape-2,
  .hero-bg,
  .skip-link {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 40px 0;
  }

  .section {
    padding: 32px 0;
  }

  .footer {
    border-top: 1px solid #000;
    background: #fff;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
  }

  h1, h2, h3, h4 {
    color: #000;
    page-break-after: avoid;
  }

  p, li {
    color: #333;
    orphans: 3;
    widows: 3;
  }

  a {
    text-decoration: underline;
    color: #000;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.875rem;
    color: #666;
    word-break: break-all;
  }

  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  .overview-card,
  .feature-card,
  .contact-card,
  .contact-info-card,
  .contact-form {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }

  .code-block {
    background: #f5f5f5;
    border: 1px solid #ddd;
  }

  .code-content {
    color: #000;
  }
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--s-4);
  padding: var(--s-2) var(--s-4);
  background: var(--c-primary);
  color: #fff;
  font-weight: 600;
  font-size: var(--t-sm);
  border-radius: var(--r-sm);
  z-index: 10000;
  transition: top var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
  top: var(--s-2);
}
