/* ==========================================================================
   Light Fit — Landing Page Design System
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens (Custom Properties)
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --lf-white: #ffffff;
  --lf-off-white: #f8f9fc;
  --lf-gray-50: #f1f3f8;
  --lf-gray-100: #e2e6ef;
  --lf-gray-200: #c5cad9;
  --lf-gray-400: #8b93a7;
  --lf-gray-600: #555d74;
  --lf-gray-800: #2a2f3e;
  --lf-gray-900: #151821;
  --lf-primary: #4f46e5;
  --lf-primary-light: #818cf8;
  --lf-primary-dark: #3730a3;
  --lf-accent: #7c3aed;
  --lf-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --lf-gradient-soft: linear-gradient(135deg, rgba(79,70,229,0.08) 0%, rgba(124,58,237,0.08) 100%);
  --lf-glass-bg: rgba(255, 255, 255, 0.6);
  --lf-glass-border: rgba(255, 255, 255, 0.35);
  --lf-glass-shadow: 0 8px 32px rgba(79, 70, 229, 0.08);
  --lf-success: #10b981;
  --lf-warning: #f59e0b;

  /* Typography */
  --lf-font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --lf-font-body: 'Inter', system-ui, sans-serif;

  /* Spacing */
  --lf-section-py: clamp(4rem, 8vw, 7rem);
  --lf-container-max: 1200px;
  --lf-container-px: clamp(1.25rem, 4vw, 2rem);

  /* Borders & Radii */
  --lf-radius-sm: 8px;
  --lf-radius-md: 16px;
  --lf-radius-lg: 24px;
  --lf-radius-xl: 32px;
  --lf-radius-full: 9999px;

  /* Transitions */
  --lf-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --lf-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --lf-transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--lf-font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--lf-gray-800);
  background: var(--lf-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--lf-font-display);
  line-height: 1.15;
  color: var(--lf-gray-900);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  color: var(--lf-gray-600);
}

.section-label {
  display: inline-block;
  font-family: var(--lf-font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lf-primary);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--lf-gray-400);
  max-width: 560px;
  margin: 1rem auto 0;
}

.text-gradient {
  background: var(--lf-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.section {
  padding: var(--lf-section-py) 0;
}

.section--alt {
  background: var(--lf-off-white);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.gradient-divider {
  height: 2px;
  max-width: 80px;
  margin: 0 auto;
  background: var(--lf-gradient);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px 32px;
  font-family: var(--lf-font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 12px;
  transition: transform var(--lf-transition), box-shadow var(--lf-transition), background var(--lf-transition);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--lf-gradient);
  color: var(--lf-white);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
}

.btn--primary:hover {
  box-shadow: 0 8px 28px rgba(79, 70, 229, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--lf-primary);
  border: 2px solid var(--lf-primary);
}

.btn--outline:hover {
  background: rgba(79, 70, 229, 0.06);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.1);
}

.btn--ghost {
  padding: 10px 20px;
  color: var(--lf-gray-600);
  border-radius: var(--lf-radius-sm);
}

.btn--ghost:hover {
  color: var(--lf-primary);
  background: rgba(79, 70, 229, 0.06);
}

.btn--sm {
  padding: 10px 24px;
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   6. Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background var(--lf-transition), border-color var(--lf-transition), padding var(--lf-transition);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--lf-gray-100);
  padding: 0.65rem 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
}

.nav__logo img {
  height: 32px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--lf-gray-600);
  transition: color var(--lf-transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--lf-gradient);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--lf-transition);
}

.nav__link:hover {
  color: var(--lf-gray-900);
}

.nav__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 10;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--lf-gray-800);
  border-radius: 2px;
  transition: transform var(--lf-transition), opacity var(--lf-transition);
}

.nav__hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* --------------------------------------------------------------------------
   7. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 10vw, 6rem) 0 var(--lf-section-py);
  /* Dot grid pattern */
  background:
    radial-gradient(circle at 1px 1px, var(--lf-gray-100) 1px, transparent 0)
    0 0 / 32px 32px;
}

