/* ============================================================
   USDT Landing Page - Professional Financial Style
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* Primary Colors - Deep Blue-Gray + Silver White */
  --bg-primary: #0f1629;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.5);
  --bg-card-hover: rgba(17, 24, 39, 0.65);

  /* Accent Colors - Ice Blue + Silver White */
  --accent-primary: #60a5fa;
  --accent-secondary: #93c5fd;
  --accent-glow: rgba(96, 165, 250, 0.15);
  --accent-success: #34d399;

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Border */
  --border-subtle: rgba(148, 163, 184, 0.1);
  --border-light: rgba(148, 163, 184, 0.2);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Font */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

/* ---------- Background Layer ---------- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bg-layer__image {
  position: absolute;
  inset: 0;
  background: url('/assets/bg-full.jpeg') center/cover no-repeat;
  opacity: 0.7;
  transition: transform 20s ease-out;
}

.bg-layer__image:hover {
  transform: scale(1.02);
}

.bg-layer__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(96, 165, 250, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, rgba(10, 15, 26, 0.15) 0%, rgba(10, 15, 26, 0.35) 100%);
}

/* ---------- Page Wrapper ---------- */
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

/* ---------- Card Container ---------- */
.card-container {
  width: 100%;
  max-width: 640px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

/* ---------- Header ---------- */
.card-header {
  margin-bottom: var(--space-lg);
}

.top-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 14px;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-secondary);
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xl);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.stat-value--live {
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-success);
  border-radius: 50%;
  animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0); }
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border-light);
}

