/* ==============================================
   RutinIA Landing — Premium Stylesheet
   ============================================== */

:root {
  --primary: #B23A48;
  --secondary: #E91E63;
  --dark: #0A0A0A;
  --glass: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.07);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: #0A0A0A;
  color: white;
  overflow-x: hidden;
  cursor: none;
}

/* Hide custom cursor on touch devices */
@media (hover: none) {
  body { cursor: auto; }
  #cursor, #cursor-follower { display: none !important; }
}

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: #0A0A0A; }
::-webkit-scrollbar-thumb { background: #B23A48; border-radius: 2px; }

/* ===================== LOADER ===================== */
#loader {
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
#loader.out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-bar {
  height: 2px;
  width: 200px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}
.loader-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #B23A48, #E91E63);
  border-radius: 2px;
  animation: loader-fill 1.6s ease forwards;
}
@keyframes loader-fill { to { width: 100%; } }

/* ===================== CURSOR ===================== */
#cursor {
  width: 8px;
  height: 8px;
  background: #B23A48;
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  will-change: transform;
}
#cursor-follower {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(178,58,72,0.45);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
  will-change: transform;
}
.cursor-grow #cursor { width: 18px; height: 18px; background: #E91E63; }
.cursor-grow #cursor-follower { width: 48px; height: 48px; border-color: rgba(233,30,99,0.35); }

/* ===================== NAVBAR ===================== */
#navbar { background: transparent; }
#navbar.scrolled {
  background: rgba(10,10,10,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  text-decoration: none;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: #B23A48;
  transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

/* ===================== BUTTONS ===================== */
.btn-pill {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #B23A48, #E91E63);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(178,58,72,0.45);
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: linear-gradient(135deg, #B23A48 0%, #E91E63 100%);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}
.cta-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transition: left 0.5s ease;
}
.cta-primary:hover::before { left: 100%; }
.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(178,58,72,0.45);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: rgba(255,255,255,0.05);
  color: white;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
  white-space: nowrap;
}
.cta-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}

/* ===================== HERO ===================== */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(178,58,72,0.28) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 90%, rgba(233,30,99,0.12) 0%, transparent 60%),
    #0A0A0A;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 80% at center, black 0%, transparent 75%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  animation: orb-drift 7s ease-in-out infinite alternate;
}
.orb-1 { width: 380px; height: 380px; background: rgba(178,58,72,0.35); top: 5%; right: 8%; animation-delay: 0s; }
.orb-2 { width: 220px; height: 220px; background: rgba(233,30,99,0.25); bottom: 15%; left: 3%; animation-delay: -2.5s; }
.orb-3 { width: 160px; height: 160px; background: rgba(178,58,72,0.2); top: 55%; left: 55%; animation-delay: -5s; }
@keyframes orb-drift {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(-28px) scale(1.08); }
}

.gradient-text {
  background: linear-gradient(135deg, #B23A48 0%, #E91E63 50%, #ff7eb3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge-glow { animation: badge-pulse 2.5s ease-in-out infinite; }
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(178,58,72,0); }
  50%       { box-shadow: 0 0 0 5px rgba(178,58,72,0.08); }
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.stat-pill:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(178,58,72,0.25);
  transform: translateY(-3px);
}

/* Typewriter */
#typewriter { min-height: 1.1em; display: block; }
.cursor-blink::after {
  content: '|';
  color: #B23A48;
  animation: blink 0.85s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* Scroll indicator */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: scroll-bounce 2s ease-in-out infinite;
}
.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.scroll-dot {
  width: 3px;
  height: 7px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  animation: scroll-dot 1.6s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(7px); }
}
@keyframes scroll-dot {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(9px); }
}

