/* =====================================================
   CORE RESET & TOKENS
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
main section[id] { scroll-margin-top: clamp(5rem, 8vw, 7rem); }

body {
  background: #080d1a;
  color: #94a3b8;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --ink:        #080d1a;
  --ink-mid:    #0d1628;
  --sky:        #38bdf8;
  --sky-deep:   #0ea5e9;
  --mint:       #10b981;
  --mint-deep:  #059669;
  --amber:      #fbbf24;
  --violet:     #8b5cf6;
  --slate-dim:  #334155;
  --border:     rgba(255,255,255,0.07);
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4,0,0.2,1);
  --shadow-glow-mint: 0 0 40px rgba(16,185,129,0.25);
  --shadow-glow-sky:  0 0 40px rgba(56,189,248,0.2);
}

/* =====================================================
   SKIP & ACCESSIBILITY
   ===================================================== */
.skip-link {
  position: fixed; top: 1rem; left: 1rem; z-index: 80;
  border-radius: 999px; background: #fff; color: #080d1a;
  padding: 0.75rem 1rem; font-weight: 600;
  transform: translateY(-160%); transition: transform 0.2s ease;
}
.skip-link:focus-visible { transform: translateY(0); }
::selection { background: var(--mint); color: #020617; }
a:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1, h2, h3, .font-display {
  font-family: 'Syne', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: balance;
}
p { text-wrap: pretty; }
.hero-gradient-text {
  background: linear-gradient(135deg, var(--sky-deep) 0%, var(--mint) 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =====================================================
   PROGRESS BAR
   ===================================================== */
#progress {
  position: fixed; top: 0; left: 0; z-index: 70;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--sky), var(--mint));
  transition: width 0.2s ease-out;
}

/* =====================================================
   LOADER SAFETY FALLBACK
   ===================================================== */
#loader {
  animation: loaderAutoHide 0.6s ease 3s forwards;
}

body.loaded #loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  animation: none;
}

@keyframes loaderAutoHide {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

/* =====================================================
   LOADER
   ===================================================== */
.loader-ring {
  width: 48px; height: 48px;
  border: 3px solid rgba(56,189,248,0.15);
  border-top-color: var(--sky);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================
   HERO
   ===================================================== */
#hero { background: var(--ink); }

.hero-bg-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.hero-orb--1 {
  width: 600px; height: 600px;
  top: -200px; left: -100px;
  background: radial-gradient(circle, rgba(56,189,248,0.12) 0%, transparent 70%);
  animation: orbFloat 12s ease-in-out infinite alternate;
}
.hero-orb--2 {
  width: 500px; height: 500px;
  bottom: -100px; right: -100px;
  background: radial-gradient(circle, rgba(16,185,129,0.1) 0%, transparent 70%);
  animation: orbFloat 10s ease-in-out infinite alternate-reverse;
}
@keyframes orbFloat {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.1); }
}

/* Hero stagger animation */
.hero-stagger {
  opacity: 0;
  animation: heroReveal 0.9s var(--ease-out) forwards;
}
.hero-stagger:nth-child(1) { animation-delay: 0.1s; }
.hero-stagger:nth-child(2) { animation-delay: 0.3s; }
.hero-stagger:nth-child(3) { animation-delay: 0.5s; }
.hero-stagger:nth-child(4) { animation-delay: 0.65s; }
.hero-stagger:nth-child(5) { animation-delay: 0.8s; }
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cta-primary {
  background: linear-gradient(135deg, var(--sky-deep), var(--mint));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 30px rgba(16,185,129,0.3);
  transition: all 0.3s ease;
}
.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(16,185,129,0.5);
}

/* =====================================================
   HEADER
   ===================================================== */
