:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --text-color-rgb: 0, 0, 0;
  --accent-color: #000000;
  --code-bg: #1a1a1a;
  --terminal-bg: #fafafa;
  --terminal-bg-rgb: 253, 253, 253;
  --terminal-text: #333333;
  --terminal-text-dim: rgba(var(--text-color-rgb), 0.7);
  --terminal-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --terminal-gradient-start: rgba(253, 253, 253, 0);
  --terminal-gradient-middle: rgba(253, 253, 253, 0.7);
  --terminal-gradient-end: rgba(253, 253, 253, 1);
  --border-color: #dedede;
  
  /* Syntax highlighting colors - light theme */
  --token-keyword: #0983d5;
  --token-operator: #0983d5;
  --token-string: #999999;
  --token-bracket: #1f3a4160;
  --token-selector: #e06900;
  --token-variable: #0a9621;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #000;
    --text-color: #ffffff;
    --text-color-rgb: 255, 255, 255;
    --accent-color: #ffffff;
    --code-bg: #111;
    --terminal-bg: #111;
    --terminal-bg-rgb: 26, 26, 26;
    --terminal-text: #ffffff;
    --terminal-text-dim: rgba(255, 255, 255, 0.7);
    --terminal-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    --terminal-gradient-start: rgba(26, 26, 26, 0);
    --terminal-gradient-middle: rgba(26, 26, 26, 0.7);
    --terminal-gradient-end: rgba(26, 26, 26, 1);
    --border-color: #333333;
    
    /* Syntax highlighting colors - dark theme */
    --token-keyword: #ff79c6;
    --token-operator: #bd93f9;
    --token-string: #7ec699;
    --token-bracket: #666666;
    --token-selector: #f1fa8c;
    --token-variable: #8be9fd;
  }
}

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

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 ;
}

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

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  gap: 1rem;
}

.logo {
  font-family: 'Tektur', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--text-color);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-tagline {
  font-size: 0.9rem;
  color: rgba(var(--text-color-rgb), 0.7);
  font-weight: 400;
  white-space: nowrap;
  margin-left: 0.5rem;
}

.tektur {
  font-family: 'Tektur', sans-serif;
  font-weight: 800;
  color: var(--text-color);
}

header nav {
  display: flex;
  align-items: center;
}

header nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

header nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 400;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

header nav a:hover {
  text-decoration: none;
  border-color: var(--text-color);
}

