/* ==============================
   fit·course — Design System v3
   Luxury Minimal + Editorial
   Inspired by 21st.dev patterns
   ============================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
  --bg:          #faf9f7;
  --bg-alt:      #f2f0eb;
  --bg-card:     #ffffff;
  --accent:      #4a7c59;
  --accent-dk:   #3a6347;
  --accent-lt:   #eef3ef;
  --accent-mid:  #c8dccf;
  --text:        #1a1a18;
  --text-2:      #5a5a54;
  --text-m:      #9a9a90;
  --border:      #e2dfd7;
  --font-d: 'Cormorant Garamond', Georgia, serif;
  --font-b: 'Manrope', system-ui, sans-serif;
  --r-sm: 8px; --r-md: 14px; --r-lg: 20px;
  --sh-sm: 0 1px 4px rgba(26,26,24,.06);
  --sh-md: 0 4px 16px rgba(26,26,24,.08);
  --sh-lg: 0 12px 40px rgba(26,26,24,.12);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-font-smoothing:antialiased; }
body {
  font-family: var(--font-b);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  /* Subtle grid pattern — inspired by MINIMAL hero */
  background-image:
    linear-gradient(rgba(0,0,0,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.018) 1px, transparent 1px);
  background-size: 80px 80px;
}
img { max-width:100%; height:auto; display:block; }
a { color:var(--accent); text-decoration:none; transition:color .2s; }
a:hover { color:var(--accent-dk); }

h1,h2,h3,h4 { font-family:var(--font-d); color:var(--text); letter-spacing:-.02em; }
h1 { font-size:clamp(36px,5vw,56px); font-weight:300; line-height:1.08; }
h2 { font-size:clamp(28px,3.5vw,40px); font-weight:400; line-height:1.15; }
h3 { font-size:22px; font-weight:400; line-height:1.25; }

.label {
  font-family:var(--font-b); font-weight:700; font-size:11px;
  letter-spacing:.12em; text-transform:uppercase; color:var(--accent);
}

.container { max-width:1180px; margin:0 auto; padding:0 32px; }
.section { padding:72px 0; }
.section-header { text-align:center; margin-bottom:48px; }
.section-header .label { margin-bottom:10px; display:inline-block; }
.section-header p { color:var(--text-2); font-size:17px; max-width:520px; margin:12px auto 0; line-height:1.6; }

/* ─── Buttons ─── */
.btn {
  font-family:var(--font-b); font-size:14px; font-weight:600;
  padding:12px 24px; border-radius:var(--r-sm); border:none; cursor:pointer;
  transition:all .25s cubic-bezier(.4,0,.2,1);
  display:inline-flex; align-items:center; gap:8px; text-decoration:none;
}
.btn-primary {
  background:var(--accent); color:#fff;
  box-shadow:0 2px 8px rgba(74,124,89,.25);
}
.btn-primary:hover {
  background:var(--accent-dk); color:#fff;
  box-shadow:0 6px 20px rgba(74,124,89,.35);
  transform:translateY(-2px);
}
.btn-outline { background:transparent; color:var(--accent); border:1.5px solid var(--accent); }
.btn-outline:hover { background:var(--accent-lt); color:var(--accent-dk); }
.btn-sm { padding:8px 18px; font-size:13px; }
.btn-lg { padding:16px 32px; font-size:15px; }

.tag {
  display:inline-flex; align-items:center; gap:6px;
  padding:5px 14px; border-radius:20px; font-size:12px; font-weight:600;
}
.tag-primary { background:var(--accent-lt); color:var(--accent); }

/* ═══ NAV ═══ */
.nav {
  position:fixed; top:0; left:0; right:0; height:64px;
  display:flex; align-items:center; z-index:1000;
  transition:all .35s cubic-bezier(.4,0,.2,1);
}
.nav.scrolled {
  background:rgba(250,249,247,.92);
  backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  box-shadow:0 1px 0 var(--border);
}
.nav .container { display:flex; align-items:center; justify-content:space-between; width:100%; }
.nav-logo { font-family:var(--font-d); font-size:24px; font-weight:400; color:var(--text); text-decoration:none; }
.nav-logo .dot { color:var(--accent); }
.nav-links { display:flex; align-items:center; gap:28px; list-style:none; }
.nav-links a { font-size:13px; font-weight:500; color:var(--text-2); transition:color .2s; }
.nav-links a:hover { color:var(--text); }
.nav-toggle { display:none; background:none; border:none; cursor:pointer; padding:8px; flex-direction:column; gap:5px; }
.nav-toggle span { display:block; width:22px; height:2px; background:var(--text); border-radius:2px; transition:all .3s; }

