/* =========================================================
   RENTLYPRO — Modern editorial design system
   Light theme (default) + Dark theme toggle
   Brand: #E21912
   ========================================================= */

:root {
  --red: #E21912;
  --red-dark: #B5140E;
  --red-soft: #FFE9E8;

  --sans: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: 'Fraunces', 'Times New Roman', serif;
  --mono: 'JetBrains Mono', monospace;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-xl: 32px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* LIGHT THEME (default) */
html[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-2: #F7F7F7;
  --bg-card: #FFFFFF;
  --bg-inverse: #0A0A0B;
  --bg-inverse-2: #16161A;
  --bg-inverse-3: #1F1F25;

  --text: #0A0A0B;
  --text-dim: #5A5A60;
  --text-inverse: #FFFFFF;
  --text-inverse-dim: rgba(255, 255, 255, 0.6);

  --line: rgba(10, 10, 11, 0.08);
  --line-strong: rgba(10, 10, 11, 0.14);
  --line-inverse: rgba(255, 255, 255, 0.08);
  --line-inverse-strong: rgba(255, 255, 255, 0.14);

  --shadow-card: 0 30px 60px -20px rgba(0,0,0,0.12);
  --shadow-card-soft: 0 40px 80px -30px rgba(0,0,0,0.15), 0 20px 40px -20px rgba(0,0,0,0.08);
}

/* DARK THEME */
html[data-theme="dark"] {
  --bg: #0A0A0B;
  --bg-2: #16161A;
  --bg-card: #16161A;
  --bg-inverse: #FFFFFF;
  --bg-inverse-2: #F7F7F7;
  --bg-inverse-3: #EEEEEE;

  --text: #FFFFFF;
  --text-dim: rgba(255, 255, 255, 0.6);
  --text-inverse: #0A0A0B;
  --text-inverse-dim: #5A5A60;

  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --line-inverse: rgba(10, 10, 11, 0.08);
  --line-inverse-strong: rgba(10, 10, 11, 0.14);

  --shadow-card: 0 30px 60px -20px rgba(0,0,0,0.6);
  --shadow-card-soft: 0 40px 80px -30px rgba(0,0,0,0.7), 0 20px 40px -20px rgba(0,0,0,0.5);
}

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

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

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--red); color: #fff; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.serif-italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.red { color: var(--red); }
.muted { color: var(--text-dim); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all 0.3s var(--ease);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  padding: 12px 0;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  border-bottom-color: var(--line);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo img {
  height: 28px;
  width: auto;
  transition: filter 0.4s var(--ease);
}

html[data-theme="dark"] .nav-logo img,
html[data-theme="dark"] .foot-logo {
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
}

.nav-mobile-actions { display: none; }

.nav-links a {
  position: relative;
  color: var(--text);
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover::after { width: 100%; }

.nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Theme toggle */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  background: var(--bg-2);
  border-color: var(--red);
  color: var(--red);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
  position: absolute;
  transition: transform 0.5s var(--ease), opacity 0.3s var(--ease);
}

.theme-toggle .icon-sun { opacity: 0; transform: rotate(90deg) scale(0); }
.theme-toggle .icon-moon { opacity: 1; transform: rotate(0) scale(1); }

html[data-theme="dark"] .theme-toggle .icon-sun { opacity: 1; transform: rotate(0) scale(1); }
html[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(-90deg) scale(0); }

.nav-burger {
  display: none;
  width: 32px; height: 32px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.nav-burger span {
  width: 22px;
  height: 1.5px;
  background: var(--text);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 100px;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-lg {
  padding: 16px 28px;
  font-size: 15px;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--red);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -10px rgba(226, 25, 18, 0.5);
}

.btn-red {
  background: var(--red);
  color: #fff;
}
.btn-red:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 15px 40px -10px rgba(226, 25, 18, 0.5);
}

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-outline:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--bg-2);
}

.btn-link {
  background: transparent;
  padding: 11px 4px;
  position: relative;
}
.btn-underline {
  position: absolute;
  bottom: 6px;
  left: 4px;
  right: 26px;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.btn-link:hover .btn-underline { transform: scaleX(0.5); }

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 80px;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(226, 25, 18, 0.10), transparent 60%);
  filter: blur(80px);
  animation: glowMove 12s ease-in-out infinite alternate;
}

