:root {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
}

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

.container {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: "Monaco", "Courier New", monospace;
  background: linear-gradient(to right, #fff, #e0e7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav a:hover {
  opacity: 0.8;
}

.nav-icon {
  width: 20px;
  height: 20px;
}

.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem 4rem;
}

.hero {
  text-align: center;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.scene {
  width: 100%;
  height: 100%;
  perspective: 1000px;
}

.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateCube 20s infinite linear;
}

@keyframes rotateCube {
  0% {
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
  }
}

.cube-face {
  position: absolute;
  width: 500px;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 150px;
  font-weight: 700;
  color: rgba(97, 218, 251, 0.6);
  border: 2px solid rgba(97, 218, 251, 0.3);
  background: rgba(97, 218, 251, 0.05);
  backdrop-filter: blur(10px);
}

.cube-face.front {
  transform: translateZ(250px);
}

.cube-face.back {
  transform: rotateY(180deg) translateZ(250px);
}

.cube-face.right {
  transform: rotateY(90deg) translateZ(250px);
}

.cube-face.left {
  transform: rotateY(-90deg) translateZ(250px);
}

.cube-face.top {
  transform: rotateX(90deg) translateZ(250px);
}

.cube-face.bottom {
  transform: rotateX(-90deg) translateZ(250px);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  margin-top: -222px;
}

