/* ============================================================
   HALOLMI — Landing Page Styles
   Primary: Emerald Green (#059669)
   Font: Inter
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green-50:  #ECFDF5;
  --green-100: #D1FAE5;
  --green-200: #A7F3D0;
  --green-500: #10B981;
  --green-600: #059669;
  --green-700: #047857;
  --green-800: #065F46;
  --green-900: #064E3B;

  --amber-400: #FBBF24;
  --red-500:   #EF4444;

  --gray-50:  #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  --primary:     var(--green-600);
  --primary-hover: var(--green-700);
  --primary-light: var(--green-50);

  --text:        var(--gray-900);
  --text-muted:  var(--gray-600);
  --border:      var(--gray-200);
  --bg:          #FFFFFF;
  --bg-alt:      var(--gray-50);

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow:    0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.12);
  --shadow-green: 0 8px 32px rgba(5,150,105,.25);

  --transition: 200ms ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
  user-select: none;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-green);
}
.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(5,150,105,.35);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--green-50);
}

.btn-lg {
  font-size: 1rem;
  padding: .875rem 1.75rem;
  border-radius: var(--radius-lg);
}

.btn-full {
  width: 100%;
}

/* ============================================================
   HEADER
   ============================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
}

.logo-icon {
  flex-shrink: 0;
  line-height: 0;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  margin-left: auto;
}

.nav-link {
  display: block;
  padding: .5rem .75rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover {
  color: var(--text);
  background: var(--gray-100);
}

.nav-cta {
  flex-shrink: 0;
  font-size: .875rem;
  padding: .5rem 1.125rem;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: .5rem;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   SECTION HELPERS
   ============================================================ */

.section-label {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--green-50);
  padding: .375rem .875rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: .75rem;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 3rem;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 80% 40%, rgba(5,150,105,.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 80%, rgba(5,150,105,.04) 0%, transparent 60%);
  pointer-events: none;
}

/* Islamic-inspired subtle geometric pattern */
.hero-bg-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(5,150,105,.025) 40px,
      rgba(5,150,105,.025) 41px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 40px,
      rgba(5,150,105,.025) 40px,
      rgba(5,150,105,.025) 41px
    );
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  max-width: 580px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--green-700);
  background: var(--green-50);
  border: 1px solid var(--green-200);
  padding: .375rem .875rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 480px;
}

.hero-status-row {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  font-weight: 600;
  padding: .4rem .875rem;
  border-radius: 100px;
  border: 1.5px solid;
}

.status-halol    { color: var(--green-700); background: var(--green-50);  border-color: var(--green-200); }
.status-shubhali { color: #92400E;          background: #FFFBEB;          border-color: #FDE68A; }
.status-harammas { color: #991B1B;          background: #FEF2F2;          border-color: #FECACA; }

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

/* ============================================================
   PHONE MOCKUP — iPhone 17 PNG frame
   PNG canvas: 1440×1000. Phone body: x=516–921, y=82–855.
   Screen area: x=533–903, y=96–855.
   Display scale at 280px phone width: 280/405 = 0.691
   ============================================================ */

.hero-mockup {
  position: relative;
  display: flex;
  justify-content: center;
}

/* Pulsing rings behind phone */
.hero-mockup::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(5,150,105,.15);
  animation: pulse-ring 3s ease-out infinite;
  pointer-events: none;
}
.hero-mockup::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 400px; height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(5,150,105,.07);
  animation: pulse-ring 3s ease-out infinite .8s;
  pointer-events: none;
}
@keyframes pulse-ring {
  0%   { transform: translate(-50%,-50%) scale(.85); opacity: .6; }
  100% { transform: translate(-50%,-50%) scale(1);   opacity: 0; }
}

.phone-outer {
  position: relative;
  z-index: 1;
}

