/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(13, 13, 13, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: var(--nav-action-height);
  height: var(--nav-action-height);
  border-radius: 8px;
  object-fit: cover;
}

.nav-logo-text {
  font-size: 1.075rem;
  font-weight: 1500;
  color: #fff;
  letter-spacing: 0.05em;
  line-height: 1;
  white-space: nowrap;
}

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

.nav-links a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--color-text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--nav-action-height);
  padding: 0 20px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 24px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background var(--transition), transform var(--transition);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--color-primary-light);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 40px) 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(200, 23, 30, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(230, 175, 25, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #0d0d0d 0%, #1a0a0c 50%, #0d0d0d 100%);
  z-index: 0;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 23, 30, 0.15) 0%, transparent 70%);
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  animation: pulse-glow 4s ease-in-out infinite;
  z-index: 0;
}

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

.hero-brand {
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-brand .highlight {
  color: var(--color-primary);
}

.hero-slogan {
  font-size: clamp(1.25rem, 3.5vw, 2rem);
  font-weight: 300;
  color: var(--color-text-muted);
  letter-spacing: 0.15em;
  margin-bottom: 48px;
}

.hero-desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #a01218 100%);
  color: #fff;
  border-radius: 32px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(200, 23, 30, 0.4);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200, 23, 30, 0.5);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}

.btn-primary:hover svg {
  transform: translateY(3px);
}

/* Feature Cards */
.features {
  background: var(--color-bg-dark);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  background: var(--color-bg-card-hover);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(200, 23, 30, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
}

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

/* Hot Hair Grid */
.hot-hair {
  background: var(--color-bg-dark);
}

.hot-hair-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
}

.hair-item {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-bg-card);
}

.hair-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hair-item:hover img {
  transform: scale(1.05);
}

.hair-item .rank {
  position: absolute;
  left: 8px;
  bottom: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rank-default);
}

.hair-item .rank-1 {
  background: var(--rank-gold);
  color: #333;
}

.hair-item .rank-2 {
  background: var(--rank-silver);
  color: #333;
}

.hair-item .rank-3 {
  background: var(--rank-bronze);
  color: #333;
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--color-bg-card) 25%, #2a2a2a 50%, var(--color-bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
  aspect-ratio: 4 / 5;
}

.hot-hair-error {
  text-align: center;
  padding: 48px 24px;
  color: var(--color-text-muted);
}

.hot-hair-error p {
  margin-bottom: 20px;
}

.hot-hair-tip {
  margin-top: 40px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.btn-retry {
  padding: 12px 28px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: 24px;
  font-size: 0.9rem;
  transition: background var(--transition), border-color var(--transition);
}

.btn-retry:hover,
.btn-retry:focus-visible {
  background: var(--color-bg-card-hover);
  border-color: var(--color-primary);
}

/* App Download */
.app-download {
  background: var(--color-bg-dark);
}

.app-download-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  background: linear-gradient(135deg, rgba(200, 23, 30, 0.12) 0%, rgba(26, 26, 26, 0.9) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 64px);
}

.app-download-content {
  flex: 1;
}

.app-download-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.app-download-desc {
  color: var(--color-text-muted);
  margin-bottom: 32px;
  line-height: 1.8;
  max-width: 480px;
}

.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: #fff;
  transition: transform var(--transition), border-color var(--transition);
}

.app-store-btn:hover,
.app-store-btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
}

.app-store-btn svg {
  width: 28px;
  height: 28px;
}

.app-store-text {
  text-align: left;
}

.app-store-text small {
  display: block;
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

.app-store-text span {
  font-size: 1.1rem;
  font-weight: 600;
}

.app-mockup {
  flex-shrink: 0;
  width: 200px;
  height: 400px;
  background: #1a1a1a;
  border-radius: 32px;
  border: 3px solid #333;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.app-mockup::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 6px;
  background: #333;
  border-radius: 3px;
}

.app-mockup-screen {
  position: absolute;
  inset: 24px 8px 8px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(200, 23, 30, 0.18) 0%, transparent 55%),
    linear-gradient(180deg, #161214 0%, #111111 45%, #0d0d0d 100%);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.app-mockup-screen span {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.app-mockup-screen small {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  letter-spacing: 0.2em;
}

/* Footer */
.footer {
  background: #080808;
  border-top: 1px solid var(--color-border);
  padding: 48px 0 32px;
  text-align: center;
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-brand span {
  color: var(--color-primary);
}

.footer-text {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 2;
}

.footer-phone {
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.footer-phone:hover,
.footer-phone:focus-visible {
  color: var(--color-primary);
}

.footer-copy {
  margin-top: 24px;
  font-size: 0.75rem;
  color: #666;
}

/* Responsive */
@media (max-width: 1199px) {
  .hot-hair-grid {
    grid-template-columns: repeat(5, 1fr);
  }

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

@media (max-width: 767px) {
  .nav-links {
    display: none;
  }

  .hot-hair-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

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

  .app-download-inner {
    flex-direction: column;
    text-align: center;
  }

  .app-download-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .app-mockup {
    width: 160px;
    height: 320px;
  }

  .hair-item .rank {
    width: 24px;
    height: 24px;
    font-size: 0.65rem;
    left: 6px;
    bottom: 6px;
  }
}
