/* ── Design Tokens ── */
:root {
  --bg: #0a0a0a;
  --bg-secondary: #141414;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-bg-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-strong: rgba(255, 255, 255, 0.15);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.55);
  --text-tertiary: rgba(255, 255, 255, 0.25);
  --accent: #7c5bf5;
  --accent-blue: #4d8dff;
  --radius-card: 20px;
  --radius-button: 14px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --max-width: 1100px;
  --section-gap: 160px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  display: block;
  max-width: 100%;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

a { color: inherit; text-decoration: none; }

/* ── Utilities ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.65;
}

/* ── Glass Card ── */
.glass-card {
  background: var(--glass-bg);
  border: 0.5px solid var(--glass-border);
  border-radius: var(--radius-card);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius-button);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: #fff;
  color: #000;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.1);
}

.btn-primary .shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
  animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

.btn-ghost {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 0.5px solid var(--glass-border-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.btn-ghost:hover {
  background: var(--glass-bg-hover);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ── Fade-up Animation ── */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Grain Overlay ── */
.grain {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.04);
}

.nav-brand {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -1.2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-cta {
  padding: 9px 20px;
  font-size: 13px;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

/* Animated gradient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  will-change: transform;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(124, 91, 245, 0.15);
  top: 20%;
  left: 30%;
  animation: orb-float-1 12s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(77, 141, 255, 0.1);
  top: 40%;
  right: 20%;
  animation: orb-float-2 15s ease-in-out infinite;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: rgba(124, 91, 245, 0.08);
  bottom: 10%;
  left: 15%;
  animation: orb-float-3 10s ease-in-out infinite;
}

@keyframes orb-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.1); }
  66% { transform: translate(-30px, 30px) scale(0.95); }
}

@keyframes orb-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-50px, 30px) scale(0.9); }
  66% { transform: translate(40px, -50px) scale(1.05); }
}

@keyframes orb-float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, -30px) scale(1.15); }
}

/* Grid pattern behind hero */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 20%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-wordmark {
  font-size: clamp(72px, 14vw, 120px);
  font-weight: 900;
  letter-spacing: -4px;
  line-height: 1;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #ffffff 40%, rgba(255, 255, 255, 0.4) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: clamp(18px, 3vw, 22px);
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 460px;
  line-height: 1.5;
}

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

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-tertiary);
  font-size: 12px;
  letter-spacing: 1px;
  animation: scroll-bounce 2s ease-in-out infinite;
}

.hero-scroll-line {
  width: 1px;
  height: 24px;
  background: linear-gradient(180deg, var(--text-tertiary), transparent);
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 0.5; }
}

/* ── Before / After ── */
.before-after {
  padding: var(--section-gap) 0;
}

.before-after-header {
  text-align: center;
  margin-bottom: 56px;
}

.before-after-header .section-subtitle {
  margin: 0 auto;
}

.comparison-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

/* Glow behind the comparison */
.comparison-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(124, 91, 245, 0.08) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.comparison {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 0.5px solid var(--glass-border-strong);
  aspect-ratio: 16 / 9;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.comparison img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

.comparison .after-img {
  clip-path: inset(0 0 0 50%);
}

.comparison .slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.8);
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

.comparison .slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease;
}

.comparison:active .slider-handle {
  transform: translate(-50%, -50%) scale(1.1);
}

.slider-handle svg {
  width: 20px;
  height: 20px;
}

.comparison .label {
  position: absolute;
  bottom: 16px;
  z-index: 4;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  pointer-events: none;
  border: 0.5px solid rgba(255, 255, 255, 0.1);
}

.comparison .label-before { left: 16px; }
.comparison .label-after { right: 16px; }

/* ── Features ── */
.features {
  padding: var(--section-gap) 0;
  position: relative;
}

.features-header {
  text-align: center;
  margin-bottom: 56px;
}

