/* ==========================================================
   home.css — SBL Core Activation Engine
   Frontend pages: Home, Activate, Contact
   Depends on globalassets.css for design tokens
   ========================================================== */

/* ----------------------------------------------------------
   Animated Background — Blobs
   ---------------------------------------------------------- */
.bg-canvas {
  position:  fixed;
  inset:     0;
  z-index:   -1;
  overflow:  hidden;
}

.bg-blob {
  position:      absolute;
  border-radius: 50%;
  filter:        blur(80px);
  opacity:       0.15;
  animation:     float 12s ease-in-out infinite;
}

.bg-blob-1 {
  width:             600px;
  height:            600px;
  background:        radial-gradient(circle, #FF6B00, transparent 70%);
  top:               -100px;
  left:              -100px;
  animation-delay:   0s;
}

.bg-blob-2 {
  width:             500px;
  height:            500px;
  background:        radial-gradient(circle, #00C2FF, transparent 70%);
  bottom:            -100px;
  right:             -100px;
  animation-delay:   -4s;
}

.bg-blob-3 {
  width:             400px;
  height:            400px;
  background:        radial-gradient(circle, #8B5CF6, transparent 70%);
  top:               50%;
  left:              50%;
  transform:         translate(-50%, -50%);
  animation-delay:   -8s;
}

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

/* Grid overlay */
.bg-grid {
  position:         fixed;
  inset:            0;
  z-index:          -1;
  background-image: linear-gradient(rgba(255, 107, 0, 0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 107, 0, 0.03) 1px, transparent 1px);
  background-size:  60px 60px;
  pointer-events:   none;
}

/* ----------------------------------------------------------
   Site Header
   ---------------------------------------------------------- */
.site-header {
  position:        fixed;
  top:             0;
  left:            0;
  right:           0;
  z-index:         100;
  background:      rgba(6, 6, 8, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom:   1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  max-width:    1200px;
  margin:       0 auto;
  padding:      1rem 1.5rem;
  display:      flex;
  align-items:  center;
  gap:          2rem;
}

/* Logo */
.logo {
  display:         flex;
  align-items:     center;
  gap:             0.6rem;
  text-decoration: none;
  color:           var(--text);
}

.logo-icon {
  color:       #FF6B00;
  font-size:   1.4rem;
  filter:      drop-shadow(0 0 10px rgba(255, 107, 0, 0.5));
  flex-shrink: 0;
}

.logo-text {
  font-weight:    700;
  font-size:      1.1rem;
  letter-spacing: -0.02em;
}

/* Navigation */
.header-nav {
  display:     flex;
  gap:         1.5rem;
  margin-left: auto;
  align-items: center;
}

.nav-link {
  color:           rgba(240, 240, 240, 0.7);
  text-decoration: none;
  font-size:       0.9rem;
  font-weight:     500;
  transition:      color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #FF6B00;
}

/* Language switcher */
.lang-switcher {
  position: relative;
}

.lang-btn {
  background:    rgba(255, 255, 255, 0.06);
  border:        1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding:       0.4rem 0.8rem;
  display:       flex;
  align-items:   center;
  gap:           0.4rem;
  font-size:     0.8rem;
  color:         var(--text);
  cursor:        pointer;
  transition:    border-color 0.2s ease;
  font-family:   var(--font-primary);
}

.lang-btn:hover {
  border-color: rgba(255, 107, 0, 0.4);
}

.lang-dropdown {
  position:        absolute;
  top:             110%;
  right:           0;
  background:      rgba(15, 15, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border:          1px solid rgba(255, 255, 255, 0.1);
  border-radius:   12px;
  overflow:        hidden;
  min-width:       150px;
  opacity:         0;
  pointer-events:  none;
  transform:       translateY(-10px);
  transition:      opacity 0.2s ease, transform 0.2s ease;
  display:         none;
}

.lang-dropdown.open {
  opacity:        1;
  pointer-events: all;
  transform:      translateY(0);
  display:        block;
}

.lang-option {
  display:         block;
  padding:         0.6rem 1rem;
  font-size:       0.85rem;
  color:           var(--text-muted);
  text-decoration: none;
  transition:      background 0.15s ease, color 0.15s ease;
}

.lang-option:hover {
  background: rgba(255, 107, 0, 0.1);
  color:      var(--text);
}

.lang-option.active {
  color:      #FF6B00;
  background: rgba(255, 107, 0, 0.08);
}

/* ----------------------------------------------------------
   Main content offset for fixed header
   ---------------------------------------------------------- */
main {
  padding-top: 80px;
}

/* ----------------------------------------------------------
   Hero Section
   ---------------------------------------------------------- */
.hero {
  min-height:       100vh;
  display:          flex;
  align-items:      center;
  justify-content:  center;
  text-align:       center;
  padding:          2rem;
}

.hero-inner {
  max-width: 800px;
  margin:    0 auto;
}

.hero-badge {
  display:       inline-flex;
  align-items:   center;
  gap:           0.5rem;
  background:    rgba(255, 107, 0, 0.1);
  border:        1px solid rgba(255, 107, 0, 0.3);
  border-radius: 999px;
  padding:       0.4rem 1rem;
  font-size:     0.82rem;
  color:         #FF6B00;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size:               clamp(2.5rem, 6vw, 4.5rem);
  font-weight:             800;
  line-height:             1.1;
  letter-spacing:          -0.03em;
  margin-bottom:           1.2rem;
  background:              linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip:         text;
}

.hero-desc {
  font-size:     1.15rem;
  color:         var(--text-muted);
  max-width:     600px;
  margin:        0 auto 2.5rem;
  line-height:   1.7;
}

.hero-cta {
  display:         flex;
  gap:             1rem;
  justify-content: center;
  flex-wrap:       wrap;
}

/* ----------------------------------------------------------
   Lock State
   ---------------------------------------------------------- */
.hero-locked .hero-title {
  -webkit-text-fill-color: initial;
  color:                   #f87171;
  background:              none;
  -webkit-background-clip: initial;
  background-clip:         initial;
}

body.state-locked::before {
  content:        '';
  position:       fixed;
  inset:          0;
  background:     rgba(239, 68, 68, 0.03);
  pointer-events: none;
  z-index:        0;
}

.lock-icon-wrap {
  margin-bottom: 1.5rem;
}

.lock-icon {
  font-size:  5rem;
  color:      #f87171;
  filter:     drop-shadow(0 0 30px rgba(239, 68, 68, 0.4));
  animation:  lockPulse 2s ease-in-out infinite;
  display:    block;
  line-height: 1;
}

@keyframes lockPulse {
  0%, 100% {
    filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 50px rgba(239, 68, 68, 0.8));
  }
}

.lock-badge {
  display:       inline-block;
  background:    rgba(239, 68, 68, 0.15);
  border:        1px solid rgba(239, 68, 68, 0.4);
  color:         #f87171;
  border-radius: 999px;
  padding:       0.4rem 1rem;
  font-size:     0.82rem;
  margin-bottom: 1rem;
}

.lock-product {
  margin-bottom: 1rem;
  font-size:     1rem;
  color:         var(--text-muted);
}

.lock-warning {
  background:    rgba(239, 68, 68, 0.08);
  border:        1px solid rgba(239, 68, 68, 0.2);
  border-radius: 10px;
  padding:       1rem;
  margin-top:    2rem;
  font-size:     0.9rem;
  color:         #f87171;
}

/* ----------------------------------------------------------
   Features Section
   ---------------------------------------------------------- */
.section-features {
  padding:    6rem 2rem;
  background: rgba(0, 0, 0, 0.2);
}

.section-inner {
  max-width: 1100px;
  margin:    0 auto;
}

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

.section-header h2 {
  font-size:     2.2rem;
  font-weight:   700;
  margin-bottom: 1rem;
}

.section-header p {
  color:     var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin:    0 auto;
}

.features-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   1.5rem;
}

.feature-card {
  padding:    1.8rem;
  position:   relative;
  overflow:   hidden;
  transition: transform 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-icon {
  width:           48px;
  height:          48px;
  background:      rgba(255, 107, 0, 0.1);
  border-radius:   12px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  margin-bottom:   1rem;
  color:           #FF6B00;
  font-size:       1.3rem;
}

.feature-card h3 {
  font-size:     1rem;
  font-weight:   600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size:   0.88rem;
  color:       var(--text-muted);
  line-height: 1.6;
}

/* ----------------------------------------------------------
   How it Works — Steps
   ---------------------------------------------------------- */
.section-steps {
  padding: 6rem 2rem;
}

.steps-row {
  display:         flex;
  align-items:     flex-start;
  gap:             2rem;
  justify-content: center;
  flex-wrap:       wrap;
}

.step-item {
  max-width:  260px;
  text-align: center;
}

.step-num {
  font-size:    3rem;
  font-weight:  900;
  color:        rgba(255, 107, 0, 0.3);
  line-height:  1;
  margin-bottom: 0.5rem;
  font-family:  var(--font-mono);
}

.step-item h4 {
  font-weight:   600;
  margin-bottom: 0.5rem;
}

.step-item p {
  font-size: 0.88rem;
  color:     var(--text-muted);
}

.step-arrow {
  color:      rgba(255, 107, 0, 0.3);
  font-size:  1.5rem;
  padding-top: 1rem;
  align-self: flex-start;
  margin-top: 2rem;
}

/* ----------------------------------------------------------
   CTA Section
   ---------------------------------------------------------- */
.section-cta {
  padding: 6rem 2rem;
}

.cta-box {
  text-align:    center;
  padding:       4rem;
  border-radius: 24px;
}

.cta-box h2 {
  font-size:     2rem;
  font-weight:   700;
  margin-bottom: 1rem;
}

.cta-box p {
  font-size:     1rem;
  color:         var(--text-muted);
  margin-bottom: 2rem;
}

/* ----------------------------------------------------------
   Activate Page
   ---------------------------------------------------------- */
.activate-main {
  padding:    120px 1.5rem 3rem;
  min-height: 100vh;
  display:    flex;
  align-items: center;
}

.activate-wrap {
  max-width: 580px;
  margin:    0 auto;
  width:     100%;
}

.activate-card {
  padding:       2.5rem;
  border-radius: 20px;
}

.activate-header {
  text-align:    center;
  margin-bottom: 2rem;
}

.activate-icon {
  width:           64px;
  height:          64px;
  margin:          0 auto 1rem;
  background:      rgba(255, 107, 0, 0.1);
  border-radius:   16px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  color:           #FF6B00;
  font-size:       1.8rem;
}

.activate-card h1 {
  font-size:     1.8rem;
  font-weight:   700;
  margin-bottom: 0.4rem;
}

.activate-sub {
  font-size: 0.92rem;
  color:     var(--text-muted);
}

.key-input {
  font-family:    var(--font-mono);
  font-size:      1.1rem;
  letter-spacing: 0.1em;
  text-align:     center;
  text-transform: uppercase;
}

.advanced-options summary {
  cursor:        pointer;
  font-size:     0.85rem;
  color:         var(--text-muted);
  margin-bottom: 1rem;
  padding:       0.5rem 0;
  list-style:    none;
  user-select:   none;
}

.advanced-options summary::-webkit-details-marker {
  display: none;
}

details[open] .advanced-options {
  padding-top:  1rem;
  border-top:   1px solid rgba(255, 255, 255, 0.08);
  margin-top:   0.5rem;
}

.activation-details {
  background:    rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding:       1.5rem;
  margin-bottom: 1.5rem;
}

.detail-row {
  display:       flex;
  flex-direction: column;
  gap:           0.3rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.detail-row label {
  font-size:      0.72rem;
  font-weight:    600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--text-muted);
}

.detail-row code {
  font-size: 0.85rem;
}

.act-id {
  font-size:      0.75rem;
  letter-spacing: 0.08em;
  word-break:     break-all;
}

/* Success state */
.success-card {
  text-align: center;
}

.success-icon {
  font-size:    4rem;
  color:        #4ade80;
  margin-bottom: 1.5rem;
  animation:    successBounce 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  display:      block;
  line-height:  1;
}

@keyframes successBounce {
  0% {
    transform: scale(0);
    opacity:   0;
  }
  60% {
    transform: scale(1.2);
    opacity:   1;
  }
  100% {
    transform: scale(1);
    opacity:   1;
  }
}

.activate-footer {
  text-align:  center;
  margin-top:  1.5rem;
  font-size:   0.85rem;
  color:       var(--text-muted);
}

.activate-footer a {
  color: var(--accent);
  text-decoration: none;
}

.activate-footer a:hover {
  text-decoration: underline;
}

/* ----------------------------------------------------------
   Contact Page
   ---------------------------------------------------------- */
.contact-main {
  padding: 120px 1.5rem 3rem;
}

.contact-wrap {
  max-width:             900px;
  margin:                0 auto;
  display:               grid;
  grid-template-columns: 2fr 1fr;
  gap:                   2rem;
  align-items:           start;
}

.contact-card {
  padding:       2.5rem;
  border-radius: 20px;
}

.contact-header {
  margin-bottom: 2rem;
}

.contact-icon {
  width:           64px;
  height:          64px;
  margin:          0 auto 1rem;
  background:      rgba(0, 194, 255, 0.1);
  border-radius:   16px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  color:           #00C2FF;
  font-size:       1.8rem;
}

.contact-info {
  display:        flex;
  flex-direction: column;
  gap:            1rem;
}

.info-card {
  padding:       1.2rem;
  border-radius: 14px;
  display:       flex;
  gap:           1rem;
  align-items:   flex-start;
}

.info-card i {
  color:      #FF6B00;
  font-size:  1.1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.info-card h4 {
  font-size:     0.9rem;
  font-weight:   600;
  margin-bottom: 0.25rem;
}

.info-card p {
  font-size:   0.82rem;
  color:       var(--text-muted);
  line-height: 1.5;
}

/* ----------------------------------------------------------
   Site Footer
   ---------------------------------------------------------- */
.site-footer {
  background:   rgba(0, 0, 0, 0.3);
  border-top:   1px solid rgba(255, 255, 255, 0.06);
  padding:      2rem 1.5rem;
}

.footer-inner {
  max-width:    1100px;
  margin:       0 auto;
  display:      flex;
  align-items:  center;
  gap:          2rem;
  flex-wrap:    wrap;
}

.footer-brand {
  display:     flex;
  align-items: center;
  gap:         0.5rem;
  font-weight: 700;
  color:       var(--text-muted);
}

.footer-brand i {
  color: #FF6B00;
}

.footer-nav {
  display:   flex;
  gap:       1.5rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color:           var(--text-muted);
  text-decoration: none;
  font-size:       0.85rem;
  transition:      color 0.2s ease;
}

.footer-nav a:hover {
  color: #FF6B00;
}

.footer-copy {
  margin-left: auto;
  font-size:   0.82rem;
  color:       rgba(240, 240, 240, 0.3);
}

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

@media (max-width: 768px) {
  .header-inner {
    padding: 0.75rem 1rem;
  }

  .header-nav {
    gap: 1rem;
  }

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

  .steps-row {
    flex-direction: column;
    align-items:    center;
  }

  .step-arrow {
    transform: rotate(90deg);
    margin-top: 0;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
    align-items:    stretch;
  }

  .hero-cta .btn {
    justify-content: center;
  }

  .footer-copy {
    margin-left: 0;
  }

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

@media (max-width: 480px) {
  .activate-card,
  .contact-card {
    padding: 1.5rem;
  }

  .activate-card h1 {
    font-size: 1.5rem;
  }
}
