:root {
  --bg: #06050a;
  --bg-soft: #0c0b12;
  --card: #0f0e16;
  --card-hover: #14121e;
  --card-glow: rgba(255, 31, 123, 0.25);
  --accent: #ff2d8a;
  --accent-2: #ff5fa8;
  --accent-3: #c44dff;
  --accent-4: #7b68ee;
  --accent-soft: rgba(255, 45, 138, 0.28);
  --text: #f8f7fc;
  --muted: rgba(255, 255, 255, 0.72);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 45, 138, 0.35);
  --radius: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-accent: 0 16px 48px rgba(255, 45, 138, 0.35);
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.4);
  --font: "Outfit", system-ui, -apple-system, sans-serif;
  --font-display: "Syne", var(--font);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, a, span, .brand, .nav a, .stat-label, .stack-chip, .hero-price, button, input, textarea, label {
  font-family: var(--font);
}

h1, h2, h3, .brand, .nav a {
  letter-spacing: 0.02em;
}

.gradient-mesh {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 70% at 15% 15%, rgba(255, 45, 138, 0.14), transparent 45%),
    radial-gradient(ellipse 90% 100% at 85% 75%, rgba(196, 77, 255, 0.12), transparent 45%),
    radial-gradient(ellipse 70% 70% at 50% 50%, rgba(123, 104, 238, 0.06), transparent 50%);
  animation: meshFloat 40s ease-in-out infinite;
}

@keyframes meshFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-1%, -0.5%); }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-3), var(--accent-4));
  background-size: 200% 100%;
  z-index: 100;
  transition: width 0.08s ease-out;
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 16px rgba(255, 45, 138, 0.5);
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.035;
  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");
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
}

.parallax-wrap {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.bg-glow {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse 85% 55% at 15% 15%, rgba(255, 45, 138, 0.2), transparent 48%),
    radial-gradient(ellipse 70% 45% at 85% 65%, rgba(196, 77, 255, 0.14), transparent 48%),
    radial-gradient(ellipse 50% 70% at 50% 85%, rgba(123, 104, 238, 0.08), transparent 50%);
  animation: bgMove 20s ease-in-out infinite;
}

.parallax-blur {
  position: absolute;
  inset: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(ellipse 50% 80% at 50% 0%, rgba(255, 45, 138, 0.07), transparent 50%);
  opacity: 0.85;
}

.spotlight {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    560px circle at var(--mx, 50%) var(--my, 20%),
    rgba(255, 45, 138, 0.18),
    rgba(196, 77, 255, 0.06) 40%,
    transparent 60%
  );
  pointer-events: none;
  z-index: -1;
  mix-blend-mode: screen;
  transition: background 0.15s ease;
}

.parallax-hero .hero-content {
  transition: transform 0.1s linear;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 4vw;
  padding-top: max(1.2rem, env(safe-area-inset-top));
  padding-left: max(4vw, env(safe-area-inset-left));
  padding-right: max(4vw, env(safe-area-inset-right));
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  background: rgba(6, 5, 10, 0.88);
  animation: slideDown 0.6s ease;
  box-shadow: 0 1px 0 rgba(255, 45, 138, 0.1);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 1.15rem;
}

.brand {
  font-family: var(--font-display);
}

.brand-name {
  background: linear-gradient(135deg, #fff 0%, var(--accent-2) 35%, var(--accent-3) 65%, #fff 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease infinite;
  filter: drop-shadow(0 0 12px rgba(255, 45, 138, 0.3));
}

.brand-hub {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-shadow: 0 0 24px rgba(255, 45, 138, 0.5), 0 0 48px rgba(255, 45, 138, 0.2);
}

.nav {
  display: flex;
  gap: 1.8rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 0.4rem;
}

.nav a.active,
.nav a:hover {
  color: var(--text);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #ff7fb5);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.ghost-btn,
.primary-btn {
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent-4));
  background-size: 200% 200%;
  border: none;
  color: #0d0610;
  font-weight: 700;
  box-shadow: var(--shadow-accent), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  animation: btnGradient 5s ease infinite;
}