/* Float animation + realistic drop shadow via filter */
.phone-wrap {
  position: relative;
  width: 280px;
  height: 534px;    /* 773px × 0.691 = 534px */
  overflow: hidden; /* crop PNG to just the phone body */
  animation: anim-float 5s ease-in-out 1.1s infinite;
  filter:
    drop-shadow(0 32px 64px rgba(0,0,0,.55))
    drop-shadow(0 12px 28px rgba(0,0,0,.35))
    drop-shadow(0 0 48px rgba(5,150,105,.14));
}

/* iPhone 17 frame PNG — scaled and offset so only phone body shows in .phone-wrap */
.pui-frame {
  position: absolute;
  width: 996px;   /* 1440 × 0.691 */
  height: auto;
  left: -357px;   /* -(516 × 0.691) */
  top: -57px;     /* -(82 × 0.691) */
  z-index: 10;
  pointer-events: none;
  display: block;
}

/* ============================================================
   PHONE APP UI — Premium OLED dark + glassmorphism
   Screen area: left=12, top=10, width=256, height=524
   ============================================================ */

.phone-ui {
  position: absolute;
  left: 12px; top: 10px;
  width: 256px; height: 524px;
  border-radius: 30px;
  overflow: hidden;
  background: #000;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

/* Radial top-center glow (emerald ambient) */
.phone-ui::before {
  content: '';
  position: absolute;
  top: -20px; left: 50%;
  transform: translateX(-50%);
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(5,150,105,.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Edge vignette */
.phone-ui::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,.65) 100%);
  pointer-events: none;
  z-index: 0;
  border-radius: 30px;
}

/* Dynamic Island gap */
.pui-island-gap { height: 42px; flex-shrink: 0; }

/* ── Status bar ─────────────────────────────────────────── */
.pui-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 4px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.pui-time {
  font-size: .6rem;
  font-weight: 700;
  color: rgba(255,255,255,.95);
  letter-spacing: .03em;
}
.pui-icons { display: flex; align-items: center; gap: 5px; }

/* ── App header ─────────────────────────────────────────── */
.pui-header {
  display: flex;
  align-items: center;
  gap: .375rem;
  padding: .3rem 1rem .5rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.pui-logo { flex-shrink: 0; }
.pui-app-name {
  flex: 1;
  font-size: .8125rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.01em;
}
.pui-menu-icon { flex-shrink: 0; }

/* ── Camera/scanner view ────────────────────────────────── */
.pui-camera-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Subtle grid lines (camera feel) */
.pui-camera-view::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Green glow orb centered behind viewfinder */
.pui-camera-view::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(5,150,105,.15) 0%, transparent 68%);
  pointer-events: none;
}

/* ── Scan viewfinder ────────────────────────────────────── */
.pui-scan-frame {
  position: relative;
  width: 176px;
  height: 176px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.025);
  z-index: 1;
}

.pui-corner {
  position: absolute;
  width: 22px; height: 22px;
  border-color: #10b981; /* emerald-500 */
  border-style: solid;
  z-index: 2;
}
/* Corner glow via filter on parent — individual glow via box-shadow */
.pui-tl {
  top: 0; left: 0;
  border-width: 3px 0 0 3px;
  border-radius: 4px 0 0 0;
  box-shadow: -1px -1px 6px rgba(16,185,129,.5);
}
.pui-tr {
  top: 0; right: 0;
  border-width: 3px 3px 0 0;
  border-radius: 0 4px 0 0;
  box-shadow: 1px -1px 6px rgba(16,185,129,.5);
}
.pui-bl {
  bottom: 0; left: 0;
  border-width: 0 0 3px 3px;
  border-radius: 0 0 0 4px;
  box-shadow: -1px 1px 6px rgba(16,185,129,.5);
}
.pui-br {
  bottom: 0; right: 0;
  border-width: 0 3px 3px 0;
  border-radius: 0 0 4px 0;
  box-shadow: 1px 1px 6px rgba(16,185,129,.5);
}

