/* ========================================================
   Inventify — inventify.app
   Production stylesheet
   ======================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --orange: #F97316;
  --orange-dark: #E85D04;
  --orange-light: #FFF0E6;
  --dark: #0F0F13;
  --dark2: #1E1B2E;
  --dark3: #2D2A40;
  --white: #FFFFFF;
  --gray: #888888;
  --light: #F8F7FF;
  --green: #10B981;
  --blue: #2980B9;
  --purple: #8E44AD;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--white);
  color: var(--dark);
  overflow-x: hidden;
}

/* ── SCROLL-REVEAL ANIMATIONS (driven by js/script.js via IntersectionObserver) ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

.reveal-left { transform: translateX(-32px); }
.reveal-left.in-view { transform: translateX(0); }

.reveal-right { transform: translateX(32px); }
.reveal-right.in-view { transform: translateX(0); }

.reveal-scale { transform: scale(0.92); }
.reveal-scale.in-view { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  .phone { transition: none !important; }
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #EDEDF5;
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-circle {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: white;
}
.nav-logo-text { font-size: 20px; font-weight: 800; color: var(--dark); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { text-decoration: none; color: var(--gray); font-size: 15px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--orange); }
.nav-cta {
  background: var(--orange); color: white; border: none;
  padding: 10px 22px; border-radius: 24px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: background 0.2s;
}
.nav-cta:hover { background: var(--orange-dark); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0F0F13 0%, #1E1B2E 50%, #0F0F13 100%);
  display: flex; align-items: center;
  padding: 80px 5% 60px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,0.15) 0%, transparent 70%);
}
.hero::after {
  content: '';
  position: absolute; bottom: -100px; left: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(41,128,185,0.1) 0%, transparent 70%);
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(249,115,22,0.15); border: 1px solid rgba(249,115,22,0.3);
  color: var(--orange); padding: 6px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 600; margin-bottom: 24px;
}
.hero-badge span { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.hero h1 {
  font-size: clamp(36px, 5vw, 64px); font-weight: 900;
  color: white; line-height: 1.1; margin-bottom: 20px;
}
.hero h1 span { color: var(--orange); }
.hero p {
  font-size: 18px; color: #AAAACC; line-height: 1.7; margin-bottom: 36px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.btn-primary {
  background: var(--orange); color: white;
  padding: 14px 28px; border-radius: 32px;
  font-size: 16px; font-weight: 700; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.2s; box-shadow: 0 8px 24px rgba(249,115,22,0.4);
  border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.btn-secondary {
  background: rgba(255,255,255,0.08); color: white;
  padding: 14px 28px; border-radius: 32px; border: 1px solid rgba(255,255,255,0.2);
  font-size: 16px; font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.15); }
.hero-stats { display: flex; gap: 32px; }
.hero-stat { text-align: center; }
.hero-stat-val { font-size: 28px; font-weight: 900; color: var(--orange); }
.hero-stat-label { font-size: 12px; color: var(--gray); margin-top: 2px; }

/* Phone mockup */
.phone-mockup {
  position: relative; display: flex; justify-content: center;
  perspective: 1200px;
}
.phone {
  width: 280px; height: 560px;
  background: #1E1B2E; border-radius: 40px;
  border: 2px solid #2D2A40;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
  overflow: hidden; position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.1s linear;
}
.phone-notch {
  width: 80px; height: 20px; background: #0F0F13;
  border-radius: 0 0 16px 16px; margin: 0 auto;
  position: relative; z-index: 1;
}
.phone-screen { padding: 8px 12px; }
.phone-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.phone-greeting { font-size: 13px; font-weight: 700; color: white; }
.phone-sub { font-size: 9px; color: var(--gray); }
.phone-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--orange); display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: white;
}
.phone-stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.phone-stat-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 10px;
}
.phone-stat-icon { font-size: 16px; margin-bottom: 4px; }
.phone-stat-num { font-size: 20px; font-weight: 900; color: var(--orange); }
.phone-stat-lbl { font-size: 8px; color: var(--gray); }
.phone-radar-card {
  background: linear-gradient(135deg, #F97316, #E85D04);
  border-radius: 14px; padding: 12px; margin-bottom: 10px;
}
.phone-radar-title { font-size: 11px; font-weight: 700; color: white; margin-bottom: 2px; }
.phone-radar-sub { font-size: 8px; color: rgba(255,255,255,0.8); margin-bottom: 8px; }
.phone-radar-row { display: flex; gap: 6px; }
.phone-radar-badge {
  background: rgba(0,0,0,0.2); border-radius: 8px; padding: 4px 8px;
  font-size: 8px; color: white; font-weight: 600;
}
.phone-section-label { font-size: 8px; color: var(--gray); font-weight: 600; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.phone-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.phone-action {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 8px; text-align: center;
}
.phone-action-icon { font-size: 14px; margin-bottom: 2px; }
.phone-action-label { font-size: 8px; color: white; font-weight: 600; }
.phone-tab-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(30,27,46,0.95); border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: space-around;
  padding: 8px 8px 12px;
}
.phone-tab { text-align: center; font-size: 8px; color: var(--gray); }
.phone-tab.active { color: var(--orange); }
.phone-tab-icon { font-size: 14px; display: block; margin-bottom: 2px; }
.phone-tab-center {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--orange); display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-top: -20px;
  box-shadow: 0 4px 16px rgba(249,115,22,0.5);
}