.primary-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.4), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.primary-btn:hover::after {
  opacity: 1;
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 18px 44px rgba(255, 45, 138, 0.4), 0 0 24px rgba(196, 77, 255, 0.15);
}

.ghost-btn:hover {
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 24px rgba(255, 45, 138, 0.2);
}

main {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  padding-bottom: 6rem;
}

.hero {
  padding: 5rem 4vw 2rem;
  text-align: center;
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(40, 255, 157, 0.98);
  background: linear-gradient(135deg, rgba(40, 255, 157, 0.15), rgba(40, 255, 157, 0.06));
  border: 1px solid rgba(40, 255, 157, 0.4);
  margin-bottom: 1.25rem;
  animation: fadeInDown 0.6s ease;
  box-shadow: 0 0 20px rgba(40, 255, 157, 0.15);
}

.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(40, 255, 157, 0.9);
  box-shadow: 0 0 10px rgba(40, 255, 157, 0.6);
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

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

.hero-tagline .tagline-text {
  display: inline-block;
  min-width: 0.5em;
  transition: opacity 0.35s ease;
}

.hero-content p {
  font-size: 1.05rem;
}

.hero h1,
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: linear-gradient(125deg, #fff 0%, var(--accent-2) 30%, var(--accent-3) 60%, var(--accent-4) 85%, #fff 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textGradient 10s ease infinite;
}

.hero p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero-price {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.hero-price strong {
  color: var(--accent);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
}

.stat-card {
  background: linear-gradient(155deg, rgba(18, 16, 24, 0.98), rgba(12, 11, 18, 0.95));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  text-align: left;
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.stat-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 18px 44px rgba(255, 45, 138, 0.2), 0 0 28px rgba(196, 77, 255, 0.1);
  transform: translateY(-8px);
}

.stat-card.reveal {
  opacity: 1;
  transform: translateY(0);
}

.stat-card strong {
  display: block;
  font-size: 1.6rem;
  margin: 0.4rem 0;
}

.stat-label {
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.section {
  padding: 0 4vw;
}

.glass {
  background: linear-gradient(180deg, rgba(255, 45, 138, 0.06) 0%, transparent 20%, transparent 80%, rgba(196, 77, 255, 0.05) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 4vw;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #fff, var(--accent-2), var(--accent-3), #fff);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleGradient 12s ease infinite;
}

.section-title p {
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
}

.card {
  background: linear-gradient(155deg, var(--card) 0%, var(--card-hover) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease, box-shadow 0.45s ease;
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3), var(--accent-2), var(--accent));
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  animation: borderGradient 6s linear infinite;
  pointer-events: none;
}

.card:hover::before {
  opacity: 0.6;
}

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

.tilt {
  transform-style: preserve-3d;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--border-hover);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), 0 0 40px rgba(255, 45, 138, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.card::after {
  content: "";
  position: absolute;
  inset: -50%;
  z-index: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 45, 138, 0.22), rgba(196, 77, 255, 0.08) 40%, transparent 65%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.card:hover::after {
  opacity: 1;
}

.card-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent,
    rgba(255, 255, 255, 0.06),
    transparent
  );
  transition: left 0.6s ease;
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}

.card:hover .card-shine {
  left: 100%;
}

.card h3 {
  margin: 1rem 0 0.6rem;
}

.card p {
  color: var(--muted);
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: calc(var(--radius) - 4px);
  display: grid;
  place-items: center;
  background: rgba(255, 45, 138, 0.15);
  box-shadow: inset 0 0 20px rgba(255, 45, 138, 0.2);
}

.icon svg {
  width: 24px;
  fill: var(--text);
}

.icon.green {
  background: rgba(40, 255, 157, 0.15);
}

.icon.orange {
  background: rgba(255, 153, 71, 0.15);
}