/* Gradient mesh blobs */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.12) 0%, transparent 70%);
  top: -250px;
  right: -150px;
  filter: blur(80px);
}

.hero::after {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  filter: blur(80px);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero__content {
  max-width: 560px;
}

.hero__title {
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--lf-gray-400);
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Device mockup */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.device-frame {
  position: relative;
  width: 280px;
  height: 560px;
  background: var(--lf-gray-900);
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 0 0 2px var(--lf-gray-800),
    0 40px 80px rgba(21, 24, 33, 0.25),
    0 20px 40px rgba(21, 24, 33, 0.15);
}

.device-frame::before {
  /* Notch */
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: var(--lf-gray-900);
  border-radius: 0 0 16px 16px;
  z-index: 3;
}

.device-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: #0f0f0f;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* --- Animated hero device internals --- */
.device-screen--animated {
  animation: ds-bg 12s ease-in-out infinite;
}

@keyframes ds-bg {
  0%, 18%, 100% { background: #0f0f0f; }
  30%, 48%      { background: #071a2b; }
  60%, 78%      { background: #150e15; }
}

/* Status bar */
.ds__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 4px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.ds__notch {
  width: 76px;
  height: 22px;
  background: #000;
  border-radius: 0 0 14px 14px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.ds__status-r {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #fff;
}

/* Header */
.ds__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px 8px;
  flex-shrink: 0;
  animation: ds-header-bg 12s ease-in-out infinite;
}

.ds__header-title {
  font-family: var(--lf-font-display);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

@keyframes ds-header-bg {
  0%, 18%, 100% { background: #1a1a2e; }
  30%, 48%      { background: #0c2d48; }
  60%, 78%      { background: #2d1b2d; }
}

/* Body / cards area */
.ds__body {
  flex: 1;
  overflow: hidden;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ds__card {
  border-radius: 10px;
  overflow: hidden;
  animation: ds-card-bg 12s ease-in-out infinite;
}

@keyframes ds-card-bg {
  0%, 18%, 100% { background: #242424; }
  30%, 48%      { background: #0f3352; }
  60%, 78%      { background: #3a2040; }
}

/* Card radius changes mid-cycle */
.ds__card--1 {
  animation: ds-card-bg 12s ease-in-out infinite, ds-radius 12s ease-in-out infinite;
}

.ds__card--2 {
  animation: ds-card-bg 12s ease-in-out infinite, ds-radius 12s ease-in-out infinite;
}

@keyframes ds-radius {
  0%, 18%, 100% { border-radius: 10px; }
  30%, 48%      { border-radius: 16px; }
  60%, 78%      { border-radius: 4px; }
}

.ds__card-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 6px;
}

.ds__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: ds-accent-bg-soft 12s ease-in-out infinite;
}

@keyframes ds-accent-bg-soft {
  0%, 18%, 100% { background: rgba(233, 69, 96, 0.25); }
  30%, 48%      { background: rgba(46, 139, 192, 0.25); }
  60%, 78%      { background: rgba(255, 111, 97, 0.25); }
}

.ds__name {
  width: 80px;
  height: 8px;
  background: rgba(255,255,255,0.25);
  border-radius: 4px;
  margin-bottom: 4px;
}

.ds__meta {
  width: 40px;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}

.ds__card-img {
  width: 100%;
  height: 100px;
  background: rgba(255,255,255,0.06);
}

.ds__card-actions {
  display: flex;
  gap: 10px;
  padding: 6px 10px;
  font-size: 16px;
  color: rgba(255,255,255,0.4);
}

.ds__heart {
  animation: ds-accent-color 12s ease-in-out infinite;
}

@keyframes ds-accent-color {
  0%, 18%, 100% { color: #e94560; }
  30%, 48%      { color: #2e8bc0; }
  60%, 78%      { color: #ff6f61; }
}

.ds__text-lines {
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ds__line {
  height: 7px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
}

/* Tab bar */
.ds__tabs {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 6px 0 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
  animation: ds-header-bg 12s ease-in-out infinite;
}

.ds__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: rgba(255,255,255,0.3);
}

.ds__tab--active {
  animation: ds-accent-color 12s ease-in-out infinite;
}

.ds__tab-label {
  font-size: 9px;
  font-weight: 500;
}

/* --- Animated Cursor --- */
.ds__cursor {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
  animation: cursor-move 12s ease-in-out infinite;
  will-change: transform;
}

/* 12s loop: 3 "theme switch" clicks, each ~4s
   Phase 1 (0-4s):  Start at card, click accent → theme A
   Phase 2 (4-8s):  Move to tabs, click → theme B
   Phase 3 (8-12s): Move to header, click → theme C, drift back
*/
@keyframes cursor-move {
  /* Phase 1: hover near card image, click */
  0%        { transform: translate(180px, 230px); opacity: 0; }
  3%        { transform: translate(180px, 230px); opacity: 1; }
  8%        { transform: translate(140px, 180px); }
  14%       { transform: translate(60px, 280px); }
  18%       { transform: translate(60px, 280px) scale(0.85); }
  20%       { transform: translate(60px, 280px) scale(1); }
  /* Phase 2: move to card corner, drag feel */
  26%       { transform: translate(200px, 140px); }
  32%       { transform: translate(220px, 190px); }
  40%       { transform: translate(100px, 390px); }
  44%       { transform: translate(100px, 390px) scale(0.85); }
  46%       { transform: translate(100px, 390px) scale(1); }
  /* Phase 3: swoop to header area */
  52%       { transform: translate(180px, 80px); }
  60%       { transform: translate(40px, 60px); }
  64%       { transform: translate(40px, 60px) scale(0.85); }
  66%       { transform: translate(40px, 60px) scale(1); }
  /* Drift back toward start */
  75%       { transform: translate(120px, 310px); }
  82%       { transform: translate(200px, 200px); }
  90%       { transform: translate(180px, 230px); }
  95%       { transform: translate(180px, 230px); opacity: 1; }
  100%      { transform: translate(180px, 230px); opacity: 0; }
}

/* Click ripple */
.ds__ripple {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9;
  animation: ripple-pos 12s ease-in-out infinite;
}

.ds__ripple::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: ripple-burst 12s ease-in-out infinite;
}

/* Position the ripple at each click point */
@keyframes ripple-pos {
  0%, 16%   { transform: translate(55px, 275px); }
  17%, 42%  { transform: translate(95px, 385px); }
  43%, 62%  { transform: translate(35px, 55px); }
  63%, 100% { transform: translate(115px, 305px); }
}

/* Burst effect at each click moment */
@keyframes ripple-burst {
  0%, 16%   { opacity: 0; box-shadow: none; }
  18%       { opacity: 0.7; box-shadow: 0 0 0 0 rgba(233,69,96,0.5); }
  22%       { opacity: 0; box-shadow: 0 0 0 14px rgba(233,69,96,0); }
  23%, 42%  { opacity: 0; box-shadow: none; }
  44%       { opacity: 0.7; box-shadow: 0 0 0 0 rgba(46,139,192,0.5); }
  48%       { opacity: 0; box-shadow: 0 0 0 14px rgba(46,139,192,0); }
  49%, 62%  { opacity: 0; box-shadow: none; }
  64%       { opacity: 0.7; box-shadow: 0 0 0 0 rgba(255,111,97,0.5); }
  68%       { opacity: 0; box-shadow: 0 0 0 14px rgba(255,111,97,0); }
  69%, 100% { opacity: 0; }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .ds__cursor,
  .ds__ripple,
  .ds__ripple::after,
  .device-screen--animated,
  .ds__header,
  .ds__card,
  .ds__card--1,
  .ds__card--2,
  .ds__tabs,
  .ds__avatar,
  .ds__heart,
  .ds__tab--active {
    animation: none !important;
  }
  .ds__cursor { opacity: 0 !important; }
}

/* Floating accent rings */
.hero__ring {
  position: absolute;
  border: 2px solid rgba(79, 70, 229, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.hero__ring--1 {
  width: 120px;
  height: 120px;
  top: 10%;
  right: -20px;
  animation: float 8s ease-in-out infinite;
}

.hero__ring--2 {
  width: 80px;
  height: 80px;
  bottom: 15%;
  right: 10%;
  animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* --------------------------------------------------------------------------
   8. Features Section
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--lf-glass-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--lf-glass-border);
  border-radius: var(--lf-radius-lg);
  padding: 2rem;
  box-shadow: var(--lf-glass-shadow);
  transition: transform var(--lf-transition), box-shadow var(--lf-transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(79, 70, 229, 0.12);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--lf-gradient);
  display: grid;
  place-items: center;
  color: var(--lf-white);
  font-size: 24px;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   9. Blog Section
   -------------------------------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  border-radius: var(--lf-radius-lg);
  overflow: hidden;
  border: 1px solid var(--lf-gray-100);
  background: var(--lf-white);
  transition: transform var(--lf-transition), box-shadow var(--lf-transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(21, 24, 33, 0.08);
}

.blog-card__img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--lf-gradient-soft);
  position: relative;
}

.blog-card__img-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  transition: transform 0.5s var(--lf-ease);
}

.blog-card:hover .blog-card__img-inner {
  transform: scale(1.05);
}

.blog-card__body {
  padding: 1.5rem;
}

.blog-card__date {
  font-size: 0.8125rem;
  color: var(--lf-gray-400);
  padding-left: 0.75rem;
  border-left: 2px solid var(--lf-primary);
  margin-bottom: 0.75rem;
}

.blog-card__title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  transition: color var(--lf-transition);
}

.blog-card:hover .blog-card__title {
  color: var(--lf-primary);
}

.blog-card__excerpt {
  font-size: 0.9375rem;
  color: var(--lf-gray-400);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--lf-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap var(--lf-transition);
}

.blog-card__link:hover {
  gap: 0.65rem;
}

/* --------------------------------------------------------------------------
   10. Pricing Section
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.pricing-card {
  background: var(--lf-white);
  border: 1px solid var(--lf-gray-100);
  border-radius: var(--lf-radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform var(--lf-transition), box-shadow var(--lf-transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(21, 24, 33, 0.08);
}

/* Highlighted / featured tier */
.pricing-card--featured {
  position: relative;
  background: var(--lf-white);
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 16px 48px rgba(79, 70, 229, 0.12);
  transform: scale(1.05);
}

.pricing-card--featured::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--lf-radius-lg) + 2px);
  background: var(--lf-gradient);
  z-index: -1;
}

.pricing-card--featured:hover {
  transform: scale(1.05) translateY(-4px);
  box-shadow: 0 20px 60px rgba(79, 70, 229, 0.18);
}

.pricing-badge {
  display: inline-block;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--lf-white);
  background: var(--lf-gradient);
  border-radius: var(--lf-radius-full);
  margin-bottom: 1rem;
}

.pricing-card__tier {
  font-size: 1rem;
  font-weight: 600;
  color: var(--lf-gray-400);
  margin-bottom: 0.5rem;
}

.pricing-card__price {
  font-family: var(--lf-font-display);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--lf-gray-900);
  margin-bottom: 0.25rem;
}

.pricing-card__price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--lf-gray-400);
}

.pricing-card__desc {
  font-size: 0.875rem;
  color: var(--lf-gray-400);
  margin-bottom: 2rem;
}

.pricing-card__features {
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-card__features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--lf-gray-600);
  padding: 0.5rem 0;
}

.pricing-card__features li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--lf-primary);
  background: rgba(79, 70, 229, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
}

/* --------------------------------------------------------------------------
   11. FAQ Section
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--lf-gray-100);
  border-radius: var(--lf-radius-md);
  overflow: hidden;
  transition: border-color var(--lf-transition), box-shadow var(--lf-transition);
}

.faq-item[open] {
  border-color: rgba(79, 70, 229, 0.2);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.06);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-family: var(--lf-font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--lf-gray-900);
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--lf-primary);
  background: rgba(79, 70, 229, 0.08);
  border-radius: 50%;
  transition: transform var(--lf-transition), background var(--lf-transition);
  flex-shrink: 0;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--lf-primary);
  color: var(--lf-white);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--lf-ease);
}

.faq-item[open] .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer__inner {
  overflow: hidden;
  min-height: 0;
}

.faq-answer__inner p {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--lf-gray-400);
}

/* --------------------------------------------------------------------------
   12. Customizer Section
   -------------------------------------------------------------------------- */
.customizer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.customizer__controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.customizer__group {
  background: var(--lf-white);
  border: 1px solid var(--lf-gray-100);
  border-radius: var(--lf-radius-lg);
  padding: 1.5rem;
}

.customizer__group-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--lf-gray-800);
  margin-bottom: 1.25rem;
}