.site-nav {
  background: rgba(8,13,26,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transition: all 0.4s ease;
}
.site-header.scrolled .site-nav {
  background: rgba(8,13,26,0.95);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.header-nav-link {
  display: inline-block; padding: 0.4rem 0.85rem;
  border-radius: 9999px; font-size: 0.875rem;
  font-weight: 500; color: #94a3b8;
  transition: all 0.2s ease;
}
.header-nav-link:hover, .header-nav-link.is-active {
  color: #fff;
  background: rgba(255,255,255,0.07);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 9999px;
}

.lang-switch--dark {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.lang-switch--light {
  background: rgba(241,245,249,0.82);
  border: 1px solid rgba(148,163,184,0.2);
  box-shadow: 0 6px 20px rgba(15,23,42,0.06);
}

.lang-switch__link {
  min-width: 44px;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  transition: all 0.2s ease;
}

.lang-switch--dark .lang-switch__link {
  color: #cbd5e1;
}

.lang-switch--dark .lang-switch__link:hover {
  color: #fff;
  background: rgba(255,255,255,0.07);
}

.lang-switch--dark .lang-switch__link.is-active {
  color: #041019;
  background: linear-gradient(135deg, var(--sky), var(--mint));
  box-shadow: 0 12px 24px rgba(16,185,129,0.2);
}

.lang-switch--light .lang-switch__link {
  color: #475569;
}

.lang-switch--light .lang-switch__link:hover {
  color: #0f172a;
  background: rgba(255,255,255,0.75);
}

.lang-switch--light .lang-switch__link.is-active {
  color: #fff;
  background: #0f172a;
  box-shadow: 0 10px 18px rgba(15,23,42,0.16);
}

/* Mobile menu */
.menu-icon { display: flex; flex-direction: column; gap: 5px; width: 18px; }
.menu-icon span { display: block; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transition: all 0.3s ease; }
.mobile-nav-toggle.is-open .menu-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-nav-toggle.is-open .menu-icon span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.is-open .menu-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { background: #0d1628; border-left: 1px solid var(--border); }
.mobile-menu-header { border-bottom: 1px solid var(--border); }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-backdrop {
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}
.mobile-menu-backdrop.open { opacity: 1; }
.mobile-menu-link {
  display: block; padding: 0.85rem 1rem;
  border-radius: 0.75rem; font-size: 0.95rem;
  font-weight: 500; color: #94a3b8;
  transition: all 0.2s ease;
}
.mobile-menu-link:hover { color: #fff; background: rgba(255,255,255,0.06); }

/* =====================================================
   SECTION ANIMATIONS
   ===================================================== */
.section-reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.section-reveal.section-visible { opacity: 1; transform: translateY(0); }

.animate-on-scroll {
  opacity: 0; transform: translateY(24px);
  transition: all 0.6s var(--ease-out);
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

.stagger-container > * {
  opacity: 0; transform: translateY(20px);
  transition: all 0.6s var(--ease-out);
}
.stagger-container > *.visible { opacity: 1; transform: translateY(0); }
.stagger-container > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-container > *:nth-child(2) { transition-delay: 0.15s; }
.stagger-container > *:nth-child(3) { transition-delay: 0.25s; }
.stagger-container > *:nth-child(4) { transition-delay: 0.35s; }
.stagger-container > *:nth-child(5) { transition-delay: 0.45s; }
.stagger-container > *:nth-child(6) { transition-delay: 0.55s; }
.stagger-container > *:nth-child(7) { transition-delay: 0.65s; }

/* =====================================================
   SKILL BADGES
   ===================================================== */
.skill-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.1);
  color: #94a3b8;
  background: rgba(255,255,255,0.04);
  transition: all 0.2s ease;
}
.skill-badge:hover {
  border-color: var(--mint);
  color: var(--mint);
  background: rgba(16,185,129,0.08);
}

/* =====================================================
   VALUE CARDS
   ===================================================== */
.value-card {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
  transition: all 0.3s ease;
}
.value-card:hover {
  border-color: rgba(16,185,129,0.2);
  background: rgba(16,185,129,0.05);
  transform: translateX(4px);
}

.value-icon {
  flex-shrink: 0; width: 38px; height: 38px;
  border-radius: 0.6rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(16,185,129,0.12); color: var(--mint);
}
.value-icon--sky    { background: rgba(56,189,248,0.12); color: var(--sky); }
.value-icon--amber  { background: rgba(251,191,36,0.12);  color: var(--amber); }
.value-icon--violet { background: rgba(139,92,246,0.12); color: var(--violet); }

/* =====================================================
   PROJECT CARDS
   ===================================================== */
.project-card {
  position: relative; overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
  transition: all 0.4s var(--ease-out);
}
.project-card:hover {
  border-color: rgba(56,189,248,0.2);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(56,189,248,0.1);
}

.project-media {
  position: relative;
  height: 220px; overflow: hidden;
  background: linear-gradient(135deg, #0d1628, var(--slate-dim));
  display: flex; align-items: center; justify-content: center;
}
.project-preview-image {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform 0.6s var(--ease-out);
}
.project-card:hover .project-preview-image { transform: scale(1.06); }

/* Shimmer overlay on card hover */
.project-card::before {
  content: ''; position: absolute;
  top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  transition: left 0.7s ease;
  z-index: 1; pointer-events: none;
}
.project-card:hover::before { left: 160%; }

.project-content { padding: 1.5rem; }
.project-kicker {
  display: block; font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: #475569; margin-bottom: 0.35rem;
}
.project-title {
  font-family: 'Syne', sans-serif; font-size: 1.1rem;
  font-weight: 700; color: #fff; margin-bottom: 0.5rem;
}
.project-description {
  font-size: 0.85rem; color: #64748b;
  line-height: 1.6; margin-bottom: 1.25rem;
}
.project-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; font-weight: 600;
  color: var(--sky); transition: all 0.2s ease;
  cursor: pointer;
}
.project-link:hover { gap: 0.7rem; color: var(--mint); }
.project-link::after { content: '→'; }

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.testimonial-card {
  padding: 2rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
  transition: all 0.3s ease;
}
.testimonial-card:hover {
  border-color: rgba(56,189,248,0.15);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.testimonial-card--featured {
  border-color: rgba(16,185,129,0.2);
  background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(56,189,248,0.05));
}
.testimonial-card--featured:hover {
  border-color: rgba(16,185,129,0.4);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), var(--shadow-glow-mint);
}

.stars { color: var(--amber); font-size: 0.9rem; letter-spacing: 0.1em; }
.stars--light { color: #fde68a; }

.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sky-deep), var(--mint));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; color: #fff; flex-shrink: 0;
}
.testimonial-avatar--light {
  background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.2);
}