.icon.pink {
  background: rgba(136, 95, 255, 0.2);
}

.why {
  max-width: 1000px;
  margin: 0 auto;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
}

.skill-card {
  background: linear-gradient(155deg, var(--card) 0%, var(--card-hover) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  overflow: hidden;
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.35s ease, box-shadow 0.4s ease;
}

#skills.skills-visible .skill-card,
#skills.skills-visible .stack-chip {
  opacity: 1;
  transform: translateY(0);
}

#skills.skills-visible .skill-card:nth-child(1) { transition-delay: 0.05s; }
#skills.skills-visible .skill-card:nth-child(2) { transition-delay: 0.12s; }
#skills.skills-visible .skill-card:nth-child(3) { transition-delay: 0.19s; }
#skills.skills-visible .skill-card:nth-child(4) { transition-delay: 0.26s; }
#skills.skills-visible .stack-chip:nth-child(n) { transition-delay: 0.35s; }

.skill-card h3 {
  color: var(--text);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.skill-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.skill-card::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(255, 45, 138, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.skill-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 32px rgba(255, 45, 138, 0.12);
  transform: translateY(-6px) scale(1.02);
}
.skill-card:hover::after {
  opacity: 1;
}

.skill-bar {
  margin-top: 1rem;
  height: 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.skill-bar span {
  display: block;
  height: 100%;
  width: 0;
  max-width: 100%;
  background: linear-gradient(90deg, var(--accent), #ff7fb5);
  border-radius: var(--radius-pill);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.skill-card.reveal .skill-bar span {
  transition-delay: 0.25s;
}

.chip-row {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.stack-chip {
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(255, 45, 138, 0.08);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.benefits .card {
  text-align: center;
}

.benefits .card.highlight {
  box-shadow: 0 0 48px rgba(255, 45, 138, 0.32);
}

.join {
  padding: 4rem 4vw;
}

.join-inner {
  background: linear-gradient(155deg, rgba(255, 45, 138, 0.2) 0%, rgba(196, 77, 255, 0.12) 40%, rgba(255, 45, 138, 0.08) 100%);
  background-size: 200% 200%;
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  text-align: center;
  border: 1px solid rgba(255, 45, 138, 0.35);
  box-shadow: 0 0 64px rgba(255, 45, 138, 0.25), 0 0 120px rgba(196, 77, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: joinGlow 8s ease-in-out infinite;
}

@keyframes joinGlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.join-inner > p {
  margin: 1rem auto 1.5rem;
  color: var(--muted);
  max-width: 640px;
}

.conditions-grid {
  max-width: 1100px;
  margin: 0 auto;
}

.trust {
  padding: 4rem 4vw;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
  margin-top: 2rem;
}

.trust-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(155deg, var(--card) 0%, var(--card-hover) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease, box-shadow 0.4s ease;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    box-shadow 0.4s ease;
}

.reveal-section.section-in-view .trust-card:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.reveal-section.section-in-view .trust-card:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}

.trust-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35), 0 0 36px rgba(255, 45, 138, 0.15);
  transform: translateY(-6px) scale(1.02);
}

.trust-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 1rem;
}

.trust-card h3 {
  margin: 0 0 0.5rem;
}

.trust-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1rem;
}

.trust-link {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

.contact-form {
  max-width: 480px;
  margin: 2rem auto 0;
  text-align: left;
}

.contact-form label {
  display: block;
  margin-bottom: 1.2rem;
}

.contact-form label span {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(10, 10, 18, 0.8);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 45, 138, 0.2);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.budget-error {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: #ff6b6b;
  min-height: 1.4em;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.budget-error.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-form input[aria-invalid="true"] {
  border-color: rgba(255, 107, 107, 0.6);
  box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
}

.btn-full {
  width: 100%;
  margin-top: 0.5rem;
}

.contact-note {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 4vw;
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
  text-align: center;
  color: var(--muted);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s 0.2s ease, transform 0.7s 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-section {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-section[data-reveal="left"] {
  transform: translateX(-56px) translateY(0);
}

.reveal-section[data-reveal="right"] {
  transform: translateX(56px) translateY(0);
}

.reveal-section.section-in-view {
  opacity: 1;
  transform: translate(0, 0);
}

.reveal-section .section-title {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.7s 0.15s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-section.section-in-view .section-title {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-section .card-grid .card,
.reveal-section .skill-grid .skill-card {
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-section.section-in-view .card-grid .card,
.reveal-section.section-in-view .skill-grid .skill-card {
  opacity: 1;
  transform: translateY(0);
}

.reveal-section.section-in-view .card-grid .card:nth-child(1),
.reveal-section.section-in-view .skill-grid .skill-card:nth-child(1) { transition-delay: 0.2s; }
.reveal-section.section-in-view .card-grid .card:nth-child(2),
.reveal-section.section-in-view .skill-grid .skill-card:nth-child(2) { transition-delay: 0.28s; }
.reveal-section.section-in-view .card-grid .card:nth-child(3),
.reveal-section.section-in-view .skill-grid .skill-card:nth-child(3) { transition-delay: 0.36s; }
.reveal-section.section-in-view .card-grid .card:nth-child(4),
.reveal-section.section-in-view .skill-grid .skill-card:nth-child(4) { transition-delay: 0.44s; }

.reveal-section.section-in-view .conditions-grid .card:nth-child(5) { transition-delay: 0.52s; }
.reveal-section.section-in-view .conditions-grid .card:nth-child(6) { transition-delay: 0.58s; }
.reveal-section.section-in-view .conditions-grid .card:nth-child(7) { transition-delay: 0.64s; }
.reveal-section.section-in-view .conditions-grid .card:nth-child(8) { transition-delay: 0.7s; }

.reveal-section .join-inner {
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  transition: opacity 0.8s 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-section.section-in-view .join-inner {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-section .chip-row .stack-chip {
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, background 0.3s ease;
}

.reveal-section.section-in-view .chip-row .stack-chip {
  opacity: 1;
  transform: translateY(0);
}

.reveal-section.section-in-view .chip-row .stack-chip:nth-child(1) { transition-delay: 0.5s; }
.reveal-section.section-in-view .chip-row .stack-chip:nth-child(2) { transition-delay: 0.56s; }
.reveal-section.section-in-view .chip-row .stack-chip:nth-child(3) { transition-delay: 0.62s; }
.reveal-section.section-in-view .chip-row .stack-chip:nth-child(4) { transition-delay: 0.68s; }
.reveal-section.section-in-view .chip-row .stack-chip:nth-child(5) { transition-delay: 0.74s; }
.reveal-section.section-in-view .chip-row .stack-chip:nth-child(6) { transition-delay: 0.8s; }
.reveal-section.section-in-view .chip-row .stack-chip:nth-child(7) { transition-delay: 0.86s; }
.reveal-section.section-in-view .chip-row .stack-chip:nth-child(8) { transition-delay: 0.92s; }
.reveal-section.section-in-view .chip-row .stack-chip:nth-child(9) { transition-delay: 0.98s; }

#skills .section-title,
#skills .skill-grid,
#skills .chip-row {
  position: relative;
  z-index: 1;
}

@keyframes borderGradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

@keyframes titleGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.float {
  animation: float 6s ease-in-out infinite;
}

.pulse {
  animation: glowPulse 2.8s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(255, 45, 138, 0.4); }
  50% { box-shadow: 0 0 32px rgba(255, 45, 138, 0.7); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

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

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

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes textGradient {
  0%, 100% { background-position: 0% 50%; }
  33% { background-position: 100% 50%; }
  66% { background-position: 50% 100%; }
}

@keyframes btnGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes bgMove {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

@keyframes blurPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .topbar {
    flex-wrap: wrap;
    justify-content: space-between;
    padding-top: max(0.4rem, env(safe-area-inset-top));
    padding-bottom: 0.4rem;
    padding-left: max(4vw, env(safe-area-inset-left));
    padding-right: max(4vw, env(safe-area-inset-right));
  }

  .topbar .brand {
    min-height: 36px;
    display: flex;
    align-items: center;
    font-size: 1rem;
  }

  .menu-toggle {
    display: flex;
    order: 2;
  }

  .nav {
    order: 4;
    flex-basis: 100%;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    padding: 0;
  }

  .topbar.menu-open .nav {
    max-height: calc(100vh - 5rem);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    opacity: 1;
    padding: 0.5rem 0 1rem;
  }

  .nav a {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    min-height: 48px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

  .nav a::after {
    display: none;
  }

  .nav a.active {
    background: rgba(255, 45, 138, 0.15);
    color: var(--accent-2);
  }

  .topbar-cta {
    display: none !important;
  }

  .hero {
    padding: 1.25rem 4vw 1rem;
  }

  .hero h1,
  .hero-title {
    margin-bottom: 0.5rem;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 6vw, 2.4rem);
  }

  .hero-content p {
    margin-bottom: 0.6rem;
  }

  .hero-price {
    margin-bottom: 1rem;
  }

  .hero-actions {
    gap: 0.75rem;
  }

  .hero-stats {
    margin-top: 1.25rem;
    grid-template-columns: 1fr;
  }

  .hero-stats .stat-card {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .topbar {
    backdrop-filter: none;
    background: rgba(10, 10, 18, 0.98);
  }

  .bg-glow {
    animation: none;
  }

  .spotlight {
    display: none;
  }

  section {
    contain: layout style;
  }

  .card::after,
  .skill-card::after {
    display: none;
  }

  .reveal-section,
  .reveal-section .section-title,
  .reveal-section .join-inner {
    transition-duration: 0.45s;
  }
}

@media (max-width: 600px) {
  .topbar,
  .hero,
  .section,
  .glass,
  .join,
  .trust,
  .footer {
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
  }

  .hero {
    padding: 1rem 0.75rem 0.75rem;
  }

  .status-badge {
    margin-bottom: 0.75rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .join-inner {
    padding: 2.4rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .contact-form input,
  .contact-form textarea {
    font-size: 16px;
    min-height: 44px;
  }

  .contact-form textarea {
    min-height: 120px;
  }

  .primary-btn,
  .ghost-btn,
  .nav a {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

html {
  -webkit-tap-highlight-color: transparent;
}

a, button {
  touch-action: manipulation;
}

@media (prefers-reduced-motion: reduce) {
  .topbar,
  .hero h1,
  .hero-title,
  .bg-glow,
  .float,
  .pulse,
  .status-badge::before,
  .gradient-mesh,
  .scroll-progress,
  .back-to-top {
    animation: none !important;
  }

  .scroll-progress {
    transition: none;
  }

  .back-to-top {
    transition-duration: 0.15s;
  }

  .card-shine {
    transition: none;
  }
}

.easter-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, var(--card), rgba(255, 45, 138, 0.2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-accent);
  z-index: 9999;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  max-width: calc(100vw - 2rem);
  text-align: center;
}

.easter-toast.is-visible {
  transform: translateX(-50%) translateY(0);
}

.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: max(1.5rem, env(safe-area-inset-right));
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-3), var(--accent-4));
  background-size: 200% 200%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 28px rgba(255, 45, 138, 0.45), 0 0 24px rgba(196, 77, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0d0610;
  font-weight: 700;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease, visibility 0.3s ease;
  z-index: 50;
  -webkit-tap-highlight-color: transparent;
  animation: btnGradient 5s ease infinite;
}

.back-to-top::after {
  content: "";
  width: 14px;
  height: 14px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: 6px;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  box-shadow: 0 10px 40px rgba(255, 45, 138, 0.55), 0 0 32px rgba(196, 77, 255, 0.25);
  transform: translateY(-3px) scale(1.06);
}