.customizer__group-title .material-symbols-outlined {
  font-size: 20px;
  color: var(--lf-primary);
}

/* Color fields */
.customizer__colors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.color-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  cursor: pointer;
}

.color-field__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--lf-gray-400);
}

.color-field__wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 8px;
  border: 1px solid var(--lf-gray-100);
  border-radius: var(--lf-radius-sm);
  transition: border-color var(--lf-transition);
}

.color-field__wrapper:hover {
  border-color: var(--lf-gray-200);
}

.color-field__input {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border: 2px solid var(--lf-gray-100);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  background: none;
}

.color-field__input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-field__input::-webkit-color-swatch {
  border: none;
  border-radius: 4px;
}

.color-field__input::-moz-color-swatch {
  border: none;
  border-radius: 4px;
}

.color-field__hex {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.75rem;
  color: var(--lf-gray-600);
  letter-spacing: 0.02em;
}

/* Select field */
.select-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  width: 100%;
}

.select-field__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--lf-gray-400);
}

.select-field__input {
  width: 100%;
  padding: 8px 12px;
  font-family: var(--lf-font-body);
  font-size: 0.875rem;
  color: var(--lf-gray-800);
  background: var(--lf-white);
  border: 1px solid var(--lf-gray-100);
  border-radius: var(--lf-radius-sm);
  cursor: pointer;
  transition: border-color var(--lf-transition);
  appearance: auto;
}

