/*
 Theme Name:   Closely Theme (EPZH)
 Theme URI:    https://epzh.com
 Description:  Dark, high-contrast marketing theme for EPZH — Every Party, Zero Hassle.
 Version:      2.0.0
 Author:       EPZH
 Text Domain:  closely-theme
*/

/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #07090f;
  color: #e2e8f0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ── CSS variables ────────────────────────────────────────────────────────── */
:root {
  --bg:          #07090f;
  --bg-2:        #0d1117;
  --bg-3:        #111827;
  --surface:     #161d2e;
  --surface-2:   #1e2a3f;
  --border:      #1e293b;
  --border-2:    #263352;
  --text:        #f1f5f9;
  --text-dim:    #94a3b8;
  --text-muted:  #64748b;
  --accent:      #3b82f6;
  --accent-glow: rgba(59,130,246,.18);
  --accent-2:    #8b5cf6;
  --green:       #22c55e;
  --amber:       #f59e0b;
  --red:         #ef4444;
  --radius:      10px;
  --shadow:      0 4px 24px rgba(0,0,0,.5);
  --header-h:    68px;
}

/* ── Typography scale ─────────────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { color: var(--text); font-weight: 700; line-height: 1.2; }
.ct-display  { font-size: clamp(2.4rem, 5vw, 4rem);   font-weight: 800; letter-spacing: -.03em; }
.ct-h1       { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; letter-spacing: -.02em; }
.ct-h2       { font-size: clamp(1.4rem, 2.5vw, 2rem);   font-weight: 700; }
.ct-h3       { font-size: 1.2rem; font-weight: 600; }
.ct-lead     { font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--text-dim); max-width: 640px; line-height: 1.7; }
.ct-label    { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.ct-muted    { color: var(--text-muted); font-size: .9rem; }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.ct-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ct-section   { padding: 96px 0; }
.ct-section-sm { padding: 64px 0; }
.ct-section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.ct-section-head .ct-h2 { margin: 12px 0 16px; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.ct-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 8px; font-size: .95rem;
  font-weight: 600; border: none; transition: all .18s; white-space: nowrap;
}
.ct-btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.ct-btn-primary:hover { background: #2563eb; box-shadow: 0 0 20px var(--accent-glow); transform: translateY(-1px); }
.ct-btn-secondary {
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border-2);
}
.ct-btn-secondary:hover { background: var(--surface); border-color: var(--accent); }
.ct-btn-ghost { background: transparent; color: var(--text-dim); border: 1px solid var(--border); }
.ct-btn-ghost:hover { color: var(--text); border-color: var(--border-2); }
.ct-btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ── Header / Navigation ──────────────────────────────────────────────────── */
.ct-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h); display: flex; align-items: center;
  background: rgba(7,9,15,.88);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.ct-header.scrolled { background: rgba(7,9,15,.98); }
.ct-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.ct-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.25rem; font-weight: 800; color: var(--text);
}
.ct-logo-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 16px;
}
.ct-logo-sub { font-size: .7rem; font-weight: 400; color: var(--text-muted); display: block; line-height: 1; }
.ct-nav { display: flex; align-items: center; gap: 6px; }
.ct-nav a, .ct-nav-link {
  padding: 8px 14px; border-radius: 6px; font-size: .88rem;
  color: var(--text-dim); font-weight: 500; transition: all .15s;
  background: none; border: none; cursor: pointer;
}
.ct-nav a:hover, .ct-nav-link:hover { color: var(--text); background: var(--surface); }
.ct-nav-dropdown { position: relative; display: inline-block; }
.ct-nav-dropdown-toggle { position: relative; }
.ct-nav-dropdown-toggle::after {
  content: '▼'; margin-left: 4px; font-size: .6rem; opacity: .6;
  transition: opacity .2s;
}
.ct-nav-dropdown:hover .ct-nav-dropdown-toggle::after { opacity: 1; }
.ct-nav-submenu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 200px;
  background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: 10px; padding: 8px 0; box-shadow: 0 10px 30px rgba(0,0,0,.5);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all .2s ease;
  z-index: 1001;
}
.ct-nav-dropdown:hover .ct-nav-submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.ct-nav-submenu a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 0; color: var(--text-dim);
  white-space: nowrap; transition: all .15s;
}
.ct-nav-submenu a:hover { background: var(--surface); color: var(--text); }
.ct-nav-submenu-divider {
  height: 1px; background: var(--border);
  margin: 4px 0;
}
.ct-header-actions { display: flex; align-items: center; gap: 10px; }

