:root {
  /* Colors */
  --color-deep-space: #0a0e20;
  --color-electric-purple: #6e56ff;
  --color-cyber-blue: #3b82f6;
  --color-trust-gold: #f59e0b;
  --color-soft-gray: #94a3b8;
  --color-pure-white: #ffffff;
  --color-success-green: #10b981;
  --color-warning-amber: #f59e0b;
  --color-error-red: #ef4444;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

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

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.25);

  /* Transitions */
  --transition-fast: 200ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--color-deep-space);
  color: var(--color-pure-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Canvas Background */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.5;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

p {
  color: var(--color-soft-gray);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-electric-purple);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

/* Button text visibility */
.mobile-text {
  display: none;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--color-electric-purple),
    var(--color-cyber-blue)
  );
  color: var(--color-pure-white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(110, 86, 255, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-pure-white);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--color-soft-gray);
  padding: var(--space-2) var(--space-4);
}

.btn-ghost:hover {
  color: var(--color-pure-white);
  background: rgba(255, 255, 255, 0.05);
}

.btn-large {
  padding: var(--space-4) var(--space-8);
  font-size: 1.125rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition-base);
}

.header.scrolled {
  background: rgba(10, 14, 39, 0.8);
  backdrop-filter: blur(20px);
}

.nav {
  padding: var(--space-6) 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-pure-white);
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-8);
}

.nav-links a {
  color: var(--color-soft-gray);
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.wallet-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-pure-white);
  transition: all var(--transition-fast);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: rgba(10, 14, 39, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-6);
  transform: translateY(-100%);
  transition: transform var(--transition-base);
}

.mobile-menu.active {
  transform: translateY(0);
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu li {
  padding: var(--space-3) 0;
}

.mobile-menu a {
  color: var(--color-soft-gray);
  font-size: 1.125rem;
  font-weight: 500;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--space-24) 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-content {
  max-width: 600px;
}

.hero-title {
  margin-bottom: var(--space-6);
  animation: fadeInUp 1s ease-out;
}

.gradient-text {
  background: linear-gradient(
    135deg,
    var(--color-electric-purple),
    var(--color-cyber-blue)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: var(--space-10);
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  margin-bottom: var(--space-10);
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

.trust-indicators {
  display: flex;
  gap: var(--space-8);
  justify-content: center;
  animation: fadeInUp 1s ease-out 0.6s backwards;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-soft-gray);
  font-size: 0.875rem;
}

.trust-item svg {
  color: var(--color-success-green);
}

/* Hero Visuals */
.hero-visuals {
  position: relative;
  height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-wrapper {
  position: relative;
  width: 350px;
  animation: fadeInUp 1s ease-out 0.8s backwards,
    float 6s ease-in-out infinite 1.8s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.phone-image {
  width: 100%;
  height: auto;
}

.phone-gradient {
  position: absolute;
  bottom: -2px;
  left: -10px;
  right: -10px;
  height: 200px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--color-deep-space) 100%
  );
  pointer-events: none;
}

/* Features Section */
.features {
  padding: var(--space-24) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: 1.25rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(110, 86, 255, 0.3);
  box-shadow: 0 20px 40px rgba(110, 86, 255, 0.15);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(
    135deg,
    var(--color-electric-purple),
    var(--color-cyber-blue)
  );
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
}

.feature-icon svg {
  color: var(--color-pure-white);
}

.feature-card h3 {
  margin-bottom: var(--space-3);
}

.feature-card p {
  margin-bottom: var(--space-4);
  line-height: 1.8;
}

.feature-link {
  color: var(--color-electric-purple);
  font-weight: 500;
}

/* Security Section */
.security {
  padding: var(--space-24) 0;
}

.security-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.security-text h2 {
  margin-bottom: var(--space-6);
}

.security-description {
  font-size: 1.25rem;
  margin-bottom: var(--space-8);
}

.security-list {
  list-style: none;
}

.security-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.security-list svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.security-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  max-width: 400px;
  margin: 0 auto;
}

.security-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-8);
}