/* ===================== SECTION BACKGROUNDS ===================== */
.section-bg-left {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 0% 50%, rgba(178,58,72,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.section-bg-right {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 100% 50%, rgba(233,30,99,0.07) 0%, transparent 60%);
  pointer-events: none;
}

/* ===================== LABEL TAG ===================== */
.label-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #B23A48;
  padding: 4px 12px;
  border: 1px solid rgba(178,58,72,0.25);
  border-radius: 20px;
  background: rgba(178,58,72,0.06);
}

/* ===================== PROBLEM CARDS ===================== */
.problem-card {
  position: relative;
  padding: 28px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.3s, box-shadow 0.4s;
}
.problem-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(178,58,72,0.06), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.problem-card:hover {
  transform: translateY(-8px);
  border-color: rgba(178,58,72,0.25);
  box-shadow: 0 20px 50px rgba(178,58,72,0.12);
}
.problem-card:hover::before { opacity: 1; }

.problem-emoji { font-size: 2.25rem; margin-bottom: 14px; display: block; }
.problem-metric {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: baseline;
}

/* ===================== DEMO SECTION ===================== */
.demo-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 20% 50%, rgba(178,58,72,0.09) 0%, transparent 60%);
  pointer-events: none;
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(178,58,72,0.15);
  border-radius: 50%;
  font-size: 11px;
  color: #B23A48;
  flex-shrink: 0;
}

/* Phone mockup */
.phone-wrap {
  position: relative;
  width: 270px;
  animation: phone-float 4s ease-in-out infinite alternate;
}
@keyframes phone-float {
  from { transform: translateY(0) rotate(-1.5deg); }
  to   { transform: translateY(-16px) rotate(1.5deg); }
}

.phone-frame {
  width: 270px;
  height: 570px;
  background: linear-gradient(160deg, #1c1c1e, #2c2c2e);
  border-radius: 46px;
  border: 7px solid #3a3a3c;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.07),
    0 40px 80px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.08);
}
.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #1c1c1e;
  border-radius: 11px;
  z-index: 10;
}
.phone-screen {
  position: absolute;
  inset: 0;
  border-radius: 40px;
  overflow: hidden;
  background: #111;
}
.phone-bar {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 4px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  z-index: 10;
}
.phone-glow {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 25px;
  background: radial-gradient(ellipse, rgba(178,58,72,0.5), transparent);
  filter: blur(18px);
}

/* ===================== FEATURE CARDS ===================== */
.feat-card {
  position: relative;
  padding: 28px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  cursor: default;
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.3s, box-shadow 0.35s;
}
.feat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(178,58,72,0.07), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
}
.feat-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(178,58,72,0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.feat-card:hover {
  transform: translateY(-7px) rotate(0.4deg);
  border-color: rgba(178,58,72,0.28);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25), 0 0 0 1px rgba(178,58,72,0.1);
}
.feat-card:hover::before,
.feat-card:hover::after { opacity: 1; }

.feat-card-pro {
  background: rgba(178,58,72,0.05);
  border-color: rgba(178,58,72,0.15);
}

.feat-icon {
  width: 44px;
  height: 44px;
  background: rgba(178,58,72,0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #B23A48;
  margin-bottom: 16px;
  transition: transform 0.3s, background 0.3s;
}
.feat-card:hover .feat-icon {
  transform: rotate(6deg) scale(1.1);
  background: rgba(178,58,72,0.2);
}

.feat-pro-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  background: rgba(178,58,72,0.15);
  border: 1px solid rgba(178,58,72,0.3);
  border-radius: 20px;
  color: #B23A48;
  letter-spacing: 0.05em;
}

.feat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.35s ease;
}
.feat-card:hover .feat-tags { max-height: 80px; opacity: 1; }

.feat-tag {
  font-size: 11px;
  padding: 3px 9px;
  background: rgba(255,255,255,0.06);
  border-radius: 20px;
  color: rgba(255,255,255,0.45);
}