/* ── Hero Carousel ─────────────────────────────────────────────────────────── */
.ct-carousel {
  position: relative; overflow: hidden; width: 100%;
  min-height: 100vh; padding-top: var(--header-h);
}
.ct-slides { display: flex; width: 100%; height: 100%; }
.ct-slide {
  flex: 0 0 100%; min-height: calc(100vh - var(--header-h));
  display: flex; align-items: center; position: relative; overflow: hidden;
  transition: opacity .6s ease;
}
.ct-slide-bg {
  position: absolute; inset: 0; z-index: 0;
}
.ct-slide-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(7,9,15,.92) 48%, rgba(7,9,15,.45) 100%);
}
.ct-slide-gradient-1 { background: linear-gradient(135deg, #0d1117 0%, #1a1040 100%); }
.ct-slide-gradient-2 { background: linear-gradient(135deg, #070c14 0%, #0c2040 100%); }
.ct-slide-gradient-3 { background: linear-gradient(135deg, #0a0f1a 0%, #1a0e30 100%); }
.ct-slide-gradient-4 { background: linear-gradient(135deg, #07090f 0%, #0e1e14 100%); }
.ct-slide-gradient-5 { background: linear-gradient(135deg, #0d1117 0%, #1a1510 100%); }
.ct-slide-gradient-6 { background: linear-gradient(135deg, #07090f 0%, #1a0c10 100%); }
.ct-slide-gradient-7 { background: linear-gradient(135deg, #070c14 0%, #0a1a30 100%); }
/* Decorative floating shapes */
.ct-slide-shape {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .12; z-index: 1;
}
.ct-slide-content {
  position: relative; z-index: 2; max-width: 1200px; margin: 0 auto;
  padding: 80px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.ct-slide-text { max-width: 580px; }
.ct-slide-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.3);
  color: var(--accent); font-size: .78rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 20px; margin-bottom: 20px;
}
.ct-slide-title {
  font-size: clamp(2rem, 4.5vw, 3.6rem); font-weight: 800; line-height: 1.1;
  letter-spacing: -.03em; color: #fff; margin-bottom: 20px;
}
.ct-slide-title em { font-style: normal; color: var(--accent); }
.ct-slide-sub { font-size: 1.05rem; color: var(--text-dim); line-height: 1.7; margin-bottom: 36px; max-width: 480px; }
.ct-slide-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ct-slide-visual {
  display: flex; align-items: center; justify-content: center; position: relative;
}
/* Carousel controls */
.ct-carousel-nav {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; align-items: center; gap: 8px;
}
.ct-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.25);
  border: none; transition: all .3s; cursor: pointer; padding: 0;
}
.ct-carousel-dot.active { background: var(--accent); width: 24px; border-radius: 4px; }
.ct-carousel-prev, .ct-carousel-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12); color: #fff; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; cursor: pointer;
}
.ct-carousel-prev { left: 24px; }
.ct-carousel-next { right: 24px; }
.ct-carousel-prev:hover, .ct-carousel-next:hover { background: rgba(59,130,246,.2); border-color: var(--accent); }

/* ── UI mockup cards inside slides ──────────────────────────────────────────── */
.ct-mock-card {
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: 14px; padding: 20px; min-width: 320px;
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
}
.ct-mock-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.ct-mock-dot { width: 10px; height: 10px; border-radius: 50%; }
.ct-mock-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; border-radius: 8px; margin-bottom: 8px;
  background: var(--bg-3);
}
.ct-mock-row:last-child { margin-bottom: 0; }
.ct-mock-label { font-size: .82rem; color: var(--text-dim); }
.ct-mock-val { font-size: .88rem; font-weight: 600; color: var(--text); }
.ct-mock-badge {
  font-size: .7rem; font-weight: 700; padding: 3px 8px;
  border-radius: 4px; text-transform: uppercase;
}
.ct-mock-badge.blue  { background: rgba(59,130,246,.15); color: #60a5fa; }
.ct-mock-badge.green { background: rgba(34,197,94,.15);  color: #4ade80; }
.ct-mock-badge.amber { background: rgba(245,158,11,.15); color: #fbbf24; }
.ct-mock-badge.purple{ background: rgba(139,92,246,.15); color: #a78bfa; }
.ct-mock-progress { height: 4px; background: var(--border); border-radius: 2px; margin-top: 12px; overflow: hidden; }
.ct-mock-progress-bar { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 2px; }
.ct-mock-stat { text-align: center; }
.ct-mock-stat-val { font-size: 1.5rem; font-weight: 800; color: var(--text); }
.ct-mock-stat-label { font-size: .72rem; color: var(--text-muted); margin-top: 2px; }
.ct-mock-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 16px; }
.ct-mock-stat-box { background: var(--bg-3); border-radius: 8px; padding: 12px 8px; text-align: center; }
.ct-mock-timeline { display: flex; flex-direction: column; gap: 8px; }
.ct-mock-tl-item { display: flex; align-items: flex-start; gap: 10px; }
.ct-mock-tl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 4px; flex-shrink: 0; }
.ct-mock-tl-done .ct-mock-tl-dot { background: var(--green); }
.ct-mock-tl-text { font-size: .8rem; color: var(--text-dim); }
.ct-mock-tl-label { font-size: .82rem; font-weight: 500; color: var(--text); }

/* ── How it works ──────────────────────────────────────────────────────────── */
.ct-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; position: relative; }
.ct-steps::before {
  content: ''; position: absolute; top: 40px; left: calc(16.66% + 20px);
  right: calc(16.66% + 20px); height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2), transparent);
}
.ct-step { padding: 0 24px; text-align: center; }
.ct-step-num {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 800; position: relative;
}
.ct-step-num::before {
  content: ''; position: absolute; inset: -1px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); z-index: -1;
}
.ct-step-num-inner {
  width: 100%; height: 100%; border-radius: 50%; background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800; color: var(--accent);
}
.ct-step h3 { font-size: 1.1rem; margin-bottom: 10px; }
.ct-step p { font-size: .9rem; color: var(--text-dim); line-height: 1.6; }

/* ── Feature grid ─────────────────────────────────────────────────────────── */
.ct-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ct-feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px 24px;
  transition: all .2s; position: relative; overflow: hidden;
}
.ct-feature-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(135deg, var(--accent-glow), transparent);
  transition: opacity .3s;
}
.ct-feature-card:hover { border-color: var(--border-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.ct-feature-card:hover::before { opacity: 1; }
.ct-feature-icon {
  width: 48px; height: 48px; border-radius: 10px; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(59,130,246,.15), rgba(139,92,246,.1));
  border: 1px solid rgba(59,130,246,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.ct-feature-card h3 { font-size: 1rem; margin-bottom: 8px; }
.ct-feature-card p { font-size: .875rem; color: var(--text-dim); line-height: 1.6; }

/* ── Role tabs ────────────────────────────────────────────────────────────── */
.ct-role-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; }
.ct-role-tab {
  padding: 10px 20px; border-radius: 8px; font-size: .88rem; font-weight: 500;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-dim);
  cursor: pointer; transition: all .2s;
}
.ct-role-tab.active, .ct-role-tab:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.ct-role-panel { display: none; }
.ct-role-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.ct-role-benefits { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.ct-role-benefits li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: .95rem; color: var(--text-dim); line-height: 1.5;
}
.ct-role-benefits li::before {
  content: '✓'; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(34,197,94,.15); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; flex-shrink: 0; margin-top: 1px;
}

/* ── Stats bar ────────────────────────────────────────────────────────────── */
.ct-stats-bar {
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 100%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.ct-stats-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.ct-stat-item { padding: 48px 32px; text-align: center; border-right: 1px solid var(--border); }
.ct-stat-item:last-child { border-right: none; }
.ct-stat-num { font-size: 2.6rem; font-weight: 800; color: var(--text); line-height: 1; margin-bottom: 8px; }
.ct-stat-num span { color: var(--accent); }
.ct-stat-label { font-size: .85rem; color: var(--text-dim); }

/* ── Reviews ──────────────────────────────────────────────────────────────── */
.ct-reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ct-review-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px;
}
.ct-stars { color: var(--amber); font-size: .9rem; letter-spacing: 2px; margin-bottom: 14px; }
.ct-review-text { font-size: .92rem; color: var(--text-dim); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.ct-review-author { display: flex; align-items: center; gap: 12px; }
.ct-review-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .88rem; color: #fff; flex-shrink: 0;
}
.ct-review-name { font-size: .9rem; font-weight: 600; color: var(--text); }
.ct-review-role { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }

/* ── Pricing ──────────────────────────────────────────────────────────────── */
.ct-pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; align-items: start; }
.ct-price-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px 28px; position: relative;
}
.ct-price-card.featured {
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  border-color: var(--accent); box-shadow: 0 0 40px rgba(59,130,246,.12);
}
.ct-price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700;
  padding: 4px 14px; border-radius: 20px; letter-spacing: .05em; white-space: nowrap;
}
.ct-price-name { font-size: .85rem; color: var(--text-muted); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.ct-price-amount { font-size: 2.4rem; font-weight: 800; color: var(--text); margin: 12px 0 4px; line-height: 1; }
.ct-price-amount sub { font-size: 1rem; font-weight: 500; color: var(--text-dim); vertical-align: bottom; }
.ct-price-period { font-size: .82rem; color: var(--text-muted); margin-bottom: 24px; }
.ct-price-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.ct-price-features li { font-size: .875rem; color: var(--text-dim); display: flex; align-items: center; gap: 8px; }
.ct-price-features li::before { content: '✓'; color: var(--green); font-size: .8rem; font-weight: 700; }

/* ── CTA section ──────────────────────────────────────────────────────────── */
.ct-cta-section {
  text-align: center;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(59,130,246,.06) 0%, transparent 70%);
}
.ct-cta-section .ct-h2 { margin-bottom: 16px; }
.ct-cta-section .ct-lead { margin: 0 auto 36px; }

/* ── Login modal ──────────────────────────────────────────────────────────── */
.ct-modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.75); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.ct-modal-overlay.open { opacity: 1; pointer-events: all; }
.ct-modal {
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: 18px; width: 100%; max-width: 440px; padding: 40px 36px;
  position: relative; box-shadow: 0 32px 80px rgba(0,0,0,.7);
  transform: translateY(16px); transition: transform .3s;
}
.ct-modal-overlay.open .ct-modal { transform: translateY(0); }
.ct-modal-close {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px;
  border-radius: 50%; background: var(--bg-3); border: none;
  color: var(--text-dim); font-size: 18px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .15s;
}
.ct-modal-close:hover { background: var(--border-2); color: var(--text); }
.ct-modal-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.ct-modal-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 6px; }
.ct-modal-sub { font-size: .88rem; color: var(--text-dim); margin-bottom: 28px; }
.ct-modal input {
  width: 100%; padding: 13px 16px; border-radius: 9px; font-size: .95rem;
  background: var(--bg-2); border: 1px solid var(--border-2); color: var(--text);
  outline: none; transition: border .15s; margin-bottom: 12px;
}
.ct-modal input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.ct-modal input::placeholder { color: var(--text-muted); }
.ct-modal .ct-btn { width: 100%; justify-content: center; padding: 14px; }
.ct-modal-divider { text-align: center; color: var(--text-muted); font-size: .8rem; margin: 16px 0; position: relative; }
.ct-modal-divider::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--border); }
.ct-modal-divider span { background: var(--surface); padding: 0 12px; position: relative; }
.ct-modal-note { font-size: .78rem; color: var(--text-muted); text-align: center; margin-top: 16px; line-height: 1.5; }