/* ═══ HERO ═══ */
.hero { padding-top:100px; padding-bottom:0; position:relative; overflow:hidden; }
.aurora-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.aurora-bg::after {
  content: "";
  position: absolute;
  top: -50%; right: -50%; bottom: -50%; left: -50%;
  background-image: 
    repeating-linear-gradient(
      100deg,
      rgba(74, 124, 89, 0.12) 0%,
      rgba(226, 179, 154, 0.2) 15%,
      transparent 20%,
      transparent 30%,
      rgba(160, 207, 165, 0.12) 40%,
      transparent 50%
    ),
    repeating-linear-gradient(
      100deg,
      rgba(197, 112, 112, 0.08) 10%,
      transparent 25%,
      rgba(74, 124, 89, 0.15) 35%,
      transparent 50%
    );
  background-size: 200% 200%;
  background-position: 50% 50%;
  filter: blur(80px);
  animation: aurora 30s linear infinite;
}
@keyframes aurora {
  from { background-position: 50% 50%, 50% 50%; }
  to { background-position: 350% 50%, 350% 50%; }
}

/* Accent line top — from MINIMAL inspiration */
.hero::before {
  content:''; position:absolute; top:0; left:0; height:3px; width:40%;
  background:linear-gradient(90deg, var(--accent), transparent);
}

.hero .container { display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:center; }
.hero-content { position:relative; z-index:1; }
.hero-content .tag { margin-bottom:16px; }
.hero-content h1 { margin-bottom:20px; }
.hero-content h1 .accent { color:var(--accent); }
.hero-subtitle { font-size:17px; color:var(--text-2); line-height:1.65; margin-bottom:28px; max-width:460px; }
.hero-actions { display:flex; gap:12px; flex-wrap:wrap; }

/* Hero mockup with glow effect */
.hero-visual { position:relative; z-index:1; }
.hero-mockup-wrapper {
  position:relative; border-radius:var(--r-lg); overflow:hidden;
  box-shadow:var(--sh-lg);
}
/* Glow behind mockup — from 21st.dev Glow component */
.hero-mockup-wrapper::after {
  content:''; position:absolute; top:50%; left:50%;
  width:120%; height:120%; transform:translate(-50%,-50%);
  background:radial-gradient(ellipse at center, rgba(74,124,89,.12) 0%, transparent 60%);
  z-index:-1; pointer-events:none;
}
.hero-mockup { width:100%; border-radius:var(--r-lg); display:block; }

