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

:root {
  --black:    #0a0a0f;
  --dark:     #12121a;
  --card:     #1a1a26;
  --border:   #2a2a3d;
  --muted:    #4a4a65;
  --text:     #c8c8e0;
  --white:    #f0f0fa;
  --accent:   #ff3c3c;
  --accent2:  #ff8c00;
  --glow:     rgba(255, 60, 60, 0.25);

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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


::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 40px;
}

.section-title em {
  font-style: normal;
  color: var(--accent);
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 24px var(--glow);
}
.btn-primary:hover {
  background: #ff5555;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--glow);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.05);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  width: 100%;
  text-align: center;
}
.btn-outline:hover {
  background: var(--glow);
  transform: translateY(-2px);
}

.btn-full { width: 100%; text-align: center; }


#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 20px;
  max-width: 1160px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color var(--transition);
}
.logo-dot { color: var(--accent); }
.logo:hover { color: var(--accent); }

.nav-links {
  display: none;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
}
.nav-cta:hover { background: #ff5555 !important; }

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(16px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.mobile-menu.open { display: flex; }

.mobile-menu ul {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--white);
  text-decoration: none;
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--accent); }

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 60px;
  overflow: hidden;
}


.hero-bg-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,60,60,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,60,60,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,60,60,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  max-width: 1160px;
  width: 100%;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(4rem, 16vw, 10rem);
  line-height: 0.9;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-headline .line1, .hero-headline .line2 { display: block; }
.hero-headline .line3 {
  display: block;
  color: var(--accent);
  text-shadow: 0 0 60px rgba(255,60,60,0.4);
}

.hero-sub {
  font-size: 1rem;
  color: var(--text);
  max-width: 420px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
}

.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}
.stat-div {
  width: 1px;
  height: 32px;
  background: var(--border);
}

.hero-visual {
  position: relative;
  width: 220px;
  height: 300px;
  flex-shrink: 0;
}

.watch-band {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  background: linear-gradient(135deg, #1e1e2e, #2a2a3d);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.band-top {
  top: 0;
  height: 72px;
  border-bottom-left-radius: 2px;
  border-bottom-right-radius: 2px;
}
.band-bot {
  bottom: 0;
  height: 72px;
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
}

.watch-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 26px;
  border: 1px solid rgba(255,60,60,0.15);
  animation: pulse-ring 3s ease-in-out infinite;
}
.ring-1 { width: 144px; height: 160px; animation-delay: 0s; }
.ring-2 { width: 164px; height: 180px; animation-delay: 0.6s; }
.ring-3 { width: 184px; height: 200px; animation-delay: 1.2s; }

@keyframes pulse-ring {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

.watch-body {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 140px;
  background: linear-gradient(145deg, #1c1c2e, #111120);
  border-radius: 28px;
  border: 2px solid #2a2a3d;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05),
    0 20px 60px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.08);
  overflow: hidden;
}

.watch-crown {
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 28px;
  background: linear-gradient(180deg, #2a2a3d, #1a1a26);
  border-radius: 0 4px 4px 0;
  border: 1px solid #3a3a50;
  border-left: none;
}
.watch-btn-top, .watch-btn-bot {
  position: absolute;
  right: -7px;
  width: 7px;
  height: 16px;
  background: #222232;
  border: 1px solid #3a3a50;
  border-left: none;
  border-radius: 0 3px 3px 0;
}
.watch-btn-top { top: 25%; }
.watch-btn-bot { bottom: 25%; }

.watch-screen {
  width: 100%;
  height: 100%;
  padding: 12px 10px;
  background: linear-gradient(160deg, #0d0d1f 0%, #0a0a18 100%);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.watch-time {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--white);
  letter-spacing: 0.05em;
  line-height: 1;
}

.watch-date {
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.watch-bpm {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6rem;
  font-weight: 700;
}
.bpm-icon {
  color: var(--accent);
  animation: heartbeat 1s ease-in-out infinite;
  font-size: 0.65rem;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
.bpm-val { color: var(--white); }

.watch-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 6px;
}
.watch-bar {
  height: 4px;
  width: var(--w);
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
  animation: bar-anim 2s ease-in-out infinite alternate;
}
.watch-bar:nth-child(2) { animation-delay: 0.3s; }
.watch-bar:nth-child(3) { animation-delay: 0.6s; }
@keyframes bar-anim {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
  z-index: 1;
}
.scroll-arrow {
  width: 16px;
  height: 16px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  animation: bounce 1.5s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(4px); }
}


.features {
  padding: 80px 0;
  background: var(--dark);
}

.tabs-wrap { width: 100%; }

.tab-buttons {
  display: flex;
  gap: 4px;
  background: var(--black);
  padding: 6px;
  border-radius: var(--radius-sm);
  margin-bottom: 40px;
  overflow-x: auto;
}

.tab-btn {
  flex: 1;
  min-width: 100px;
  padding: 10px 16px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition);
  white-space: nowrap;
}
.tab-btn:hover { color: var(--white); background: rgba(255,255,255,0.04); }
.tab-btn.active {
  background: var(--accent);
  color: var(--white);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}
.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(255,60,60,0.12);
}

.feat-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
}

