:root {
  --bg: #0f172a;
  --surface: #1e293b;
  --surface-hover: #334155;
  --primary: #818cf8;
  --primary-glow: rgba(129, 140, 248, 0.5);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --border: #334155;
  --cursor: #818cf8;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

p {
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  transition: all 0.3s ease;
  padding: 1.5rem 0;
  background: transparent;
}

header.scrolled {
  padding: 1rem 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--primary);
}

.logo-img {
  width: 200px;
  height: 32px;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text);
  margin: 5px 0;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.btn {
  background: var(--text);
  color: var(--bg);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px var(--primary-glow);
  background: var(--primary);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
  color: var(--text);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 4rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.hero-visual {
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%) perspective(1000px) rotateY(-10deg);
  width: 60%;
  height: 70vh;
  background: var(--surface);
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  opacity: 0;
  animation: slideIn 1s ease-out 0.5s forwards;
}

/* Editor Simulation */
.editor-mockup {
  padding: 3rem;
  font-family: "Inter", sans-serif;
}

.editor-line {
  height: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  width: 100%;
  animation: pulse 2s infinite;
}

.editor-title {
  height: 3rem;
  width: 60%;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.typing-text::after {
  content: "|";
  color: var(--cursor);
  animation: blink 1s step-end infinite;
}

/* Features Grid */
.features {
  padding: 8rem 0;
  position: relative;
}

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

.card {
  background: var(--surface);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    800px circle at var(--mouse-x) var(--mouse-y),
    rgba(255, 255, 255, 0.06),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.5s;
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  padding: 1rem;
  background: rgba(129, 140, 248, 0.1);
  border-radius: 0.75rem;
  color: var(--primary);
}

/* Interactive Demo Section */
.demo-section {
  padding: 8rem 0;
  text-align: center;
  background: linear-gradient(to bottom, var(--bg), #0b101e);
}

.slash-command-demo {
  display: inline-block;
  background: var(--surface);
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  font-family: monospace;
  font-size: 1.25rem;
  margin: 2rem 0;
  position: relative;
}

.slash-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  margin-top: 0.5rem;
  text-align: left;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  
  /* Changed from display:none to visibility/opacity to reserve space */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.slash-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-item {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  color: var(--text-muted);
}

.menu-item:hover,
.menu-item.active {
  background: var(--primary);
  color: white;
}

/* Animations */
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-50%) perspective(1000px) rotateY(-10deg)
      translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) perspective(1000px) rotateY(-10deg)
      translateX(0);
  }
}

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

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

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 {
  transition-delay: 100ms;
}
.stagger-2 {
  transition-delay: 200ms;
}
.stagger-3 {
  transition-delay: 300ms;
}
.stagger-4 {
  transition-delay: 400ms;
}
.stagger-5 {
  transition-delay: 500ms;
}
.stagger-6 {
  transition-delay: 600ms;
}

/* Background Grid */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
}

/* Graph Animation */
.graph-section {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.graph-visual {
  position: relative;
  height: 400px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.node {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--primary);
  z-index: 2;
}

.node-1 {
  top: 20%;
  left: 20%;
  animation: float 4s ease-in-out infinite;
}
.node-2 {
  top: 60%;
  left: 30%;
  animation: float 5s ease-in-out infinite 1s;
}
.node-3 {
  top: 40%;
  left: 70%;
  animation: float 4.5s ease-in-out infinite 0.5s;
}
.node-4 {
  top: 80%;
  left: 60%;
  animation: float 5.5s ease-in-out infinite 1.5s;
}

.line {
  position: absolute;
  background: linear-gradient(90deg, var(--primary), transparent);
  height: 1px;
  transform-origin: left center;
  opacity: 0.3;
  z-index: 1;
}

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

/* Note Grid Visual */
.note-grid-visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  perspective: 1000px;
}

.note-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.note-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--primary);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.note-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary),
    0 10px 20px -5px rgba(129, 140, 248, 0.2);
}

.note-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s;
}