/* Main content */
main {
  padding: 3rem 0 5rem;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin: 2rem 0 1rem;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
  margin-top: 0;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

h2 {
  font-size: 1.75rem;
  padding-bottom: 0.5rem;
}

p, ul, ol {
  margin-bottom: 1.5rem;
}

ul, ol {
  padding-left: 1.5rem;
}

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

a:hover:not(nav a) {
  text-decoration: underline;
  text-underline-offset: 3px;
}

code {
  font-family: 'Cousine', monospace;
  background-color: var(--terminal-bg);
  padding: 0;
  border-radius: 3px;
  font-size: 0.9em;
  color: var(--terminal-text);
}

pre {
  background-color: var(--terminal-bg);
  border-bottom: 1px solid #eee;
  border-radius: 8px;
  padding: 30px;
  overflow-x: auto;
  white-space: pre;
  position: relative;
  margin: 1.5rem 0;
}

pre code {
  font-family: 'Cousine', monospace;
  font-size: 12px;
  line-height: 1.6;
  color: var(--terminal-text);
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.code-block-wrapper {
  background-color: var(--terminal-bg);
  padding: 0 5px;
  border-radius: 5px;
  margin-bottom: 1.5rem;
}

/* Apply syntax highlighting to code blocks */
pre code .token.keyword {
  color: var(--token-keyword);
}

pre code .token.operator {
  color: var(--token-operator);
}

pre code .token.string {
  color: var(--token-string);
}

pre code .token.bracket {
  color: var(--token-bracket);
}

pre code .token.selector {
  color: var(--token-selector);
}

pre code .token.variable {
  color: var(--token-variable);
}

blockquote {
  border-left: 3px solid var(--text-color);
  padding-left: 1rem;
  margin-left: 0;
  margin-bottom: 1.5rem;
  font-style: italic;
}

hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 2rem 0;
}

/* Home page specific styles */
.hero {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  padding: 3rem 0;
  gap: 2rem;
}

.hero-content {
  flex: 0 0 33%;
  text-align: left;
}

.hero-content p {
  font-size: 1.5rem;
  line-height: 1.5;
  font-weight: 100;
}

.hero-logo {
  font-family: 'Tektur', sans-serif;
  font-weight: 800;
  font-size: 120px;
  margin-bottom: 1.5rem;
  position: relative;
  color: var(--text-color);
  z-index: 2;
  line-height: 1;
}

.tagline {
  font-size: 24px;
  font-weight: 100;
  line-height: 1.4;
  margin: 0 0 1.5rem 0;
}

.hero-terminal-container {
  flex: 0 0 66%;
}

.hero-terminal {
  position: relative;
  background-color: var(--terminal-bg);
  border-radius: 8px;
  box-shadow: var(--terminal-shadow);
  padding: 0;
  width: 100%;
  height: 510px;
  overflow-y: hidden;
  z-index: 1;
}

/* Update the fade overlay gradient */
.hero-terminal::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: linear-gradient(
    to bottom, 
    var(--terminal-gradient-start) 0%,
    var(--terminal-gradient-middle) 40%,
    var(--terminal-gradient-end) 70%
  );
  pointer-events: none;
  z-index: 2;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.terminal-dots {
  position: absolute;
  top: 12px; /* Center in titlebar */
  left: 16px;
  display: flex;
  gap: 8px;
  z-index: 10; /* Make sure dots are above the fade and titlebar */
}

.terminal-dots .dot {
  height: 12px;
  width: 12px;
  border-radius: 50%;
}

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.security-more {
  max-width: 450px;
  margin: 0 auto;
}
.security-more p {
  text-align: left;
  margin-bottom: 20px;
  font-size: 18px;
  padding: 0 1rem;
}
.terminal-content {
  font-family: 'Cousine', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: var(--terminal-text);
  white-space: pre-wrap;
  padding: 30px;
  max-height: 100%;
  overflow-y: visible;
  position: relative;
}

.hero-terminal-container .terminal-content {
  font-size: 16px !important;
}

.terminal-content.not-visible .animated-line {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.3s ease-in-out;
}

.terminal-content.visible .animated-line {
  visibility: visible;
  opacity: 1;
  transition: visibility 0s, opacity 0.3s ease-in-out;
}

@media (max-width: 768px) {
  .terminal-content .animated-line {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s ease-in-out;
  }
  
  .terminal-content.visible .animated-line {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s, opacity 0.3s ease-in-out;
  }
}

/* Terminal content syntax highlighting */
.terminal-content .token.keyword {
  color: var(--token-keyword);
}

.terminal-content .token.operator {
  color: var(--token-operator);
}

.terminal-content .token.string {
  color: var(--token-string);
}

.terminal-content .token.bracket {
  color: var(--token-bracket);
}

.terminal-content .token.selector {
  color: var(--token-selector);
}

.terminal-content .token.variable {
  color: var(--token-variable);
}

.terminal-content .space {
  display: block;
  margin: -10px 0;
}

.terminal-content div {
  min-height: 1.6em;
}

/* Make animated line take full space from the beginning */
.animated-line {
  display: block;
  padding-top: 1em;
  min-height: 1.5em;
  height: 1.5em;
  line-height: 1.5em;
  margin-bottom: 0.5em;
}

.animated-line .token.string {
  display: inline-block;
  min-width: 2px;
  height: 100%;
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background-color: currentColor;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}

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

/* Removing terminal tab and toggle styles since we're simplifying to a single terminal view */

@media (max-width: 950px) {
  .hero {
    flex-direction: column;
    text-align: left;
  }

  .hero-content,
  .hero-terminal-container {
    flex: none;
    width: 100%;
  }

  .hero-content {
    text-align: left;
  }

  .hero-logo {
    font-size: 100px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 0;
  }

  header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 10px;
    gap: 1rem;
  }
  
  .logo-container {
    margin: 0;
    display: flex;
    align-items: center;
  }

  .logo {
    font-size: 1.25rem;
  }
  
  header nav {
    font-size: 14px;
    margin: 0;
  }

  header nav ul {
    gap: 1rem;
  }
  
  .logo-tagline {
    display: none;
  }
  
  main {
    padding-top: 0;
  }
  
  .hero-logo {
    font-size: 2.5rem;
  }
  
  .tagline {
    font-size: 1.2rem;
  }
  
  .terminal-content {
    font-size: 12px;
  }
  
  pre {
    padding: 1.5rem;
  }
  
  pre::before {
    font-size: 0.7rem;
  }

  .hero {
    padding-top: 0;
    margin-top: 0;
  }
  .hero-content {
    padding: 0 0 0 10px; 
  }
  .hero-content p:last-child {
    margin-bottom: 0;
    padding-right: 10px;
  }
  .hero-terminal-container {
    padding: 0 0 0 10px;
  }
  .hero-terminal {
    height: 450px;
  }
  .card-content p {
    margin-right: 20px;
    font-size: 1.2rem;
  }
  .possibility-example, .hero-terminal {
    border-radius: 8px 0px 0px 8px !important;
  }
  .title-bar {
    border-radius: 8px 0px 0px 0px !important;
  }
  .terminal-content, .possibility-example pre {
    padding: 20px;
    font-size: 12px !important;
  }
  .possibility-example code {
    font-size: 12px !important;
  }
  .section-description br {
    display: none;
  }
  .card-content {
    margin-left: 20px !important;
    padding-left: 0rem;
  }
  .install-command {
    font-size: 1rem !important;
    padding: 0.8rem 1.5rem;
    width: 90%;
    max-width: 100%;
  }
  .install-options {
    flex-direction: column;
    align-items: center;
  }
  section.content-section {
    margin: 3rem 0 !important;
  }
  
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin: 3rem 0;
}