.pricing {
  padding: 80px 0;
  background: var(--black);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.plan-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.plan-card:hover {
  border-color: var(--muted);
  transform: translateY(-4px);
}
.plan-card.featured {
  border-color: var(--accent);
  background: linear-gradient(145deg, #1e1218, #1a1a26);
  box-shadow: 0 0 0 1px var(--accent), 0 20px 60px rgba(255,60,60,0.15);
}
.plan-card.featured:hover {
  box-shadow: 0 0 0 1px var(--accent), 0 28px 80px rgba(255,60,60,0.22);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
}

.plan-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
}

.plan-price {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  line-height: 1;
}
.currency {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 6px;
}
.amount {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--white);
}

.plan-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.plan-features li {
  font-size: 0.875rem;
  color: var(--text);
  padding-left: 20px;
  position: relative;
}
.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.75rem;
}
.plan-features li.muted { color: var(--muted); }
.plan-features li.muted::before {
  content: '—';
  color: var(--muted);
}

.testimonials {
  padding: 80px 0;
  background: var(--dark);
  overflow: hidden;
}

.testi-slider-wrap { position: relative; }

.testi-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testi-card {
  min-width: calc(100vw - 40px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testi-stars {
  color: var(--accent2);
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.testi-quote {
  font-size: 0.95rem;
  color: var(--white);
  line-height: 1.75;
  font-style: italic;
  flex: 1;
}
.testi-quote::before { content: '"'; color: var(--accent); font-size: 1.5rem; }

.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c, var(--accent));
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testi-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--white);
}
.testi-author span {
  font-size: 0.75rem;
  color: var(--muted);
}

.testi-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}

.testi-prev, .testi-next {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.testi-prev:hover, .testi-next:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.testi-dots {
  display: flex;
  gap: 8px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.dot.active {
  background: var(--accent);
  transform: scale(1.2);
}


.signup {
  padding: 80px 0;
  background: var(--black);
}

.signup-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.signup-text p {
  font-size: 1rem;
  color: var(--text);
  max-width: 400px;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.signup-form input {
  width: 100%;
  padding: 14px 18px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}
.signup-form input::placeholder { color: var(--muted); }
.signup-form input:focus { border-color: var(--accent); }
.signup-form input.error { border-color: #ff4c4c; }

.form-error {
  font-size: 0.75rem;
  color: #ff4c4c;
  min-height: 18px;
  display: block;
}

.form-note {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

.form-success {
  display: none;
  background: rgba(0, 201, 167, 0.12);
  border: 1px solid rgba(0, 201, 167, 0.3);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.875rem;
  color: #00c9a7;
  text-align: center;
}
.form-success.visible { display: block; }

.footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .logo { font-size: 2rem; display: inline-block; margin-bottom: 12px; }
.footer-brand p {
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 260px;
  line-height: 1.7;
}

.footer-links h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  gap: 20px;
}
.footer-legal a {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-legal a:hover { color: var(--white); }


.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* HERO ENTRANCE ANIMATIONS */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-60px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scale-in {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* Hero text stagger */
.hero-eyebrow  { animation: fade-up 0.7s ease both; animation-delay: 0.1s; }
.hero-headline { animation: fade-up 0.8s ease both; animation-delay: 0.25s; }
.hero-sub      { animation: fade-up 0.7s ease both; animation-delay: 0.45s; }
.hero-actions  { animation: fade-up 0.7s ease both; animation-delay: 0.6s; }
.hero-stats    { animation: fade-up 0.7s ease both; animation-delay: 0.75s; }

/* Watch visual slides in from right */
.hero-visual   { animation: slide-in-right 1s cubic-bezier(0.22,1,0.36,1) both; animation-delay: 0.4s; }

/* Scroll hint fades in late */
.hero-scroll-hint { animation: fade-in 1s ease both; animation-delay: 1.4s; }

/* ===========================
   WATCH FLOAT ANIMATION
=========================== */
@keyframes float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0px); }
  50%       { transform: translate(-50%, -50%) translateY(-10px); }
}
.watch-body {
  animation: float 4s ease-in-out infinite;
}

/* ===========================
   SECTION TITLE UNDERLINE SWIPE
=========================== */
.section-title {
  position: relative;
  display: inline-block;
}
.section-title em {
  position: relative;
  display: inline-block;
}
.section-title em::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.section-title.underline-active em::after {
  width: 100%;
}

/* ===========================
   FEATURE CARD HOVER GLOW
=========================== */
.feature-card {
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,60,60,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  border-radius: inherit;
}
.feature-card:hover::before { opacity: 1; }

/* Icon bounce on card hover */
.feature-card:hover .feat-icon {
  animation: icon-bounce 0.5s cubic-bezier(0.36,0.07,0.19,0.97);
}
@keyframes icon-bounce {
  0%,100% { transform: translateY(0) scale(1); }
  30%      { transform: translateY(-8px) scale(1.15); }
  60%      { transform: translateY(2px) scale(0.95); }
}

/* ===========================
   PLAN CARD SHINE SWEEP
=========================== */
.plan-card {
  overflow: hidden;
}
.plan-card::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.04) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.plan-card:hover::after { left: 160%; }

/* Featured plan pulse border */
@keyframes border-pulse {
  0%, 100% { box-shadow: 0 0 0 1px var(--accent), 0 20px 60px rgba(255,60,60,0.15); }
  50%       { box-shadow: 0 0 0 2px var(--accent), 0 20px 80px rgba(255,60,60,0.28); }
}
.plan-card.featured {
  animation: border-pulse 3s ease-in-out infinite;
}

/* ===========================
   TESTIMONIAL CARD REVEAL
=========================== */
@keyframes testi-enter {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.testi-card { animation: testi-enter 0.5s ease both; }

/* ===========================
   NAV LINK UNDERLINE HOVER
=========================== */
.nav-links a:not(.nav-cta) {
  position: relative;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.25s ease;
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }

/* ===========================
   BUTTON RIPPLE
=========================== */
.btn {
  position: relative;
  overflow: hidden;
}
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  transform: scale(0);
  animation: ripple-expand 0.55s linear;
  pointer-events: none;
}
@keyframes ripple-expand {
  to { transform: scale(4); opacity: 0; }
}

/* ===========================
   STAT NUMBERS COUNT-UP FLASH
=========================== */
@keyframes count-flash {
  0%   { color: var(--accent); transform: scale(1.2); }
  100% { color: var(--white);  transform: scale(1); }
}
.stat-num.flash { animation: count-flash 0.4s ease forwards; }

/* ===========================
   FORM INPUT FOCUS GLOW
=========================== */
.signup-form input {
  transition: border-color var(--transition), box-shadow var(--transition);
}
.signup-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,60,60,0.15);
}