html[data-theme="dark"] .hero-glow {
  background: radial-gradient(circle, rgba(226, 25, 18, 0.28), transparent 60%);
}

@keyframes glowMove {
  to { transform: translate(-100px, 60px) scale(1.1); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 13px;
  margin-bottom: 32px;
  font-family: var(--mono);
  letter-spacing: -0.01em;
  background: var(--bg-card);
  opacity: 0;
  animation: rise 0.8s var(--ease) forwards;
}

.dot {
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(226, 25, 18, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(226, 25, 18, 0); }
  100% { box-shadow: 0 0 0 0 rgba(226, 25, 18, 0); }
}

.hero-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(48px, 7.5vw, 110px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 36px;
  max-width: 1100px;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .line > * {
  display: inline-block;
}

.hero-title .line {
  opacity: 0;
  animation: rise 0.9s var(--ease) forwards;
}
.hero-title .line:nth-child(1) { animation-delay: 0.1s; }
.hero-title .line:nth-child(2) { animation-delay: 0.2s; }
.hero-title .line:nth-child(3) { animation-delay: 0.3s; }

.hero-title .serif-italic {
  font-weight: 300;
  letter-spacing: -0.02em;
}

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

.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 40px;
  opacity: 0;
  animation: rise 0.9s 0.4s var(--ease) forwards;
}

.hero-cta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
  opacity: 0;
  animation: rise 0.9s 0.5s var(--ease) forwards;
}

.hero-stores {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise 0.9s 0.6s var(--ease) forwards;
}

.store-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text);
  transition: all 0.25s var(--ease);
  font-weight: 500;
  background: var(--bg-card);
}
.store-pill:hover {
  border-color: var(--red);
  color: var(--red);
}

/* Hero visual */
.hero-visual {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 80px auto 0;
  padding: 0 32px;
  opacity: 0;
  animation: rise 1.2s 0.7s var(--ease) forwards;
}

.visual-frame {
  position: relative;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, #16161A, #1F1F25);
  border: 1px solid var(--line);
  padding: 20px;
  box-shadow:
    0 60px 120px -40px rgba(226, 25, 18, 0.25),
    0 30px 60px -20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.visual-tag {
  position: absolute;
  top: 36px;
  left: 36px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 11px;
  color: #fff;
}

.visual-tag-dot {
  width: 6px; height: 6px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2s infinite;
}

.visual-desktop {
  width: 100%;
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,0.08);
}

.visual-mobile {
  position: absolute;
  right: 40px;
  bottom: -10px;
  width: 200px;
  border-radius: 24px;
  border: 6px solid #1F1F25;
  box-shadow: 0 30px 60px -10px rgba(0,0,0,0.6);
  transform: rotate(3deg);
  transition: transform 0.6s var(--ease);
}

.visual-frame:hover .visual-mobile {
  transform: rotate(0deg) translateY(-8px);
}

