/* ============================================================
   MFU FixFlow — Landing Page
   Dark / Light / System Theme + Rich Animations
   ============================================================ */

/* ── CSS Variables ── */
:root {
  /* Colors – Dark (default) */
  --bg-0: #09090f;
  --bg-1: #0f0f1a;
  --bg-2: #141428;
  --bg-card: rgba(255, 255, 255, 0.045);
  --bg-card-h: rgba(255, 255, 255, 0.085);
  --border: rgba(255, 255, 255, 0.08);
  --border-h: rgba(255, 255, 255, 0.18);
  --txt-1: #eeeef8;
  --txt-2: rgba(238, 238, 248, 0.62);
  --txt-3: rgba(238, 238, 248, 0.36);
  --shadow-card: 0 0 0 1px rgba(255,255,255,0.06), 0 8px 32px rgba(0,0,0,0.4);
  --shadow-card-h: 0 0 0 1px rgba(224,61,47,0.3), 0 16px 48px rgba(0,0,0,0.5);

  /* Brand */
  --red: #e03d2f;
  --red-h: #ff5a4d;
  --red-glow: rgba(224, 61, 47, 0.35);
  --gold: #f59e0b;
  --gold-h: #fbbf24;

  /* Accents */
  --blue: #3b82f6;
  --green: #22c55e;
  --purple: #a855f7;
  --teal: #14b8a6;
  --orange: #f97316;

  /* Gradients */
  --grad-red: linear-gradient(135deg, #c0392b, #e8472f);
  --grad-card: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.01) 100%);

  /* Misc */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --section-py: 120px;
  --container: 1200px;
}

/* ── Light Theme Override ── */
[data-theme="light"] {
  --bg-0: #f3f3fb;
  --bg-1: #ffffff;
  --bg-2: #eaeaf6;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-h: rgba(255, 255, 255, 1);
  --border: rgba(0, 0, 0, 0.08);
  --border-h: rgba(192, 57, 43, 0.3);
  --txt-1: #1a1a2e;
  --txt-2: rgba(26, 26, 46, 0.65);
  --txt-3: rgba(26, 26, 46, 0.4);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.08);
  --shadow-card-h: 0 0 0 2px rgba(192,57,43,0.2), 0 16px 48px rgba(0,0,0,0.12);
  --red: #c0392b;
  --red-h: #e03d2f;
  --red-glow: rgba(192, 57, 43, 0.2);
  --gold: #d97706;
  --gold-h: #f59e0b;
  --blue: #2563eb;
  --green: #16a34a;
  --purple: #9333ea;
  --teal: #0d9488;
  --grad-card: linear-gradient(145deg, rgba(255,255,255,0.95) 0%, rgba(245,245,255,0.8) 100%);
}

/* ── Theme Transition ── */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.2s ease,
              box-shadow 0.35s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}
[data-theme="light"] { color-scheme: light; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-0);
  color: var(--txt-1);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Scroll Progress ── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%; height: 3px;
  background: var(--grad-red);
  z-index: 9999;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  transition: width 0.1s linear;
}

/* ── Mouse Follower ── */
.mouse-glow {
  position: fixed;
  width: 400px; height: 400px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  filter: blur(40px);
  opacity: 0.6;
  transition: opacity 0.5s ease;
}

/* ── Canvas Particles ── */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}
[data-theme="light"] #particle-canvas { opacity: 0.25; }

/* ── Scroll To Top ── */
.scroll-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--grad-red);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px var(--red-glow);
  z-index: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s var(--ease-expo), transform 0.4s var(--ease-expo), box-shadow 0.3s ease !important;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { box-shadow: 0 8px 32px var(--red-glow); transform: translateY(-3px); }

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