/* ── Animated scan line ─────────────────────────────────── */
.pui-scan-line {
  position: absolute;
  left: 8px; right: 8px; top: 10px;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(16,185,129,.3) 15%,
    #10b981 50%,
    rgba(16,185,129,.3) 85%,
    transparent 100%
  );
  box-shadow: 0 0 8px rgba(16,185,129,.8), 0 0 20px rgba(16,185,129,.3);
  border-radius: 1px;
  animation: scan 2.2s cubic-bezier(.4,0,.6,1) infinite;
  z-index: 3;
}

@keyframes scan {
  0%   { top: 10px;  opacity: 0; }
  8%   { opacity: 1; }
  50%  { top: 163px; opacity: 1; }
  92%  { opacity: 1; }
  100% { top: 10px;  opacity: 0; }
}

/* ── Barcode inside viewfinder ──────────────────────────── */
.pui-barcode {
  position: absolute;
  bottom: 20px;
  left: 14px; right: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  z-index: 1;
}

.pui-barcode-bars {
  display: flex;
  align-items: stretch;
  gap: 1.5px;
  height: 46px;
  width: 100%;
}

.pui-barcode-bars span {
  flex: 1;
  background: rgba(255,255,255,.82);
  border-radius: .5px;
}
/* Vary bar widths for realistic barcode look */
.pui-barcode-bars span:nth-child(2)  { flex: 2;    }
.pui-barcode-bars span:nth-child(3)  { flex: .5;   opacity: .9; }
.pui-barcode-bars span:nth-child(4)  { flex: 1.5;  }
.pui-barcode-bars span:nth-child(5)  { flex: .5;   opacity: .8; }
.pui-barcode-bars span:nth-child(6)  { flex: 3;    }
.pui-barcode-bars span:nth-child(7)  { flex: .5;   }
.pui-barcode-bars span:nth-child(8)  { flex: 2;    opacity: .85; }
.pui-barcode-bars span:nth-child(9)  { flex: 1;    }
.pui-barcode-bars span:nth-child(10) { flex: .5;   opacity: .75; }
.pui-barcode-bars span:nth-child(11) { flex: 2.5;  }
.pui-barcode-bars span:nth-child(12) { flex: .5;   }
.pui-barcode-bars span:nth-child(13) { flex: 1.5;  opacity: .9; }
.pui-barcode-bars span:nth-child(14) { flex: .5;   }
.pui-barcode-bars span:nth-child(15) { flex: 2;    }
.pui-barcode-bars span:nth-child(16) { flex: .5;   opacity: .8; }
.pui-barcode-bars span:nth-child(17) { flex: 1;    }
.pui-barcode-bars span:nth-child(18) { flex: 3;    }
.pui-barcode-bars span:nth-child(19) { flex: .5;   }
.pui-barcode-bars span:nth-child(20) { flex: 1.5;  opacity: .85; }
.pui-barcode-bars span:nth-child(21) { flex: .5;   }
.pui-barcode-bars span:nth-child(22) { flex: 2;    }
.pui-barcode-bars span:nth-child(23) { flex: .5;   opacity: .7; }
.pui-barcode-bars span:nth-child(24) { flex: 1;    }
.pui-barcode-bars span:nth-child(25) { flex: 2.5;  }
.pui-barcode-bars span:nth-child(26) { flex: .5;   }
.pui-barcode-bars span:nth-child(27) { flex: 1;    opacity: .8; }
.pui-barcode-bars span:nth-child(28) { flex: 2;    }
.pui-barcode-bars span:nth-child(29) { flex: .5;   }
.pui-barcode-bars span:nth-child(30) { flex: 1.5;  }
.pui-barcode-bars span:nth-child(31) { flex: .5;   opacity: .9; }
.pui-barcode-bars span:nth-child(32) { flex: 3;    }
.pui-barcode-bars span:nth-child(33) { flex: .5;   }
.pui-barcode-bars span:nth-child(34) { flex: 1;    }
.pui-barcode-bars span:nth-child(35) { flex: 2;    opacity: .8; }
.pui-barcode-bars span:nth-child(36) { flex: .5;   }
.pui-barcode-bars span:nth-child(37) { flex: 1.5;  }
.pui-barcode-bars span:nth-child(38) { flex: .5;   opacity: .75; }
.pui-barcode-bars span:nth-child(39) { flex: 2.5;  }
.pui-barcode-bars span:nth-child(40) { flex: .5;   }

