/* ========================================
   TOKEN WORLD — Landing Page Styles
   ======================================== */

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

:root {
  --bg: #0a0a0b;
  --bg-card: #111113;
  --bg-elevated: #1a1a1e;
  --border: #2a2a2e;
  --text: #e4e4e7;
  --text-muted: #8b8b94;
  --text-dim: #5c5c66;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --green: #22c55e;
  --green-glow: rgba(34, 197, 94, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   Navigation
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

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

.logo-icon {
  font-size: 1.4rem;
  color: var(--accent);
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

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

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

.mobile-menu span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: var(--transition);
}

/* ========================================
   Language Selector v2
   ======================================== */
.lang-select {
  position: relative;
}

.lang-select-dropdown {
  appearance: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 32px 6px 12px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='%238b8b94' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.lang-select-dropdown:hover {
  border-color: var(--text-muted);
}

.lang-select-dropdown:focus {
  outline: none;
  border-color: var(--accent);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: #fff;
  box-shadow: 0 0 24px var(--accent-glow);
}

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

.btn-outline:hover {
  border-color: var(--text-muted);
  color: var(--text);
  background: var(--bg-elevated);
}

.btn-nav {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* ========================================
   Hero
   ======================================== */
.hero {
  padding: 160px 0 100px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--green-glow);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-light), #a78bfa, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}

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

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ========================================
   Sections
   ======================================== */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 48px;
  font-size: 1.05rem;
}

/* ========================================
   Features
   ======================================== */
.features {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

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

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

.feature-card:hover {
  border-color: var(--text-dim);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

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

/* ========================================
   Pricing
   ======================================== */
.pricing {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.pricing-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.pricing-price {
  margin-bottom: 8px;
}

.price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text);
}

.price-unit {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-note {
  font-size: 0.8rem;
  color: var(--green);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 24px;
  flex: 1;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: "✓ ";
  color: var(--green);
  font-weight: 700;
}

.pricing-footer {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ========================================
   Pricing Table (v2)
   ======================================== */
.pricing-table-wrap {
  overflow-x: auto;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.pricing-table thead {
  background: var(--bg-elevated);
}

.pricing-table th,
.pricing-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.pricing-table th {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.pricing-table tbody tr:hover {
  background: var(--bg-card);
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-table td:last-child {
  color: var(--green);
  font-weight: 600;
}

.highlight-row {
  background: var(--bg-card);
}

.pricing-billing {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.pricing .pricing-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ========================================
   How It Works
   ======================================== */
.how-it-works {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.step {
  text-align: center;
}

.step-num {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

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

/* ========================================
   Use Cases
   ======================================== */
.use-cases {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.use-case-card {
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: all var(--transition);
}

.use-case-card:hover {
  border-color: var(--text-dim);
  transform: translateY(-2px);
}

.use-case-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.use-case-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

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

/* ========================================
   Comparison Table
   ======================================== */
.comparison {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.comparison-table-wrap {
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.comparison-table thead {
  background: var(--bg-elevated);
}

.comparison-table th,
.comparison-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.highlight-col {
  background: var(--bg-card);
  color: var(--green);
}

/* ========================================
   FAQ
   ======================================== */
.faq {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

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

.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.faq-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ========================================
   CTA / Contact Form
   ======================================== */
.cta {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

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

.cta > .container > p {
  color: var(--text-muted);
  margin-bottom: 40px;
}

.cta-form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.cta-form input,
.cta-form select,
.cta-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color var(--transition);
}

.cta-form input::placeholder,
.cta-form textarea::placeholder {
  color: var(--text-dim);
}

.cta-form input:focus,
.cta-form select:focus,
.cta-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.cta-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238b8b94' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.cta-form select option {
  background: var(--bg-card);
}

.cta-form textarea {
  margin-bottom: 12px;
  resize: vertical;
  min-height: 100px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  padding: 64px 0 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  padding-bottom: 40px;
}

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

.footer-brand .logo-icon,
.footer-brand .logo-text {
  display: inline;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 12px;
}

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

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-col a {
  display: block;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu {
    display: flex;
  }

  .hero {
    padding: 120px 0 64px;
  }

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

  .hero-stats {
    gap: 32px;
  }

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

  .features-grid,
  .use-cases-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 40px;
  }

  .footer-links {
    gap: 40px;
  }
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge,
.hero-title,
.hero-subtitle,
.hero-cta,
.hero-stats {
  animation: fadeUp 0.6s ease forwards;
}

.hero-title { animation-delay: 0.1s; }
.hero-subtitle { animation-delay: 0.2s; }
.hero-cta { animation-delay: 0.3s; }
.hero-stats { animation-delay: 0.4s; }

/* Nav API capsule button - gradient with pulse */
.nav-api-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed, #a855f7, #7c3aed);
  background-size: 200% 200%;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  animation: apiGrad 3s ease infinite, apiPulse 2s ease-in-out infinite;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-api-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}
@keyframes apiGrad {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes apiPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4); }
  50% { box-shadow: 0 0 12px 4px rgba(124, 58, 237, 0.25); }
}

/* Hero API button - purple outline */
.hero-api-btn {
  border-color: #a855f7 !important;
  color: #a855f7 !important;
}
.hero-api-btn:hover {
  background: rgba(168, 85, 247, 0.1) !important;
  border-color: #c084fc !important;
  color: #c084fc !important;
}