/* Trust */
.trust {
  position: relative;
  z-index: 2;
  margin-top: 60px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.trust-label {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.trust-label strong {
  color: var(--text);
  font-weight: 600;
}

.trust-stars {
  color: var(--red);
  margin-right: 12px;
  letter-spacing: 2px;
}

/* =========================================================
   STATS
   ========================================================= */
.stats {
  background: var(--bg);
  color: var(--text);
  padding: 60px 0 100px;
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.stat {
  padding: 32px 24px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }

.stat-num {
  font-family: var(--sans);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-small {
  font-size: 0.4em;
  color: var(--text-dim);
  margin-left: 4px;
}

.stat-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =========================================================
   SECTION HEAD COMMON
   ========================================================= */
.section-head {
  margin-bottom: 80px;
  max-width: 800px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 16px;
  padding: 4px 10px;
  border: 1px solid var(--red);
  border-radius: 100px;
}

.section-title {
  font-family: var(--sans);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 500;
}

.section-sub {
  font-size: 17px;
  color: var(--text-dim);
  margin-top: 20px;
  max-width: 620px;
  line-height: 1.55;
}

.section-head.center .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   PRODUCT
   ========================================================= */
.product {
  padding: 120px 0 140px;
  background: var(--bg);
  position: relative;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 140px;
}
.feature-row.reverse {
  grid-template-columns: 1.2fr 1fr;
}
.feature-row.reverse .feature-visual {
  order: -1;
}

.feature-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--red);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.feature-title {
  font-family: var(--sans);
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin-bottom: 20px;
}

.feature-desc {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 28px;
  max-width: 520px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}
.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Visual card (browser mockup) - always dark for screenshot contrast */
.visual-card {
  background: #16161A;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card-soft);
  transition: transform 0.5s var(--ease);
}

.visual-card:hover {
  transform: translateY(-6px);
}

.visual-card-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: #0A0A0B;
}
.visual-card-bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.visual-card-bar span:nth-child(1) { background: #FF5F57; }
.visual-card-bar span:nth-child(2) { background: #FEBC2E; }
.visual-card-bar span:nth-child(3) { background: #28C840; }

.visual-card-url {
  margin-left: 16px;
  padding: 4px 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(245, 241, 234, 0.6);
  background: #1F1F25;
  border-radius: 4px;
}

.visual-card img {
  width: 100%;
  display: block;
}

/* Mobile trip */
.mobile-trip {
  text-align: center;
  padding-top: 40px;
}

.mobile-trip-head {
  max-width: 640px;
  margin: 0 auto 80px;
}

.mobile-trip-head .feature-tag {
  display: block;
  margin-bottom: 20px;
}

.phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 24px;
  perspective: 1500px;
}

.phone {
  position: relative;
  width: 240px;
  border-radius: 36px;
  overflow: hidden;
  background: #0A0A0B;
  border: 10px solid #0A0A0B;
  box-shadow:
    0 40px 80px -20px rgba(0,0,0,0.4),
    0 0 0 1px var(--line);
  transition: transform 0.6s var(--ease);
}

.phone-1 { transform: rotate(-4deg) translateY(20px); }
.phone-2 { transform: rotate(0deg) translateY(-10px); z-index: 2; }
.phone-3 { transform: rotate(4deg) translateY(20px); }

.phone:hover {
  transform: rotate(0deg) translateY(-20px);
  z-index: 3;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #0A0A0B;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.phone img {
  width: 100%;
  display: block;
  border-radius: 26px;
}

/* =========================================================
   FEATURES (clean 3x2 grid)
   ========================================================= */
.features {
  background: var(--bg-2);
  color: var(--text);
  padding: 140px 0;
  position: relative;
}

.features-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 80px;
}

.features-head .section-title {
  margin-bottom: 0;
}

.features-head-right {
  padding-bottom: 8px;
}

.features-head-right p {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 440px;
}

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

.f-card {
  padding: 40px 36px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: all 0.35s var(--ease);
  position: relative;
  min-height: 260px;
}

.f-card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: 0 20px 40px -20px rgba(226, 25, 18, 0.18);
}

.f-number {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--red);
  letter-spacing: 0.05em;
  margin-bottom: 28px;
  display: block;
}

.f-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  color: var(--red);
}

.f-icon svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.5;
}

.f-card h4 {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.f-card p {
  color: var(--text-dim);
  line-height: 1.55;
  font-size: 14.5px;
}

/* =========================================================
   HOW IT WORKS (floating phone)
   ========================================================= */
.how {
  padding: 140px 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.how-container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

.how-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  font-weight: 500;
}

.how-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--red);
}

.how-title {
  font-family: var(--sans);
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin-bottom: 20px;
}

.how-title .red {
  display: inline-block;
}

.how-sub {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 480px;
  margin-bottom: 56px;
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.how-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  align-items: start;
  transition: all 0.3s var(--ease);
}

.how-step:last-child {
  border-bottom: 1px solid var(--line);
}

.how-step:hover {
  padding-left: 12px;
}

.how-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

html[data-theme="dark"] .how-step-num {
  background: rgba(226, 25, 18, 0.15);
}

.how-step h5 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.how-step p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.55;
  max-width: 460px;
}

/* Floating phone composition */
.how-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
}

.how-phone {
  position: relative;
  width: 280px;
  border-radius: 42px;
  overflow: hidden;
  background: #0A0A0B;
  border: 10px solid #0A0A0B;
  box-shadow:
    0 50px 100px -20px rgba(0,0,0,0.35),
    0 0 0 1px var(--line);
  animation: phoneFloat 6s ease-in-out infinite;
  z-index: 2;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.how-phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: #0A0A0B;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.how-phone img {
  width: 100%;
  display: block;
  border-radius: 32px;
}