.select-field__input:hover {
  border-color: var(--lf-gray-200);
}

.select-field__input:focus {
  outline: none;
  border-color: var(--lf-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Toggle field */
.toggle-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.toggle-field__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--lf-gray-400);
}

.toggle-track {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--lf-gray-200);
  border-radius: 12px;
  transition: background var(--lf-transition);
  cursor: pointer;
}

.toggle-track.active {
  background: var(--lf-primary);
}

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: var(--lf-white);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform var(--lf-transition);
}

.toggle-track.active .toggle-thumb {
  transform: translateX(20px);
}

/* Range field */
.range-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.range-field__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--lf-gray-400);
}

.range-field__value {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.75rem;
  color: var(--lf-gray-600);
  background: var(--lf-gray-50);
  padding: 1px 6px;
  border-radius: 4px;
}

.range-field__input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--lf-gray-100);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.range-field__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--lf-primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(79, 70, 229, 0.3);
  transition: transform var(--lf-transition);
}

.range-field__input::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.range-field__input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--lf-primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.customizer__row {
  margin-bottom: 1rem;
}

.customizer__row:last-child {
  margin-bottom: 0;
}

/* Preset chips */
.customizer__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.preset-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 6px 12px;
  font-family: var(--lf-font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--lf-gray-600);
  background: var(--lf-white);
  border: 1px solid var(--lf-gray-100);
  border-radius: var(--lf-radius-full);
  cursor: pointer;
  transition: border-color var(--lf-transition), box-shadow var(--lf-transition), color var(--lf-transition);
}