.pui-barcode-num {
  font-size: .45rem;
  font-family: 'Courier New', monospace;
  color: rgba(255,255,255,.6);
  letter-spacing: .12em;
}

/* Hint text below viewfinder */
.pui-hint {
  margin-top: .625rem;
  font-size: .575rem;
  color: rgba(255,255,255,.38);
  text-align: center;
  letter-spacing: .02em;
  z-index: 1;
  position: relative;
}

/* ── Result card — glassmorphism ────────────────────────── */
.pui-result {
  padding: .375rem .625rem .75rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.pui-result-glass {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 14px;
  padding: .625rem .75rem;
  border: 1px solid rgba(16,185,129,.3);
  box-shadow:
    0 0 24px rgba(16,185,129,.08),
    inset 0 1px 0 rgba(255,255,255,.07),
    inset 0 -1px 0 rgba(0,0,0,.15);
}

.pui-result-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(16,185,129,.2);
  border: 1.5px solid rgba(16,185,129,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(16,185,129,.3);
}

.pui-result-info { flex: 1; min-width: 0; }

.pui-result-product {
  font-size: .7rem;
  font-weight: 700;
  color: rgba(255,255,255,.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.pui-result-label {
  font-size: .55rem;
  color: #34d399;
  margin-top: 2px;
  font-weight: 500;
}

.pui-result-pct {
  flex-shrink: 0;
  background: rgba(16,185,129,.15);
  border: 1px solid rgba(16,185,129,.35);
  border-radius: 8px;
  padding: .25rem .4rem;
  font-size: .6rem;
  font-weight: 800;
  color: #34d399;
  letter-spacing: -.01em;
}

.mockup-glow {
  position: absolute;
  bottom: -40px; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 70px;
  background: var(--primary);
  filter: blur(48px);
  opacity: .3;
  pointer-events: none;
}

/* ============================================================
   PROBLEM SECTION
   ============================================================ */

.problem {
  padding: 5rem 0;
  background: var(--bg-alt);
}

.problem .section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.problem-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.problem-icon {
  margin-bottom: 1rem;
  line-height: 0;
}

.problem-card p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */

.features {
  padding: 5rem 0;
}

.features .section-title,
.features .section-label,
.features .section-desc {
  text-align: center;
}

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

.feature-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  text-align: left;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
              border-color var(--transition), background var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  font-family: var(--font);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  background: var(--green-50);
}

.feature-card:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.feature-icon {
  margin-bottom: 1.25rem;
  line-height: 0;
}

.feature-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .5rem;
}

.feature-desc {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.feature-arrow {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: 50%;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
}

.feature-card:hover .feature-arrow {
  background: var(--primary);
  color: #fff;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */

.how-it-works {
  padding: 5rem 0;
  background: var(--bg-alt);
}

.how-it-works .section-title,
.how-it-works .section-label,
.how-it-works .section-desc {
  text-align: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
}

.step-card {
  text-align: center;
  padding: 1rem .5rem;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-green);
}

.step-icon {
  margin-bottom: .875rem;
  line-height: 0;
  display: flex;
  justify-content: center;
}

.step-title {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .5rem;
}

.step-desc {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.step-connector {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--green-200));
  margin-top: 22px;
  border-radius: 2px;
  opacity: .6;
}

/* ============================================================
   SPECIAL OFFER
   ============================================================ */

.offer {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 50%, var(--green-700) 100%);
  position: relative;
  overflow: hidden;
}

.offer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      30deg,
      transparent,
      transparent 60px,
      rgba(255,255,255,.03) 60px,
      rgba(255,255,255,.03) 61px
    );
}