/* ── Section Utilities ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(224, 61, 47, 0.1);
  border: 1px solid rgba(224, 61, 47, 0.22);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--red-h);
  margin-bottom: 20px;
}
.section-label svg { opacity: 0.85; }

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--txt-1);
  letter-spacing: -0.5px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--txt-2);
  max-width: 580px;
  line-height: 1.8;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: padding 0.4s var(--ease-expo), background 0.4s ease, box-shadow 0.4s ease !important;
}
.navbar.scrolled {
  padding: 8px 0;
  background: rgba(9, 9, 15, 0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 4px 30px rgba(0,0,0,0.25);
}
[data-theme="light"] .navbar.scrolled {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* Nav Bar inner — the actual 3-column flex */
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  height: 48px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  z-index: 2;
}
.nav-logo img {
  width: 36px; height: 36px;
  border-radius: 10px;
  transition: transform 0.35s var(--ease-spring) !important;
}
.nav-logo:hover img { transform: scale(1.08) rotate(-3deg); }
.nav-logo span {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  background: var(--grad-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Center nav links — truly centered via absolute */
.nav-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-center a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--txt-2);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  transition: color 0.25s ease, background 0.25s ease !important;
}
.nav-center a:hover {
  color: var(--txt-1);
  background: rgba(255,255,255,0.06);
}
[data-theme="light"] .nav-center a:hover { background: rgba(0,0,0,0.04); }
.nav-center a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%; right: 50%;
  height: 2px;
  background: var(--grad-red);
  border-radius: 2px;
  transition: left 0.3s var(--ease-expo), right 0.3s var(--ease-expo) !important;
}
.nav-center a:hover::after { left: 16px; right: 16px; }

/* Right actions — always in one row */
.nav-actions {
  display: flex;
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: nowrap !important;
  z-index: 2;
}

/* Language pill */
.lang-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}
[data-theme="light"] .lang-pill { background: rgba(0,0,0,0.05); }
.lang-btn {
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: none;
  background: transparent;
  color: var(--txt-3);
  cursor: pointer;
  border-radius: var(--radius-full);
  font-family: inherit;
  transition: all 0.25s ease !important;
}
.lang-btn.active {
  background: var(--grad-red);
  color: #fff;
  box-shadow: 0 2px 8px var(--red-glow);
}
.lang-btn:not(.active):hover { color: var(--txt-1); }

/* Theme button */
.theme-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--txt-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.3s ease !important;
}
[data-theme="light"] .theme-btn { background: rgba(0,0,0,0.04); }
.theme-btn:hover { border-color: var(--border-h); color: var(--txt-1); transform: rotate(15deg) !important; }
.theme-btn svg { width: 16px; height: 16px; pointer-events: none; }

/* CTA button */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  background: var(--grad-red);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--red-glow);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease !important;
}
.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease !important;
}
.nav-cta:hover { transform: translateY(-2px) !important; box-shadow: 0 8px 24px var(--red-glow) !important; }
.nav-cta:hover::before { transform: translateX(100%); }
.nav-cta svg { transition: transform 0.3s var(--ease-spring) !important; flex-shrink: 0; }
.nav-cta:hover svg { transform: translateX(3px); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  z-index: 1001;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--txt-1);
  border-radius: 2px;
  display: block;
  transition: all 0.3s ease !important;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--txt-2);
  margin-bottom: 24px;
  animation: fadeUp 0.8s var(--ease-expo) both 0.2s;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
  animation: fadeUp 0.8s var(--ease-expo) both 0.35s;
}
.hero-title .highlight {
  background: var(--grad-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  transition: opacity 0.35s ease, transform 0.35s ease !important;
}

/* hide the old cursor — no longer needed */
.tw-cursor { display: none; }

.hero-desc {
  font-size: 1.1rem;
  color: var(--txt-2);
  max-width: 500px;
  line-height: 1.85;
  margin-bottom: 40px;
  animation: fadeUp 0.8s var(--ease-expo) both 0.5s;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s var(--ease-expo) both 0.65s;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: var(--radius-full);
  background: var(--grad-red);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px var(--red-glow);
  transition: transform 0.35s var(--ease-expo), box-shadow 0.35s ease !important;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s ease !important;
}
.btn-primary:hover::after { transform: translateX(100%); }
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 12px 36px var(--red-glow) !important;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--txt-1);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.35s var(--ease-expo) !important;
}
.btn-outline:hover {
  background: var(--bg-card-h);
  border-color: var(--border-h);
  transform: translateY(-2px) !important;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  animation: fadeUp 0.8s var(--ease-expo) both 0.8s;
}
.stat-value {
  font-size: 2.2rem;
  font-weight: 900;
  background: var(--grad-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--txt-3);
  margin-top: 6px;
  font-weight: 500;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  z-index: 1;
  animation: fadeScale 1s var(--ease-expo) both 0.4s;
}