/* Stats strip */
.hero-stats-strip {
  padding: 60px 0 40px;
  position: relative;
  z-index: 1;
}
.hero-stats-strip .container { display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.hero-stat { text-align:center; position:relative; padding-top:16px; }
/* Accent bar above stat */
.hero-stat::before {
  content:''; position:absolute; top:0; left:50%;
  transform:translateX(-50%); width:32px; height:3px;
  background:var(--accent); border-radius:2px;
}
.hero-stat-value { font-family:var(--font-d); font-size:32px; font-weight:500; color:var(--text); line-height:1; }
.hero-stat-label { font-size:12px; color:var(--text-m); margin-top:4px; line-height:1.4; }

/* ═══ PAIN ═══ */
.pain { background:var(--bg); }
.pain-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.pain-column { border-radius:var(--r-md); padding:28px 24px; }
.pain-column.before { background:#fdf5f5; border:1px solid #f0d4d4; }
.pain-column.after { background:var(--accent-lt); border:1px solid var(--accent-mid); }
.pain-column-header { display:flex; align-items:center; gap:10px; margin-bottom:20px; font-weight:700; font-size:15px; }
.pain-column-header svg { flex-shrink:0; }
.pain-column.before .pain-column-header { color:#9c3a3a; }
.pain-column.after .pain-column-header { color:var(--accent); }
.pain-item { display:flex; align-items:flex-start; gap:10px; padding:10px 0; font-size:14px; line-height:1.55; color:var(--text-2); }
.pain-item + .pain-item { border-top:1px solid rgba(0,0,0,.05); }
.pain-item svg { flex-shrink:0; margin-top:2px; }

/* ═══ FEATURES — Corner-dot pattern from Features 10 ═══ */
.features-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.feature-card {
  background:var(--bg-card); border-radius:var(--r-md); padding:28px 24px;
  border:1px solid var(--border); transition:all .3s cubic-bezier(.4,0,.2,1);
  position:relative; overflow:hidden;
}
/* Corner decorators — from Features 10 CardDecorator */
.feature-card::before, .feature-card::after {
  content:''; position:absolute; width:8px; height:8px;
  border-color:var(--accent); transition:opacity .3s; opacity:0;
}
.feature-card::before { top:-1px; left:-1px; border-left:2px solid; border-top:2px solid; }
.feature-card::after { bottom:-1px; right:-1px; border-right:2px solid; border-bottom:2px solid; }
.feature-card:hover::before, .feature-card:hover::after { opacity:1; }

/* Top gradient bar on hover */
.feature-card .card-bar {
  position:absolute; top:0; left:0; right:0; height:3px;
  background:linear-gradient(90deg, var(--accent), var(--accent-mid));
  opacity:0; transition:opacity .3s;
}
.feature-card:hover .card-bar { opacity:1; }

.feature-card:hover {
  box-shadow:var(--sh-md); transform:translateY(-4px);
  border-color:var(--accent-mid);
}
.feature-icon {
  width:44px; height:44px;
  background:linear-gradient(135deg, var(--accent-lt), var(--accent-mid));
  border-radius:10px; display:flex; align-items:center; justify-content:center;
  margin-bottom:16px; color:var(--accent);
}
.feature-card h3 { font-family:var(--font-b); font-size:16px; font-weight:700; margin-bottom:8px; color:var(--text); }
.feature-card p { font-size:14px; color:var(--text-2); line-height:1.55; }

/* ═══ CASE ═══ */
.case { background:var(--bg-alt); }
.case-content { display:grid; grid-template-columns:1.2fr 1fr; gap:40px; align-items:start; }
.case-text { font-size:16px; color:var(--text-2); line-height:1.7; }
.case-text p + p { margin-top:12px; }
.case-metrics { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.metric-card {
  background:var(--bg-card); border-radius:var(--r-md); padding:22px 18px;
  border:1px solid var(--border); text-align:center; transition:all .25s;
  position:relative; overflow:hidden;
}
/* Accent bar top */
.metric-card::before {
  content:''; position:absolute; top:0; left:50%; transform:translateX(-50%);
  width:24px; height:3px; background:var(--accent); border-radius:0 0 2px 2px;
}
.metric-card:hover { box-shadow:var(--sh-sm); transform:translateY(-2px); }
.metric-value { font-family:var(--font-d); font-size:34px; font-weight:500; color:var(--accent); line-height:1; margin-bottom:6px; }
.metric-label { font-size:12px; color:var(--text-m); line-height:1.4; }

.quote-block {
  border-left:3px solid var(--accent); padding:20px 24px;
  background:var(--accent-lt); border-radius:0 var(--r-sm) var(--r-sm) 0;
  margin-top:32px;
}
.quote-text { font-family:var(--font-d); font-size:19px; font-style:italic; font-weight:300; color:var(--text); line-height:1.5; margin-bottom:10px; }
.quote-author { font-size:13px; font-weight:600; color:var(--accent); }

/* Case visual */
.case-visual { margin-top:40px; }
.case-visual-wrapper {
  border-radius:var(--r-lg); overflow:hidden;
  box-shadow:var(--sh-lg); border:1px solid var(--border);
}
.case-visual-img { width:100%; display:block; }

/* ═══ PAIN VISUAL ═══ */
.pain-visual { text-align:center; margin-bottom:40px; }
.pain-visual-split {
  display: flex; gap: 20px; justify-content: center; align-items: center;
  max-width: 900px; margin: 0 auto;
}
.pain-visual-left, .pain-visual-right {
  flex: 1; border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--sh-md); background: var(--bg-card);
}
.pain-visual-left { aspect-ratio: 3/4; }
.pain-img-old {
  width: 100%; height: 100%; object-fit: cover; object-position: 20% center;
  transform: scale(1.05);
}
.pain-img-new { width: 100%; height: auto; display: block; }

/* ═══ HOW IT WORKS ═══ */
.how-it-works { background:var(--bg-alt); }
.steps-timeline { display:flex; align-items:flex-start; justify-content:center; gap:0; max-width:900px; margin:0 auto; }
.step {
  flex:1; text-align:center; padding:0 24px; position:relative;
}
.step-number {
  font-family:var(--font-d); font-size:42px; font-weight:300;
  color:var(--accent-mid); line-height:1; margin-bottom:12px;
}
.step-icon {
  width:56px; height:56px; margin:0 auto 16px;
  background:linear-gradient(135deg, var(--accent-lt), var(--accent-mid));
  border-radius:50%; display:flex; align-items:center; justify-content:center;
  color:var(--accent);
}
.step h3 { font-family:var(--font-b); font-size:16px; font-weight:700; margin-bottom:8px; color:var(--text); }
.step p { font-size:14px; color:var(--text-2); line-height:1.55; }
.step-line {
  width:60px; height:2px; background:var(--accent-mid);
  margin-top:50px; flex-shrink:0;
}

/* ═══ COMPARISON TABLE ═══ */
.compare-section { background:var(--bg); }
.compare-table-wrapper { overflow-x:auto; border-radius:var(--r-md); border:1px solid var(--border); }
.compare-table {
  width:100%; border-collapse:collapse; font-size:14px;
  background:var(--bg-card);
}
.compare-table thead { background:var(--bg-alt); }
.compare-table th {
  padding:16px 18px; text-align:center; font-weight:600; font-size:13px;
  border-bottom:2px solid var(--border); color:var(--text-2);
}
.compare-table th.highlight {
  background:var(--accent); color:#fff; font-weight:700;
  border-radius:0;
}
.compare-table td {
  padding:14px 18px; text-align:center; border-bottom:1px solid var(--border);
  color:var(--text-2); font-size:13px;
}
.compare-table td.highlight {
  background:var(--accent-lt); font-weight:600; color:var(--accent-dk);
}
.compare-table td.criteria {
  text-align:left; font-weight:600; color:var(--text);
}
.cmp-yes { color:var(--accent); font-weight:700; }
.cmp-no { color:#c57070; font-weight:700; font-size:16px; }
.cmp-partial { color:var(--text-m); font-style:italic; }
.compare-table tbody tr:hover { background:rgba(74,124,89,.03); }

/* ═══ FAQ ═══ */
.faq-section { background:var(--bg-alt); }
.faq-list { max-width:720px; margin:0 auto; }
.faq-item { border-bottom:1px solid var(--border); }
.faq-item:first-child { border-top:1px solid var(--border); }
.faq-question {
  width:100%; display:flex; justify-content:space-between; align-items:center;
  padding:20px 4px; background:none; border:none; cursor:pointer;
  font-family:var(--font-b); font-size:15px; font-weight:600;
  color:var(--text); text-align:left; gap:16px;
  transition:color .2s;
}
.faq-question:hover { color:var(--accent); }
.faq-question svg { flex-shrink:0; color:var(--accent); transition:transform .3s; }
.faq-question[aria-expanded="true"] svg { transform:rotate(180deg); }
.faq-answer {
  max-height:0; overflow:hidden; transition:all .35s ease;
  padding:0 4px; opacity:0; visibility:hidden;
}
.faq-answer.open { max-height:300px; padding:0 4px 20px; opacity:1; visibility:visible; }
.faq-answer p { font-size:14px; color:var(--text-2); line-height:1.65; margin:0; padding-top:8px; }

/* ═══ BLOG PREVIEW ═══ */
.blog-preview { background:var(--bg); }
.blog-grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:20px; }
.blog-card {
  background:var(--bg-card); border-radius:var(--r-md); overflow:hidden;
  border:1px solid var(--border); transition:all .3s;
  text-decoration:none; color:inherit; display:block;
}
.blog-card:hover {
  box-shadow:var(--sh-md); transform:translateY(-4px);
  border-color:var(--accent-mid); color:inherit;
}
.blog-card-img { overflow:hidden; aspect-ratio:16/10; background:var(--bg-alt); }
.blog-card-img img { width:100%; height:100%; object-fit:cover; transition:transform .3s; }
.blog-card:hover .blog-card-img img { transform:scale(1.05); }
.blog-card-body { padding:20px; }
.blog-card-date { font-size:12px; color:var(--text-m); margin-bottom:8px; display:block; }
.blog-card-body h3 { font-family:var(--font-b); font-size:15px; font-weight:700; line-height:1.35; margin-bottom:8px; color:var(--text); }
.blog-card-body p { font-size:13px; color:var(--text-2); line-height:1.5; }
.blog-more { text-align:center; margin-top:32px; }

/* ═══ FOR WHOM ═══ */
.for-whom-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; max-width:800px; margin:0 auto; }
.for-whom-card {
  display:flex; align-items:center; gap:14px;
  padding:18px 20px; background:var(--bg-card); border:1px solid var(--border);
  border-radius:var(--r-md); font-size:14px; color:var(--text-2);
  line-height:1.5; transition:all .25s;
}
.for-whom-card:hover { border-color:var(--accent-mid); box-shadow:var(--sh-sm); }
.for-whom-check {
  width:28px; height:28px; min-width:28px;
  background:var(--accent); border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0; color:#fff;
}
.for-whom-check svg { width:14px; height:14px; }
.for-whom-bottom { text-align:center; margin-top:28px; font-size:15px; color:var(--text-2); }
.for-whom-bottom strong { color:var(--accent); font-weight:700; }

/* ═══ CTA ═══ */
.cta { background:linear-gradient(180deg, var(--bg) 0%, var(--accent-lt) 100%); }
.cta-inner { max-width:520px; margin:0 auto; text-align:center; }
.cta-inner h2 { margin-bottom:12px; }
.cta-inner > p { color:var(--text-2); font-size:16px; margin-bottom:28px; }

.form {
  background:var(--bg-card); border-radius:var(--r-md); padding:32px;
  border:1px solid var(--border); box-shadow:var(--sh-md); text-align:left;
}
.form-group { margin-bottom:16px; }
.form-label { display:block; font-size:13px; font-weight:600; color:var(--text); margin-bottom:6px; }
.form-input, .form-select {
  padding:12px 16px; border:1.5px solid var(--border); border-radius:var(--r-sm);
  font-family:var(--font-b); font-size:14px; color:var(--text);
  background:var(--bg-card); width:100%; transition:all .2s; appearance:none;
}
.form-input:focus, .form-select:focus {
  border-color:var(--accent); outline:none;
  box-shadow:0 0 0 3px rgba(74,124,89,.1);
}
.form-input::placeholder { color:var(--text-m); }
.form-select {
  background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239a9a90' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position:right 12px center; background-repeat:no-repeat; background-size:20px;
  padding-right:40px;
}
.form .btn { width:100%; justify-content:center; margin-top:8px; }
.form-hint { font-size:12px; color:var(--text-m); text-align:center; margin-top:10px; }

.form-success { display:none; text-align:center; padding:32px 16px; }
.form-success.visible { display:block; }
.form-success-icon {
  width:56px; height:56px; background:var(--accent); border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 16px; color:#fff;
}
.form-success h3 { font-family:var(--font-d); font-size:24px; margin-bottom:8px; }
.form-success p { color:var(--text-2); font-size:15px; }
.form-fields.hidden { display:none; }

.cta-alt { margin-top:20px; font-size:14px; color:var(--text-m); }
.cta-alt a { font-weight:600; }

/* ═══ FOOTER ═══ */
.footer { padding:28px 0; border-top:1px solid var(--border); background:var(--bg-alt); }
.footer .container { display:flex; align-items:center; justify-content:space-between; }
.footer-logo { font-family:var(--font-d); font-size:18px; color:var(--text); text-decoration:none; }
.footer-logo .dot { color:var(--accent); }
.footer-right { display:flex; align-items:center; gap:24px; font-size:13px; color:var(--text-m); }
.footer-right a { color:var(--text-2); font-weight:500; }
.footer-right a:hover { color:var(--accent); }

/* ═══ GALLERY ═══ */
.gallery-section { background: var(--bg); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px;
}
.gallery-item {
  border-radius: var(--r-md); overflow: hidden; background: var(--bg-alt);
  border: 1px solid var(--border); position: relative;
}
.gallery-item img { width: 100%; height: auto; display: block; }
.gallery-caption {
  padding: 16px; text-align: center; font-size: 14px; font-weight: 600;
  color: var(--text); border-top: 1px solid var(--border); background: var(--bg-card);
}

/* ═══ CUSTOMIZATION ═══ */
.customization-section { background: var(--bg-alt); }
.theme-switcher-wrapper { max-width: 900px; margin: 0 auto; }
.theme-controls {
  display: flex; gap: 16px; justify-content: center; margin-bottom: 32px; flex-wrap: wrap;
}
.theme-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 16px 8px 8px; border-radius: 40px;
  background: var(--bg-card); border: 1px solid var(--border);
  font-family: var(--font-b); font-size: 14px; font-weight: 600; color: var(--text);
  cursor: pointer; transition: all 0.2s;
}
.theme-btn.active, .theme-btn:hover { border-color: var(--accent); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.theme-swatch { width: 24px; height: 24px; border-radius: 50%; overflow: hidden; display: block; }

.theme-demo-container {
  --demo-bg: #f2f0eb; --demo-sidebar: #222220; --demo-sidebar-text: #fff;
  --demo-sidebar-active: var(--accent); --demo-sidebar-active-text: #fff;
  --demo-card-bg: #fff; --demo-border: #e1ded6; --demo-text: #111; --demo-text-m: #666; --demo-accent: #4a7c59;
  display: flex; height: 400px; border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.1); background: var(--demo-bg); transition: all 0.5s ease;
}
.theme-demo-container[data-theme="dark"] {
  --demo-bg: #1a1a1a; --demo-sidebar: #0f0f0f; --demo-sidebar-text: #e0e0e0;
  --demo-sidebar-active: rgba(212, 175, 55, 0.15); --demo-sidebar-active-text: #d4af37;
  --demo-card-bg: #252525; --demo-border: #333; --demo-text: #fff; --demo-text-m: #999; --demo-accent: #d4af37;
}
.theme-demo-container[data-theme="nude"] {
  --demo-bg: #fdfaf6; --demo-sidebar: #efe8df; --demo-sidebar-text: #5c4e46;
  --demo-sidebar-active: #b58d7c; --demo-sidebar-active-text: #fff;
  --demo-card-bg: #fff; --demo-border: #efe8df; --demo-text: #3d332e; --demo-text-m: #8c7d75; --demo-accent: #b58d7c;
}
.theme-demo-sidebar {
  width: 200px; background: var(--demo-sidebar); color: var(--demo-sidebar-text);
  padding: 24px 16px; display: flex; flex-direction: column; gap: 8px; transition: all 0.5s ease;
}
.demo-logo { font-family: var(--font-d); font-size: 20px; margin-bottom: 24px; padding-left: 12px; transition: color 0.5s ease; }
.demo-nav-item {
  padding: 10px 12px; border-radius: 8px; font-size: 13px; font-weight: 500;
  transition: all 0.3s ease; cursor: pointer; color: var(--demo-sidebar-text); opacity: 0.7;
}
.demo-nav-item:hover { opacity: 1; }
.demo-nav-item.active { background: var(--demo-sidebar-active); color: var(--demo-sidebar-active-text); opacity: 1; }
.theme-demo-content { flex: 1; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.demo-header { display: flex; justify-content: space-between; align-items: center; }
.demo-header h3 { font-family: var(--font-b); color: var(--demo-text); transition: color 0.5s ease; margin:0;}
.demo-btn {
  background: var(--demo-accent); color: #fff; border: none; padding: 10px 20px;
  border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.5s ease;
}
.demo-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.demo-card {
  background: var(--demo-card-bg); border: 1px solid var(--demo-border); border-radius: 12px;
  padding: 20px; transition: all 0.5s ease;
}
.demo-card-title { font-size: 12px; color: var(--demo-text-m); margin-bottom: 8px; transition: color 0.5s ease; }
.demo-card-val { font-size: 24px; font-family: var(--font-d); color: var(--demo-text); transition: color 0.5s ease; }
.demo-graph {
  flex: 1; background: var(--demo-card-bg); border: 1px solid var(--demo-border); border-radius: 12px;
  transition: all 0.5s ease; position: relative; overflow: hidden;
}
.demo-graph::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(to top, var(--demo-accent) 0%, transparent 100%);
  opacity: 0.1; transition: all 0.5s ease;
}

/* ═══ LIGHTBOX ═══ */
.lightbox {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 15, 12, 0.9); backdrop-filter: blur(10px); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox-img {
  max-width: 90%; max-height: 90vh; border-radius: var(--r-sm);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5); transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox.active .lightbox-img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 30px; right: 30px; background: rgba(255,255,255,0.1);
  border: none; color: #fff; width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.zoomable { cursor: zoom-in; transition: transform 0.3s; }
.zoomable:hover { transform: scale(1.02); }

/* ═══ ANIMATIONS ═══ */
.fade-in { opacity:0; transform:translateY(20px); transition:opacity .5s ease-out, transform .5s ease-out; }
.fade-in.visible { opacity:1; transform:translateY(0); }

.feature-card:nth-child(1) { transition-delay:0s; }
.feature-card:nth-child(2) { transition-delay:.08s; }
.feature-card:nth-child(3) { transition-delay:.16s; }
.feature-card:nth-child(4) { transition-delay:.24s; }
.feature-card:nth-child(5) { transition-delay:.32s; }
.feature-card:nth-child(6) { transition-delay:.4s; }

/* ═══ RESPONSIVE ═══ */
@media (max-width:960px) {
  .hero .container { grid-template-columns:1fr; gap:32px; }
  .hero-visual { max-width:520px; margin:0 auto; }
  .pain-grid { grid-template-columns:1fr; }
  .features-grid { grid-template-columns:repeat(2,1fr); }
  .case-content { grid-template-columns:1fr; gap:24px; }
  .hero-stats-strip .container { grid-template-columns:repeat(2,1fr); }
  .blog-grid { grid-template-columns:repeat(2,1fr); }
  .gallery-grid { grid-template-columns:1fr; }
  .steps-timeline { flex-direction:column; align-items:center; gap:24px; }
  .step-line { width:2px; height:40px; margin:0; }
  .compare-table { font-size:12px; }
  .compare-table th, .compare-table td { padding:10px 8px; }
  .nav-links {
    display:none; position:fixed; top:64px; left:0; right:0;
    background:rgba(250,249,247,.98); backdrop-filter:blur(12px);
    flex-direction:column; padding:20px 32px;
    border-bottom:1px solid var(--border); gap:12px;
  }
  .nav-links.open { display:flex; }
  .nav-toggle { display:flex; }
}
@media (max-width:640px) {
  .container { padding:0 20px; }
  .section { padding:48px 0; }
  .hero { padding-top:84px; }
  .hero-stats-strip .container { grid-template-columns:repeat(2,1fr); gap:16px; }
  .features-grid { grid-template-columns:1fr; }
  .case-metrics { grid-template-columns:1fr 1fr; }
  .for-whom-grid { grid-template-columns:1fr; }
  .hero-actions { flex-direction:column; }
  .hero-actions .btn { width:100%; justify-content:center; }
  .footer .container { flex-direction:column; gap:12px; text-align:center; }
  .footer-right { flex-direction:column; gap:8px; }
  .form { padding:24px 20px; }
  .blog-grid { grid-template-columns:1fr; }
  .compare-table-wrapper { margin:0 -20px; border-radius:0; border-left:none; border-right:none; }
  .pain-visual-split { flex-direction: column; }
  .pain-visual-left { aspect-ratio: 16/9; }
  .pain-img-old { object-position: center 20%; transform: scale(1.2); }
  .theme-demo-container { flex-direction: column; height: auto; }
  .theme-demo-sidebar { width: 100%; flex-direction: row; padding: 16px; overflow-x: auto; align-items: center; }
  .demo-logo { margin-bottom: 0; margin-right: 16px; }
  .demo-nav-item { white-space: nowrap; }
}