.preset-chip:hover {
  border-color: var(--lf-gray-200);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.preset-chip--active {
  border-color: var(--lf-primary);
  color: var(--lf-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.preset-chip__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* === Phone Preview === */
.customizer__preview {
  display: flex;
  justify-content: center;
  position: sticky;
  top: 100px;
}

.cz-phone {
  width: 300px;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.18));
}

.cz-phone__frame {
  background: #0f0f0f;
  border-radius: 36px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 620px;
  position: relative;
}

/* Status bar */
.cz-phone__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 6px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  position: relative;
  z-index: 2;
}

.cz-phone__notch {
  width: 90px;
  height: 26px;
  background: #000;
  border-radius: 0 0 16px 16px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.cz-phone__status-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
}

/* App header */
.cz-phone__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 12px;
  color: #fff;
}

.cz-phone__header-title {
  font-family: var(--lf-font-display);
  font-size: 20px;
  font-weight: 700;
}

/* Content */
.cz-phone__content {
  flex: 1;
  overflow-y: auto;
  padding: 0 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Feed cards */
.cz-card {
  border-radius: 12px;
  overflow: hidden;
  transition: border-radius 0.3s ease;
}

.cz-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 8px;
}

.cz-card__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.cz-card__name {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.cz-card__meta {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
}

.cz-card__img {
  width: 100%;
  height: 140px;
  background: rgba(255,255,255,0.08);
  position: relative;
}

.cz-card__body-text {
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cz-card__text-line {
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

.cz-card__actions {
  display: flex;
  gap: 12px;
  padding: 8px 12px;
  font-size: 20px;
  color: rgba(255,255,255,0.5);
}

.cz-card__likes {
  padding: 0 12px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}

/* Tab bar */
.cz-phone__tabs {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: inherit;
}

.cz-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s ease;
}

.cz-tab--active {
  color: #e94560;
}

.cz-tab__icon {
  font-size: 22px;
}

.cz-tab__label {
  font-size: 10px;
  font-weight: 500;
  transition: opacity 0.3s ease, max-height 0.3s ease;
  max-height: 20px;
  overflow: hidden;
}

.cz-tab__label.hidden {
  opacity: 0;
  max-height: 0;
}

/* --------------------------------------------------------------------------
   13. CTA Banner
   -------------------------------------------------------------------------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  background: var(--lf-gradient);
  border-radius: var(--lf-radius-xl);
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
  text-align: center;
  color: var(--lf-white);
}

.cta-banner::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  top: -200px;
  right: -100px;
  pointer-events: none;
}

.cta-banner::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  bottom: -150px;
  left: -50px;
  pointer-events: none;
}

.cta-banner h2 {
  color: var(--lf-white);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  max-width: 500px;
  margin: 0 auto 2rem;
}

.cta-banner .btn {
  background: var(--lf-white);
  color: var(--lf-primary);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.cta-banner .btn:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--lf-gray-100);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand p {
  font-size: 0.9375rem;
  color: var(--lf-gray-400);
  margin-top: 1rem;
  max-width: 280px;
  line-height: 1.6;
}

.footer__brand img {
  height: 28px;
  width: auto;
}

.footer__col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lf-gray-400);
  margin-bottom: 1.25rem;
}

.footer__col a {
  display: block;
  font-size: 0.9375rem;
  color: var(--lf-gray-600);
  padding: 0.35rem 0;
  transition: color var(--lf-transition);
}

.footer__col a:hover {
  color: var(--lf-primary);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--lf-gray-100);
}

.footer__copy {
  font-size: 0.8125rem;
  color: var(--lf-gray-400);
}

.footer__socials {
  display: flex;
  gap: 1rem;
}

.footer__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--lf-gray-50);
  color: var(--lf-gray-600);
  font-size: 1.125rem;
  transition: background var(--lf-transition), color var(--lf-transition);
}

.footer__socials a:hover {
  background: var(--lf-primary);
  color: var(--lf-white);
}

/* --------------------------------------------------------------------------
   14. Scroll Reveal Animations
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   15. Responsive
   -------------------------------------------------------------------------- */

/* Tablet */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
  }

  .device-frame {
    width: 220px;
    height: 440px;
    border-radius: 32px;
    padding: 10px;
  }

  .device-frame::before {
    width: 80px;
    height: 22px;
    top: 10px;
    border-radius: 0 0 12px 12px;
  }

  .device-screen {
    border-radius: 24px;
  }

  .ds__cursor {
    transform-origin: top left;
    animation-name: cursor-move-sm;
  }

  @keyframes cursor-move-sm {
    0%        { transform: translate(140px, 180px) scale(0.8); opacity: 0; }
    3%        { transform: translate(140px, 180px) scale(0.8); opacity: 1; }
    8%        { transform: translate(110px, 140px) scale(0.8); }
    14%       { transform: translate(50px, 220px) scale(0.8); }
    18%       { transform: translate(50px, 220px) scale(0.7); }
    20%       { transform: translate(50px, 220px) scale(0.8); }
    26%       { transform: translate(160px, 110px) scale(0.8); }
    32%       { transform: translate(170px, 150px) scale(0.8); }
    40%       { transform: translate(80px, 300px) scale(0.8); }
    44%       { transform: translate(80px, 300px) scale(0.7); }
    46%       { transform: translate(80px, 300px) scale(0.8); }
    52%       { transform: translate(140px, 60px) scale(0.8); }
    60%       { transform: translate(30px, 48px) scale(0.8); }
    64%       { transform: translate(30px, 48px) scale(0.7); }
    66%       { transform: translate(30px, 48px) scale(0.8); }
    75%       { transform: translate(90px, 240px) scale(0.8); }
    82%       { transform: translate(160px, 160px) scale(0.8); }
    90%       { transform: translate(140px, 180px) scale(0.8); }
    95%       { transform: translate(140px, 180px) scale(0.8); opacity: 1; }
    100%      { transform: translate(140px, 180px) scale(0.8); opacity: 0; }
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .customizer {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .customizer__preview {
    position: static;
    order: -1;
  }

  .cz-phone {
    width: 260px;
  }

  .cz-phone__frame {
    height: 540px;
    border-radius: 30px;
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .pricing-card--featured {
    transform: scale(1.02);
  }

  .pricing-card--featured:hover {
    transform: scale(1.02) translateY(-4px);
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-grid .blog-card:last-child {
    grid-column: span 2;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--lf-transition), visibility var(--lf-transition);
  }

  .nav__links.open {
    opacity: 1;
    visibility: visible;
  }

  .nav__links .nav__link {
    font-size: 1.5rem;
    font-weight: 600;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__actions .btn {
    display: none;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 320px;
  }

  .features-grid,
  .blog-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .customizer__colors {
    grid-template-columns: 1fr;
  }

  .blog-grid .blog-card:last-child {
    grid-column: span 1;
  }

  .pricing-card--featured {
    transform: none;
    order: -1;
  }

  .pricing-card--featured:hover {
    transform: translateY(-4px);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .faq-item summary {
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
  }
}

@media (max-width: 480px) {
  .ds__cursor,
  .ds__ripple {
    display: none;
  }

  .device-frame {
    width: 180px;
    height: 360px;
    border-radius: 28px;
    padding: 8px;
  }

  .device-frame::before {
    width: 60px;
    height: 18px;
    top: 8px;
    border-radius: 0 0 10px 10px;
  }

  .device-screen {
    border-radius: 22px;
  }
}