.highlight {
  background: linear-gradient(to right, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  opacity: 0.95;
  line-height: 1.6;
}

.badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.install {
  margin: 4rem 0;
}

.install h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.code-block {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

.code-block code {
  font-family: "Monaco", "Courier New", monospace;
  font-size: 1.125rem;
  color: #fbbf24;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.example {
  margin: 4rem 0;
}

.example h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.code-example {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  overflow-x: auto;
  font-family: "Monaco", "Courier New", monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e0e7ff;
}

.code-example code {
  display: block;
  white-space: pre;
}

.code-example .keyword {
  color: #c792ea;
  font-weight: 600;
}

.code-example .variable {
  color: #82aaff;
}

.code-example .function {
  color: #82aaff;
  font-style: italic;
}

.code-example .string {
  color: #c3e88d;
}

.code-example .comment {
  color: #697098;
  font-style: italic;
}

.code-example .tag {
  color: #f07178;
}

.code-example .attr {
  color: #c792ea;
}

.code-example .property {
  color: #89ddff;
}

.code-example .template {
  color: #c3e88d;
}

.demo {
  margin: 4rem 0;
}

.demo h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.demo-subtitle {
  text-align: center;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.demo-container {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.demo-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.endpoint-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.endpoint-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-family: "Monaco", "Courier New", monospace;
  font-size: 0.9rem;
  transition: all 0.2s;
  text-align: left;
}

.endpoint-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(4px);
}

.endpoint-btn.active {
  background: rgba(97, 218, 251, 0.2);
  border-color: rgba(97, 218, 251, 0.4);
  font-weight: 600;
}

.endpoint-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.endpoint-btn:disabled:hover {
  transform: none;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-group label {
  font-size: 0.875rem;
  opacity: 0.9;
}

.user-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: "Monaco", "Courier New", monospace;
}

.user-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.user-input:focus {
  outline: none;
  border-color: rgba(97, 218, 251, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

.hint {
  font-size: 0.75rem;
  opacity: 0.7;
  font-style: italic;
  margin-top: -0.25rem;
}

.token-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background: rgba(72, 187, 120, 0.1);
  border: 1px solid rgba(72, 187, 120, 0.3);
  border-radius: 0.5rem;
}

.token-label {
  font-size: 0.875rem;
  color: #9ae6b4;
  font-weight: 600;
}

.logout-btn {
  background: rgba(245, 101, 101, 0.2);
  border: 1px solid rgba(245, 101, 101, 0.4);
  color: #fc8181;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
}

.logout-btn:hover {
  background: rgba(245, 101, 101, 0.3);
}

.send-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: #fff;
  padding: 0.875rem 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
}

.send-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.send-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.demo-response {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.response-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.status-badge {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: "Monaco", "Courier New", monospace;
}

.status-badge.success {
  background: rgba(72, 187, 120, 0.2);
  color: #9ae6b4;
  border: 1px solid rgba(72, 187, 120, 0.4);
}

.status-badge.error {
  background: rgba(245, 101, 101, 0.2);
  color: #fc8181;
  border: 1px solid rgba(245, 101, 101, 0.4);
}

.response-body {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  padding: 1.5rem;
  overflow-x: auto;
  font-family: "Monaco", "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #c3e88d;
  margin: 0;
}

.features {
  margin: 4rem 0;
}

.features h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

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

.feature-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  transition: transform 0.2s, background 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.15);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  color: #61dafb;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  opacity: 0.9;
  line-height: 1.6;
}

.footer {
  text-align: center;
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 4rem;
}

.footer p {
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.footer-links {
  font-size: 0.875rem;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 0.7;
}

.tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.tab {
  background: none;
  border: none;
  color: #fff;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0.6;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.tab:hover {
  opacity: 0.8;
}

.tab.active {
  opacity: 1;
  border-bottom-color: #60a5fa;
}

.example-content {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.highlight-box {
  background: rgba(96, 165, 250, 0.2);
  border-left: 4px solid #60a5fa;
  padding: 1rem;
  margin-top: 1.5rem;
  border-radius: 0.5rem;
  line-height: 1.6;
}

.examples {
  margin: 3rem 0;
}

.examples h2 {
  margin-bottom: 2rem;
}

.example-content h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #60a5fa;
}

/* Responsive Styles */
@media (max-width: 968px) {
  .demo-container {
    grid-template-columns: 1fr;
  }

  .header {
    padding: 1.5rem 2rem;
  }

  .main {
    padding: 0 2rem 3rem;
  }

  .hero {
    padding: 3rem 0;
  }

  .hero-background {
    width: 400px;
    height: 400px;
  }

  .title {
    font-size: 3rem;
  }

  .subtitle {
    font-size: 1.25rem;
  }

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

  .feature-card {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    text-align: center;
  }

  .nav {
    flex-direction: row;
    gap: 1.5rem;
    justify-content: center;
  }

  .main {
    padding: 0 1rem 2rem;
  }

  .hero {
    padding: 2rem 0;
  }

  .hero-background {
    width: 300px;
    height: 300px;
    opacity: 0.05;
  }

  .title {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .subtitle {
    font-size: 1.125rem;
    padding: 0 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .badges {
    gap: 0.5rem;
  }

  .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }

  .features h2 {
    font-size: 1.75rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feature-card {
    padding: 1.25rem;
  }

  .feature-icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  .code-block {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
  }

  .copy-btn {
    align-self: flex-end;
  }

  .tabs {
    flex-direction: column;
    gap: 0.5rem;
    border-bottom: none;
  }

  .tab {
    padding: 0.75rem 1rem;
    border-bottom: none;
    border-left: 3px solid transparent;
    text-align: left;
  }

  .tab.active {
    border-bottom-color: transparent;
    border-left-color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
  }

  pre {
    font-size: 0.875rem;
    padding: 1rem;
  }

  .code-example {
    padding: 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 1.25rem;
  }

  .nav {
    gap: 1rem;
  }

  .nav a {
    font-size: 0.875rem;
  }

  .nav-icon {
    width: 16px;
    height: 16px;
  }

  .hero-background {
    width: 250px;
    height: 250px;
    opacity: 0.04;
  }

  .title {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .btn {
    font-size: 0.875rem;
    padding: 0.625rem 1rem;
  }

  .install h2 {
    font-size: 1.5rem;
  }

  .features h2 {
    font-size: 1.5rem;
  }

  .feature-card h3 {
    font-size: 1.125rem;
  }

  .feature-card p {
    font-size: 0.9rem;
  }

  .example-content h3 {
    font-size: 1.125rem;
  }

  .highlight-box {
    padding: 0.75rem;
    font-size: 0.875rem;
  }

  .code-block code {
    font-size: 0.875rem;
  }

  .code-example {
    font-size: 0.8rem;
    padding: 0.75rem;
  }
}
