/* =========================================================
   EczaRK Landing Page — Modern, lead-focused, mobile-first
   ========================================================= */

/* ---------- CSS Variables ---------- */
:root {
  --color-primary: #6240c8;
  --color-primary-dark: #4f31a8;
  --color-primary-light: #a145fe;
  --color-accent: #E44E83;
  --color-accent-soft: #ffe5ee;
  --color-success: #16a34a;
  --color-warning: #f59e0b;
  --color-dark: #1a1d2e;
  --color-text: #313450;
  --color-body: #5a5f80;
  --color-muted: #8b8fad;
  --color-bg: #ffffff;
  --color-bg-soft: #f7f5ff;
  --color-bg-alt: #F4F7FC;
  --color-border: #ebe9f4;
  --color-border-light: #f1eff8;

  --gradient-primary: linear-gradient(135deg, #6240c8 0%, #a145fe 100%);
  --gradient-soft: linear-gradient(135deg, #f7f5ff 0%, #ffffff 100%);
  --gradient-mesh: radial-gradient(at 0% 0%, rgba(98, 64, 200, 0.08) 0px, transparent 50%),
                   radial-gradient(at 100% 0%, rgba(228, 78, 131, 0.06) 0px, transparent 50%),
                   radial-gradient(at 50% 100%, rgba(161, 69, 254, 0.05) 0px, transparent 50%);

  --shadow-sm: 0 1px 2px rgba(26, 29, 46, 0.04), 0 1px 3px rgba(26, 29, 46, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(26, 29, 46, 0.05), 0 2px 4px -1px rgba(26, 29, 46, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(26, 29, 46, 0.08), 0 4px 6px -2px rgba(26, 29, 46, 0.04);
  --shadow-xl: 0 20px 40px -5px rgba(98, 64, 200, 0.15), 0 8px 16px -4px rgba(98, 64, 200, 0.08);
  --shadow-glow: 0 0 0 4px rgba(98, 64, 200, 0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --font-sans: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --header-h: 72px;
  --container-max: 1200px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(98, 64, 200, 0.15);
}
body.menu-open { overflow: hidden; }
section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-body);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  color: var(--color-text);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
p { margin: 0 0 1em; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
  position: relative;
}

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.preloader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
html.preloader-done #preloader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  color: var(--color-text);
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--color-text); }
.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 6px 14px rgba(98, 64, 200, 0.3);
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  color: var(--color-text);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover {
  background: var(--color-bg-soft);
  color: var(--color-primary);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-full);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1;
}
.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(98, 64, 200, 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(98, 64, 200, 0.36);
  color: #fff;
}
.btn-primary:active { transform: translateY(0); }
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-primary);
  background: var(--color-bg-soft);
}
.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}
.btn-icon { font-size: 18px; line-height: 1; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--color-text);
}
.menu-toggle svg { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 60px) 0 80px;
  background: var(--gradient-mesh), var(--color-bg);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(98, 64, 200, 0.12) 0%, transparent 60%);
  z-index: 0;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 20px;
  color: var(--color-dark);
}
.hero h1 .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--color-body);
  margin-bottom: 32px;
  line-height: 1.6;
  max-width: 540px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: var(--color-muted);
  font-weight: 600;
}
.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-success);
  flex-shrink: 0;
}