/* ── FEATURES ── */
.features {
  padding: 100px 5%; background: var(--light);
}
.section-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-tag {
  display: inline-block; background: var(--orange-light); color: var(--orange);
  padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 700;
  margin-bottom: 16px;
}
.section-header h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 900; line-height: 1.2; margin-bottom: 16px; }
.section-header p { font-size: 17px; color: var(--gray); line-height: 1.7; }

.features-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-card {
  background: white; border-radius: 20px; padding: 32px;
  border: 1px solid #EDEDF5;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.feature-icon-wrap {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 20px;
}
.feature-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.feature-card p { font-size: 15px; color: var(--gray); line-height: 1.6; }
.feature-badge {
  display: inline-block; margin-top: 16px;
  padding: 4px 12px; border-radius: 12px;
  font-size: 12px; font-weight: 700;
}

/* ── RETURNRADAR ── */
.returnradar {
  padding: 100px 5%;
  background: linear-gradient(135deg, #0F0F13, #1E1B2E);
}
.returnradar-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.returnradar h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 900; color: white; line-height: 1.2; margin-bottom: 16px; }
.returnradar h2 span { color: var(--orange); }
.returnradar > .returnradar-inner > div > p { font-size: 17px; color: #AAAACC; line-height: 1.7; margin-bottom: 32px; }
.stores-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.store-pill {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  color: white; padding: 8px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px;
}
.radar-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.radar-stat-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 20px;
}
.radar-stat-val { font-size: 32px; font-weight: 900; color: var(--orange); }
.radar-stat-label { font-size: 13px; color: var(--gray); margin-top: 4px; }
.radar-visual {
  position: relative;
}
.countdown-card {
  background: white; border-radius: 20px; padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.countdown-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.countdown-store { font-size: 16px; font-weight: 800; }
.countdown-item { font-size: 13px; color: var(--gray); }
.countdown-number { font-size: 48px; font-weight: 900; }
.countdown-label { font-size: 14px; color: var(--gray); }
.countdown-bar { height: 8px; background: #f0f0f0; border-radius: 4px; margin: 16px 0; overflow: hidden; }
.countdown-fill { height: 100%; border-radius: 4px; }
.countdown-actions { display: flex; gap: 10px; }
.countdown-btn {
  flex: 1; padding: 10px; border-radius: 12px; border: none;
  font-size: 13px; font-weight: 700; cursor: pointer;
}
.countdown-btn.keep { background: var(--green); color: white; }
.countdown-btn.return { background: #f0f0f0; color: var(--dark); }
.floating-notif {
  position: absolute; top: -20px; right: -20px;
  background: #1E1B2E; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 12px 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  min-width: 220px;
}
.notif-title { font-size: 12px; font-weight: 700; color: white; margin-bottom: 4px; }
.notif-body { font-size: 11px; color: var(--gray); }

/* ── HOW IT WORKS ── */
.how {
  padding: 100px 5%; background: var(--white);
}
.steps {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 32px;
}
.step { text-align: center; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--orange); color: white;
  font-size: 20px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--gray); line-height: 1.6; }

/* ── PRICING ── */
.pricing {
  padding: 100px 5%; background: var(--light);
}
.pricing-grid {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px;
}
.pricing-card {
  background: white; border-radius: 24px; padding: 36px;
  border: 1px solid #EDEDF5; position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}
.pricing-card.featured {
  background: var(--dark); border-color: var(--orange);
  transform: scale(1.04);
  box-shadow: 0 20px 60px rgba(249,115,22,0.3);
}
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: white;
  padding: 4px 16px; border-radius: 12px; font-size: 12px; font-weight: 700;
}
.pricing-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.pricing-card.featured h3 { color: white; }
.pricing-price { margin-bottom: 24px; }
.pricing-amount { font-size: 42px; font-weight: 900; color: var(--orange); }
.pricing-period { font-size: 15px; color: var(--gray); }
.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li {
  padding: 8px 0; border-bottom: 1px solid #f0f0f5;
  font-size: 14px; display: flex; align-items: center; gap: 8px;
}
.pricing-card.featured .pricing-features li { border-color: rgba(255,255,255,0.08); color: #CCCCDD; }
.pricing-features li::before { content: '✓'; color: var(--green); font-weight: 700; }
.pricing-cta {
  width: 100%; padding: 14px; border-radius: 14px; border: none;
  font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.2s;
}
.pricing-cta.primary { background: var(--orange); color: white; }
.pricing-cta.primary:hover { background: var(--orange-dark); }
.pricing-cta.secondary { background: #f0f0f5; color: var(--dark); }
.pricing-cta.secondary:hover { background: #e0e0eb; }

/* ── CTA SECTION ── */
.cta-section {
  padding: 100px 5%;
  background: linear-gradient(135deg, #F97316, #E85D04);
  text-align: center;
}
.cta-section h2 { font-size: clamp(28px,4vw,48px); font-weight: 900; color: white; margin-bottom: 16px; }
.cta-section p { font-size: 18px; color: rgba(255,255,255,0.85); margin-bottom: 36px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-btn-white {
  background: white; color: var(--orange);
  padding: 16px 32px; border-radius: 32px;
  font-size: 16px; font-weight: 800; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.2s; box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.cta-btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.3); }
.cta-btn-outline {
  background: transparent; color: white; border: 2px solid rgba(255,255,255,0.6);
  padding: 16px 32px; border-radius: 32px;
  font-size: 16px; font-weight: 700; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s;
}
.cta-btn-outline:hover { border-color: white; background: rgba(255,255,255,0.1); }

/* ── WAITLIST ── */
.waitlist {
  padding: 90px 5%; background: var(--dark2);
  text-align: center;
}
.waitlist-inner { max-width: 560px; margin: 0 auto; }
.waitlist h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 900; color: white; margin-bottom: 12px; }
.waitlist > .waitlist-inner > p { font-size: 16px; color: #AAAACC; line-height: 1.6; margin-bottom: 32px; }
.waitlist-form {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.waitlist-form input[type="email"] {
  flex: 1 1 260px; min-width: 0;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16);
  color: white; padding: 14px 20px; border-radius: 32px;
  font-size: 15px; outline: none; transition: border-color 0.2s, background 0.2s;
}
.waitlist-form input[type="email"]::placeholder { color: #7A7A99; }
.waitlist-form input[type="email"]:focus { border-color: var(--orange); background: rgba(255,255,255,0.1); }
.waitlist-form input[type="email"]:invalid:not(:placeholder-shown) { border-color: #E5484D; }
.waitlist-status {
  margin-top: 16px; font-size: 14px; min-height: 20px; font-weight: 600;
}
.waitlist-status.success { color: var(--green); }
.waitlist-status.error { color: #FF6B6B; }

/* ── FOOTER ── */
footer {
  background: var(--dark); padding: 60px 5% 32px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 14px; color: #666688; line-height: 1.7; margin-top: 12px; }
footer h4 { font-size: 14px; font-weight: 700; color: white; margin-bottom: 16px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; }
footer ul li a { text-decoration: none; color: #666688; font-size: 14px; transition: color 0.2s; }
footer ul li a:hover { color: var(--orange); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  border-top: 1px solid #2D2A40; padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 13px; color: #555577; }
.footer-stores { display: flex; gap: 12px; }
.store-badge {
  background: #1E1B2E; border: 1px solid #2D2A40;
  color: white; padding: 8px 16px; border-radius: 10px;
  font-size: 12px; font-weight: 600; text-decoration: none;
  display: flex; align-items: center; gap: 6px; transition: all 0.2s;
}
.store-badge:hover { border-color: var(--orange); color: var(--orange); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .phone-mockup { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .returnradar-inner { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .waitlist-form { flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