/* ── Page (inner pages) ───────────────────────────────────────────────────── */
.ct-page { padding: calc(var(--header-h) + 40px) 0 60px; min-height: 80vh; }
.ct-prose { max-width: 760px; margin: 0 auto; color: var(--text-dim); }

/* ── Full-width (app pages) ───────────────────────────────────────────────── */
.ct-fullwidth-page { min-height: 100vh; }
body.closely-app-page .ct-page,
body.closely-app-page .ct-container,
body.closely-app-page .ct-prose,
body.closely-app-page .ct-page-head,
.ct-fullwidth-page .ct-container,
.ct-fullwidth-page .ct-prose {
  max-width: none !important; padding: 0 !important; margin: 0 !important;
}
body.closely-app-page main.ct-page { padding: 0 !important; }
body.closely-app-page .ct-page-head { display: none !important; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.ct-footer {
  background: var(--bg-2); border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.ct-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 48px;
}
.ct-footer-brand p { font-size: .875rem; color: var(--text-muted); margin: 12px 0 20px; line-height: 1.6; max-width: 260px; }
.ct-footer-col h4 { font-size: .82rem; font-weight: 600; color: var(--text); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.ct-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.ct-footer-col ul li a { font-size: .875rem; color: var(--text-muted); transition: color .15s; }
.ct-footer-col ul li a:hover { color: var(--text); }
.ct-footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .8rem; color: var(--text-muted);
}
.ct-footer-legal { display: flex; gap: 20px; }
.ct-footer-legal a { color: var(--text-muted); }
.ct-footer-legal a:hover { color: var(--text); }
.ct-social-links { display: flex; gap: 10px; }
.ct-social-link {
  width: 32px; height: 32px; border-radius: 8px; background: var(--surface);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: .85rem; color: var(--text-dim); transition: all .15s;
}
.ct-social-link:hover { border-color: var(--accent); color: var(--accent); }

/* ── Misc components ──────────────────────────────────────────────────────── */
.ct-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 20px;
  border: 1px solid; letter-spacing: .04em; text-transform: uppercase;
}
.ct-tag-blue  { color: #60a5fa; border-color: rgba(96,165,250,.3); background: rgba(59,130,246,.08); }
.ct-tag-green { color: #4ade80; border-color: rgba(74,222,128,.3); background: rgba(34,197,94,.08); }
.ct-tag-amber { color: #fbbf24; border-color: rgba(251,191,36,.3); background: rgba(245,158,11,.08); }
.ct-tag-purple{ color: #a78bfa; border-color: rgba(167,139,250,.3); background: rgba(139,92,246,.08); }
.ct-divider { height: 1px; background: var(--border); margin: 0; }
.ct-gradient-text {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.ct-glow-line {
  height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .4;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ct-features-grid { grid-template-columns: repeat(2,1fr); }
  .ct-reviews-grid  { grid-template-columns: repeat(2,1fr); }
  .ct-pricing-grid  { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .ct-steps         { grid-template-columns: 1fr; gap: 40px; }
  .ct-steps::before { display: none; }
  .ct-footer-grid   { grid-template-columns: 1fr 1fr; }
  .ct-stats-grid    { grid-template-columns: repeat(2,1fr); }
  .ct-stat-item:nth-child(2) { border-right: none; }
}
@media (max-width: 768px) {
  .ct-slide-content  { grid-template-columns: 1fr; }
  .ct-slide-visual   { display: none; }
  .ct-features-grid  { grid-template-columns: 1fr; }
  .ct-reviews-grid   { grid-template-columns: 1fr; }
  .ct-role-panel.active { grid-template-columns: 1fr; }
  .ct-nav            { flex-wrap: wrap; }
  .ct-nav-submenu { position: fixed; top: 50%; left: 50%; min-width: 240px;
    transform: translate(-50%, -50%); }
  .ct-footer-grid    { grid-template-columns: 1fr; }
  .ct-stats-grid     { grid-template-columns: repeat(2,1fr); }
  .ct-footer-bottom  { flex-direction: column; gap: 14px; text-align: center; }
}