.features-header .section-subtitle { margin: 0 auto; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--glass-border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.feature-card {
  padding: 44px 36px;
  background: var(--bg);
  transition: background 0.3s ease;
  position: relative;
}

.feature-card:hover {
  background: var(--bg-secondary);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124, 91, 245, 0.12), rgba(77, 141, 255, 0.08));
  border: 0.5px solid rgba(124, 91, 245, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Gallery ── */
.gallery {
  padding: var(--section-gap) 0;
  position: relative;
}

.gallery-header {
  text-align: center;
  margin-bottom: 56px;
}

.gallery-header .section-subtitle { margin: 0 auto; }

.gallery-track {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.gallery-scroll {
  display: flex;
  gap: 16px;
  animation: gallery-marquee 40s linear infinite;
  width: max-content;
}

.gallery-scroll:hover {
  animation-play-state: paused;
}

@keyframes gallery-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.gallery-item {
  flex: 0 0 260px;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  border: 0.5px solid var(--glass-border);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.04);
  border-color: var(--glass-border-strong);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Pricing ── */
.pricing {
  padding: var(--section-gap) 0;
  position: relative;
}

.pricing-header {
  text-align: center;
  margin-bottom: 56px;
}

.pricing-header .section-subtitle { margin: 0 auto; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  max-width: 900px;
  margin: 0 auto;
  background: var(--glass-border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.plan-card {
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg);
  transition: background 0.3s ease;
}

.plan-card:hover {
  background: var(--bg-secondary);
}

.plan-card.featured {
  background: var(--bg-secondary);
}

.plan-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
  white-space: nowrap;
}

.plan-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-price {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 4px;
}

.plan-price span {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0;
}

.plan-per-week {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 28px;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex: 1;
}

.plan-features li {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(124, 91, 245, 0.1);
  border: 0.5px solid rgba(124, 91, 245, 0.2);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 5.5L4 7.5L8 3' stroke='rgba(124,91,245,0.7)' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.plan-card .btn { width: 100%; }

.plan-card.featured .btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
  color: #fff;
}

.plan-card.featured .btn-primary:hover {
  box-shadow: 0 8px 30px rgba(124, 91, 245, 0.25);
}

/* ── CTA Banner ── */
.cta-banner {
  padding: var(--section-gap) 0 100px;
  text-align: center;
  position: relative;
}

.cta-banner-inner {
  position: relative;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(124, 91, 245, 0.1) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.cta-banner .section-title {
  margin-bottom: 12px;
}

.cta-banner .section-subtitle {
  margin: 0 auto 40px;
}

/* ── Contact Page ── */
.contact-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.contact-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.contact-header {
  text-align: center;
  margin-bottom: 40px;
}

.contact-header .section-subtitle {
  margin: 0 auto;
}

.contact-card {
  padding: 40px;
}

.contact-method {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124, 91, 245, 0.12), rgba(77, 141, 255, 0.08));
  border: 0.5px solid rgba(124, 91, 245, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.contact-method-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.contact-method-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.contact-email {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  transition: opacity 0.2s ease;
}

.contact-email:hover {
  opacity: 0.8;
}

.contact-divider {
  height: 0.5px;
  background: var(--glass-border);
  margin: 28px 0;
}

.contact-btn {
  width: 100%;
}

/* ── Footer ── */
.footer {
  padding: 60px 0 40px;
  border-top: 0.5px solid var(--glass-border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.footer-brand {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-tertiary);
  transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--text-secondary); }

.footer-copy {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  :root { --section-gap: 100px; }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
  }

  .hero-wordmark { letter-spacing: -2.5px; }

  .comparison { aspect-ratio: 4 / 3; }

  .gallery-item { flex: 0 0 200px; }

  .feature-card { padding: 32px 28px; }

  .plan-card { padding: 32px 24px; }

  .hero-scroll { display: none; }
}

@media (max-width: 480px) {
  :root { --section-gap: 80px; }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    padding: 0 20px;
  }

  .hero-actions .btn { width: 100%; }

  .gallery-item { flex: 0 0 170px; }
}