.hero-glow {
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 65%);
  filter: blur(50px);
  animation: glow-pulse 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.12); }
}

.phone-wrap {
  position: relative;
  width: 268px;
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotateY(0deg); }
  50% { transform: translateY(-16px) rotateY(2deg); }
}

.phone-frame {
  border-radius: 38px;
  overflow: hidden;
  background: var(--bg-1);
  border: 2px solid rgba(255,255,255,0.12);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05),
    0 30px 80px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.08);
  position: relative;
}
[data-theme="light"] .phone-frame {
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.phone-frame img { width: 100%; display: block; }
.phone-notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 26px;
  background: var(--bg-0);
  border-radius: 0 0 18px 18px;
  z-index: 3;
}

.phone-side {
  position: absolute;
  width: 200px;
  opacity: 0.8;
}
.phone-side.l {
  left: -65px; top: 40px;
  animation: float-l 8s ease-in-out infinite;
  transform-origin: center center;
}
.phone-side.r {
  right: -65px; top: 70px;
  animation: float-r 9s ease-in-out infinite;
  transform-origin: center center;
}
@keyframes float-l {
  0%, 100% { transform: rotateY(18deg) rotateZ(3deg) scale(0.82) translateY(0); }
  50% { transform: rotateY(18deg) rotateZ(3deg) scale(0.82) translateY(-20px); }
}
@keyframes float-r {
  0%, 100% { transform: rotateY(-18deg) rotateZ(-3deg) scale(0.82) translateY(0); }
  50% { transform: rotateY(-18deg) rotateZ(-3deg) scale(0.82) translateY(-14px); }
}

/* ── Tech Strip ── */
.tech-strip {
  position: relative;
  z-index: 1;
  padding: 56px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.tech-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.tech-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--txt-3);
  font-weight: 600;
}
.tech-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.tech-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.45;
  filter: grayscale(1);
  transition: all 0.4s ease !important;
  cursor: default;
}
.tech-logo:hover {
  opacity: 1;
  filter: grayscale(0);
  transform: translateY(-5px) !important;
}
.tech-logo img { width: 44px; height: 44px; }
.tech-logo span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--txt-3);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

/* ── Sections Common ── */
section { position: relative; z-index: 1; }

.s-features { padding: var(--section-py) 0; }
.s-how      { padding: var(--section-py) 0; background: linear-gradient(180deg, transparent, rgba(224,61,47,0.025), transparent); }
.s-roles    { padding: var(--section-py) 0; }
.s-arch     { padding: var(--section-py) 0; background: linear-gradient(180deg, transparent, rgba(59,130,246,0.025), transparent); }
.s-cta      { padding: var(--section-py) 0; }

.sh { text-align: center; margin-bottom: 72px; }
.sh .section-sub { margin: 0 auto; }

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feat-card {
  position: relative;
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  background: var(--grad-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease-expo), box-shadow 0.4s ease, border-color 0.4s ease !important;
  overflow: hidden;
  cursor: default;
  transform-style: preserve-3d;
}
.feat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(224,61,47,0.07), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease !important;
}
.feat-card:hover {
  border-color: var(--border-h);
  box-shadow: var(--shadow-card-h);
}
.feat-card:hover::before { opacity: 1; }

.feat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: transform 0.4s var(--ease-spring) !important;
}
.feat-card:hover .feat-icon { transform: scale(1.12) rotate(6deg); }

.ic-red    { background: rgba(224,61,47,0.12);  color: var(--red-h); }
.ic-blue   { background: rgba(59,130,246,0.12); color: var(--blue); }
.ic-green  { background: rgba(34,197,94,0.12);  color: var(--green); }
.ic-gold   { background: rgba(245,158,11,0.12); color: var(--gold); }
.ic-purple { background: rgba(168,85,247,0.12); color: var(--purple); }
.ic-teal   { background: rgba(20,184,166,0.12); color: var(--teal); }
.ic-orange { background: rgba(249,115,22,0.12); color: var(--orange); }

.feat-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.feat-card p  { font-size: 0.9rem; color: var(--txt-2); line-height: 1.7; }