.offer-card {
  position: relative;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.offer-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 700;
  color: var(--green-100);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  padding: .5rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.offer-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.03em;
  line-height: 1.2;
  margin-bottom: .875rem;
}

.offer-desc {
  font-size: 1.125rem;
  color: var(--green-100);
  margin-bottom: 2.5rem;
  opacity: .9;
}

.offer-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
  text-align: left;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: .875rem 1rem;
  color: #fff;
  font-size: .9rem;
  font-weight: 500;
}

.benefit-item strong {
  color: var(--green-200);
}

.offer .btn-primary {
  background: #fff;
  color: var(--green-800);
  border-color: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
}
.offer .btn-primary:hover {
  background: var(--green-50);
  border-color: var(--green-50);
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0,0,0,.3);
}

/* ============================================================
   REGISTRATION FORM
   ============================================================ */

.register {
  padding: 5rem 0;
  background: var(--bg);
}

.register-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.register-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.register-trust {
  display: flex;
  flex-direction: column;
  gap: .875rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* FORM */
.form {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: .5rem;
}

.required {
  color: #DC2626;
  margin-left: 2px;
}

.optional {
  font-weight: 400;
  color: var(--gray-400);
  font-size: .8125rem;
}

.form-input {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}

.form-input::placeholder { color: var(--gray-400); }

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5,150,105,.12);
}

.form-input.error {
  border-color: var(--red-500);
  box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}

.form-error {
  display: block;
  font-size: .8125rem;
  color: var(--red-500);
  margin-top: .375rem;
  min-height: 1.2em;
  font-weight: 500;
}

.form-hint {
  display: block;
  font-size: .8125rem;
  color: var(--gray-400);
  margin-top: .375rem;
}

/* PRICE OPTIONS */
.survey-group { margin-bottom: 1.75rem; }

.survey-group fieldset { border: none; }

.survey-group legend.form-label { margin-bottom: .875rem; }

.price-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}

.price-option {
  cursor: pointer;
  display: block;
}

.price-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.price-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem .75rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}

.price-option input:checked + .price-card {
  border-color: var(--primary);
  background: var(--green-50);
  box-shadow: 0 0 0 4px rgba(5,150,105,.1);
}

.price-option:hover .price-card {
  border-color: var(--green-500);
}

.price-option input:focus-visible + .price-card {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.price-amount {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.price-period {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: .25rem;
}

.price-popular {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #fff;
  background: var(--primary);
  padding: .2rem .5rem;
  border-radius: 100px;
  white-space: nowrap;
}

/* Submit button loading */
.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.spinner {
  animation: spin 1s linear infinite;
  transform-origin: center;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--gray-900);
  color: #fff;
  padding: 3rem 0 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 1.5rem;
}

.footer .logo-text { color: #fff; }

.footer-desc {
  font-size: .9rem;
  color: var(--gray-400);
  line-height: 1.6;
  margin-top: .875rem;
  max-width: 320px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: .625rem;
  align-items: flex-end;
}

.footer-link {
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-400);
  background: none;
  border: none;
  cursor: pointer;
  padding: .375rem .5rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}

.footer-link:hover {
  color: #fff;
  background: rgba(255,255,255,.06);
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  font-size: .8125rem;
  color: var(--gray-500);
}

/* ============================================================
   MODALS
   ============================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn .15s ease;
}

.modal-overlay[hidden] {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: slideUp .2s ease;
}

.modal-wide { max-width: 560px; }

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--gray-100);
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--gray-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.modal-close:hover { background: var(--gray-200); }
.modal-close:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.modal-icon {
  margin-bottom: 1.25rem;
  line-height: 0;
}

.modal-title {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.25rem;
  letter-spacing: -.02em;
  padding-right: 2.5rem;
}

.modal-body p {
  font-size: .9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.modal-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.5rem 0 .5rem;
}

.modal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.modal-list li {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  font-size: .9rem;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
}

.modal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* Modal status list for halol/shubhali/harammas */
.modal-status-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: .5rem;
}

