/* ============================================
   GoodGuys Exchange Landing Page Styles
   ============================================ */

/* CSS Variables */
:root {
  --color-bg: #0a1628;
  --color-bg-light: #111d32;
  --color-bg-card: #0f1d35;
  --color-accent: #d4af37;
  --color-accent-hover: #e5c158;
  --color-text: #ffffff;
  --color-text-muted: #8a9bb8;
  --color-border: rgba(212, 175, 55, 0.2);
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --shadow-glow: 0 0 30px rgba(212, 175, 55, 0.15);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

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

@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 48px;
  }
}

/* Typography */
.text-accent {
  color: var(--color-accent);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1rem;
}

/* Pulse animation for CTA */
.btn--pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(212, 175, 55, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  }
}

/* ============================================
   Header
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-normal);
  background: transparent;
}

.header--scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 1.25rem;
  font-weight: 700;
  z-index: 1001;
}

.logo__text {
  color: var(--color-text);
}

.logo__accent {
  color: var(--color-accent);
}

.nav__menu {
  display: none;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-normal);
}

.nav__link:hover {
  color: var(--color-text);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__cta {
  display: none;
}

/* Mobile menu toggle */
.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: all var(--transition-normal);
  transform-origin: center;
}

.nav__toggle--active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle--active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle--active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.nav__menu--active {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 22, 40, 0.98);
  backdrop-filter: blur(20px);
  padding: 100px 24px 40px;
  gap: 24px;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.nav__menu--active .nav__link {
  font-size: 1.5rem;
  color: var(--color-text);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (min-width: 768px) {
  .nav__menu {
    display: flex;
  }
  .nav__cta {
    display: inline-flex;
  }
  .nav__toggle {
    display: none;
  }
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 40%);
  z-index: 0;
}

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

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-muted);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 60px;
}

.hero__stats {
  display: flex;
  gap: 48px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat__number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.2;
}

.stat__label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero__scroll span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  position: relative;
}

.hero__scroll span::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 2px;
  animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
  0% {
    opacity: 1;
    top: 8px;
  }
  100% {
    opacity: 0;
    top: 24px;
  }
}

.hidden-mobile {
  display: none;
}

@media (min-width: 768px) {
  .hidden-mobile {
    display: inline;
  }
}

/* ============================================
   Section Base
   ============================================ */

.section {
  padding: 80px 0;
}

.section--dark {
  background-color: var(--color-bg-light);
}

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

.section__label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
}

/* ============================================
   Services Section
   ============================================ */

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background-color: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 40px 32px;
  transition: all var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-border);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.service-card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 12px;
  margin-bottom: 24px;
}

.service-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-card__text {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-card__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-card__list li {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  padding-left: 20px;
  position: relative;
}

.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: 50%;
}

/* ============================================
   Advantages Section
   ============================================ */

.advantages__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .advantages__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.advantage {
  padding: 32px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  transition: all var(--transition-normal);
}

.advantage:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--color-border);
}

.advantage__number {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.advantage__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.advantage__text {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ============================================
   How It Works Section
   ============================================ */

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

.step {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.step:last-child {
  border-bottom: none;
}

.step__number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-bg);
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 12px;
}

.step__content {
  flex: 1;
}

.step__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step__text {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ============================================
   Guarantees Section
   ============================================ */

.guarantees__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .guarantees__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.guarantee {
  text-align: center;
  padding: 40px 32px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  transition: all var(--transition-normal);
}

.guarantee:hover {
  transform: translateY(-4px);
  border-color: var(--color-border);
  box-shadow: var(--shadow-card);
}

.guarantee__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  margin-bottom: 24px;
}

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

.guarantee__text {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ============================================
   Contacts Section
   ============================================ */

.contacts__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .contacts__content {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contacts__text {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contacts__channels {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: all var(--transition-normal);
}

.contact-channel:hover {
  border-color: var(--color-border);
  transform: translateX(4px);
  box-shadow: var(--shadow-card);
}

.contact-channel__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--color-text);
}

.contact-channel__icon--telegram {
  background: rgba(34, 158, 217, 0.15);
  color: #229ed9;
}

.contact-channel__icon--whatsapp {
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
}

.contact-channel__icon--email {
  background: rgba(212, 175, 55, 0.15);
  color: var(--color-accent);
}

.contact-channel__info {
  display: flex;
  flex-direction: column;
}

.contact-channel__name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.contact-channel__value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.contacts__hours {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* CTA Card */
.cta-card {
  background: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  position: sticky;
  top: 120px;
}

.cta-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-card__text {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background-color: var(--color-bg-light);
  padding: 60px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .footer__content {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer__brand .logo {
  margin-bottom: 16px;
}

.footer__description {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--color-text);
}

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

.footer__links a {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-accent);
}

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer__copyright,
.footer__legal {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ============================================
   Animations & Scroll Reveal
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

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

/* Scroll reveal (managed by JS) */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