/* Floating notification badges */
.float-badge {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 20px 50px -15px rgba(0,0,0,0.18);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  z-index: 3;
}

.float-badge-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

html[data-theme="dark"] .float-badge-icon {
  background: rgba(226, 25, 18, 0.15);
}

.float-badge-icon svg {
  width: 16px;
  height: 16px;
}

.float-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  flex-shrink: 0;
}

.float-1 {
  top: 80px;
  right: 0;
  animation: floatA 7s ease-in-out infinite;
}

.float-2 {
  bottom: 100px;
  left: 0;
  animation: floatB 8s ease-in-out infinite;
}

.float-3 {
  top: 50%;
  right: -20px;
  animation: floatC 6.5s ease-in-out infinite;
}

@keyframes floatA {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(-2deg); }
}

@keyframes floatB {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}

@keyframes floatC {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(-1deg); }
}

/* Subtle red glow behind phone */
.how-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(226, 25, 18, 0.10), transparent 60%);
  filter: blur(80px);
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

html[data-theme="dark"] .how-glow {
  background: radial-gradient(circle, rgba(226, 25, 18, 0.20), transparent 60%);
}

/* =========================================================
   PRICING
   ========================================================= */
.pricing {
  padding: 140px 0;
  background: var(--bg);
}

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.plan {
  position: relative;
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  transition: all 0.4s var(--ease);
}

.plan:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}

.plan-featured {
  background: var(--bg-inverse);
  color: var(--text-inverse);
  border-color: var(--bg-inverse);
  transform: scale(1.02);
}
.plan-featured:hover {
  transform: translateY(-6px) scale(1.02);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 100px;
  font-weight: 500;
}

.plan-head h3 {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.plan-head p {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 28px;
  line-height: 1.4;
  min-height: 36px;
}
.plan-featured .plan-head p { color: var(--text-inverse-dim); }

.plan-price {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.plan-featured .plan-price { border-bottom-color: var(--line-inverse); }

.plan-price .amount {
  font-family: var(--sans);
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}
.plan-price .serif-italic {
  font-weight: 300;
}

.plan-price .currency {
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
}
.plan-featured .plan-price .currency { color: var(--text-inverse-dim); }

.plan-price .currency small {
  font-size: 12px;
  font-family: var(--mono);
}

.plan-list {
  list-style: none;
  flex: 1;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-list li {
  font-size: 14px;
  color: var(--text-dim);
  padding-left: 22px;
  position: relative;
  line-height: 1.4;
}
.plan-featured .plan-list li { color: var(--text-inverse-dim); }

.plan-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 600;
}

.plan-list li strong {
  color: var(--text);
  font-weight: 600;
}
.plan-featured .plan-list li strong { color: var(--text-inverse); }

.plan-featured .btn-primary {
  background: var(--red);
  color: #fff;
}
.plan-featured .btn-primary:hover {
  background: var(--red-dark);
}

/* =========================================================
   TESTIMONIAL
   ========================================================= */
.testi {
  padding: 120px 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.testi-card {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding: 60px 40px;
  text-align: center;
}

.testi-quote-mark {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 200px;
  line-height: 1;
  color: var(--red);
  opacity: 0.15;
  font-family: var(--serif);
}

.testi blockquote {
  font-family: var(--sans);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 48px;
  font-style: normal;
}

.testi blockquote em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--red);
}

.testi-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 580px;
  margin: 0 auto;
  text-align: left;
}

.testi-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--bg-inverse);
  color: var(--text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.testi-name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
}
.testi-role {
  font-size: 13px;
  color: var(--text-dim);
}

.testi-rating {
  margin-left: auto;
  text-align: right;
}
.testi-stars {
  color: var(--red);
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.testi-rating-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
}

/* =========================================================
   FAQ
   ========================================================= */
.faq {
  padding: 140px 0;
  background: var(--bg-2);
  color: var(--text);
}

.faq-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
}

.faq-left .btn-red {
  margin-top: 24px;
}

.faq-right {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  list-style: none;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item:hover summary { color: var(--red); }

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 24px; height: 24px;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}
.faq-icon::before {
  top: 50%; left: 4px; right: 4px;
  height: 1.5px;
  transform: translateY(-50%);
}
.faq-icon::after {
  left: 50%; top: 4px; bottom: 4px;
  width: 1.5px;
  transform: translateX(-50%);
}