.modal-status {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1.5px solid;
}

.modal-status.halol    { background: var(--green-50); border-color: var(--green-200); }
.modal-status.shubhali { background: #FFFBEB; border-color: #FDE68A; }
.modal-status.harammas { background: #FEF2F2; border-color: #FECACA; }

.modal-status img {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  min-width: 28px;
  object-fit: contain;
  margin-top: 2px;
}
.modal-status strong { display: block; font-size: 1rem; color: var(--text); margin-bottom: .25rem; }
.modal-status p { margin: 0; font-size: .875rem; color: var(--text-muted); }

/* Contact modal */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: .875rem;
  margin-top: .5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition);
}
.contact-item:hover { background: var(--green-50); border-color: var(--primary); }

.contact-label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.contact-value {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-top: .125rem;
}

.telegram-icon { flex-shrink: 0; border-radius: 8px; }

/* Success modal */
.modal-success { text-align: center; }

.success-animation {
  margin-bottom: 1.25rem;
}

.success-circle {
  width: 88px;
  height: 88px;
  background: var(--green-50);
  border: 2px solid var(--green-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  animation: popIn .4s cubic-bezier(.34,1.56,.64,1);
}

@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.success-main {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 1.25rem !important;
}

.success-items {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  text-align: left;
}

.success-item {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  padding: .75rem 1rem;
  background: var(--green-50);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--gray-700);
  line-height: 1.5;
}

.success-item img { flex-shrink: 0; margin-top: .125rem; }

/* ============================================================
   ANIMATIONS
   ============================================================ */

/* Header slide down on load */
.header {
  animation: anim-slide-down .5s cubic-bezier(.16,1,.3,1) both;
}

