/* ===== Component Styles ===== */
/* Design tokens, reset, base typography, and animations are in design.css */

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  padding: 0 24px;
  transition: box-shadow 0.3s;
}

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

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.2s;
}

.header-brand:hover {
  opacity: 0.8;
}

.header-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-nav a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  padding: 8px 18px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  opacity: 0.75;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--navy);
  background: var(--light-bg);
  opacity: 1;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.nav-toggle:hover {
  background: var(--light-bg);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: #0F1F35;
  color: var(--white);
  padding: 100px 24px 120px;
  text-align: center;
  overflow: hidden;
}

/* Canvas particle background */
.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}


.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-logo-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 40px;
  animation: scaleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}


.hero-logo {
  width: 160px;
  height: 160px;
  border-radius: 30px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(200, 169, 81, 0.08);
  object-fit: cover;
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  line-height: 1.15;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.hero-highlight {
  background: linear-gradient(135deg, var(--gold), var(--gold-light), #F0D878);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.8;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

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

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.btn:active {
  transform: translateY(0);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-dark);
  box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-gold:hover {
  box-shadow: 0 8px 40px var(--gold-glow), var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-icon {
  width: 18px;
  height: 18px;
}

/* ===== Stats Bar ===== */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.stats-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat-item {
  padding: 28px 24px;
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(0, 0, 0, 0.06);
}

.stat-number {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 500;
}

/* ===== Features ===== */
.features {
  padding: 100px 24px;
  background: var(--light-bg);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 169, 81, 0.2), transparent);
}

.features-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.08), rgba(30, 58, 95, 0.04));
  color: var(--navy);
  border: 1px solid rgba(30, 58, 95, 0.08);
}

.section-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

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

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.15rem;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

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

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: left;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover .feature-icon {
  transform: scale(1.08) rotate(-3deg);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* ===== About ===== */
.about {
  padding: 100px 24px;
  position: relative;
}

.about-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content {
  text-align: left;
}

.about-content .section-title {
  text-align: left;
  font-size: 2.2rem;
}

.about-content .section-subtitle {
  text-align: left;
  margin: 0 0 24px;
}

.about-content p {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-visual {
  position: relative;
}

.about-card {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(200, 169, 81, 0.15) 0%, transparent 70%);
  animation: pulse 6s ease-in-out infinite;
}

.about-card-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  object-fit: cover;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
}

.about-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
}

.about-card p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  position: relative;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
  position: relative;
}

.about-stat {
  background: var(--glass-strong);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--border);
}

.about-stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold);
}

.about-stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

/* ===== Download ===== */
.download {
  padding: 100px 24px;
  background: linear-gradient(135deg, #0F1F35 0%, #1E3A5F 50%, #162D4A 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(200, 169, 81, 0.06) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
}

.download-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.download .section-badge {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold);
  border-color: rgba(255, 255, 255, 0.08);
}

.download h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.download p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.15rem;
  margin-bottom: 40px;
  line-height: 1.7;
}

.store-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.store-badge-full {
  height: 80px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
  opacity: 0.9;
  cursor: pointer;
}

.store-badge-full:hover {
  transform: scale(1.05);
  opacity: 1;
}

/* ===== Footer ===== */
.footer {
  padding: 0;
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.05rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--navy), var(--gold));
  opacity: 0.6;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.footer-brand-logo:hover {
  opacity: 1;
}

.footer-brand-name {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-title {
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 4px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s, padding-left 0.2s;
  font-size: 1.05rem;
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-right-title {
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 4px;
}

.footer-right a {
  color: var(--gold);
  opacity: 0.85;
  transition: opacity 0.2s;
  font-size: 1.05rem;
}

.footer-right a:hover {
  opacity: 1;
}

.footer-copy {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: 28px;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ===== Privacy Policy Page ===== */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}

.policy-content h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.policy-content .last-updated {
  color: var(--text-muted);
  margin-bottom: 36px;
  font-size: 0.9rem;
}

.policy-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 36px;
  margin-bottom: 12px;
}

.policy-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 20px;
  margin-bottom: 8px;
}

.policy-content p {
  margin-bottom: 12px;
  line-height: 1.7;
  color: var(--text-light);
}

.policy-content ul,
.policy-content ol {
  margin-bottom: 12px;
  padding-left: 24px;
}

.policy-content li {
  margin-bottom: 6px;
  line-height: 1.7;
  color: var(--text-light);
}

.policy-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 0.88rem;
  border-radius: 12px;
  overflow: hidden;
}

.policy-content th,
.policy-content td {
  border: 1px solid #E2E8F0;
  padding: 12px 16px;
  text-align: left;
}

.policy-content th {
  background: var(--light-bg);
  font-weight: 600;
  color: var(--navy);
}

.policy-content strong {
  color: var(--navy);
}

.policy-content a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: rgba(30, 58, 95, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s;
}

.policy-content a:hover {
  text-decoration-color: var(--navy);
}

/* ===== 404 Page ===== */
.error-page {
  min-height: calc(100vh - 68px - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}

.error-inner {
  max-width: 480px;
}

.error-code {
  font-size: 7rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
  opacity: 0.12;
}

.error-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.error-message {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 32px;
  line-height: 1.7;
}

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

  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-content {
    text-align: center;
  }

  .about-content .section-title,
  .about-content .section-subtitle {
    text-align: center;
  }

  .about-content .section-subtitle {
    margin: 0 auto 24px;
  }
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  }

  .header-nav.open {
    display: flex;
  }

  .header-nav a {
    padding: 12px 16px;
    border-radius: 10px;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 64px 24px 80px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-logo {
    width: 120px;
    height: 120px;
    border-radius: 24px;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

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

  .stat-number {
    font-size: 1.4rem;
  }

  .stat-label {
    font-size: 0.82rem;
  }

  .stat-item {
    padding: 20px 12px;
  }

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

  .section-title {
    font-size: 1.9rem;
  }

  .features,
  .about,
  .download {
    padding: 64px 24px;
  }

  .download h2 {
    font-size: 1.9rem;
  }

  .header-name {
    font-size: 0.85rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
    padding: 48px 24px 28px;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-links {
    align-items: center;
  }

  .footer-right {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.85rem;
  }

  .store-badges {
    flex-direction: column;
    align-items: center;
  }

  .store-badge {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }
}