/* ===================== TIMELINE ===================== */
.timeline-line {
  position: absolute;
  top: 52px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, #B23A48, #E91E63, #B23A48);
  background-size: 200% 100%;
  animation: flow 3s linear infinite;
  z-index: 0;
}
@keyframes flow {
  from { background-position: 0% 0%; }
  to   { background-position: 200% 0%; }
}

.step-card {
  position: relative;
  padding: 28px 22px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-align: center;
  transition: transform 0.35s ease, border-color 0.3s, background 0.3s;
  z-index: 2;
}
.step-card:hover {
  transform: translateY(-7px);
  border-color: rgba(178,58,72,0.25);
  background: rgba(178,58,72,0.05);
}
.step-num {
  font-size: 0.65rem;
  font-weight: 900;
  color: #B23A48;
  letter-spacing: 0.2em;
  margin-bottom: 10px;
}
.step-emoji {
  font-size: 2.25rem;
  margin-bottom: 14px;
  display: block;
  transition: transform 0.3s;
}
.step-card:hover .step-emoji { transform: scale(1.2); }

/* ===================== SOCIAL PROOF ===================== */
.testimonial {
  padding: 28px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: transform 0.3s ease, border-color 0.3s;
}
.testimonial:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.12);
}
.stars { color: #fbbf24; font-size: 0.8rem; letter-spacing: 2px; }
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

/* ===================== PRICING ===================== */
.pricing-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(178,58,72,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.price-toggle {
  border-radius: 50px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.25s ease;
}
.price-toggle-active {
  background: rgba(255,255,255,0.1) !important;
  color: white !important;
}

.price-card {
  position: relative;
  padding: 36px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 24px;
  transition: transform 0.35s ease, box-shadow 0.35s;
}
.price-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}

.price-card-pro {
  background: rgba(178,58,72,0.06);
  border-color: rgba(178,58,72,0.28);
  box-shadow: 0 0 0 1px rgba(178,58,72,0.1), 0 20px 50px rgba(178,58,72,0.08);
}
.price-card-pro:hover {
  box-shadow: 0 0 0 1px rgba(178,58,72,0.2), 0 30px 70px rgba(178,58,72,0.18);
}

.price-popular {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 18px;
  background: linear-gradient(135deg, #B23A48, #E91E63);
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.price-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  list-style: none;
}
.price-item-off {
  color: rgba(255,255,255,0.2);
  text-decoration: line-through;
}

@keyframes price-pop {
  0%   { transform: scale(0.85); opacity: 0.5; }
  100% { transform: scale(1);    opacity: 1; }
}
.price-popping { animation: price-pop 0.28s ease; }

/* ===================== CTA SECTION ===================== */
.cta-bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%,   rgba(178,58,72,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(233,30,99,0.10) 0%, transparent 60%);
  pointer-events: none;
}

.form-field {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: white;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.form-field::placeholder { color: rgba(255,255,255,0.25); }
.form-field:focus {
  border-color: rgba(178,58,72,0.5);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 0 0 3px rgba(178,58,72,0.1);
}

/* ===================== FOOTER ===================== */
.footer-link {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: rgba(255,255,255,0.75); }

.social-btn {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: all 0.25s ease;
}
.social-btn:hover {
  background: rgba(178,58,72,0.15);
  border-color: rgba(178,58,72,0.3);
  color: #B23A48;
  transform: translateY(-2px);
}

/* ===================== SUCCESS MESSAGE ===================== */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
#success-msg { animation: fade-up 0.5s ease; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .phone-wrap { width: 220px; }
  .phone-frame { width: 220px; height: 460px; border-radius: 38px; border-width: 6px; }
  .phone-screen { border-radius: 33px; }
  .cta-primary, .cta-secondary { width: 100%; justify-content: center; }
}

@media (max-width: 640px) {
  .stat-pill { padding: 8px 14px; }
  .problem-card, .feat-card, .step-card, .testimonial { padding: 22px 20px; }
  .price-card { padding: 28px 24px; }
}