.security-badge {
  background: rgba(16, 185, 129, 0.2);
  color: var(--color-success-green);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
}

.security-status {
  color: var(--color-success-green);
  animation: pulse 2s infinite;
}

.vault-icon {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-8);
}

.security-stats {
  display: flex;
  justify-content: space-around;
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-soft-gray);
}

/* Opportunity Section */
.opportunity {
  padding: var(--space-24) 0;
  text-align: center;
}

.opportunity .section-header h3 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-soft-gray);
  margin-bottom: var(--space-6);
}

.highlight-text {
  font-size: 1.25rem;
  color: var(--color-electric-purple);
  margin-top: var(--space-8);
}

/* What Is Section */
.what-is {
  padding: var(--space-24) 0;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.what-is .section-header h3 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-soft-gray);
  margin-bottom: var(--space-8);
}

.what-is-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.what-is-content p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

/* Why Preserve Section */
.why-preserve {
  padding: var(--space-24) 0;
}

.why-preserve .section-header h3 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-soft-gray);
  margin-bottom: var(--space-8);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.why-card {
  text-align: center;
  padding: var(--space-8);
}

.why-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-icon svg {
  color: var(--color-electric-purple);
}

.why-card h3 {
  margin-bottom: var(--space-4);
  font-size: 1.25rem;
}

.why-card p {
  line-height: 1.8;
}

/* Compliance Section */
.compliance {
  padding: var(--space-24) 0;
  background: linear-gradient(
    135deg,
    rgba(110, 86, 255, 0.05),
    rgba(59, 130, 246, 0.05)
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.compliance-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.compliance-content h2 {
  margin-bottom: var(--space-6);
}

.compliance-description {
  font-size: 1.25rem;
  margin-bottom: var(--space-6);
  line-height: 1.8;
}

.compliance-highlight {
  font-size: 1.5rem;
  color: var(--color-electric-purple);
}

/* CTA Section */
.cta {
  padding: var(--space-24) 0;
}

.cta-content {
  background: linear-gradient(
    135deg,
    rgba(110, 86, 255, 0.1),
    rgba(59, 130, 246, 0.1)
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-16);
  text-align: center;
  backdrop-filter: blur(10px);
}

.cta-content h2 {
  margin-bottom: var(--space-2);
}

.cta-content h3 {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: var(--space-6);
}

.cta-content p {
  font-size: 1.25rem;
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
}

/* Footer */
.footer {
  padding: var(--space-16) 0 var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--space-16);
  margin-bottom: var(--space-16);
}

.footer-brand .logo {
  margin-bottom: var(--space-4);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.footer-column h4 {
  margin-bottom: var(--space-4);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-soft-gray);
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: var(--space-2);
}

.footer-column a {
  color: var(--color-soft-gray);
  font-size: 0.875rem;
}

.footer-bottom {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  padding-top: var(--space-8);
  font-size: 0.875rem;
  color: var(--color-soft-gray);
}

.footer-legal {
  display: flex;
  gap: var(--space-6);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
  }

  .hero-visuals {
    height: 500px;
    margin-top: var(--space-8);
  }

  .phone-wrapper {
    width: 250px;
  }
}

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

  .wallet-btn {
    display: none;
  }

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

  .mobile-menu {
    display: block;
  }

  .hero {
    padding-top: var(--space-24);
  }

  .hero-title {
    margin-top: var(--space-12);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .trust-indicators {
    flex-wrap: wrap;
    gap: var(--space-4);
  }

  .hero-visuals {
    height: 400px;
  }

  .phone-wrapper {
    width: 200px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .security-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .security-visual {
    order: -1;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .step-connector {
    display: none;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  /* Show mobile text and hide desktop text on mobile */
  .desktop-text {
    display: none;
  }

  .mobile-text {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