.note-card:hover::before {
  opacity: 1;
}

.note-header {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* Reduced gap */
  justify-content: flex-start; /* Ensure left alignment */
}

.note-icon {
  font-size: 1.25rem;
  display: flex; /* Ensure SVG aligns properly */
  align-items: center;
}

.note-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  text-align: left; /* Ensure text aligns left */
}

.note-preview {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.preview-line {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.note-footer {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: auto;
}

/* Staggered animation for grid items */
.note-card:nth-child(1) {
  animation: fadeUp 0.5s ease-out 0s backwards;
}
.note-card:nth-child(2) {
  animation: fadeUp 0.5s ease-out 0.1s backwards;
}
.note-card:nth-child(3) {
  animation: fadeUp 0.5s ease-out 0.2s backwards;
}
.note-card:nth-child(4) {
  animation: fadeUp 0.5s ease-out 0.3s backwards;
}
.note-card:nth-child(5) {
  animation: fadeUp 0.5s ease-out 0.4s backwards;
}
.note-card:nth-child(6) {
  animation: fadeUp 0.5s ease-out 0.5s backwards;
}

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

/* Installation Box */
.install-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
}

.install-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.5;
}

.install-header {
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.traffic-lights {
  display: flex;
  gap: 0.5rem;
}

.light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.light.red {
  background: #ef4444;
}
.light.yellow {
  background: #f59e0b;
}
.light.green {
  background: #10b981;
}

.version-badge {
  background: rgba(129, 140, 248, 0.1);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(129, 140, 248, 0.2);
}

.install-content {
  padding: 3rem;
  text-align: center;
}

.platform-selector {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.5rem;
  border-radius: 0.75rem;
  display: inline-flex;
}

.platform-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.platform-btn.active {
  background: var(--surface-hover);
  color: var(--text);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.platform-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
  animation: slideDown 0.3s ease-out;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--primary);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
  text-align: left;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px var(--primary-glow);
}

.download-btn.secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.download-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
  color: var(--text);
}

.btn-text {
  display: flex;
  flex-direction: column;
}

.primary-text {
  font-weight: 600;
  font-size: 1.125rem;
}