.faq-item[open] .faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-body {
  margin-top: 16px;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 90%;
}

/* =========================================================
   FINAL CTA
   ========================================================= */
.final-cta {
  padding: 120px 0;
  background: var(--bg);
}

.final-card {
  background: var(--bg-inverse);
  color: var(--text-inverse);
  border-radius: var(--r-xl);
  padding: 100px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-card::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(226, 25, 18, 0.4), transparent 60%);
  filter: blur(80px);
  z-index: 0;
}

.final-card > * { position: relative; z-index: 1; }

.final-card h2 {
  font-family: var(--sans);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin-bottom: 20px;
}

.final-card p {
  font-size: 17px;
  color: var(--text-inverse-dim);
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.final-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.final-actions .btn-red {
  background: var(--red);
  color: #fff;
}

.final-actions .btn-ghost-dark {
  background: transparent;
  color: var(--text-inverse);
  border: 1px solid var(--line-inverse-strong);
  padding: 16px 28px;
  font-size: 15px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s var(--ease);
}
.final-actions .btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .final-actions .btn-ghost-dark {
  border-color: rgba(10, 10, 11, 0.14);
}

html[data-theme="dark"] .final-actions .btn-ghost-dark:hover {
  background: rgba(10, 10, 11, 0.06);
}

/* =========================================================
   FOOTER
   ========================================================= */
.foot {
  background: var(--bg-inverse);
  color: var(--text-inverse);
  padding: 80px 0 32px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line-inverse);
}

html[data-theme="dark"] .foot-grid {
  border-bottom-color: rgba(10, 10, 11, 0.12);
}

.foot-brand p {
  color: var(--text-inverse-dim);
  font-size: 14px;
  line-height: 1.55;
  margin-top: 20px;
  margin-bottom: 24px;
  max-width: 320px;
}

.foot-logo {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.4s var(--ease);
}

html[data-theme="dark"] .foot-logo {
  filter: none;
}

.foot-stores {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.foot-stores .store-pill {
  background: transparent;
  color: var(--text-inverse);
  border-color: var(--line-inverse-strong);
}

html[data-theme="dark"] .foot-stores .store-pill {
  border-color: rgba(10, 10, 11, 0.14);
}

.foot-stores .store-pill:hover {
  border-color: var(--red);
  color: var(--red);
}

.foot-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-inverse-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  font-weight: 500;
}

.foot-col a {
  display: block;
  font-size: 14px;
  color: var(--text-inverse);
  margin-bottom: 12px;
  transition: color 0.2s;
}
.foot-col a:hover { color: var(--red); }

.foot-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 13px;
  color: var(--text-inverse-dim);
  font-family: var(--mono);
}

/* WhatsApp float */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -5px rgba(37, 211, 102, 0.5);
  z-index: 50;
  transition: transform 0.3s var(--ease);
}
.wa-float:hover { transform: scale(1.1); }

