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

/* Brand Variables */
:root {
  /* Color Palette - Desaturated Faded Purple Theme */
  --bg-app: #0a0915;
  --bg-app-rgb: 10, 9, 21;
  --bg-card: #121024;
  --bg-card-rgb: 18, 16, 36;
  --bg-panel: #1b1732;
  --border-color: rgba(178, 152, 220, 0.08);
  --border-glow: rgba(128, 98, 214, 0.15);
  
  --text-main: #f8fafc;
  --text-muted: #9fa4c4;
  --text-dim: #6c708c;
  
  /* Accent Purples */
  --accent: #b298dc;
  --accent-rgb: 178, 152, 220;
  --accent-secondary: #8062d6;
  --accent-secondary-rgb: 128, 98, 214;
  --accent-gradient: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  
  /* System colors */
  --success: #10b981;
  --danger: #ef4444;
  
  /* Typography */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Widget default styling properties */
  --w-bg: #131221;
  --w-accent: #b298dc;
  --w-radius: 16px;
  --w-text: #ffffff;
  --w-text-muted: #9fa4c4;
  --w-border: rgba(178, 152, 220, 0.08);
}

/* Reset & Basics */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  color: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Animations */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.05); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass {
  background: rgba(var(--bg-card-rgb), 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(var(--accent-secondary-rgb), 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(var(--accent-secondary-rgb), 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  background: rgba(var(--bg-app-rgb), 0.85);
  backdrop-filter: blur(16px);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo svg {
  width: 32px;
  height: 32px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  font-family: var(--font-sans);
}

nav a:hover {
  color: #ffffff;
}

/* Background Glowing Blobs */
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  z-index: -1;
  opacity: 0.2;
  animation: pulseGlow 10s infinite ease-in-out;
}

.blob-1 {
  top: 5%;
  left: 15%;
  width: 450px;
  height: 450px;
  background: var(--accent);
}

.blob-2 {
  top: 50%;
  right: 5%;
  width: 450px;
  height: 450px;
  background: var(--accent-secondary);
  animation-delay: -5s;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 10rem 0 6rem;
  text-align: center;
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

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

/* Section Common */
.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Features Section */
.features {
  padding: 6rem 0;
  border-top: 1px solid var(--border-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(178, 152, 220, 0.2);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(128, 98, 214, 0.1);
  border: 1px solid rgba(128, 98, 214, 0.2);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

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

/* Tutorial Section */
.tutorial {
  padding: 6rem 0;
  border-top: 1px solid var(--border-color);
  background: linear-gradient(180deg, rgba(var(--bg-app-rgb), 0) 0%, rgba(128, 98, 214, 0.02) 100%);
}

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

.tutorial-card {
  padding: 2.5rem;
  border-radius: 20px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tutorial-step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.tutorial-step-num {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
}

.tutorial-step-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.tutorial-step-content {
  color: var(--text-muted);
  font-size: 1.05rem;
  flex: 1;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.tutorial-step-content ul {
  list-style-type: none;
  margin-top: 1rem;
}

.tutorial-step-content li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.tutorial-step-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
}

.tutorial-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.tutorial-bullets {
  display: flex;
  gap: 0.5rem;
}

.tutorial-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.3s;
}

.tutorial-bullet.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* Swap Page Section (Blurred out coming soon) */
.swap-preview-section {
  padding: 6rem 0;
  border-top: 1px solid var(--border-color);
}

.swap-preview-wrapper {
  max-width: 440px;
  margin: 2rem auto 0;
}

.blurred-container {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}

.coming-soon-blur {
  filter: blur(15px) grayscale(40%);
  pointer-events: none;
  opacity: 0.45;
  user-select: none;
}

.coming-soon-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(13, 11, 26, 0.92);
  border: 1.5px solid var(--accent);
  padding: 2rem;
  border-radius: 20px;
  z-index: 15;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  width: 85%;
}

.coming-soon-badge h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.coming-soon-badge p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Embedded Swap Widget for preview (styled) */
.swap-widget {
  width: 100%;
  background: var(--w-bg);
  border-radius: var(--w-radius);
  border: 1px solid var(--w-border);
  padding: 1.25rem;
  color: var(--w-text);
  font-family: var(--font-body);
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.token-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin-bottom: 0.5rem;
}

.token-card-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--w-text-muted);
  margin-bottom: 0.5rem;
}

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

.token-input {
  background: transparent;
  border: none;
  color: var(--w-text);
  font-size: 1.6rem;
  font-weight: 600;
  width: 50%;
  outline: none;
}

.token-select-trigger {
  background: rgba(255, 255, 255, 0.07);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  color: var(--w-text);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.token-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  background: #3b82f6;
}

.swap-arrow-container {
  display: flex;
  justify-content: center;
  margin: -0.75rem 0 -0.25rem;
  position: relative;
  z-index: 2;
}

.swap-arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--w-bg);
  border: 1px solid var(--w-border);
  color: var(--w-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-widget-action {
  width: 100%;
  background: var(--w-accent);
  color: #ffffff;
  font-weight: 700;
  padding: 0.9rem;
  border-radius: 12px;
  border: none;
  font-size: 1rem;
  margin-top: 1rem;
}

/* Early Access Form */
.cta-banner {
  padding: 6rem 0;
  text-align: center;
  position: relative;
  border-top: 1px solid var(--border-color);
}

.cta-banner h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 2rem;
}

.email-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.4rem;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
}

.email-form input[type="email"] {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0 1.25rem;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  background: #05040a;
}

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

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

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

.footer-links a:hover {
  color: #ffffff;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(15, 17, 26, 0.95);
  border: 1px solid var(--accent);
  color: #ffffff;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 1000;
  transition: opacity 0.4s;
}



/* Base L2 Badge Styles */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 82, 255, 0.08);
  border: 1px solid rgba(0, 82, 255, 0.25);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  color: #e2e8f0;
  margin-bottom: 1.5rem;
  font-family: var(--font-sans);
}

.base-badge-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Brand Logo Image */
.logo-img {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--accent);
}

/* AI Strategy Desk Section */
.ai-section {
  padding: 6rem 0;
  border-top: 1px solid var(--border-color);
  background: linear-gradient(180deg, rgba(var(--bg-app-rgb), 0) 0%, rgba(128, 98, 214, 0.03) 100%);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 3.5rem;
  align-items: stretch;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card {
  padding: 2.5rem;
  border-radius: 24px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-card.premium {
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(178, 152, 220, 0.08);
}

.pricing-card.premium::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  font-family: var(--font-sans);
}

.price-title {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.price-amt {
  font-family: var(--font-sans);
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  color: #ffffff;
}

.price-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.price-features-list {
  list-style-type: none;
  text-align: left;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.price-features-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 1.5rem;
  position: relative;
}

.price-features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Footer Tagline */
.footer-tagline {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  width: 100%;
}