.sub-text {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Utility Classes */
.nav-icon {
  height: 32px;
  width: 32px;
}

.nav-logo-custom {
  height: 32px;
}

.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.hero-description {
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 0.875rem;
  margin-top: 1rem;
  opacity: 0.7;
}

.w-80 {
  width: 80%;
}
.w-90 {
  width: 90%;
}
.w-70 {
  width: 70%;
}
.w-85 {
  width: 85%;
}

.w-40-highlight {
  width: 40%;
  background: rgba(129, 140, 248, 0.2);
}

.section-title-center {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle-center {
  text-align: center;
  margin-bottom: 4rem;
}

.flex-container-center {
  display: flex;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.flex-container-reverse {
  display: flex;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap-reverse;
}

.flex-item {
  flex: 1;
  min-width: 300px;
}

.section-title-large {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.graph-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.download-section {
  padding: 8rem 0;
}

.install-subtitle {
  margin-bottom: 0;
}

.hidden {
  display: none;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0;
  margin-top: 4rem;
}

.footer-content {
  text-align: center;
  color: var(--text-muted);
}

/* Enhanced Hero Visual */
.window-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
}

.mockup-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mockup-heading {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mockup-text {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.mockup-text strong {
  color: var(--text);
  font-weight: 600;
}

.mockup-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
}

.mockup-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid var(--text-muted);
  border-radius: 4px;
  position: relative;
}

.mockup-checkbox.checked {
  background: var(--primary);
  border-color: var(--primary);
}

.mockup-checkbox.checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  color: white;
}

.mockup-code {
  background: #0b101e;
  padding: 1rem;
  border-radius: 0.5rem;
  font-family: monospace;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  margin: 0.5rem 0;
}

.code-line {
  display: block;
}
.c-k {
  color: #c678dd;
} /* Keyword */
.c-f {
  color: #61afef;
} /* Function */
.c-s {
  color: #98c379;
} /* String */
.c-c {
  color: #5c6370;
} /* Comment */

.mockup-cursor-line {
  display: flex;
  align-items: center;
  position: relative;
}

.mockup-slash-menu {
  position: absolute;
  top: 100%;
  left: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 180px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  z-index: 10;
  animation: slideDown 0.2s ease-out;
}

.mockup-menu-item {
  padding: 8px 12px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.mockup-menu-item.active {
  background: var(--primary);
  color: white;
}

/* Keyboard First Section */
.keyboard-section {
  padding: 8rem 0;
  background: linear-gradient(to bottom, var(--bg), #0b101e);
  position: relative;
  overflow: hidden;
}

.keyboard-card-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 4rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.keyboard-text {
  margin-bottom: 3rem;
}

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

.shortcut-item {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s;
}

.shortcut-item:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.key-combo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.key {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-family: monospace;
  font-weight: bold;
  color: var(--text);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
  min-width: 2rem;
  text-align: center;
}

.plus {
  color: var(--text-muted);
  font-weight: bold;
}

.shortcut-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Rich Content Bento Grid */
.rich-content-section {
  padding: 8rem 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 300px);
  gap: 1.5rem;
  margin-top: 4rem;
}

.bento-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.bento-item:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.bento-large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-wide {
  grid-column: span 2;
}

.bento-tall {
  grid-row: span 2;
}

.bento-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.bento-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.bento-visual {
  flex: 1;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 1rem;
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

/* Enhanced Footer */
.enhanced-footer {
  background: #050914;
  border-top: 1px solid var(--border);
  padding: 6rem 0 2rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 300px;
}

.footer-col h4 {
  color: var(--text);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.social-icon:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .bento-large,
  .bento-wide,
  .bento-tall {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 300px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.close-modal {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

.close-modal:hover {
  color: var(--text);
}

.modal-body {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-full {
  width: 100%;
  justify-content: center;
  cursor: pointer;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  .container {
    padding: 1rem 1.5rem;
  }

  /* Header & Nav */
  header {
    padding: 1rem 0;
  }

  nav {
    flex-direction: row; /* Keep row for logo and burger */
    justify-content: space-between;
    align-items: center;
  }

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

  .nav-actions {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.3s ease-out;
  }

  .nav-actions.active {
    display: flex;
  }

  .nav-actions .btn {
    width: 100%;
    text-align: center;
  }

  /* Hero Section */
  .hero {
    flex-direction: column;
    padding-top: 8rem;
    text-align: center;
    height: auto;
    min-height: auto;
    padding-bottom: 4rem;
  }

  .hero-content {
    margin-bottom: 3rem;
  }

  .hero-actions {
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
  }

  .hero-visual {
    position: relative;
    width: 100%;
    right: 0;
    top: 0;
    transform: none;
    height: auto;
    margin-top: 2rem;
    opacity: 1;
    animation: none; /* Disable complex animation on mobile */
  }

  /* Features */
  .grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1.5rem;
    gap: 1rem;
    margin-top: 2rem;
    /* Hide scrollbar for cleaner look */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
  }

  .grid::-webkit-scrollbar {
    display: none;
  }

  .card {
    min-width: 280px;
    scroll-snap-align: center;
  }

  /* Download Section */
  .install-content {
    padding: 1.5rem;
  }

  /* Slash Menu Mobile */
  .slash-command-demo {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 320px; /* Reserve fixed height to prevent layout shifts */
  }

  .demo-input-wrapper {
    display: inline-block;
    white-space: nowrap;
  }

  .slash-menu {
    position: static; /* Push content down instead of overlaying */
    width: 100%;
    max-width: 300px; /* Limit width */
    margin: 1rem auto 0; /* Center horizontally */
    box-shadow: none;
    border: 1px solid var(--border);
    animation: none; /* Remove slide animation */
    transform: none; /* Remove transform */
  }
}
