/* ═══════════════════════════════════════════════════════
   BEDROCK WEB — premium.css
   Custom cursor · Text reveals · Card lifts ·
   Magnetic buttons · Parallax · Page transitions
   ═══════════════════════════════════════════════════════ */

/* ── Hide default cursor on non-touch devices ── */
@media (pointer: fine) {
  html, body, a, button, input, textarea, label,
  [role="button"], section, div, span, p, h1, h2, h3, li, ul {
    cursor: none !important;
  }
}

/* ══════════════════════════════════════════════
   CUSTOM CURSOR
   ══════════════════════════════════════════════ */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--stone);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, background 0.25s ease, opacity 0.25s ease, border-radius 0.25s ease;
  will-change: left, top;
}

.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1.5px solid var(--stone);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999998;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
  will-change: left, top;
  opacity: 0.6;
}

/* Hover states — triggered via JS adding classes */
.cursor-dot.is-hovering {
  width: 12px; height: 12px;
  background: var(--stone-light);
}
.cursor-ring.is-hovering {
  width: 56px; height: 56px;
  opacity: 0.3;
}

.cursor-dot.is-clicking {
  width: 6px; height: 6px;
  background: var(--stone-light);
}
.cursor-ring.is-clicking {
  width: 28px; height: 28px;
  opacity: 0.8;
}

.cursor-dot.is-text {
  width: 4px; height: 28px;
  border-radius: 2px;
  background: var(--stone);
}
.cursor-ring.is-text {
  opacity: 0;
}

/* Hide cursor when it leaves window */
.cursor-dot.is-hidden,
.cursor-ring.is-hidden { opacity: 0; }

/* ══════════════════════════════════════════════
   TEXT LINE REVEAL
   Headings animate line by line, sliding up
   from a clip mask
   ══════════════════════════════════════════════ */
.reveal-text {
  overflow: visible;
  display: block;
  /* Clip only vertically using padding trick so descenders aren't cut */
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
}

.reveal-text .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
  transform: translateY(110%);
  opacity: 0;
  transition:
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.75s ease;
}

.reveal-text.visible .line {
  transform: translateY(0);
  opacity: 1;
}

/* Stagger each line */
.reveal-text.visible .line:nth-child(1) { transition-delay: 0s; }
.reveal-text.visible .line:nth-child(2) { transition-delay: 0.1s; }
.reveal-text.visible .line:nth-child(3) { transition-delay: 0.2s; }

/* ══════════════════════════════════════════════
   CARD LIFT ON HOVER
   All cards get a physical lift feel
   ══════════════════════════════════════════════ */

/* Feature cards */
.feature-card {
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
}

/* Problem cards */
.problem-card {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}
.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

/* Pricing cards */
.pricing-card {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

/* About values */
.about-value {
  transition: transform 0.3s ease, border-color 0.3s ease !important;
}
.about-value:hover {
  transform: translateY(-3px);
}

/* Next step cards (contact page) */
.next-step-card {
  transition: transform 0.3s ease, border-color 0.3s ease !important;
}
.next-step-card:hover {
  transform: translateY(-4px);
}

/* Addon cards */
.addon-card {
  transition: transform 0.3s ease, border-color 0.3s ease !important;
}
.addon-card:hover {
  transform: translateY(-3px);
}

/* Process step icon lift */
.step-icon-wrap {
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease !important;
}
.process-step:hover .step-icon-wrap {
  transform: translateY(-6px);
}

/* ══════════════════════════════════════════════
   MAGNETIC BUTTONS
   Buttons subtly follow the cursor
   (movement applied via JS)
   ══════════════════════════════════════════════ */
.btn-primary, .nav-cta {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease !important;
  will-change: transform;
}

/* ══════════════════════════════════════════════
   HERO PARALLAX
   Backdrop moves at 40% scroll speed
   ══════════════════════════════════════════════ */
#hero::after {
  will-change: transform;
  transition: none !important;
}

/* ══════════════════════════════════════════════
   PAGE FADE TRANSITION
   Smooth fade between pages
   ══════════════════════════════════════════════ */
body {
  animation: pageFadeIn 0.4s ease forwards;
}

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

body.page-exit {
  animation: pageFadeOut 0.3s ease forwards;
}

@keyframes pageFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}

/* ══════════════════════════════════════════════
   SECTION ENTRY LINE
   A thin stone line draws across on section entry
   ══════════════════════════════════════════════ */
.section-label::before {
  width: 0;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible .section-label::before,
.section-label.line-visible::before {
  width: 24px;
}

/* ══════════════════════════════════════════════
   STAT NUMBER GLOW
   Numbers pulse subtly when they finish counting
   ══════════════════════════════════════════════ */
.stat-number.counted {
  animation: statPulse 0.4s ease;
}
@keyframes statPulse {
  0%   { color: var(--dark-text); }
  50%  { color: var(--stone-light); }
  100% { color: var(--dark-text); }
}

/* ══════════════════════════════════════════════
   GUARANTEE LARGE — count up animation
   ══════════════════════════════════════════════ */
.guarantee-large {
  transition: color 0.3s ease;
}
.guarantee-large:hover {
  color: var(--dark-border);
}

/* ══════════════════════════════════════════════
   SCROLL INDICATOR on hero
   ══════════════════════════════════════════════ */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 1.4s;
}

.scroll-indicator-line {
  width: 1px;
  height: 40px;
  background: var(--stone);
  position: relative;
  overflow: hidden;
}

.scroll-indicator-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark-text);
  animation: scrollLine 1.8s ease infinite;
}

@keyframes scrollLine {
  0%   { top: -100%; }
  100% { top: 100%; }
}

.scroll-indicator-text {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* ── Disable cursor & magnetic on touch ── */
@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

@media (max-width: 900px) {
  .scroll-indicator { left: 24px; }
}