/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Grayish background theme */
    --background: hsl(220, 13%, 9%);
    --foreground: hsl(220, 9%, 96%);
    --card: hsl(220, 13%, 11%);
    --card-foreground: hsl(220, 9%, 96%);
    --primary: hsl(18, 100%, 60%);
    --primary-foreground: hsl(220, 13%, 9%);
    --secondary: hsl(220, 13%, 15%);
    --secondary-foreground: hsl(220, 9%, 85%);
    --muted: hsl(220, 13%, 13%);
    --muted-foreground: hsl(220, 9%, 65%);
    --accent: hsl(220, 13%, 15%);
    --accent-foreground: hsl(220, 9%, 96%);
    --border: hsl(220, 13%, 18%);
    --input: hsl(220, 13%, 15%);
    --ring: hsl(18, 100%, 60%);
    
    /* Custom design tokens */
    --gradient-primary: linear-gradient(135deg, hsl(18, 100%, 60%), hsl(28, 100%, 54%));
    --gradient-hero: linear-gradient(135deg, hsl(220, 13%, 11%) 0%, hsl(220, 13%, 9%) 100%);
    --code-background: hsl(220, 13%, 12%);
    --code-foreground: hsl(220, 9%, 90%);
    --vscode-blue: hsl(207, 100%, 68%);
    --vscode-green: hsl(120, 100%, 60%);
    --vscode-orange: hsl(28, 100%, 54%);

    /* Architecture tier colors */
    --standard-start: hsl(25, 100%, 60%);
    --standard-end: hsl(20, 100%, 50%);
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
}
html {
    scroll-behavior: smooth;
}

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


/* Navbar section */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

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

.navbar-logo {
  display: flex;
  align-items: center;
}

.logo-image {
  height: 5rem;
  width: auto;
  transition: all 0.3s ease;
  filter: brightness(1);
}