/* =====================================================
   PRICING
   ===================================================== */
.roi-callout {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 1rem 1.5rem; border-radius: 1rem;
  background: rgba(251,191,36,0.06);
  border: 1px solid rgba(251,191,36,0.15);
  text-align: left;
}

.pricing-card {
  position: relative;
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
  display: flex; flex-direction: column;
  transition: all 0.4s var(--ease-out);
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.pricing-card--featured {
  border-color: rgba(16,185,129,0.25);
  background: linear-gradient(135deg, rgba(16,185,129,0.08) 0%, rgba(56,189,248,0.05) 100%);
}
.pricing-card--featured:hover {
  border-color: rgba(16,185,129,0.45);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), var(--shadow-glow-mint);
}

.popular-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--sky-deep), var(--mint));
  color: #fff; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 1rem; border-radius: 999px;
  white-space: nowrap;
}

.pricing-topline { height: 3px; border-radius: 2px; margin-bottom: 1.5rem; }
.pricing-topline--sky   { background: var(--sky); }
.pricing-topline--mint  { background: var(--mint); }
.pricing-topline--amber { background: var(--amber); }

.pricing-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.5rem; }
.pricing-name  { font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 0.75rem; }
.pricing-desc  { font-size: 0.85rem; color: #64748b; line-height: 1.6; margin-bottom: 1.5rem; }

.pricing-features {
  list-style: none; padding: 0; margin: 0 0 2rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  flex: 1;
}
.pricing-features li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.875rem; color: #94a3b8; }
.pricing-features--light li { color: rgba(255,255,255,0.75); }

.feat-check { color: var(--mint); font-weight: 700; flex-shrink: 0; }
.feat-check--light { color: rgba(255,255,255,0.7); }

.pricing-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}
.pricing-bottom > :first-child {
  flex: none;
  min-width: 0;
}
.pricing-from  { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.2em; color: #475569; margin-bottom: 0.1rem; }
.pricing-price {
  display: inline-flex;
  align-items: baseline;
  gap: 0.18rem;
  font-family: 'Syne', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
}
.pricing-price__amount { line-height: 1; }
.pricing-price__currency { font-size: 0.5em; line-height: 1; opacity: 0.78; margin-left: 0.12rem; }

html[lang="cs"] .pricing-price {
  font-size: 1.9rem;
  letter-spacing: -0.04em;
}

html[lang="cs"] #pricing .pricing-card:first-child .pricing-price {
  font-size: 1.72rem;
  letter-spacing: -0.05em;
}