/* =========================================================
   ANIMATIONS - scroll reveal
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .features-head { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .how-container { grid-template-columns: 1fr; gap: 80px; }
  .how-visual { min-height: 500px; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .plan-featured { transform: none; }
  .plan-featured:hover { transform: translateY(-6px); }
  .faq-container { grid-template-columns: 1fr; gap: 48px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 48px;
    margin-bottom: 100px;
  }
  .feature-row.reverse .feature-visual { order: 0; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-cta .btn-primary { display: none; }
  .nav-burger { display: flex; }

  .nav-mobile-actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
    padding-top: 16px;
    margin-top: 8px;
    border-top: 1px solid var(--line);
    width: 100%;
  }
  .nav-mobile-actions .btn {
    flex: 1;
    min-width: 0;
    justify-content: center;
    padding: 12px 16px;
  }
  .nav-mobile-actions .btn-ghost {
    border: 1.5px solid var(--text);
    color: var(--text);
    font-weight: 600;
  }
  .nav-mobile-actions .btn-primary {
    color: #fff;
    font-weight: 600;
  }
  .nav-mobile-actions .btn-ghost:hover {
    background: var(--text);
    color: var(--bg);
  }

  .hero { padding: 120px 0 60px; }
  .hero-title { font-size: 44px; }
  .hero-visual { margin-top: 60px; padding: 0 20px; }
  .visual-frame { padding: 12px 12px 22px; border-radius: 16px; }
  .visual-tag {
    top: 16px;
    left: 16px;
    max-width: calc(100% - 110px);
    font-size: 10px;
  }
  .visual-mobile {
    width: 104px;
    right: 12px;
    bottom: 10px;
    border-width: 4px;
  }

  .stats { padding: unset; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 16px; }
  .stat-num { font-size: 36px; }
  .nav-logo img {
     height: auto; 
}

  .product, .features, .how, .pricing, .testi, .faq, .final-cta {
    padding: 80px 0;
  }
  .section-head { margin-bottom: 48px; }
  .feature-row { margin-bottom: 70px; }

  .features-grid {
    grid-template-columns: 1fr;
  }
  .f-card { padding: 32px 28px; min-height: auto; }
  .plans { grid-template-columns: 1fr; }

  .phones { gap: 12px; }
  .phone { width: 200px; }
  .phone-1, .phone-3 { display: none; }

  .how-phone { width: 240px; }
  .float-badge { font-size: 12px; padding: 10px 14px; }
  .float-1 { top: 40px; right: -10px; }
  .float-2 { bottom: 60px; left: -10px; }
  .float-3 { right: -10px; }

  .final-card { padding: 60px 28px; }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding-bottom: 40px;
  }
  .foot-brand { grid-column: span 2; }
  .foot-bot {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .testi-card { padding: 40px 20px; }
  .testi-meta { flex-wrap: wrap; }
  .testi-rating { margin-left: 0; }
}

@media (max-width: 480px) {
  .hero { padding: 112px 0 52px; }
  .hero-title { font-size: 38px; }
  .visual-tag {
    top: 12px;
    left: 12px;
    max-width: calc(100% - 88px);
    padding: 5px 10px;
    font-size: 9px;
  }
  .visual-mobile {
    width: 82px;
    right: 10px;
    bottom: 10px;
    border-width: 3px;
    border-radius: 18px;
  }
  .section-title { font-size: 32px; }
  .feature-title { font-size: 28px; }
  .stat { padding: 20px 12px; }
  .stat-num { font-size: 28px; }
  .stat-label { font-size: 10px; }
}

/* =========================================================
   DEMO BUTTON
   ========================================================= */
.btn-demo {
  background: transparent;
  border: 1.5px solid var(--red);
  color: var(--red);
  font-weight: 600;
}
.btn-demo:hover {
  background: var(--red);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -10px rgba(226, 25, 18, 0.4);
}

/* =========================================================
   DEMO MODAL
   ========================================================= */
.demo-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.demo-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.demo-modal {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  padding: 40px 36px 36px;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
  box-shadow: 0 24px 80px -12px rgba(0, 0, 0, 0.25);
}
.demo-overlay.open .demo-modal {
  transform: translateY(0) scale(1);
}

.demo-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-2);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}
.demo-close:hover { background: var(--line-strong); color: var(--text); }

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  background: rgba(226, 25, 18, 0.08);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

.demo-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
  line-height: 1.3;
}

.demo-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 24px;
  line-height: 1.6;
}

.demo-form { display: flex; flex-direction: column; gap: 16px; }

.demo-field { display: flex; flex-direction: column; gap: 6px; }
.demo-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.demo-field input {
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.demo-field input::placeholder { color: var(--text-muted); opacity: 0.6; }
.demo-field input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(226, 25, 18, 0.12);
}

.demo-error {
  font-size: 13px;
  color: var(--red);
  min-height: 18px;
  margin: -4px 0 0;
}

.demo-submit { margin-top: 4px; }
.demo-btn-loading { display: none; align-items: center; gap: 8px; justify-content: center; }
.demo-submit.loading .demo-btn-text { display: none; }
.demo-submit.loading .demo-btn-loading { display: flex; }
.demo-submit:disabled { opacity: 0.75; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

@keyframes spin { to { transform: rotate(360deg); } }
.demo-spinner { animation: spin 0.8s linear infinite; }

.demo-success-view {
  text-align: center;
  padding: 8px 0;
}
.demo-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: rgba(226, 25, 18, 0.08);
  border-radius: 50%;
  margin: 0 auto 20px;
}

@media (max-width: 520px) {
  .demo-modal { padding: 32px 24px 28px; }
  .demo-title { font-size: 20px; }
}