/* ===========================
   FOOTER LINK SLIDE
=========================== */
.footer-links a {
  display: inline-block;
  transition: color var(--transition), transform var(--transition);
}
.footer-links a:hover {
  color: var(--white);
  transform: translateX(4px);
}

/* ===========================
   SECTION FADE-IN BACKDROP
=========================== */
@keyframes section-glow-in {
  from { background-position: 100% 50%; }
  to   { background-position: 0% 50%; }
}

/* Tab button active indicator slide */
.tab-buttons {
  position: relative;
}
.tab-btn {
  position: relative;
  z-index: 1;
}
.tab-indicator {
  position: absolute;
  top: 6px;
  height: calc(100% - 12px);
  background: var(--accent);
  border-radius: 6px;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

/* ===========================
   LOGO GLITCH ON HOVER
=========================== */
@keyframes glitch-1 {
  0%,100% { clip-path: inset(0 0 90% 0); transform: translateX(-3px); }
  50%      { clip-path: inset(0 0 90% 0); transform: translateX(3px); }
}
@keyframes glitch-2 {
  0%,100% { clip-path: inset(70% 0 0 0); transform: translateX(3px); }
  50%      { clip-path: inset(70% 0 0 0); transform: translateX(-3px); }
}
.logo {
  position: relative;
}
.logo::before,
.logo::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: var(--accent);
  opacity: 0;
  pointer-events: none;
}
.logo:hover::before {
  opacity: 0.7;
  animation: glitch-1 0.3s steps(2) infinite;
}
.logo:hover::after {
  opacity: 0.5;
  animation: glitch-2 0.3s steps(2) infinite;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===========================
   RESPONSIVE — TABLET (≥ 640px)
=========================== */
@media (min-width: 640px) {
  .hero-content { flex-direction: row; justify-content: space-between; align-items: center; }
  .hero-text { max-width: 520px; }
  .hero-visual { width: 260px; height: 340px; }

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

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

  .testi-card { min-width: 460px; }

  .signup-inner { flex-direction: row; align-items: flex-start; }

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

  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ===========================
   RESPONSIVE — DESKTOP (≥ 1024px)
=========================== */
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .hamburger { display: none; }

  .hero-headline { font-size: clamp(5rem, 10vw, 10rem); }
  .hero-visual { width: 300px; height: 380px; }

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

  .testi-card { min-width: 500px; }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}