@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

:root {
  --bg-dark: #0a0a0a;
  --bg-darker: #000000;
  --text-primary: #f0f0f0;
  --text-secondary: #a0a0a0;
  --accent: #00ff9d;
  --accent-blue: #0066ff;
}

[data-theme="light"] {
  --bg-dark: #ffffff;
  --bg-darker: #f0f0f0;
  --text-primary: #0a0a0a;
  --text-secondary: #4a4a4a;
}

.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  cursor: pointer;
  font-size: 24px;
  background: var(--glass);
  padding: 10px;
  border-radius: 50%;
  transition: all 0.3s ease;
}



.feature {
  transform-style: preserve-3d;
  transition: transform 0.5s;
}

.feature:hover {
  transform: translateZ(20px) rotateX(10deg);
}



/* Enhanced animations and effects */
.feature:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 255, 157, 0.2);
  animation: pulse 2s infinite;
}

.button:active {
  transform: scale(0.95);
}

.code-snippet {
  background: linear-gradient(45deg, rgba(0,255,157,0.1), rgba(0,102,255,0.1));
  background-size: 200% 200%;
  animation: gradient 15s ease infinite;
}

.hero h1 {
  animation: float 6s ease-in-out infinite;
}

.terminal-background div {
  background: linear-gradient(90deg, transparent, rgba(0,255,157,0.1), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

/* Glass morphism effects */
.feature, .doc-section, .api-section {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 157, 0.2);
  background: rgba(10, 10, 10, 0.5);
}

/* Interactive elements */
button, .feature, .code-snippet {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive improvements */
@media (max-width: 768px) {
  .install-banner {
      flex-direction: column;
      align-items: center;
  }

  .install-command {
      width: 100%;
      justify-content: center;
  }
}

  --glass: rgba(255, 255, 255, 0.05);
  --gradient: linear-gradient(135deg, var(--accent), var(--accent-blue));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Fira Code', monospace;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

.cursor {
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  mix-blend-mode: difference;
  z-index: 999;
  transition: transform 0.2s;
}

.cursor-trail {
  width: 40px;
  height: 40px;
  background: rgba(0, 255, 157, 0.2);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 998;
  transition: all 0.3s ease;
}

.terminal-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
  z-index: -1;
  overflow: hidden;
  font-family: 'Fira Code', monospace;
  font-size: 16px;
  background: var(--bg-darker);
  backdrop-filter: blur(2px);
}

.terminal-background div {
  text-shadow: 0 0 8px var(--accent);
  transition: all 0.8s ease;
  letter-spacing: 1px;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(0, 255, 157, 0.05);
  margin: 2px;
  white-space: nowrap;
  transform: translateX(0);
}

.terminal-background div:hover {
  background: rgba(0, 255, 157, 0.1);
  transform: translateX(10px);
}

header.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}



h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, var(--accent), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.buttons {
  margin-top: 2rem;
}

button {
  background: var(--glass);
  color: var(--accent);
  border: 1px solid rgba(0, 255, 157, 0.3);
  padding: 0.8rem 1.5rem;
  margin: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  border-radius: 6px;
  backdrop-filter: blur(5px);
  text-shadow: 0 0 10px var(--accent);
}

button:hover {
  background: var(--gradient);
  color: var(--bg-darker);
  text-shadow: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 255, 157, 0.3);
}

button:hover {
  background: var(--accent);
  color: var(--bg-darker);
}

section {
  padding: 4rem 2rem;
  margin: 2rem 0;
}

.api-section {
  background: rgba(0, 0, 0, 0.3);
  text-align: center;
  padding: 2rem;
}

#waitlist-container {
  max-width: 600px;
  margin: 2rem auto;
}

#waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

#waitlist-form input,
#waitlist-form textarea {
  padding: 1rem;
  background: var(--glass);
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: inherit;
}

#waitlist-form textarea {
  min-height: 100px;
  resize: vertical;
}

#form-status {
  margin-top: 1rem;
  color: var(--accent);
}

.coming-soon {
  color: var(--accent);
  font-style: italic;
  font-size: 1.2rem;
  animation: glow 2s ease-in-out infinite alternate;
  text-shadow: 0 0 10px var(--accent);
  margin-top: 1rem;
}

@keyframes glow {
  from {
      text-shadow: 0 0 10px var(--accent);
  }
  to {
      text-shadow: 0 0 20px var(--accent), 0 0 30px var(--accent-blue);
  }
}

.api-button {
  background: var(--glass);
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 1rem 2rem;
  font-size: 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  box-shadow: 0 0 15px rgba(0, 255, 157, 0.2);
}

.api-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(0, 255, 157, 0.4);
  background: var(--gradient);
  color: var(--bg-darker);
  border-color: transparent;
}

.tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tab {
  background: transparent;
}

.tab.active {
  background: var(--accent);
  color: var(--bg-darker);
}

.code-block {
  display: none;
  background: var(--bg-darker);
  padding: 1rem;
  border-radius: 4px;
  margin: 1rem 0;
}

.code-block.active {
  display: block;
}

pre {
  overflow-x: auto;
}

code {
  color: var(--accent);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-status {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--glass);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--accent);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  animation: fadeIn 0.3s ease-out;
  text-align: center;
}

.feature-status.show {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -60%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

.feature {
  background: var(--bg-darker);
  padding: 1.5rem;
  border-radius: 4px;
  border: 1px solid var(--accent);
}

footer {
  text-align: center;
  padding: 2rem;
  background: var(--bg-darker);
}

.social-links {
  margin-bottom: 1rem;
}

.social-links a {
  color: var(--text-secondary);
  margin: 0 1rem;
  text-decoration: none;
}

.tab-container {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.doc-tab {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--text-secondary);
}

.doc-tab.active {
  background: var(--accent);
  color: var(--bg-darker);
  border-color: var(--accent);
}

.doc-content {
  display: none;
}

.doc-content.active {
  display: block;
}

.doc-section {
  margin-bottom: 3rem;
  animation: fadeIn 0.5s ease-out;
}

.doc-section h3 {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.code-snippet {
  background: var(--glass);
  padding: 1.2rem;
  border-radius: 8px;
  margin: 1rem 0;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.3s ease;
}

.code-snippet:before {
  content: '📋 Tap to copy';
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  color: var(--accent);
  font-size: 0.8rem;
  opacity: 0.8;
}

.code-snippet:hover {
  border-color: var(--accent);
}

.code-snippet.copied:before {
  content: '✅ Copied!';
}

.code-snippet pre {
  margin: 0;
}

.social-links a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.3s;
}

.social-links a:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  h1 {
      font-size: 2rem;
  }

  .feature-grid {
      grid-template-columns: 1fr;
  }

  .tab-container {
      flex-direction: column;
  }

  .buttons {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;
  }

  button {
      width: 90%;
      margin: 0.5rem 0;
  }

  .code-block, .code-snippet {
      font-size: 14px;
      padding: 0.8rem;
      overflow-x: auto;
  }

  .roadmap-item {
      padding: 1.5rem;
      margin: 1rem 0;
  }

  section {
      padding: 2rem 1rem;
  }

  .hero {
      padding: 1rem;
      min-height: 70vh;
  }
}

@media (max-width: 480px) {
  h1 {
      font-size: 1.5rem;
  }

  .buttons button {
      width: 100%;
  }

  .code-block, .code-snippet {
      font-size: 12px;
  }

  .roadmap-date {
      font-size: 1rem;
  }

  .roadmap-content h3 {
      font-size: 1.2rem;
  }

  .social-links {
      display: flex;
      flex-direction: column;
      gap: 1rem;
  }

  .social-links a {
      margin: 0;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .feature-grid {
      grid-template-columns: repeat(2, 1fr);
  }

  .code-block, .code-snippet {
      font-size: 15px;
  }
}

/* Smart Contracts Styles */
.smart-contracts {
  padding: 2rem;
  margin: 2rem 0;
}

.contract-interface {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.contract-deploy, .contract-interact {
  background: var(--glass);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--accent);
}

.contract-interface textarea {
  width: 100%;
  min-height: 200px;
  background: var(--bg-darker);
  border: 1px solid var(--accent);
  color: var(--text-primary);
  padding: 1rem;
  margin: 1rem 0;
  font-family: 'Fira Code', monospace;
}

.contract-interface input {
  width: 100%;
  padding: 0.8rem;
  margin: 0.5rem 0;
  background: var(--bg-darker);
  border: 1px solid var(--accent);
  color: var(--text-primary);
}

.contract-response {
  grid-column: 1 / -1;
  background: var(--bg-darker);
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
  min-height: 100px;
  white-space: pre-wrap;
  font-family: 'Fira Code', monospace;
}

@media (max-width: 768px) {
  .contract-interface {
      grid-template-columns: 1fr;
  }
}

/*Roadmap Styles*/
.roadmap-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.roadmap-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--accent);
  padding: 2rem;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.roadmap-item:hover {
  transform: translateX(10px);
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.2);
}

.roadmap-date {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.roadmap-content h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.roadmap-content ul {
  list-style: none;
  padding: 0;
}

.roadmap-content li {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.roadmap-content li:before {
  content: "▸";
  color: var(--accent);
  position: absolute;
  left: 0;
}

section#roadmap {
  padding: 4rem 2rem;
  margin: 2rem 0;
}

section#roadmap .roadmap-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

section#roadmap h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, var(--accent), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}