/* ---------- Hero Section ---------- */
.hero-section {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.hero-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.hero-title .highlight {
  color: var(--accent-primary);
  font-weight: 700;
}

.hero-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ---------- Countdown Section ---------- */
.countdown-section {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.countdown-ring {
  position: relative;
  width: 160px;
  height: 160px;
}

.countdown-ring__svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.countdown-ring__bg {
  fill: none;
  stroke: var(--border-subtle);
  stroke-width: 4;
}

.countdown-ring__progress {
  fill: none;
  stroke: var(--accent-primary);
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
}

.countdown-ring__progress--done {
  stroke: var(--accent-success);
}

.countdown-ring__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.countdown-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.countdown-label--done {
  color: var(--accent-success);
  font-weight: 500;
}

.countdown-digit {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1;
  animation: breathe 2s ease-in-out infinite;
}

.countdown-done {
  font-size: 2.5rem;
  color: var(--accent-success);
  animation: none;
}

@keyframes breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.countdown-status {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.countdown-status-active {
  color: var(--accent-success);
}

/* ---------- Claim Section ---------- */
.claim-section {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.claim-btn {
  display: block;
  width: 100%;
  padding: var(--space-md) var(--space-xl);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--text-muted);
  background: rgba(100, 116, 139, 0.15);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: not-allowed;
  transition: all 0.3s ease;
  letter-spacing: 0.01em;
}

.claim-btn--active {
  color: var(--bg-primary);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-color: transparent;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(96, 165, 250, 0.3);
}

.claim-btn--active:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(96, 165, 250, 0.4);
}

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

.claim-hint {
  margin-top: var(--space-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---------- Live Feed ---------- */
.live-feed {
  margin-bottom: var(--space-xl);
  padding: var(--space-md);
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.live-feed__header {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.live-feed__dot {
  width: 6px;
  height: 6px;
  background: var(--accent-success);
  border-radius: 50%;
  animation: livePulse 1.5s ease-in-out infinite;
}

.live-feed__title {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.live-feed__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 140px;
  overflow: hidden;
}

.feed-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.8rem;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.5);
  border-radius: var(--radius-sm);
  animation: feedSlideIn 0.4s ease-out;
}

@keyframes feedSlideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.feed-item__name {
  color: var(--accent-secondary);
  font-weight: 500;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.feed-item__action {
  color: var(--text-muted);
}

.feed-item__amount {
  color: var(--accent-success);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* ---------- Trust Section ---------- */
.trust-section {
  margin-bottom: var(--space-xl);
  padding: var(--space-lg);
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.trust-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.trust-content {
  margin-bottom: var(--space-lg);
}

.trust-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.trust-content p:last-child {
  margin-bottom: 0;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.15);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--accent-secondary);
}

.trust-badge__icon {
  font-size: 0.85rem;
}

/* ---------- Promo Section ---------- */
.promo-section {
  margin-bottom: var(--space-xl);
}

.promo-heading {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.promo-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.promo-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-1px);
}

.promo-card-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.promo-card-body {
  flex: 1;
  min-width: 0;
}

.promo-card-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.promo-card-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.promo-card-arrow {
  font-size: 1.2rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.promo-card:hover .promo-card-arrow {
  transform: translateX(3px);
  color: var(--accent-primary);
}

/* ---------- Footer ---------- */
.footer-section {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
}

.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-logo-sep {
  color: var(--border-light);
}

.footer-text {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-disclaimer {
  font-size: 0.65rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  background: rgba(10, 15, 26, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay--visible {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-container--visible {
  transform: translateY(0) scale(1);
}

.modal-glow {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  border-radius: 2px;
}

.modal-content {
  animation: modalFadeIn 0.3s ease;
}

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

.modal-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.modal-icon--small {
  font-size: 2rem;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.modal-amount {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.modal-amount--small {
  font-size: 1.75rem;
}

.modal-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.modal-desc--highlight {
  color: var(--text-primary);
}

.modal-desc--highlight strong {
  color: var(--accent-primary);
}

.modal-btn {
  display: block;
  width: 100%;
  padding: var(--space-md);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--bg-primary);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: var(--space-sm);
}

.modal-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(96, 165, 250, 0.3);
}

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

.modal-close {
  display: block;
  width: 100%;
  padding: var(--space-sm);
  font-size: 0.85rem;
  font-family: var(--font-sans);
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  color: var(--text-secondary);
  border-color: var(--border-light);
}

/* Wallet Input */
.wallet-input-wrap {
  margin-bottom: var(--space-sm);
}

.wallet-input {
  width: 100%;
  padding: var(--space-md);
  font-size: 0.9rem;
  font-family: var(--font-mono);
  color: var(--text-primary);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

.wallet-input::placeholder {
  color: var(--text-muted);
}

.wallet-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.wallet-error {
  display: none;
  font-size: 0.8rem;
  color: #ef4444;
  margin-bottom: var(--space-sm);
  text-align: left;
}

/* Success Info */
.success-info {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  text-align: left;
}

.success-info__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.success-info__row + .success-info__row {
  border-top: 1px solid var(--border-subtle);
}

.success-info__label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.success-info__value {
  font-size: 0.8rem;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-weight: 500;
}

.success-info__value--addr {
  font-size: 0.75rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .page-wrapper {
    padding: var(--space-sm);
    align-items: flex-start;
    padding-top: var(--space-md);
  }

  .card-container {
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
  }

  .hero-title {
    font-size: 1.25rem;
  }

  .stats-bar {
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
  }

  .stat-value {
    font-size: 1.1rem;
  }

  .countdown-ring {
    width: 140px;
    height: 140px;
  }

  .countdown-digit {
    font-size: 2.5rem;
  }

  .modal-container {
    padding: var(--space-lg);
  }

  .modal-amount {
    font-size: 2rem;
  }

  .trust-badges {
    gap: 6px;
  }

  .trust-badge {
    font-size: 0.7rem;
    padding: 5px 10px;
  }
}

@media (min-width: 768px) {
  .page-wrapper {
    padding: var(--space-xl);
  }

  .hero-title {
    font-size: 1.75rem;
  }
}

@media (min-width: 1200px) {
  .card-container {
    max-width: 680px;
  }
}

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