@keyframes anim-slide-down {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

/* Hero entrance — CSS-driven, fires on page load */
.hero-badge      { animation: anim-slide-up .55s cubic-bezier(.16,1,.3,1) .08s  both; }
.hero-title      { animation: anim-slide-up .7s  cubic-bezier(.16,1,.3,1) .20s  both; }
.hero-desc       { animation: anim-slide-up .6s  cubic-bezier(.16,1,.3,1) .34s  both; }
.hero-status-row { animation: anim-slide-up .5s  cubic-bezier(.16,1,.3,1) .46s  both; }
.hero-btns       { animation: anim-slide-up .5s  cubic-bezier(.16,1,.3,1) .56s  both; }
.hero-mockup     { animation: anim-slide-up .8s  cubic-bezier(.16,1,.3,1) .24s  both; }

@keyframes anim-slide-up {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Phone gentle float — now applied directly in .phone-wrap */

@keyframes anim-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* ── Scroll-triggered base ──────────────────────── */

[data-anim] {
  opacity: 0;
  will-change: opacity, transform;
  transition:
    opacity  .6s cubic-bezier(.16,1,.3,1),
    transform .6s cubic-bezier(.16,1,.3,1);
}

[data-anim="up"]   { transform: translateY(40px); }
[data-anim="left"] { transform: translateX(-48px); }
[data-anim="right"]{ transform: translateX(48px); }
[data-anim="fade"] { transform: none; }
[data-anim="scale"]{
  transform: scale(.9) translateY(28px);
  transition-duration: .7s;
}

/* Triggered state */
[data-anim].in-view {
  opacity: 1;
  transform: none;
}

/* ── Child triggers (fire when parent is .in-view) ── */

/* Step number: bounce pop */
.step-card.in-view .step-number {
  animation: anim-pop .5s cubic-bezier(.34,1.56,.64,1) .12s both;
}

@keyframes anim-pop {
  from { transform: scale(0) rotate(-15deg); opacity: 0; }
  65%  { transform: scale(1.2) rotate(5deg);  opacity: 1; }
  to   { transform: scale(1)  rotate(0);     opacity: 1; }
}

/* Problem & Feature icons: gentle pop */
.problem-card.in-view .problem-icon img,
.feature-card.in-view .feature-icon img {
  animation: anim-icon .4s cubic-bezier(.34,1.56,.64,1) .18s both;
}

@keyframes anim-icon {
  from { transform: scale(.5) rotate(-8deg); opacity: 0; }
  65%  { transform: scale(1.12) rotate(3deg); opacity: 1; }
  to   { transform: scale(1)  rotate(0);     opacity: 1; }
}

/* Step icons: subtle rise */
.step-card.in-view .step-icon img {
  animation: anim-slide-up .4s cubic-bezier(.16,1,.3,1) .22s both;
}

/* Offer benefits stagger (handled by JS stagger + data-anim on each) */
/* but also boost offer card inner elements */
.offer-card.in-view .offer-badge {
  animation: anim-slide-up .5s cubic-bezier(.16,1,.3,1) .1s both;
}

.offer-card.in-view .offer-title {
  animation: anim-slide-up .55s cubic-bezier(.16,1,.3,1) .2s both;
}

.offer-card.in-view .offer-desc {
  animation: anim-slide-up .5s cubic-bezier(.16,1,.3,1) .3s both;
}

.offer-card.in-view .btn {
  animation: anim-slide-up .5s cubic-bezier(.16,1,.3,1) .55s both;
}

/* Section label underline wipe */
.section-label.in-view {
  animation: anim-fade-in .4s ease both;
}

@keyframes anim-fade-in {
  from { opacity: 0; letter-spacing: .14em; }
  to   { opacity: 1; letter-spacing: .08em; }
}

/* Form input focus wiggle */
.form-input:focus {
  animation: anim-focus-in .2s ease both;
}

@keyframes anim-focus-in {
  from { transform: scale(.995); }
  to   { transform: scale(1); }
}

/* ── Stagger connector reveal ──────────────────── */
.step-connector {
  opacity: 0;
  transition: opacity .5s ease;
}

.step-connector.in-view {
  opacity: .6;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr 360px;
    gap: 3rem;
  }

  .steps-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .step-connector {
    display: none;
  }
}

@media (max-width: 900px) {
  .problem-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .register-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .register-left {
    max-width: 640px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem 1.5rem;
    gap: .25rem;
    z-index: 99;
  }

  .nav-links.open .nav-link {
    padding: .75rem 1rem;
    font-size: 1rem;
  }

  .nav-links.open ~ .nav-cta {
    display: block;
    width: calc(100% - 2.5rem);
    margin: 0 1.25rem 1.25rem;
    text-align: center;
  }

  .burger { display: flex; }

  .hero {
    padding: 3.5rem 0 3rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-content { max-width: 100%; }

  .hero-status-row { justify-content: center; }
  .hero-btns { justify-content: center; }

  .hero-mockup {
    order: -1;
  }

  /* PNG phone — scale down to 220px for 768px viewport */
  .phone-wrap  { width: 220px; height: 420px; }
  .phone-ui    { left: 9px; top: 8px; width: 202px; height: 404px; border-radius: 24px; }
  .pui-frame   { width: 782px; left: -280px; top: -45px; }
  .pui-scan-frame { width: 138px; height: 138px; }
  .pui-result-glass { padding: .5rem .625rem; }
  .pui-island-gap { height: 33px; }

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

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

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .offer-benefits {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  .form { padding: 1.75rem 1.25rem; }

  .form-row {
    grid-template-columns: 1fr;
  }

  .price-options {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-desc { margin: .875rem auto 0; }
  .footer-links { align-items: center; }
}

@media (max-width: 480px) {
  .problem-grid { grid-template-columns: 1fr; }

  .hero-btns {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-btns .btn { text-align: center; justify-content: center; }

  .modal { padding: 1.75rem 1.25rem; }
  .modal-title { font-size: 1.25rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
  }

  /* Show all animated elements immediately — no hiding */
  [data-anim],
  .hero-badge, .hero-title, .hero-desc,
  .hero-status-row, .hero-btns, .hero-mockup,
  .header, .step-connector {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}
