/* ============================================
   InstaSwap Landing Page — Styles
   ============================================ */

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

/* Variables */
:root {
  --purple: #915dfd;
  --purple-dark: #7B4FE0;
  --purple-light: #A87FFD;
  --purple-glow: rgba(145, 93, 253, 0.2);
  --gold: #F5C542;
  --gold-light: #FFD76E;

  --bg: #08080D;
  --bg-surface: #111118;
  --bg-card: #16161F;
  --bg-card-hover: #1C1C28;

  --border: #1E1E2D;
  --border-light: #2A2A3D;

  --text: #F5F5F7;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 999px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1100px;
}

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

html {
  font-family: var(--font);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(8, 8, 13, 0.85);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: var(--purple);
  color: white;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--purple-dark);
  transform: translateY(-1px);
}

.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-menu-btn span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-menu-btn.open span:nth-child(2) { opacity: 0; }
.nav-menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(8, 8, 13, 0.97);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-menu.open { display: flex; }

.mobile-menu-link {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.mobile-menu-link:hover { color: var(--text); }

.mobile-menu-cta {
  font-size: 18px;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: var(--radius-full);
  background: var(--purple);
  color: white;
}

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

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

.hero-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  pointer-events: none;
}

.hero-bg-glow-1 {
  width: 500px;
  height: 500px;
  background: var(--purple);
  top: -100px;
  left: -100px;
  opacity: 0.15;
}

.hero-bg-glow-2 {
  width: 400px;
  height: 400px;
  background: var(--gold);
  bottom: -50px;
  right: -50px;
  opacity: 0.08;
}

.hero-bg-glow-3 {
  width: 300px;
  height: 300px;
  background: var(--purple-light);
  top: 40%;
  left: 50%;
  opacity: 0.06;
}

.hero-content {
  max-width: 540px;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(145, 93, 253, 0.1);
  border: 1px solid rgba(145, 93, 253, 0.25);
  font-size: 13px;
  font-weight: 500;
  color: var(--purple-light);
  margin-bottom: 28px;
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(168, 127, 253, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(168, 127, 253, 0); }
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

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

.hero-desc {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 0;
  align-items: center;
}

.hero-stat {
  text-align: center;
  padding: 0 28px;
}

.hero-stat:first-child { padding-left: 0; }

.hero-stat-value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

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

.hero-visual {
  z-index: 1;
  flex-shrink: 0;
}

/* Phone Mockup */
.phone-mockup {
  width: 280px;
  height: 520px;
  border-radius: 36px;
  background: var(--bg-surface);
  border: 2px solid var(--border);
  padding: 20px 16px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 60px var(--purple-glow);
  position: relative;
  overflow: hidden;
}

.phone-screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
}

.mock-title {
  font-size: 20px;
  font-weight: 700;
}

.mock-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--gold));
}

.mock-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--border);
}

.mock-label {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 10px;
}

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

.mock-token {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
}

.mock-token-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-block;
  object-fit: cover;
}

.mock-amount {
  font-size: 22px;
  font-weight: 700;
}

.mock-amount-green { color: #34D399; }

.mock-arrow {
  display: flex;
  justify-content: center;
  margin: -6px 0;
}

.mock-arrow svg {
  color: var(--purple-light);
  transform: rotate(90deg);
}

.mock-btn {
  margin-top: auto;
  background: var(--purple);
  color: white;
  text-align: center;
  padding: 14px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 16px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--purple);
  color: white;
  box-shadow: 0 4px 20px rgba(145, 93, 253, 0.3);
}

.btn-primary:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(145, 93, 253, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--purple);
  transform: translateY(-2px);
}

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

/* ============================================
   Sections
   ============================================ */

.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

/* ============================================
   Features
   ============================================ */

.features {
  padding: 100px 0;
}

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

.feature-card {
  padding: 32px 28px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: rgba(145, 93, 253, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(145, 93, 253, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--purple-light);
}

.feature-icon-gold { background: rgba(245, 197, 66, 0.12); color: var(--gold); }
.feature-icon-teal { background: rgba(52, 211, 153, 0.12); color: #34D399; }
.feature-icon-pink { background: rgba(236, 72, 153, 0.12); color: #EC4899; }
.feature-icon-orange { background: rgba(251, 146, 60, 0.12); color: #FB923C; }
.feature-icon-green { background: rgba(34, 197, 94, 0.12); color: #22C55E; }

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ============================================
   Tokens
   ============================================ */

.tokens {
  padding: 80px 0;
}

.tokens-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.token-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s;
}

.token-pill:hover {
  border-color: var(--purple);
  transform: translateY(-2px);
}

.token-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-block;
  object-fit: cover;
}

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

.how-it-works {
  padding: 100px 0;
}

.steps {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--purple);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 0 20px var(--purple-glow);
}

.step-connector {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--purple), transparent);
  margin-left: 23px;
}

.step-content { padding-top: 4px; }

.step-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ============================================
   CTA
   ============================================ */

.cta {
  padding: 80px 0 100px;
}

.cta-card {
  text-align: center;
  padding: 72px 40px;
  background: var(--bg-card);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: var(--purple);
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.1;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.cta-logo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  margin: 0 auto 24px;
}

.cta-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.cta-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

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

.footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand { max-width: 340px; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-logo-img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
}

.footer-logo-text {
  font-size: 18px;
  font-weight: 700;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-link {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-link {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-bottom-link:hover { color: var(--text-secondary); }

/* ============================================
   Animations
   ============================================ */

[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
    gap: 48px;
  }

  .hero-content { max-width: 100%; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-title { font-size: 42px; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-top { flex-direction: column; gap: 32px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }

  .hero-title { font-size: 34px; }
  .hero-stat { padding: 0 16px; }
  .section-title { font-size: 28px; }

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

  .phone-mockup { width: 240px; height: 440px; }

  .cta-card { padding: 48px 24px; }
  .cta-title { font-size: 26px; }

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