/* ==========================================================================
   AXIS.TO - EXACT VISUAL REPLICA STYLESHEET
   Aesthetics: Pure Clean White (#ffffff), Periwinkle Blue Grid Pattern (#5b82c2),
               Geist Typography, Crisp Black Pill Buttons, Institutional Minimalism
   ========================================================================== */

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

:root {
  --bg-white: #ffffff;
  --bg-blue-grid: #5b82c2;
  --bg-blue-tile: #4e74b3;

  --text-black: #141414;
  --text-muted: #666666;
  --text-light-muted: #8f8f8f;

  --accent-green: #10b981;
  --accent-green-bg: #e6f4ea;

  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', monospace;

  --border-light: rgba(0, 0, 0, 0.08);
  --border-dark: #141414;

  --radius-pill: 9999px;
  --radius-card: 16px;
  --radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-white);
  color: var(--text-black);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
}

.mono-text { font-family: var(--font-mono); }

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-black);
}

.brand-svg {
  height: 26px;
  width: auto;
}

.chain-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 12px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-item {
  color: var(--text-black);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.nav-item:hover {
  opacity: 0.7;
}

.btn-black-pill {
  background: var(--text-black);
  color: var(--bg-white);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-black-pill:hover {
  background: #333333;
  transform: translateY(-1px);
}

.btn-outline-pill {
  background: transparent;
  color: var(--text-black);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid var(--text-black);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-outline-pill:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* HERO SECTION - Split Layout */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 80px);
}

/* Left Side - Pure White */
.hero-left {
  background: var(--bg-white);
  padding: 80px 60px 60px 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-main-title {
  font-size: 4.2rem;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-black);
  margin-bottom: 24px;
}

.hero-sub-text {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 36px;
  line-height: 1.5;
}

.backed-section {
  margin-top: 60px;
}

.backed-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.backed-logos-row {
  display: flex;
  align-items: center;
  gap: 36px;
}

.backed-logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-black);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Right Side - Periwinkle Blue Grid Canvas with Halftone Asterisks */
.hero-right-grid {
  background-color: var(--bg-blue-grid);
  position: relative;
  overflow: hidden;
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mouse Tracking Spotlight Glow Overlay */
.grid-spotlight-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.22), transparent 40%);
  transition: opacity 0.3s ease;
}

/* SVG Halftone Grid Background Overlay */
.grid-pattern-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.45;
  pointer-events: none;
}

/* Stack Stat Card - Crisp White with 3D Tilt Effect */
.stat-card-white {
  position: relative;
  z-index: 2;
  background: var(--bg-white);
  border-radius: var(--radius-card);
  padding: 36px 36px 28px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  transform-style: preserve-3d;
  transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
  will-change: transform;
}

.stat-card-white:hover {
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.22);
}

/* Button Shimmer Effect */
.btn-black-pill {
  position: relative;
  overflow: hidden;
}

.btn-black-pill::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: rotate(30deg) translateX(-100%);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-black-pill:hover::after {
  transform: rotate(30deg) translateX(100%);
}

/* Floating & Rotating Star Animation */
@keyframes floatSpin {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(90deg); }
  100% { transform: translateY(0) rotate(180deg); }
}

.axis-star-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  animation: floatSpin 12s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  display: block;
}

/* Scroll Reveal Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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


.stat-card-header {
  margin-bottom: 28px;
}

.axis-star-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
}

.stat-number-huge {
  font-size: 4.2rem;
  font-weight: 500;
  line-height: 1;
  color: var(--text-black);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.stat-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-black);
}

.green-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  display: inline-block;
}

.stat-sub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

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

.sub-stat-val {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-black);
  letter-spacing: -0.02em;
}

.sub-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* SECTIONS - ABOUT & DAPP */
.section-white {
  padding: 100px 80px;
  max-width: 1360px;
  margin: 0 auto;
}

.section-tag {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bg-blue-grid);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-heading {
  font-size: 2.8rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 780px;
}

/* Interactive dApp Section */
.dapp-card-white {
  background: var(--bg-white);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.dapp-tabs-row {
  display: flex;
  gap: 8px;
  background: #f4f4f5;
  padding: 4px;
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
  width: fit-content;
}

.dapp-tab {
  padding: 8px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dapp-tab.active {
  background: var(--text-black);
  color: var(--bg-white);
}

.input-container {
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.amount-input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-black);
  font-family: var(--font-mono);
  width: 100%;
}

.preset-btns {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.preset-btn {
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--bg-white);
  border: 1px solid #e5e7eb;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-black);
  cursor: pointer;
}

.preset-btn:hover {
  border-color: var(--text-black);
}

/* Footer */
.site-footer-white {
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  padding: 60px 80px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1360px;
  margin: 0 auto;
}

.footer-nav {
  display: flex;
  gap: 28px;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

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

/* Modals & Toasts */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.toast-msg {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  background: var(--text-black);
  color: var(--bg-white);
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-split {
    grid-template-columns: 1fr;
  }
  .hero-left {
    padding: 60px 30px;
  }
  .hero-right-grid {
    padding: 40px 20px;
  }
  .hero-main-title {
    font-size: 3rem;
  }
  .navbar {
    padding: 0 24px;
  }
  .nav-menu {
    display: none;
  }
}