.feature {
  display: flex;
  flex-direction: column;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.example {
  margin: 3rem 0;
}

.example-header {
  padding: 0.75rem 1rem;
  color: var(--text-color);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.example pre {
  margin-top: 0;
  border-radius: 8px;
}

.cta-link {
  margin-top: 2rem;
}

.cta-link a {
  display: inline-block;
  padding: 0.5rem 0;
  font-weight: 500;
  border-bottom: 1px solid var(--text-color);
}

.cta-link a:hover {
  text-decoration: none;
  border-bottom: 2px solid var(--text-color);
}

/* Footer */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  text-align: center;
}

/* Documentation layout */
.docs-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

/* Docs sidebar styles */
.docs-sidebar {
  position: sticky;
  top: 2rem;
  align-self: start;
  height: calc(100vh - 12rem);
  overflow-y: auto;
  padding: 1.5rem 1.5rem 0 0;
  background: var(--bg-color);
  z-index: 10;
}

/* Overlay for mobile menu */
.docs-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 5; /* Lower than sidebar but higher than content */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.docs-overlay.active {
  opacity: 1;
  display: block;
}

/* Hamburger menu for mobile */
.docs-sidebar-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1001;
  background-color: var(--bg-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  cursor: pointer;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.docs-sidebar-toggle:hover {
  background-color: rgba(var(--text-color-rgb), 0.05);
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 14px;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  transition: all 0.3s ease;
}

.docs-sidebar-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.docs-sidebar-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.docs-sidebar-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Lock body scroll when mobile sidebar is open */
body.sidebar-open {
  overflow: hidden;
}

.docs-sidebar nav {
  position: relative;
}

.docs-sidebar h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-color);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

/* Adjust nested h3 styling */
.nav-list li h3 {
  margin: 1.5rem 0 0.75rem;
  padding-left: 0;
  font-size: 1.1rem;
  opacity: 0.9;
  border-bottom: none;
  color: var(--text-color);
}

.docs-sidebar h3:first-child {
  margin-top: 0;
}

.nav-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Nested nav-list for directives */
.nav-list .nav-list {
  margin: 0.25rem 0 0.75rem;
  padding-left: 1rem;
  margin-bottom: 1rem;
  border-left: 2px solid var(--border-color);
  gap: 0.25rem;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  display: block;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  color: var(--text-color);
  border-left: 3px solid transparent;
  line-height: 1.4;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  opacity: 0.8;
  background-color: transparent;
}

.nav-list a:hover {
  background-color: rgba(128, 128, 128, 0.1);
  border-color: var(--border-color);
  text-decoration: none !important;
  opacity: 1;
  transform: translateX(2px);
}

.nav-list a[aria-current="page"] {
  border-color: var(--text-color);
  font-weight: 600;
  background-color: rgba(128, 128, 128, 0.1);
  opacity: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.docs-content {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  padding: 0 1rem;
}

.docs-content h1 {
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.docs-content a:link, .docs-content a:visited {
  border-bottom: 1px solid var(--token-variable);
}

/* Responsive */
@media (max-width: 950px) {
  .docs-layout {
    grid-template-columns: 1fr;
    margin-top: 1rem;
    gap: 2rem;
  }
  
  .docs-sidebar-toggle {
    display: flex;
  }
  
  .docs-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    max-width: 320px;
    background-color: var(--bg-color);
    padding: 1.5rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
  }
  
  .docs-sidebar.open {
    transform: translateX(0);
  }
  
  /* Remove the pseudo-element overlay from the sidebar */
  .docs-sidebar::after {
    display: none;
  }
  
  .docs-sidebar nav {
    display: block;
    padding-top: 3rem;
  }
  
  .docs-sidebar h3 {
    margin-top: 0;
  }
  
  .docs-content {
    padding: 0 1rem;
    margin-top: 2.5rem;
  }
}

@media (max-width: 600px) {
  .docs-sidebar {
    max-width: 85%;
  }
  
  .docs-sidebar nav {
    display: block;
  }
  
  .docs-sidebar h3 {
    margin-top: 2rem;
  }
  
  .docs-sidebar h3:first-child {
    margin-top: 0;
  }
  
  .toggle-text {
    display: none;
  }
}

/* Updated Section Styles */
section.content-section {
  position: relative;
  margin: 8rem 0;
}

section.content-section + section.content-section {
  padding-top: 4rem;
}

section.content-section h2 {
  font-family: 'Tektur', monospace;
  font-size: 3rem;
  text-align: center;
  font-weight: 400;
  text-transform: lowercase;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
  letter-spacing: -0.5px;
}

.section-description {
  text-align: center;
  font-size: 1.9rem;
  line-height: 1.4;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
  font-weight: 100;
}

.section-description strong {
  font-weight: 300 !important;
}

/* .second-section-description {
  margin-top: 100px;
} */

.section-description strong {
  font-weight: 600;
  color: var(--accent-color);
}

/* Two-column layout for cards */
.content-grid {
  display: block;
  max-width: 1200px;
  margin: 0 auto 2rem auto;
  position: relative;
}

/* Common styles for cards */
.content-card {
  margin-bottom: 5rem;
}

.content-card:last-child {
  margin-bottom: 0;
}

/* Row container for proper alignment */
.grid-row {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(400px, 3fr);
  position: relative;
  margin-bottom: 5rem; /* Space between rows */
  padding-bottom: 1rem; /* Add some padding at the bottom */
  min-height: 100px; /* Ensure minimum height for short content */
}

/* Vertical line styling */
.vertical-line {
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 1rem; /* Stop slightly above the bottom padding */
  width: 1px;
  background-color: rgba(var(--text-color-rgb), 0.1); /* Slightly more visible */
  height: auto; /* Let the top and bottom positions determine the height */
}

/* Remove the previous border implementation */
.grid-row::before {
  display: none;
}

/* Headings on the left */
.card-heading {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  font-size: 1.4rem;
  font-weight: 200;
  margin: 0;
  color: var(--text-color);
  padding-left: 1.5rem;
  line-height: 1.3;
  position: relative;
  align-self: flex-start;
  padding-top: 0.5rem; /* Match the top padding of content */
  grid-column: 1;
}

/* Content on the right */
.card-content {
  display: flex;
  flex-direction: column;
  padding-top: 0.5rem;
  grid-column: 2;
  margin-left: 40px;
}

/* Last row doesn't need as much bottom margin */
.grid-row:last-child {
  margin-bottom: 1rem;
}

/* Pain quote styling */
.pain-quote {
  font-family: 'Georgia', serif;
  font-size: 1.6rem;
  line-height: 1.4;
  padding: 0;
  position: relative;
  font-style: italic;
  color: var(--text-color);
  margin: 0;
}

/* Title bar styling */
.title-bar {
  position: relative;
  height: 36px;
  background-color: #fafafa;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  border-bottom: 1px solid rgba(70, 70, 70, 0.1);
  display: flex;
  align-items: center;
  padding: 0 12px;
  z-index: 1;
}

.possibility-example .title-bar {
  border-bottom: 1px solid rgba(70, 70, 70, 0.25);
}

@media (prefers-color-scheme: dark) {
  .title-bar {
    background-color: #333;
  }
  pre {
    border-bottom: 0px none;
  }
}

.window-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

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

.window-control.red { background-color: #ff5f56; }
.window-control.yellow { background-color: #ffbd2e; }
.window-control.green { background-color: #27c93f; }

.filename {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-family: system-ui, -apple-system, sans-serif;
  color: #999;
  user-select: none;
  font-weight: 400;
}
.filename::before {
  content: "—— ";
  color: rgba(255,255,255,0.3);
  margin-right: 5px;
}
.filename::after {
  content: " ——";
  color: rgba(255,255,255,0.3);
  margin-left: 5px;
}

.spacer {
  width: 52px; /* Match the width of window controls to center the filename */
}

/* Example styling */
.possibility-example {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--terminal-shadow);
  width: 100%;
  background-color: var(--terminal-bg);
}

.second-possibility-example {
  margin-top: 2rem;
}

.possibility-example pre {
  margin: 0;
  border-radius: 0;
  padding: 1.5rem;
  white-space: pre-wrap;
  word-break: break-word;
  background-color: var(--terminal-bg);
}

.possibility-example code {
  font-size: 0.9rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.possibility-example code .token {
  display: inline-flex;
  flex-wrap: wrap;
  white-space: normal;
}

/* Make code blocks responsive */
.possibility-example pre code {
  max-width: 100%;
  display: block;
  color: var(--terminal-text);
}

/* Enhance readability of wrapped code */
.possibility-example .token.bracket,
.possibility-example .token.selector,
.possibility-example .token.variable,
.possibility-example .token.string {
  max-width: 100%;
  white-space: normal;
}

/* CTA link styling */
.cta-link {
  text-align: center;
  margin: 4rem 0;
}

.cta-link a {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--accent-color);
  color: var(--bg-color);
  text-decoration: none;
  border-radius: 8px;
  font-family: 'Tektur', monospace;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cta-link a:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

@media (max-width: 950px) {
  .grid-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 3rem;
  }
  
  .card-heading {
    grid-column: 1;
    margin-bottom: 1rem;
  }
  
  .card-content {
    grid-column: 1;
  }
  
  .vertical-line {
    display: none; /* Hide the vertical line on mobile */
  }
}

/* Install section */
.install {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid rgba(var(--text-color-rgb), 0.1);
  border-bottom: 1px solid rgba(var(--text-color-rgb), 0.1);
}

.install-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
}

.install-command {
  display: inline-block;
  background-color: var(--terminal-bg);
  padding: 1rem 3rem .8rem 2rem;
  border-radius: 8px;
  font-family: 'Cousine', monospace;
  font-size: 1.2rem;
  color: var(--terminal-text);
  box-shadow: var(--terminal-shadow);
  position: relative;
  overflow: hidden;
  transition: color 0.2s;
}

.install-command:hover {
  cursor: pointer;
  color: var(--terminal-text);
}

.copy-button {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  background: rgba(255, 255, 255, 0);
  color: var(--terminal-text-dim);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.install-command:hover .copy-button {
  color: var(--terminal-text);
}

.copy-button svg {
  display: block;
}

.copy-button.copied {
  color: #27c93f !important;
  transition: color 0.2s;
}

/* Code block copy button styles */
.code-block-wrapper {
  position: relative;
}

.code-copy-button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  border: none;
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  background: var(--code-bg, rgba(0, 0, 0, 0.1));
  color: var(--text-secondary, #666);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  z-index: 10;
}

.code-block-wrapper:hover .code-copy-button {
  opacity: 1;
}

.code-copy-button:hover {
  background: var(--code-bg-hover, rgba(0, 0, 0, 0.2));
  color: var(--text-primary, #333);
}

.code-copy-button.copied {
  color: #27c93f !important;
  opacity: 1;
}

.code-copy-button svg {
  display: block;
  width: 16px;
  height: 16px;
}

@media (prefers-color-scheme: dark) {
  .code-copy-button {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
  }
  
  .code-copy-button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
  }
}

.vscode-link {
  margin-top: 0.5rem;
}

.vscode-link a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 100;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.vscode-link a:hover {
  text-decoration: underline;
}

.llms-link {
  margin-top: 0.5rem;
}

.llms-link a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 100;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.llms-link a:hover {
  text-decoration: underline;
}

/* Common Terminal Window Styles */
.terminal-window {
  position: relative;
  background-color: var(--terminal-bg);
  border-radius: 8px;
  box-shadow: var(--terminal-shadow);
  width: 100%;
  overflow: hidden;
}

.terminal-window .title-bar {
  position: relative;
  height: 36px;
  background-color: #fafafa;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  border-bottom: 1px solid rgba(70, 70, 70, 0.1);
  display: flex;
  align-items: center;
  padding: 0 12px;
  z-index: 1;
}

.terminal-window .window-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.terminal-window .window-control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-window .window-control.red { background-color: #ff5f56; }
.terminal-window .window-control.yellow { background-color: #ffbd2e; }
.terminal-window .window-control.green { background-color: #27c93f; }

.terminal-window .filename {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-family: system-ui, -apple-system, sans-serif;
  color: #999;
  user-select: none;
  font-weight: 400;
}

.terminal-window .filename::before {
  content: "—— ";
  color: rgba(var(--text-color-rgb), 0.3);
  margin-right: 5px;
}

.terminal-window .filename::after {
  content: " ——";
  color: rgba(var(--text-color-rgb), 0.3);
  margin-left: 5px;
}

.terminal-window .spacer {
  width: 52px;
}


.terminal-window .terminal-content {
  font-family: 'Cousine', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: var(--terminal-text);
  white-space: pre-wrap;
  padding: 30px;
  background-color: var(--terminal-bg);
}

/* Hero Terminal Specific */
.hero-terminal {
  height: 510px;
  overflow-y: hidden;
  z-index: 1;
}

.hero-terminal::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: linear-gradient(
    to bottom, 
    var(--terminal-gradient-start) 0%,
    var(--terminal-gradient-middle) 40%,
    var(--terminal-gradient-end) 70%
  );
  pointer-events: none;
  z-index: 2;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Example Terminal Specific */
.possibility-example {
    margin-bottom: 2rem;
}

.possibility-example:last-child {
  margin-bottom: 0;
}

/* Dark mode title bar */
@media (prefers-color-scheme: dark) {
  .terminal-window .title-bar {
    background-color: #333;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  header nav {
    display: none;
  }
  .terminal-window .terminal-content {
    padding: 20px;
    font-size: 12px;
  }
  
  .terminal-window, .hero-terminal {
    border-radius: 8px 0 0 8px;
  }
  
  .terminal-window .title-bar {
    border-radius: 8px 0 0 0;
  }
}
