:root {
  --bg: #ffffff;
  --bg-secondary: #f8f8f8;
  --text: #000000;
  --text-muted: #666666;
  --border: rgba(0, 0, 0, 0.08);
  --accent: #000000;
}

[data-theme="dark"] {
  --bg: #000000;
  --bg-secondary: #0a0a0a;
  --text: #ffffff;
  --text-muted: #999999;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #ffffff;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
}

a, button {
  cursor: none;
}

#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

#cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--text);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.1s ease;
}

#cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--text);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}

#cursor-ring.hovering {
  width: 52px;
  height: 52px;
  border-color: var(--text);
  opacity: 0.6;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .navbar.scrolled {
  background: rgba(0, 0, 0, 0.8);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
}

.navbar-logo img {
  width: 28px;
  height: 28px;
}

.navbar-links {
  display: flex;
  gap: 32px;
}

.navbar-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.navbar-links a:hover {
  color: var(--text);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ctrl-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.ctrl-btn:hover {
  background: var(--text);
  color: var(--bg);
}

.ctrl-btn svg {
  width: 18px;
  height: 18px;
}

.navbar-cta {
  padding: 10px 20px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.navbar-cta:hover {
  opacity: 0.85;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 40px 80px;
  position: relative;
  z-index: 1;
}

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

.hero-logo {
  margin-bottom: 32px;
}

.hero-logo img {
  width: 120px;
  height: 120px;
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.02);
  }
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.typing-text {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  color: var(--text);
  font-weight: 600;
  display: inline-block;
  min-width: 3ch;
  position: relative;
}

.typing-text::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text);
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 14px 32px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.features {
  padding: 100px 40px;
  position: relative;
  z-index: 1;
}

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px;
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .feature-card {
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .feature-card:hover {
  box-shadow: 0 16px 32px rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--text);
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.quickstart {
  padding: 100px 40px;
  background: var(--bg-secondary);
  position: relative;
  z-index: 1;
}

.quickstart-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.quickstart-card {
  padding: 32px;
  border: 1px solid var(--border);
  background: var(--bg);
  position: relative;
  transition: transform 0.3s ease;
}

.quickstart-card:hover {
  transform: translateY(-4px);
}

.quickstart-number {
  position: absolute;
  top: -12px;
  left: 24px;
  width: 32px;
  height: 32px;
  background: var(--text);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.quickstart-content h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  margin-top: 8px;
}

.quickstart-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.usecases {
  padding: 100px 40px;
  position: relative;
  z-index: 1;
}

.usecases-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.usecase-card {
  padding: 28px;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: transform 0.3s ease;
}

.usecase-card:hover {
  transform: translateY(-8px) perspective(800px) rotateX(2deg) rotateY(-2deg);
}

.usecase-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.usecase-icon {
  font-size: 24px;
}

.usecase-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.usecase-chat {
  margin-bottom: 16px;
}

.chat-bubble {
  padding: 12px 16px;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.chat-bubble.user {
  background: var(--bg-secondary);
  border-left: 3px solid var(--text);
}

.chat-bubble.ai {
  background: var(--text);
  color: var(--bg);
}

.usecase-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.install-section {
  padding: 100px 40px;
  background: var(--bg-secondary);
  position: relative;
  z-index: 1;
}

.install-container {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.install-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.install-desc {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.install-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.install-tab {
  padding: 14px 24px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color 0.2s;
  font-family: inherit;
}

.install-tab:hover {
  color: var(--text);
}

.install-tab.active {
  color: var(--text);
}

.install-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--text);
}

.install-tab.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.install-tab.disabled:hover {
  color: var(--text-muted);
}

.install-tab .badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  background: var(--text-muted);
  color: var(--bg);
  border-radius: 4px;
  vertical-align: middle;
}

.install-tab .badge-recommended {
  background: #22c55e;
}

.install-panel {
  display: none;
}

.install-panel.active {
  display: block;
}

.install-steps {
  text-align: left;
}

.install-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.install-step:last-child {
  border-bottom: none;
}

.install-step .install-number {
  width: 32px;
  height: 32px;
  background: var(--text);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.install-step-content {
  flex: 1;
}

.install-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 15px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.install-link:hover {
  opacity: 0.7;
}

.install-note {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-muted);
}

.install-code-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  text-align: left;
}

.install-code-block code {
  flex: 1;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 12px;
  word-break: break-all;
}

.copy-btn {
  padding: 8px 16px;
  background: var(--text);
  color: var(--bg);
  border: none;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.copy-btn:hover {
  opacity: 0.85;
}

.copy-btn.copied {
  background: #22c55e;
}

.install-hint {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.bookmarklet-hint {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.bookmarklet-drag-area {
  display: flex;
  justify-content: center;
  padding: 32px 0;
  margin-bottom: 24px;
  border: 2px dashed var(--border);
  background: var(--bg);
}

.bookmarklet-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  cursor: grab;
  transition: transform 0.2s, box-shadow 0.2s;
}

.bookmarklet-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .bookmarklet-btn:hover {
  box-shadow: 0 8px 16px rgba(255, 255, 255, 0.1);
}

.bookmarklet-btn:active {
  cursor: grabbing;
}

.bookmarklet-steps {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.install-hint-text {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer {
  padding: 60px 40px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}

.footer-logo {
  width: 28px;
  height: 28px;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-copyright {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.7;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (max-width: 900px) {
  .features-grid,
  .usecases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .quickstart-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar-container {
    padding: 0 20px;
  }
  
  .navbar-links {
    display: none;
  }
  
  .hero {
    padding: 100px 20px 60px;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary {
    width: 100%;
    justify-content: center;
  }
  
  .features,
  .quickstart,
  .usecases,
  .install-section {
    padding: 60px 20px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .features-grid,
  .usecases-grid {
    grid-template-columns: 1fr;
  }
  
  .install-tabs {
    flex-direction: column;
    align-items: center;
    border-bottom: none;
    gap: 0;
  }
  
  .install-tab {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }
  
  .install-tab.active::after {
    display: none;
  }
  
  .install-tab.active {
    border-bottom: 2px solid var(--text);
  }
  
  .install-step {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .install-code-block {
    flex-direction: column;
    align-items: stretch;
  }
  
  .copy-btn {
    align-self: flex-end;
  }
  
  .footer-container {
    text-align: center;
  }
  
  .footer-left {
    align-items: center;
  }
  
  #cursor-dot,
  #cursor-ring {
    display: none;
  }
  
  body {
    cursor: auto;
  }
  
  a, button {
    cursor: pointer;
  }
}
