@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

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

:root {
  --black: #000000;
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.06);
  --text-secondary: rgba(255, 255, 255, 0.5);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--black);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Noise overlay ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 9999;
}

/* ---- 3D Crystal canvas ---- */
#crystal-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---- Layout ---- */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 0 24px;
}

/* ---- Nav ---- */
nav {
  width: 100%;
  max-width: 1200px;
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: fadeDown 1s ease both;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.logo-shimmer {
  background: linear-gradient(
    90deg,
    #fff 0%, #fff 25%,
    #ff2d55 33%, #ff9500 38%, #ffd60a 43%,
    #30d158 48%, #007aff 53%, #af52de 58%,
    #fff 66%, #fff 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 3s linear infinite;
}

@keyframes textShimmer {
  from { background-position: 100% 50%; }
  to { background-position: -200% 50%; }
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  transition: color 0.3s;
}
nav a:hover { color: var(--white); }

/* ---- Hero ---- */
.hero {
  max-width: 820px;
  text-align: center;
  padding: 12vh 0 10vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.hero h1 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  animation: fadeUp 1s ease both 0.2s;
}

.hero h1 em { font-style: italic; }

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.6;
  animation: fadeUp 1s ease both 0.4s;
}

/* ---- CTA Button ---- */
.cta-wrap {
  position: relative;
  animation: fadeUp 1s ease both 0.6s;
}

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.cta:hover {
  scale: 1.04;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
}

.cta-wrap::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 100px;
  background: conic-gradient(
    from var(--border-angle),
    transparent 30%,
    #ff2d55, #ff9500, #ffd60a, #30d158, #007aff, #af52de,
    transparent 70%
  );
  animation: rotateBorder 3s linear infinite;
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 0;
}

.cta-wrap:hover::before { opacity: 1; }

@keyframes rotateBorder {
  to { --border-angle: 360deg; }
}

.cta-arrow { transition: translate 0.3s; }
.cta:hover .cta-arrow { translate: 3px 0; }

/* ---- Benefits ---- */
.benefits {
  width: 100%;
  max-width: 1000px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding-bottom: 14vh;
  animation: fadeUp 1s ease both 0.8s;
}

.card {
  position: relative;
  padding: 40px 32px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.card:first-child { border-radius: 20px 0 0 20px; }
.card:last-child { border-radius: 0 20px 20px 0; }

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: conic-gradient(
    from var(--border-angle),
    transparent 40%,
    rgba(255, 45, 85, 0.08),
    rgba(255, 149, 0, 0.08),
    rgba(48, 209, 88, 0.08),
    rgba(0, 122, 255, 0.08),
    rgba(175, 82, 222, 0.08),
    transparent 60%
  );
  animation: rotateBorder 4s linear infinite;
  opacity: 0;
  transition: opacity 0.5s;
}

.card:hover::before { opacity: 1; }
.card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.card-icon dotlottie-wc {
  width: 30px;
  height: 30px;
  filter: invert(1) brightness(2);
}

.card-icon dotlottie-wc.sparkle {
  width: 42px;
  height: 42px;
}

.card h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.card p {
  font-weight: 300;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

/* ---- Footer ---- */
footer {
  width: 100%;
  max-width: 1200px;
  padding: 24px 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  animation: fadeUp 1s ease both 1s;
}

footer span {
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.02em;
}

/* ---- Divider shimmer ---- */
.divider {
  width: 100%;
  max-width: 200px;
  height: 1px;
  margin: 0 auto 8vh;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08) 20%,
    rgba(255, 45, 85, 0.2),
    rgba(255, 214, 10, 0.2),
    rgba(48, 209, 88, 0.2),
    rgba(0, 122, 255, 0.2),
    rgba(175, 82, 222, 0.2),
    rgba(255, 255, 255, 0.08) 80%,
    transparent
  );
  background-size: 200% 100%;
  animation: fadeUp 1s ease both 0.7s, lineShimmer 3s linear infinite;
}

@keyframes lineShimmer {
  from { background-position: 100% 50%; }
  to { background-position: -100% 50%; }
}

/* ---- Modal ---- */
#modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

#modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 48px 56px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#modal.open .modal-card {
  transform: scale(1) translateY(0);
}

.modal-card p {
  font-family: 'Instrument Serif', serif;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.modal-card button {
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  border: none;
  border-radius: 100px;
  padding: 10px 28px;
  cursor: pointer;
  transition: all 0.3s;
}

.modal-card button:hover {
  scale: 1.04;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.12);
}

/* ---- Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; translate: 0 20px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes fadeDown {
  from { opacity: 0; translate: 0 -10px; }
  to { opacity: 1; translate: 0 0; }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero { padding: 8vh 0 8vh; }
  .benefits {
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 10vh;
  }
  .card:first-child { border-radius: 20px 20px 0 0; }
  .card:last-child { border-radius: 0 0 20px 20px; }
  .card { padding: 32px 24px; }
  footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