.pricing-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem;
  padding: 0.65rem 1.25rem; border-radius: 999px;
  font-size: 0.85rem; font-weight: 700;
  white-space: normal; text-align: center;
  max-width: 100%;
  transition: all 0.25s ease;
  align-self: flex-start;
}
.pricing-cta--sky   { background: rgba(56,189,248,0.12); color: var(--sky); border: 1px solid rgba(56,189,248,0.2); }
.pricing-cta--sky:hover { background: var(--sky); color: #fff; border-color: var(--sky); }
.pricing-cta--light { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.pricing-cta--light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.pricing-cta--amber { background: rgba(251,191,36,0.12); color: var(--amber); border: 1px solid rgba(251,191,36,0.2); }
.pricing-cta--amber:hover { background: var(--amber); color: var(--ink); border-color: var(--amber); }

/* =====================================================
   COMPARISON
   ===================================================== */
.comparison-editorial {
  display: block;
}

.comparison-intro {
  max-width: 48rem;
  margin: 0 auto;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  text-align: center;
}

.comparison-kicker {
  margin-bottom: 1rem;
  color: var(--mint);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.comparison-intro h2 {
  max-width: none;
  color: #fff;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(3rem, 7vw, 5.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.comparison-intro > p:not(.comparison-kicker) {
  max-width: 42rem;
  margin: 1.5rem auto 0;
  color: #94a3b8;
  font-size: 1.02rem;
  line-height: 1.8;
}

.comparison-content {
  max-width: 56rem;
  margin: clamp(3rem, 7vw, 5rem) auto 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.comparison-statement {
  padding-bottom: clamp(1.75rem, 4vw, 2.5rem);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  text-align: center;
}

.comparison-statement .comparison-choice-label {
  margin-bottom: 0.8rem;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.comparison-statement .comparison-choice-text {
  max-width: 40rem;
  margin: 0 auto;
  color: #e2e8f0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.34;
}

.comparison-principles {
  margin-top: 0.25rem;
}

.comparison-principle {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 1.75rem);
  align-items: baseline;
  padding: clamp(1.35rem, 3vw, 1.85rem) 0;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  text-align: left;
}

.comparison-benefit-number {
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.comparison-principle h3 {
  margin-bottom: 0.35rem;
  color: #fff;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.comparison-principle p {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.75;
}

.comparison-closing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.72fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  padding-top: clamp(1.5rem, 4vw, 2.25rem);
  border-top: 1px solid rgba(255,255,255,0.12);
}

.comparison-choice-label {
  margin-bottom: 0.65rem;
  color: #fff;
  font-weight: 800;
}

.comparison-choice-text,
.comparison-footer {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.75;
}

.comparison-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  color: var(--mint);
  font-size: 0.95rem;
  font-weight: 800;
  width: fit-content;
  transition: color 0.25s ease, transform 0.25s ease;
}

.comparison-link:hover {
  color: #fff;
  transform: translateX(4px);
}

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

  .comparison-intro h2,
  .comparison-intro > p:not(.comparison-kicker),
  .comparison-statement .comparison-choice-text {
    max-width: none;
  }

  .comparison-content {
    margin-top: 0.5rem;
  }

  .comparison-statement,
  .comparison-closing {
    text-align: center;
  }

  .comparison-principle {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    text-align: center;
  }

  .comparison-link {
    margin-left: auto;
    margin-right: auto;
  }
}

/* =====================================================
   LEGAL PAGES
   ===================================================== */
.legal-page #legal-hero { background: var(--ink); }

.legal-shell {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background:
    radial-gradient(circle at top left, rgba(56,189,248,0.08), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 1.5rem;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: 6.75rem;
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.legal-panel,
.legal-section {
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: rgba(255,255,255,0.03);
  box-shadow: 0 18px 50px rgba(0,0,0,0.18);
}

.legal-panel {
  padding: 1.5rem;
}

.legal-panel--summary {
  background:
    linear-gradient(160deg, rgba(16,185,129,0.1), rgba(56,189,248,0.04)),
    rgba(255,255,255,0.03);
}

.legal-summary-list {
  display: grid;
  gap: 1rem;
}

.legal-summary-card {
  padding: 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.025);
}

.legal-kicker,
.legal-meta-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mint);
}

.legal-kicker::before,
.legal-meta-label::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sky), var(--mint));
  box-shadow: 0 0 0 6px rgba(16,185,129,0.12);
}

.legal-updated-date {
  margin-top: 0.9rem;
  font-family: 'Syne', system-ui, sans-serif;
  font-size: clamp(1.7rem, 2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
}

.legal-summary-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: #fff;
}

.legal-summary-card p,
.legal-section p,
.legal-section li,
.legal-panel p {
  color: #94a3b8;
}

.legal-section {
  padding: 1.65rem;
}

.legal-section--accent {
  background:
    linear-gradient(160deg, rgba(56,189,248,0.08), rgba(16,185,129,0.04)),
    rgba(255,255,255,0.03);
}

.legal-section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 1vw + 1rem, 2rem);
}

.legal-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.legal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.legal-list li {
  position: relative;
  padding-left: 1.2rem;
}