.logo-image:hover {
  filter: brightness(1.2) drop-shadow(0 0 10px hsla(18, 100%, 60%, 0.3));
  transform: scale(1.05);
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.navbar-menu li a {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-menu li a:hover {
  color: var(--primary);
  background: var(--accent);
}

.navbar-menu li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-menu li a:hover::after {
  width: 80%;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.navbar-toggle span {
  width: 25px;
  height: 3px;
  background: var(--foreground);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar-toggle:hover span {
  background: var(--primary);
}

/* Hero Section */
.fade-in-download {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.2s 0.4s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.pulse-animation {
    animation: gentle-pulse 2s ease-in-out infinite;
}

@keyframes gentle-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 138, 76, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 138, 76, 0);
    }
}

.floating-card {
    animation: gentle-float 6s ease-in-out infinite;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

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

.typing-animation {
    opacity: 0;
    transform: translateX(-20px);
    animation: type-in 0.8s ease-out forwards;
}

@keyframes type-in {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.transform-arrow {
    animation: arrow-pulse 2s ease-in-out infinite;
}

@keyframes arrow-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.success-animation {
    opacity: 0;
    transform: scale(0.8);
    animation: success-pop 0.6s ease-out forwards;
}

@keyframes success-pop {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.pulsing-dot {
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero-bg-decoration {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

.hero-bg-1 {
    width: 400px;
    height: 400px;
    background: var(--gradient-primary);
    opacity: 0.1;
    top: 20%;
    left: -10%;
}

.hero-bg-2 {
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    opacity: 0.08;
    bottom: 20%;
    right: -5%;
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    max-width: 500px;
}

.hero-subtitle {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px hsl(var(--primary) / 0.3);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--accent);
}

/* VS Code Window */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.vscode-window {
    background-color: var(--card);
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    overflow: visible;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    width: 100%;
}

.vscode-titlebar {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: var(--muted);
    border-bottom: 1px solid var(--border);
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

.vscode-controls {
    display: flex;
    gap: 0.5rem;
    margin-right: 1rem;
}

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

.vscode-control.red {
    background-color: #ff5f57;
}

.vscode-control.yellow {
    background-color: #ffbd2e;
}

.vscode-control.green {
    background-color: #28ca42;
}

.vscode-filename {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.875rem;
    color: var(--foreground);
}

.vscode-editor {
    padding: 1.5rem;
    background-color: var(--code-background);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    width: 100%;
    height: 600px;
    display: flex;
    flex-direction: column;
    max-height: 350px;
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
}

.code-block {
    margin-bottom: 1rem;
}

.code-line {
    margin-bottom: 0.25rem;
}

.code-comment {
    color: hsl(120, 100%, 60%);
}

.code-type {
    color: hsl(207, 100%, 68%);
}

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

.code-function {
    background: linear-gradient(to right, #FFA500, #FF6600);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hoverable {
    position: relative;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.hoverable:hover {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2px 4px;
    margin: -2px -4px;
}

.tooltip {
    position: absolute;
    top: -10px;
    left: 0;
    transform: translateY(-100%);
    background-color: hsl(220, 13%, 8%);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px 16px;
    min-width: 800px;
    max-width: 900px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    font-size: 0.8rem;
    line-height: 1.4;
}

.hoverable:hover .tooltip {
    opacity: 1;
    visibility: visible;
    z-index: 9999;
}

/* used to show a tooltip after 2 seconds of joining website, called from js */
.hoverable.show-tooltip .tooltip {
    opacity: 1 !important;
    visibility: visible !important;
}

.tooltip-header {
    font-weight: 600;
    color: hsl(207, 100%, 68%);
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.tooltip-arch {
    color: hsl(28, 100%, 54%);
    font-weight: 600;
}

.tooltip-section {
    margin-bottom: 6px;
}

.tooltip-section strong {
    color: var(--foreground);
}

.tooltip-prototypes {
    background-color: hsl(220, 13%, 10%);
    border-left: 3px solid hsl(207, 100%, 68%);
    padding: 8px 12px;
    margin-top: 8px;
    border-radius: 0 4px 4px 0;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.tooltip-prototypes .code-type {
    color: hsl(207, 100%, 68%);
}
a.code-function {
  text-decoration: none;
  color: inherit; 
}
.tooltip-prototypes .code-function {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tooltip-prototypes .code-variable {
    color: hsl(282, 85%, 75%);
}

.status-bar {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(90deg, #FFA500, #FF8C00, #FF4500);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

/* Typing animations */
.typing-animation {
    opacity: 0;
    animation: typeIn 0.6s ease forwards;
}

@keyframes typeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-animation {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateX(-10px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}


/* Popular Intrinsics Section - Bar Chart Style */
.popular-intrinsics {
    padding: 80px 20px;
    background: var(--card);
    color: var(--gradient-primary);
    text-align: center;
}

.popular-intrinsics .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--foreground);
}

.popular-intrinsics .features-subtitle {
    color: var(--vscode-orange);
    font-size: 1.025rem;
    margin-bottom: 50px;
}

.intrinsics-list {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

.intrinsic-bar-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 4px;
    animation: slideInLeft 0.6s ease-out both;
}

.bar-rank {
    width: 50px;
    text-align: right;
    font-size: 1.25rem;
    font-weight: 200;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bar-container {
    flex: 1;
}

.bar-background {
    position: relative;
    background: var(--code-background);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    height: 24px;
    transition: all 0.3s ease;
}

.bar-background:hover {
    border-color: #808080;
    box-shadow: 0 4px 12px rgba(128, 128, 128, 0.3);
    transform: translateX(4px);
}

.bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--standard-start), var(--standard-end));
    width: 0;
    animation: expandBar 1.5s ease-out both;
    transition: width 0.3s ease;
}

.bar-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 100%;
}

.bar-name {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--foreground);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.bar-name:hover {
    color: #1e1e1e;
}

.bar-name code {
    font-family: inherit;
    font-size: inherit;
}

.bar-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes expandBar {
    from {
        width: 0%;
    }
    to {
        width: var(--bar-width);
    }
}

/* Loading and Error States */
.intrinsics-list p {
    color: var(--muted-foreground);
    font-size: 1.125rem;
    padding: 40px 20px;
    background: var(--code-background);
    border: 1px solid var(--border);
    border-radius: 12px;
    animation: pulse-loading 2s infinite;
}

@keyframes pulse-loading {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.error {
    color: var(--vscode-orange);
    background: rgba(255, 95, 87, 0.1);
    border-color: rgba(255, 95, 87, 0.3);
    padding: 20px;
    border-radius: 12px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bar-rank {
        width: 40px;
        font-size: 1rem;
    }
    
    .bar-name {
        font-size: 0.75rem;
    }
    
    .bar-count {
        font-size: 0.65rem;
    }
    
    .bar-background {
        height: 22px;
    }
    
    .intrinsic-bar-item {
        margin-bottom: 3px;
    }
}


/* About Section */
.slide-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.hover-scale {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.hover-scale:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.floating-icon {
    animation: icon-float 3s ease-in-out infinite;
}

@keyframes icon-float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(5deg);
    }
}

.shimmer-effect {
    background: linear-gradient(90deg, 
        var(--secondary) 25%, 
        rgba(255, 255, 255, 0.3) 50%, 
        var(--secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.about {
    padding: 6rem 0;
    background-color: var(--background);
}

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

.about-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.about-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.about-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.about-description {
    margin-bottom: 2rem;
    line-height: 1.7;
}

.about-description a {
    color: hsl(18, 100%, 60%);
    text-decoration: none;
}

.about-description a:hover {
    text-decoration: underline;
}

.about-features {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.about-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.about-feature h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.about-feature p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.about-feature a {
    color: hsl(18, 100%, 60%);
    text-decoration: none;
}

.about-feature a:hover {
    text-decoration: underline;
}

.supported-architectures h4 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.architecture-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.arch-badge {
    padding: 0.25rem 0.75rem;
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.arch-badge:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.arch-badge.upcoming {
    background-color: var(--muted);
    color: var(--muted-foreground);
}

/* Features Section */
.features {
    padding: 6rem 0;
    background-color: var(--muted);
}

.features-header {
    text-align: center;
    margin-bottom: 3rem;
}

.features-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-top: 0.5rem;
}

/* Split Screen Layout */
.features-split {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 4rem auto;
    align-items: start;
}

.features-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.features-right {
    position: sticky;
    top: 2rem;
}

.feature-card {
    background-color: var(--card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0.75rem;
    padding: 2rem;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 138, 76, 0.3);
}

.feature-demo {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1rem;
    overflow: hidden;
    position: relative;
}

.demo-video {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    transition: opacity 0.3s ease;
    display: block;
    outline: none;
}

.demo-video::-webkit-media-controls-panel {
    display: none !important;
}

.demo-video::-webkit-media-controls-play-button {
    display: none !important;
}

.demo-video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

.demo-video::-webkit-media-controls {
    display: none !important;
}

.demo-video::-moz-media-controls {
    display: none !important;
}

.demo-video {
    pointer-events: none;
}

.feature-demo {
    pointer-events: auto;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-icon-large {
    font-size: 2rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.feature-description {
    margin-bottom: 1.5rem;
    color: var(--muted-foreground);
    line-height: 1.7;
}

.feature-code {
    background-color: var(--code-background);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.875rem;
    overflow-x: auto;
}

.carousel-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.nav-button {
    background-color: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--foreground);
}

.nav-button:hover {
    background-color: var(--accent);
}

.nav-button svg {
    width: 20px;
    height: 20px;
}

.pagination-dots {
    display: flex;
    gap: 0.5rem;
}

.pagination-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--muted-foreground);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-dot.active {
    background-color: hsl(18, 100%, 60%);
}

/* Architecture Support Section */
.architecture-support {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
}

.architecture-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.architecture-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.architecture-header p {
    color: var(--muted-foreground);
    font-size: 1rem;
}

.architecture-header a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.architecture-header a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.architecture-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.tier-section {
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tier-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.tier-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.tier-section p {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

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

.arch-badge {
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
}

.arch-badge:hover {
    transform: scale(1.05);
}


.arch-badge.free {
    background: linear-gradient(135deg, var(--standard-start), var(--standard-end));
}

.arch-badge.standard {
    background: linear-gradient(135deg, var(--standard-start), var(--standard-end));
}

.arch-badge.coming-soon {
    background: linear-gradient(135deg, var(--standard-start), var(--standard-end));
}

.arch-badge small {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-left: 0.25rem;
}

.coming-soon-section {
    margin-top: 2rem;
    padding: 2rem 1.5rem;
    background: var(--accent);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    text-align: center;
}

.coming-soon-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.coming-soon-section p {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background-color: var(--card);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section h3 {
    font-size: 1.25rem;
}

.footer-section p {
    color: var(--muted-foreground);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

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

.footer-links a:hover {
    color: hsl(18, 100%, 60%);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--muted-foreground);
}


.code-tab {
        display: none; /* hide all code blocks */
    }

.code-tab.active {
    display: block; /* only active tab is shown */
}

.tab-button {
    background: #2d2d2d;
    color: #bbb;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    margin-right: 4px;
}

.tab-button.active {
    background: #1e1e1e;
    color: #fff;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0 1rem;
    }
    
    .navbar-menu {
        position: fixed;
        top: 4rem;
        left: 0;
        right: 0;
        background: var(--card);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 1rem 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .navbar-menu li a {
        display: block;
        padding: 1rem 2rem;
        border-radius: 0;
    }
    
    .navbar-menu li a::after {
        display: none;
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .navbar-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .navbar-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .vscode-window {
        max-width: 100%;
    }
    
    .container {
        padding: 0 1rem;
    }

    .features-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .architecture-tiers {
        grid-template-columns: 1fr;
    }
            
    .architecture-support {
        padding: 2rem 1rem;
    }

    .popular-intrinsics {
        padding: 60px 20px;
    }
    
    .popular-intrinsics .section-title {
        font-size: 2rem;
    }
    
    .intrinsics-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .intrinsic-item {
        padding: 16px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .intrinsic-content {
        width: 100%;
        justify-content: space-between;
    }
    
    .intrinsic-stats {
        align-items: flex-start;
    }

}

.code-overlay-container {
    flex: 1;
    position: relative;
    overflow: visible;
    min-height: 250px;
}

.code-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--code-background);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    overflow: visible;
    padding: 1.5rem;
    box-sizing: border-box;
}

.highlighted-panel {
    z-index: 1;
}

.plain-panel {
    z-index: 2;
    clip-path: inset(0 0 0 0);
    transition: clip-path 0.1s ease-out;
    overflow: visible;
}


.plain-indicator {
    z-index: 2;
    clip-path: inset(0 0 0 0);
    transition: clip-path 0.1s ease-out;
}

.highlighted-indicator {
    z-index: 1;
}

.splitter {
    position: absolute;
    top: 0;
    left: 0%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    display: inline-block;
    padding: 4px;
    border-radius: 4px;
    background: linear-gradient(to right, #FFA500, #FF6600);
    cursor: col-resize;
    z-index: 100;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
}

.splitter:hover {
    display: inline-block;
    padding: 4px; /* optional spacing */
    border-radius: 4px; /* optional rounded corners */
    background: linear-gradient(to right, #FFA500, #FF6600);
    width: 6px;
}

.splitter::before {
    content: '';
    position: absolute;
    left: -8px;
    right: -8px;
    top: 0;
    bottom: 0;
}

.splitter-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 40px;
    display: inline-block;
    padding: 4px; /* optional spacing */
    border-radius: 4px; /* optional rounded corners */
    background: linear-gradient(to right, #FFA500, #FF6600);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.splitter-handle::after {
    content: '⋮⋮';
    background: linear-gradient(to right, #FFA500, #FF6600);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-size: 12px;
    letter-spacing: -2px;
    transform: rotate(90deg);
}



.code-overlay-container .plain-panel,
.code-overlay-container .plain-indicator,
.code-overlay-container .highlighted-panel,
.code-overlay-container .highlighted-indicator {
  transition: clip-path 0.3s linear;
}

.splitter {
  transition: left 0.3s linear;
}
.tooltip-layer{
    z-index: 1000;
}