/* Hero visual / dashboard mockup */
.hero-visual {
  position: relative;
}
.dashboard-mock {
  position: relative;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-3deg) rotateX(2deg);
  transition: transform 0.6s ease;
}
.dashboard-mock:hover {
  transform: perspective(1200px) rotateY(-1deg) rotateX(1deg);
}
.dashboard-header {
  background: #f9f7ff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--color-border-light);
}
.dashboard-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e5e2f0;
}
.dashboard-dot.r { background: #ff5f57; }
.dashboard-dot.y { background: #febc2e; }
.dashboard-dot.g { background: #28c840; }
.dashboard-url {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--color-muted);
  font-weight: 600;
  background: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--color-border-light);
}
.dashboard-body {
  padding: 24px;
  min-height: 380px;
  background: linear-gradient(180deg, #ffffff 0%, #fafaff 100%);
}
.dash-title {
  font-size: 14px;
  color: var(--color-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.dash-h {
  font-size: 20px;
  color: var(--color-dark);
  font-weight: 800;
  margin-bottom: 20px;
}
.dash-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  font-size: 14px;
}
.dash-row-left { display: flex; align-items: center; gap: 12px; }
.dash-row-name { font-weight: 700; color: var(--color-text); }
.dash-row-sub { font-size: 12px; color: var(--color-muted); margin-top: 2px; }
.dash-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--color-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-weight: 800;
  font-size: 14px;
}
.dash-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}
.tag-success { background: #ecfdf5; color: var(--color-success); }
.tag-warning { background: #fffbeb; color: var(--color-warning); }
.tag-error { background: #fef2f2; color: #dc2626; }
.dash-tag svg { width: 12px; height: 12px; }

/* Floating cards around dashboard */
.float-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  border: 1px solid var(--color-border-light);
  animation: float 5s ease-in-out infinite;
}
.float-card.fc-1 {
  top: -20px;
  left: -20px;
  animation-delay: 0s;
}
.float-card.fc-2 {
  bottom: 30px;
  right: -30px;
  animation-delay: 1.5s;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.float-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.fc-1 .float-card-icon { background: var(--gradient-primary); }
.fc-2 .float-card-icon { background: linear-gradient(135deg, #16a34a, #4ade80); }
.float-card-text { line-height: 1.3; }
.float-card-text small { color: var(--color-muted); font-weight: 600; font-size: 11px; display: block; }

/* ---------- Section Heading ---------- */
.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}
.section-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: var(--color-bg-soft);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.section-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 16px;
}
.section-head p {
  font-size: 17px;
  color: var(--color-body);
}

/* ---------- Problem / Pain points ---------- */
.problem {
  background: var(--color-bg-soft);
  position: relative;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.problem-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--color-border-light);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.problem-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.problem-icon svg { width: 26px; height: 26px; }
.problem-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.problem-card p {
  font-size: 14px;
  color: var(--color-body);
  margin: 0;
  line-height: 1.55;
}

/* ---------- How it works ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.step-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 18px rgba(98, 64, 200, 0.28);
}
.step-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.step-card p {
  color: var(--color-body);
  font-size: 15px;
  margin: 0;
}

/* ---------- Features grid ---------- */
.features {
  background: var(--color-bg-soft);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--color-border-light);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.feature-card p {
  color: var(--color-body);
  font-size: 15px;
  margin: 0;
  line-height: 1.6;
}

/* ---------- Smart solution + accordion ---------- */
.solution-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.solution-visual {
  position: relative;
}
.solution-mock {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border-light);
}
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.check-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 15px;
  color: var(--color-text);
  font-weight: 600;
}
.check-list li:last-child { border-bottom: none; }
.check-list .check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ecfdf5;
  color: var(--color-success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.check-list .check svg { width: 14px; height: 14px; }

.accordion { margin: 0; padding: 0; list-style: none; }
.accordion-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.accordion-item.open {
  border-color: var(--color-primary);
  box-shadow: 0 6px 18px rgba(98, 64, 200, 0.12);
}
.accordion-trigger {
  width: 100%;
  background: transparent;
  text-align: left;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
}
.accordion-trigger:hover { color: var(--color-primary); }
.accordion-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-bg-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition), background var(--transition), color var(--transition);
  font-size: 18px;
  line-height: 1;
}
.accordion-item.open .accordion-icon {
  background: var(--color-primary);
  color: #fff;
  transform: rotate(45deg);
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.accordion-item.open .accordion-content {
  max-height: 400px;
}
.accordion-inner {
  padding: 0 22px 20px;
  color: var(--color-body);
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- Subscribe (HERO CTA) ---------- */
.subscribe {
  padding: 80px 0;
  position: relative;
}
.subscribe-card {
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -10px rgba(98, 64, 200, 0.4);
}
.subscribe-card::before,
.subscribe-card::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.subscribe-card::before {
  width: 400px;
  height: 400px;
  top: -200px;
  right: -100px;
}
.subscribe-card::after {
  width: 300px;
  height: 300px;
  bottom: -150px;
  left: -50px;
}
.subscribe-inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
}
.subscribe h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  margin-bottom: 16px;
}
.subscribe-sub {
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  margin-bottom: 36px;
}
#subscribe-form {
  display: flex;
  gap: 8px;
  max-width: 520px;
  margin: 0 auto 20px;
  background: rgba(255, 255, 255, 0.12);
  padding: 6px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
#subs-input {
  flex: 1;
  background: #fff;
  border: none;
  outline: none;
  padding: 14px 22px;
  font-size: 16px; /* iOS no-zoom */
  font-family: inherit;
  color: var(--color-text);
  border-radius: var(--radius-full);
  min-width: 0;
}
#subs-input::placeholder { color: var(--color-muted); }
#subscribe-form button {
  background: var(--color-dark);
  color: #fff;
  padding: 14px 28px;
  font-weight: 800;
  font-size: 15px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform var(--transition), background var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