.legal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sky), var(--mint));
}

.legal-section a,
.legal-panel a {
  color: #c7f9ff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-section a:hover,
.legal-panel a:hover {
  color: #fff;
}

.legal-cta {
  display: grid;
  gap: 1rem;
  background:
    linear-gradient(135deg, rgba(56,189,248,0.08), rgba(16,185,129,0.08)),
    rgba(255,255,255,0.03);
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .pricing-bottom {
    align-items: stretch;
  }

  .pricing-cta {
    width: 100%;
  }

  .legal-section,
  .legal-panel {
    padding: 1.2rem;
    border-radius: 1.2rem;
  }
}

/* =====================================================
   PROCESS
   ===================================================== */
.process-step {
  padding: 1.75rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  text-align: center;
  transition: all 0.3s ease;
}
.process-step:hover {
  border-color: rgba(16,185,129,0.2);
  background: rgba(16,185,129,0.04);
  transform: translateY(-4px);
}
.process-number {
  font-family: 'Syne', sans-serif; font-size: 2.5rem;
  font-weight: 800; letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--sky-deep), var(--mint));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

/* =====================================================
   FAQ
   ===================================================== */
.faq-list { display: flex; flex-direction: column; gap: 0.5rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255,255,255,0.02);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item:has(.faq-trigger[aria-expanded="true"]) {
  border-color: rgba(16,185,129,0.2);
}

.faq-trigger {
  width: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none; border: none; cursor: pointer;
  text-align: left; color: #e2e8f0;
  font-size: 0.95rem; font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: color 0.2s ease;
}
.faq-trigger:hover { color: #fff; }

.faq-icon {
  font-size: 1.25rem; font-weight: 300; flex-shrink: 0;
  color: #475569; transition: all 0.3s ease;
}
.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg); color: var(--mint);
}

.faq-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-body.open { max-height: 300px; }
.faq-body p {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.875rem; color: #64748b;
  line-height: 1.7;
}

/* =====================================================
   CONTACT OPTIONS
   ===================================================== */
.contact-option {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 0.25rem;
  padding: 1.75rem 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  transition: all 0.3s ease;
}
.contact-option:hover {
  border-color: rgba(16,185,129,0.25);
  background: rgba(16,185,129,0.05);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.contact-option-icon {
  font-size: 2rem; margin-bottom: 0.5rem;
  filter: grayscale(0.3);
  transition: filter 0.2s ease, transform 0.3s ease;
}
.contact-option:hover .contact-option-icon {
  filter: grayscale(0);
  transform: scale(1.15);
}

/* =====================================================
   SOCIAL LINKS
   ===================================================== */
.social-link {
  display: flex; align-items: center; gap: 0.5rem;
  color: #475569; font-size: 0.85rem; font-weight: 500;
  transition: all 0.2s ease;
}
.social-link:hover { color: #fff; }
.social-link svg { transition: transform 0.2s ease; }
.social-link:hover svg { transform: translateY(-2px); }

/* =====================================================
   PARTICLES
   ===================================================== */
.particle {
  position: absolute; border-radius: 999px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,0.7), rgba(56,189,248,0.2));
  animation: particleDrift 12s linear infinite;
}
@keyframes particleDrift {
  0%   { transform: translateY(0) translateX(0) scale(0.8); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-80px) translateX(10px) scale(1); opacity: 0; }
}

/* =====================================================
   MAGNETIC BUTTON
   ===================================================== */
.magnetic-btn {
  position: relative; overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.magnetic-btn::before {
  content: ''; position: absolute;
  top: 50%; left: 50%; width: 0; height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}
.magnetic-btn:active::before { width: 300px; height: 300px; }

/* =====================================================
   IMAGE LOADING
   ===================================================== */
.blur-load { filter: blur(8px); transition: filter 0.5s ease; }
.blur-load.loaded { filter: blur(0); }

/* =====================================================
   FAB
   ===================================================== */
#fab {
  font-size: 0.875rem;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
}

/* =====================================================
   FOOTER
   ===================================================== */
footer {
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.9s var(--ease-out) 0.3s forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   REDUCED MOTION
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .section-reveal, .animate-on-scroll {
    opacity: 1 !important; transform: none !important;
  }
  .hero-stagger { opacity: 1 !important; }
}

/* =====================================================
   MOBILE REFINEMENTS
   ===================================================== */
@media (max-width: 640px) {
  .hero-orb--1, .hero-orb--2 { display: none; }
  .process-number { font-size: 2rem; }
}