/* ── How It Works ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 46px;
  left: 13%; right: 13%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), var(--gold), var(--red), transparent);
  opacity: 0.25;
  pointer-events: none;
}

.step-card { text-align: center; position: relative; z-index: 1; }

.step-num {
  width: 92px; height: 92px;
  border-radius: 50%;
  background: var(--grad-card);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  color: var(--red);
  transition: all 0.5s var(--ease-expo) !important;
}
.step-card:hover .step-num {
  border-color: var(--red);
  box-shadow: 0 0 0 1px rgba(224,61,47,0.2), 0 0 30px var(--red-glow);
  transform: scale(1.1) rotate(12deg);
  color: var(--red-h);
}
.step-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.step-card p  { font-size: 0.875rem; color: var(--txt-2); line-height: 1.7; }

/* ── Roles ── */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.role-card {
  padding: 32px 26px;
  border-radius: var(--radius-lg);
  background: var(--grad-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-expo), box-shadow 0.4s ease, border-color 0.4s ease !important;
  cursor: default;
}
.role-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-expo) !important;
}
.role-card:hover {
  border-color: var(--border-h);
  box-shadow: var(--shadow-card-h);
  transform: translateY(-6px);
}
.role-card:hover::after { transform: scaleX(1); }

.role-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.4s var(--ease-spring) !important;
}
.role-card:hover .role-icon { transform: scale(1.12) rotate(-5deg); }

.role-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.role-card p  { font-size: 0.875rem; color: var(--txt-2); line-height: 1.7; margin-bottom: 16px; }

.role-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.r-tag {
  padding: 3px 11px;
  border-radius: var(--radius-full);
  background: rgba(224,61,47,0.09);
  border: 1px solid rgba(224,61,47,0.18);
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--red-h);
  transition: background 0.3s ease !important;
}
.role-card:hover .r-tag { background: rgba(224,61,47,0.16); }

/* ── Architecture ── */
.arch-wrap { max-width: 880px; margin: 0 auto; }

.arch-layer {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--grad-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease !important;
}
.arch-layer:hover {
  border-color: rgba(224,61,47,0.22);
  transform: scale(1.01);
}
.arch-layer-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red-h);
  margin-bottom: 16px;
}
.arch-items { display: flex; gap: 12px; flex-wrap: wrap; }
.arch-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--txt-2);
  transition: all 0.3s ease !important;
}
[data-theme="light"] .arch-item { background: rgba(0,0,0,0.04); }
.arch-item:hover {
  background: rgba(224,61,47,0.08);
  border-color: rgba(224,61,47,0.2);
  color: var(--txt-1);
  transform: translateY(-2px) !important;
}

.arch-arrow {
  display: flex;
  justify-content: center;
  margin: 0px 0 4px;
  color: var(--red);
  opacity: 0.4;
  animation: arrow-bounce 2.5s ease-in-out infinite;
}
@keyframes arrow-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(6px); opacity: 0.7; }
}

/* ── App Preview ── */
.preview-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.preview-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--txt-2);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease !important;
}
.preview-tab:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}
.preview-tab.active {
  background: var(--grad-red);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px var(--red-glow);
}

.preview-showcase {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  min-height: 500px;
}
.preview-screen {
  position: absolute;
  top: 0; left: 0; width: 100%;
  display: flex;
  align-items: center;
  gap: 60px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.5s var(--ease-spring) !important;
}
.preview-screen.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.preview-phone {
  flex-shrink: 0;
  width: 250px;
  border-radius: 36px;
  padding: 12px;
  background: #111;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 0 0 2px #333;
  position: relative;
}
[data-theme="light"] .preview-phone {
  background: #ddd;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1), inset 0 0 0 2px #bbb;
}
.preview-notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 24px;
  background: #000;
  border-radius: 0 0 12px 12px;
  z-index: 2;
}
.preview-phone img {
  width: 100%;
  border-radius: 24px;
  display: block;
}

.preview-info {
  flex: 1;
}
.preview-info h3 {
  font-size: 2rem;
  margin-bottom: 16px;
  background: var(--grad-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.preview-info p {
  font-size: 1.1rem;
  color: var(--txt-2);
  margin-bottom: 24px;
  line-height: 1.6;
}
.preview-info ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.preview-info li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--txt-1);
}
.preview-info li::before {
  content: '✓';
  color: var(--red);
  font-weight: bold;
}

