/* ============================================
   ZKeys - Custom Styles
   ============================================ */

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

/* ---------- CSS Variables ---------- */
:root {
  --primary: #6C5CE7;
  --primary-light: #A29BFE;
  --primary-dark: #5A4BD1;
  --secondary: #00CEC9;
  --secondary-light: #81ECEC;
  --accent: #FD79A8;
  --accent-light: #FDA7DF;
  --dark: #0D1117;
  --dark-surface: #161B22;
  --dark-card: #1C2333;
  --dark-border: #30363D;
  --text-primary: #F0F6FC;
  --text-secondary: #8B949E;
  --text-muted: #6E7681;
  --gradient-primary: linear-gradient(135deg, #6C5CE7 0%, #A29BFE 50%, #00CEC9 100%);
  --gradient-hero: linear-gradient(135deg, #0D1117 0%, #161B22 40%, #1a1a2e 100%);
  --gradient-card: linear-gradient(145deg, rgba(28, 35, 51, 0.8), rgba(13, 17, 23, 0.9));
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-glow: 0 0 40px rgba(108, 92, 231, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.3;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--secondary-light);
}

::selection {
  background: var(--primary);
  color: #fff;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--dark);
}
::-webkit-scrollbar-thumb {
  background: var(--dark-border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ---------- Navbar ---------- */
.navbar-custom {
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.75rem 0;
  transition: all var(--transition-normal);
}

.navbar-custom .navbar-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.navbar-custom .navbar-brand .brand-icon {
  font-size: 1.3rem;
  margin-right: 6px;
}

.navbar-custom .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--text-primary) !important;
  background: var(--glass-bg);
}

.navbar-custom .navbar-toggler {
  border: 1px solid var(--glass-border);
  padding: 0.4rem 0.6rem;
}

.navbar-custom .navbar-toggler-icon {
  filter: invert(1);
}

.btn-nav-login {
  background: var(--gradient-primary);
  color: #fff !important;
  border: none;
  padding: 0.5rem 1.25rem !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition-normal);
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- Hero Section ---------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: floatOrb 8s ease-in-out infinite;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 206, 201, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: floatOrb 10s ease-in-out infinite reverse;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary-light);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease;
}

.hero-badge .badge-dot {
  width: 6px;
  height: 6px;
  background: var(--secondary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-title .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-visual {
  position: relative;
  animation: fadeInRight 1s ease 0.4s both;
}

.hero-card-stack {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.hero-floating-card {
  background: var(--gradient-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
}

.hero-floating-card .card-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.hero-floating-card .card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.hero-floating-card .card-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.hero-floating-card .card-sublabel {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero-mini-card {
  position: absolute;
  background: var(--gradient-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  animation: float 6s ease-in-out infinite;
}

.hero-mini-card.card-top {
  top: -20px;
  right: -10px;
  animation-delay: 0s;
}

.hero-mini-card.card-bottom {
  bottom: -10px;
  left: -10px;
  animation-delay: 2s;
}

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

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ---------- Buttons ---------- */
.btn-primary-custom {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  padding: 0.7rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary-custom::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108, 92, 231, 0.35);
  color: #fff;
}

.btn-primary-custom:hover::before {
  opacity: 1;
}

.btn-outline-custom {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--dark-border);
  padding: 0.7rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-normal);
}

.btn-outline-custom:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
  background: rgba(108, 92, 231, 0.08);
  transform: translateY(-2px);
}

/* ---------- Section Styles ---------- */
.section-padding {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(108, 92, 231, 0.12);
  color: var(--primary-light);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Features Section ---------- */
.features-section {
  background: var(--dark-surface);
  position: relative;
}

.features-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.feature-card {
  background: var(--gradient-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(108, 92, 231, 0.3);
  box-shadow: var(--shadow-glow);
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.feature-icon.icon-purple {
  background: rgba(108, 92, 231, 0.15);
  color: var(--primary-light);
}

.feature-icon.icon-teal {
  background: rgba(0, 206, 201, 0.15);
  color: var(--secondary-light);
}

.feature-icon.icon-pink {
  background: rgba(253, 121, 168, 0.15);
  color: var(--accent);
}

.feature-icon.icon-blue {
  background: rgba(116, 185, 255, 0.15);
  color: #74B9FF;
}

.feature-icon.icon-orange {
  background: rgba(253, 203, 110, 0.15);
  color: #FDCB6E;
}

.feature-icon.icon-green {
  background: rgba(85, 239, 196, 0.15);
  color: #55EFC4;
}

.feature-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.feature-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 1rem;
}

.tag-available {
  background: rgba(85, 239, 196, 0.12);
  color: #55EFC4;
}

.tag-coming {
  background: rgba(253, 203, 110, 0.12);
  color: #FDCB6E;
}

/* ---------- How It Works ---------- */
.how-section {
  background: var(--dark);
  position: relative;
}

.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 1.25rem;
  background: var(--gradient-primary);
  color: #fff;
  position: relative;
}

.step-number::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(108, 92, 231, 0.3);
}

.step-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.step-connector {
  display: none;
}

@media (min-width: 768px) {
  .step-connector {
    display: block;
    position: absolute;
    top: 32px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    z-index: 0;
  }
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: var(--dark-surface);
  position: relative;
  overflow: hidden;
}

.cta-box {
  background: var(--gradient-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-box h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
}

.cta-box p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto 2rem;
  position: relative;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  border-top: 1px solid var(--dark-border);
  padding: 3rem 0 1.5rem;
}

.footer-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-description {
  color: var(--text-secondary);
  font-size: 0.85rem;
  max-width: 300px;
  margin-top: 0.75rem;
  line-height: 1.7;
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0;
}

/* ---------- Policy / Terms Page Styles ---------- */
.page-header {
  background: var(--gradient-hero);
  padding: 140px 0 60px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
}

.page-header .lead {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.content-section {
  padding: 80px 0;
}

.content-card {
  background: var(--gradient-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 3rem;
}

.content-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--primary-light);
}

.content-card h2:first-child {
  margin-top: 0;
}

.content-card p,
.content-card li {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.8;
}

.content-card ul {
  padding-left: 1.25rem;
}

.content-card ul li {
  margin-bottom: 0.5rem;
}

.content-card strong {
  color: var(--text-primary);
}

/* ---------- Back to Top ---------- */
.btn-back-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 999;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.btn-back-top.show {
  opacity: 1;
  visibility: visible;
}

.btn-back-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(108, 92, 231, 0.5);
}

/* ---------- Stats Row ---------- */
.stats-row {
  margin-top: 3rem;
  animation: fadeInUp 0.8s ease 0.5s both;
}

.stat-item {
  text-align: center;
  padding: 1rem;
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ---------- Responsive Utilities ---------- */
@media (max-width: 991.98px) {
  .hero-section {
    padding: 100px 0 60px;
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    margin-top: 3rem;
  }

  .section-padding {
    padding: 60px 0;
  }

  .cta-box {
    padding: 3rem 1.5rem;
  }

  .content-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem;
  }

  .stats-row .col-4 {
    margin-bottom: 0.5rem;
  }

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

  .hero-floating-card {
    padding: 1.25rem;
  }

  .hero-mini-card {
    display: none;
  }
}