#subscribe-form button:hover {
  background: #000;
  transform: translateY(-1px);
}
.subscribe-trust {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 600;
}
.subscribe-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.subscribe-trust svg { width: 14px; height: 14px; }

/* ---------- FAQ ---------- */
.faq-inner {
  max-width: 780px;
  margin: 0 auto;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { color: #fff; }
.footer-brand .logo:hover { color: #fff; }
.footer-desc {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  margin-top: 16px;
  max-width: 360px;
  line-height: 1.6;
}
.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  gap: 16px;
  flex-wrap: wrap;
}
.social {
  display: flex;
  gap: 8px;
}
.social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  transition: background var(--transition), color var(--transition);
}
.social a:hover {
  background: var(--color-primary);
  color: #fff;
}
.social svg { width: 16px; height: 16px; }

/* ---------- Animations ----------
   Reveal only hides elements when JS is confirmed alive (html.js).
   Without this, if JS never starts, blocks stay invisible. */
.reveal { opacity: 1; transform: none; }
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  section { padding: 64px 0; }
  .hero { padding: calc(var(--header-h) + 40px) 0 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 520px; margin: 0 auto; }
  .solution-inner { grid-template-columns: 1fr; gap: 40px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.mobile-open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.mobile-open a {
    width: 100%;
    padding: 12px 16px;
  }
  .menu-toggle { display: inline-flex; }
  .nav .btn-primary { display: none; }
  .nav-links.mobile-open .btn-primary-mobile {
    display: inline-block;
    background: var(--gradient-primary);
    color: #fff !important;
    text-align: center;
    border-radius: var(--radius-full);
    margin-top: 8px;
  }
  .subscribe-card { padding: 48px 24px; }
  #subscribe-form {
    flex-direction: column;
    background: transparent;
    border: none;
    padding: 0;
    gap: 10px;
  }
  #subs-input {
    border-radius: var(--radius-md);
    text-align: center;
  }
  #subscribe-form button {
    border-radius: var(--radius-md);
    justify-content: center;
    width: 100%;
  }
  .float-card.fc-1 { top: -10px; left: 0; padding: 10px 12px; font-size: 12px; }
  .float-card.fc-2 { bottom: 10px; right: 0; padding: 10px 12px; font-size: 12px; }
  .float-card-icon { width: 30px; height: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 540px) {
  section { padding: 56px 0; }
  .container { padding: 0 18px; }
  .features-grid { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .hero-subtitle { font-size: 16px; }
  .hero-ctas .btn { width: 100%; }
  .dashboard-mock { transform: none; }
}