/* ── FAQ ── */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease !important;
}
.faq-item:hover {
  border-color: rgba(224,61,47,0.3);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--txt-1);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.faq-q svg {
  color: var(--red);
  transition: transform 0.3s var(--ease-spring) !important;
}
.faq-item.active .faq-q svg {
  transform: rotate(180deg);
}
.faq-a {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s var(--ease-expo) !important;
}
.faq-a p {
  color: var(--txt-2);
  padding-bottom: 24px;
  line-height: 1.6;
}

/* ── CTA ── */
.cta-card {
  position: relative;
  padding: 80px 60px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(224,61,47,0.1), rgba(26,10,62,0.35), rgba(224,61,47,0.06));
  border: 1px solid rgba(224,61,47,0.18);
  text-align: center;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(224,61,47,0.12), transparent 55%);
  pointer-events: none;
}
.cta-card .section-title,
.cta-card .section-sub { position: relative; z-index: 1; }
.cta-card .section-sub { margin: 0 auto 36px; }
.cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 1;
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  font-size: 0.875rem;
  color: var(--txt-2);
  margin-top: 16px;
  max-width: 280px;
  line-height: 1.7;
}
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
  color: var(--txt-1);
}
.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--txt-2);
  padding: 5px 0;
  transition: all 0.25s ease !important;
}
.footer-col a:hover {
  color: var(--red-h);
  transform: translateX(4px) !important;
}
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bar p { font-size: 0.82rem; color: var(--txt-3); }
.f-socials { display: flex; gap: 12px; }
.f-socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--txt-2);
  transition: all 0.3s ease !important;
}
.f-socials a:hover {
  background: var(--grad-red);
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px) !important;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s var(--ease-expo), transform 0.75s var(--ease-expo) !important;
}
.reveal.from-l { transform: translateX(-40px); }
.reveal.from-r { transform: translateX(40px); }
.reveal.from-s { transform: scale(0.93); }
.reveal.visible { opacity: 1 !important; transform: none !important; }

.d1 { transition-delay: 0.08s !important; }
.d2 { transition-delay: 0.16s !important; }
.d3 { transition-delay: 0.24s !important; }
.d4 { transition-delay: 0.32s !important; }
.d5 { transition-delay: 0.40s !important; }
.d6 { transition-delay: 0.48s !important; }

/* ── Keyframes ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeScale {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: rgba(224,61,47,0.4); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(224,61,47,0.65); }
::selection { background: rgba(224,61,47,0.28); color: #fff; }

/* ── Responsive: Tablet ── */
@media (max-width: 1024px) {
  :root { --section-py: 80px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .phone-side { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .roles-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ── Responsive: Mobile ── */
@media (max-width: 768px) {
  :root { --section-py: 60px; }

  /* Nav center → mobile drawer */
  .nav-center {
    position: fixed; top: 0; right: -100%;
    width: min(85vw, 320px); height: 100vh; height: 100dvh;
    background: var(--bg-0);
    backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 40px 32px; gap: 20px;
    transition: right 0.45s var(--ease-expo) !important;
    border-left: 1px solid var(--border);
    z-index: 998;
    transform: none;
    left: auto;
    top: 0;
  }
  .nav-center.open { right: 0; }
  .nav-center a { font-size: 1rem; padding: 10px 0 !important; border-radius: 0 !important; }

  /* Nav actions → below links in drawer */
  .nav-actions {
    position: fixed; bottom: 40px; right: -100%;
    width: min(85vw, 320px);
    flex-direction: row; align-items: center; gap: 10px;
    padding: 0 32px;
    z-index: 999;
    transition: right 0.45s var(--ease-expo) !important;
  }
  .nav-actions.open { right: 0; }

  .nav-toggle { display: flex; }
  .hero { padding: 110px 0 60px; min-height: auto; }
  .phone-wrap { width: 220px; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .roles-grid { grid-template-columns: 1fr; }
  .cta-card { padding: 48px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bar { flex-direction: column; align-items: flex-start; }
  .tech-logos { gap: 28px; }
  .arch-items { flex-direction: column; }
  .scroll-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }
  .mouse-glow { display: none; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.4rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
  .hero-stats { flex-direction: column; align-items: center; gap: 20px; }
  .cta-actions { flex-direction: column; width: 100%; }
}
