@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-base: #000000;
  --bg-surface: rgba(255, 255, 255, 0.02);
  --bg-glass: rgba(0, 0, 0, 0.6);
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 255, 255, 0.2);
  --accent-glow: rgba(255, 255, 255, 0.15);
  --system-font: 'Inter', system-ui, -apple-system, sans-serif;
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--system-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.5;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 0%, rgba(25, 25, 25, 0.8) 0%, rgba(0, 0, 0, 1) 60%);
  z-index: -1;
  pointer-events: none;
}

/* Dynamic Backgrounds */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
  z-index: -1;
  pointer-events: none;
  animation: bgGridMove 20s linear infinite;
}

@keyframes bgGridMove {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(50px);
  }
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -2;
  pointer-events: none;
  opacity: 0.5;
}

.bg-glow-1 {
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  animation: pulseGlow 8s ease-in-out infinite alternate;
}

.bg-glow-2 {
  bottom: 0;
  left: -200px;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.03);
  animation: pulseGlow 12s ease-in-out infinite alternate-reverse;
}

@keyframes pulseGlow {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 0.3;
  }

  100% {
    transform: scale(1.2) translate(-20px, 20px);
    opacity: 0.6;
  }
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  transition: transform 0.3s var(--ease-out), background 0.3s;
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.85);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand__logo {
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s;
}

.brand:hover .brand__logo {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
}

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

.brand__name {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}

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

.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Animations Core */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  will-change: opacity, transform;
}

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

/* Hero Section */
.hero {
  position: relative;
  padding: 200px 0 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  animation: floatBadge 6s ease-in-out infinite;
}

@keyframes floatBadge {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }

  100% {
    transform: translateY(0);
  }
}

.badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shine 4s infinite;
}

@keyframes shine {
  0% {
    left: -100%;
  }

  20% {
    left: 200%;
  }

  100% {
    left: 200%;
  }
}

.hero__title {
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  background: linear-gradient(180deg, #FFFFFF 0%, #A1A1AA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.hero__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  font-weight: 500;
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

.hero__meta {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 48px;
}

.meta__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.meta__label {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.meta__value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Premium Button */
.btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 40px;
  background: #ffffff;
  color: #000000;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.btn-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(255, 255, 255, 0.8), #ffffff);
  z-index: -1;
  transition: opacity 0.3s;
}

.btn-premium:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.2), 0 0 20px rgba(255, 255, 255, 0.1);
}

.btn-premium:active {
  transform: translateY(-1px);
}

.cta__hint {
  margin-top: 16px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Grid System for Features & Cards */
.section {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

/* Glow Cards */
.grid {
  display: grid;
  gap: 24px;
}

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

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

.glow-card {
  position: relative;
  background: rgba(20, 20, 20, 0.4);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 40px 32px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.1s ease-out, box-shadow 0.3s;
  backdrop-filter: blur(20px);
  transform-style: preserve-3d;
}

.glow-card::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, 0);
  left: var(--mouse-x, 0);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.glow-card:hover::before {
  opacity: 1;
}

.glow-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-8px);
}

.card__icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  border: 1px solid var(--border-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 24px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transform: translateZ(30px);
  transition: transform 0.3s var(--ease-out);
}

.card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  transform: translateZ(20px);
  transition: transform 0.3s var(--ease-out);
}

.card__text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  transform: translateZ(10px);
  transition: transform 0.3s var(--ease-out);
}

/* Install Steps */
.install-strip {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 32px 0;
}

.install-grid {
  display: flex;
  justify-content: center;
  gap: 80px;
  position: relative;
}

.install-line {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0%;
  max-width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  z-index: 0;
  transition: width 1.5s var(--ease-spring);
}

.install-line.is-visible {
  width: 60%;
}

.install-step {
  position: relative;
  z-index: 1;
  background: var(--bg-base);
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0.6;
  transition: opacity 0.3s, transform 0.3s var(--ease-spring);
}

.install-step:hover {
  opacity: 1;
  transform: translateY(-4px);
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-focus);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.step-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Showcase */
.showcase-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 0 24px 40px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.showcase-slider::-webkit-scrollbar {
  display: none;
}

.shot {
  flex: 0 0 calc(33.333% - 16px);
  height: 280px;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  object-fit: cover;
  scroll-snap-align: center;
  cursor: zoom-in;
  transition: transform 0.4s var(--ease-spring), border-color 0.3s;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.shot:hover {
  transform: scale(1.02);
  border-color: var(--border-focus);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8);
  transform: scale(0.95);
  transition: transform 0.4s var(--ease-spring);
}

.lightbox.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 40px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  background: none;
  border: none;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

/* Checksum Panel */
.checksum-panel {
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 32px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(20px);
}

.checksum-info h4 {
  margin: 0 0 8px;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.code-display {
  font-family: 'SFMono-Regular', Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  letter-spacing: 0.05em;
}

/* Checkmarks and Toasts */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-focus);
  padding: 16px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s var(--ease-spring);
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-light);
  padding: 60px 0 40px;
  margin-top: 80px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__meta {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}

/* Media Queries */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .showcase-slider .shot {
    flex: 0 0 calc(50% - 12px);
  }

  .checksum-panel {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 160px 0 80px;
  }

  .hero__meta {
    flex-direction: column;
    gap: 24px;
  }

  .hero__title {
    font-size: 40px;
  }

  .nav {
    display: none;
  }

  .install-grid {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  div.grid.grid-4,
  div.grid.grid-3 {
    display: block;
  }

  div.grid.grid-4>div,
  div.grid.grid-3>div {
    width: 100%;
    margin-bottom: 24px;
  }

  .showcase-slider .shot {
    flex: 0 0 85%;
  }

  .footer__inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
}