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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    line-height: 1.7;
    color: #333;
    background: #0a0a0a;
    overflow-x: hidden;
    isolation: isolate;
    font-size: 18px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-tagline {
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 0.3rem;
}

.logo-tagline a {
    color: inherit;
    text-decoration: none;
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #4ade80;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4ade80;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-mobile-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

#tree-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

#tree-container canvas {
    opacity: 0;
    transition: opacity 0.8s ease;
}

#tree-container.loaded canvas {
    opacity: 1;
}

.hero-overlay {
    position: relative;
    z-index: 0;
    text-align: center;
    color: #fff;
    max-width: 1200px;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.00);
    /* backdrop-filter: blur(0px); */
    border-radius: 20px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.title-line {
    display: block;
    background-image: linear-gradient(135deg, #0ecead 0%, #00dca7 20%, #00eca7 30%, #00d3a7 70%, #00d3a7 75%, #00f3e7 100%);
    background-color: initial;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease 0.2s both;
}

.title-line:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.4vw, 1.5rem);
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-compression-text {
    font-size: clamp(1.2rem, 2.6vw, 1.55rem);
    font-weight: 400;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.7s both;
}

.hero-tagline {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 300;
    color: #4ade80;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: fadeInUp 1s ease 0.8s both;
}

.hero-feature-bubble {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(74, 222, 128, 0.1) 50%, rgba(251, 146, 60, 0.15) 100%);
    border: none;
    border-radius: 50px;
    padding: 1.1rem 2rem;
    margin-bottom: 1.5rem;
    text-decoration: none;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.9s both;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.15), 0 4px 15px rgba(251, 146, 60, 0.15);
}

.hero-feature-bubble::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.6), rgba(74, 222, 128, 0.6), rgba(251, 146, 60, 0.6));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.hero-feature-bubble:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.2), 0 6px 20px rgba(251, 146, 60, 0.2);
}

.hero-feature-bubble:hover::before {
    opacity: 0.8;
}

.hero-feature-bubble .bubble-text {
    font-weight: 500;
}

.hero-feature-bubble .bubble-highlight {
    font-weight: 700;
    background: linear-gradient(135deg, #c084fc 0%, #4ade80 50%, #fb923c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.35rem;
    letter-spacing: 0.02em;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.8s both;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: none;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 160px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: #000;
    box-shadow: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: #000;
    box-shadow: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    animation: fadeInUp 1s ease 1s both;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(255, 255, 255, 0.6);
    border-bottom: 2px solid rgba(255, 255, 255, 0.6);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(45deg) translateY(0);
    }
    40% {
        transform: rotate(45deg) translateY(-10px);
    }
    60% {
        transform: rotate(45deg) translateY(-5px);
    }
}

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

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

.section-header h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header h3 {
    font-size: 2rem;
    font-weight: 400;
    color: #9ca3af;
    margin-bottom: 2rem;
}

.section-header p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.section-about {
    padding: 8rem 0;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(5px);
    color: #fff;
    position: relative;
    z-index: 1;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: left;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

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

/* API Documentation Styles - Simple button */
.api-link {
    margin-top: 1.5rem;
    font-size: 1.2rem;
}

.api-link a {
    color: #d1d5db;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 400;
    padding: 0.5rem 0;
    border: none;
    border-radius: 0;
    display: inline-block;
    transition: color 0.2s ease;
    background: transparent;
    font-size: 1.1rem;
}

.api-link a:hover {
    background: transparent;
    color: #f3f4f6;
    transform: none;
}

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

.api-section {
    background: transparent;
    padding: 1.5rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.api-section:last-child {
    border-bottom: none;
}

.api-section h3 {
    color: #e5e7eb;
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
}

.api-section p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.setup-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.setup-step {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.setup-step strong {
    color: #4ade80;
    font-weight: 600;
}

.setup-step code,
.endpoint strong {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

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

.endpoint {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.endpoint strong {
    color: #4ade80;
    font-weight: 600;
}

/* Quickstart Section Styles */
.quickstart-section {
    margin: 3rem 0;
    padding: 0;
}

.quickstart-content {
    max-width: 1200px;
    margin: 0 auto;
}

.quickstart-info h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 8px rgba(74, 222, 128, 0.3);
    animation: fadeInUp 0.6s ease 0.3s both;
}

.quickstart-info h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    border-radius: 2px;
    opacity: 0.6;
    transform: scaleX(0);
    transform-origin: left;
    animation: scaleIn 0.8s ease 0.8s both;
}

@keyframes scaleIn {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

.quickstart-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 1.1rem;
}

.quickstart-info a {
    color: #4ade80;
    text-decoration: none;
    font-weight: 500;
}

.quickstart-info a:hover {
    text-decoration: underline;
}

.api-path {
    background: rgba(255, 255, 255, 0.1);
    color: #4ade80;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin: 1rem 0 2rem 0;
    border: 1px solid rgba(74, 222, 128, 0.2);
    text-align: center;
}

/* Tabbed Interface Styles */
.quickstart-tabs {
    margin-top: 2rem;
}

.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    font-weight: 400;
    position: relative;
    overflow: hidden;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: none;
}

.tab-btn.active {
    background: rgba(74, 222, 128, 0.15);
    color: #6ee7b7;
    border-color: rgba(74, 222, 128, 0.3);
    box-shadow: none;
}

.tab-btn .coming-soon {
    font-size: 0.75rem;
    font-weight: 400;
    color: inherit;
    opacity: 0.8;
}

.tab-content {
    min-height: 400px;
}

.tab-pane {
    display: none;
    opacity: 0;
    text-align: left;
    transition: opacity 0.2s ease-in-out;
}

.tab-pane.active {
    display: block;
    opacity: 1;
}

.tab-pane h1 {
    color: #f3f4f6;
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
    line-height: 1.3;
    text-align: left;
}

.tab-pane p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.7;
    text-align: left;
}

/* Quickstart Animation Styles */
.quickstart-tabs {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.1s;
}

.quickstart-tabs.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Tab buttons outside of tab content */
.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    transition-delay: 0.1s;
}

.quickstart-tabs.animate-in .tab-buttons {
    opacity: 1;
}

/* Tab Header Styles (for tabs with images like Kilo Code) */
.tab-header {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "image"
        "text";
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: none;
    backdrop-filter: blur(5px);
    transition: none;
}

.quickstart-tabs.animate-in .tab-header {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.tab-text {
    grid-area: text;
    order: 2;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    transition-delay: 0.1s;
}

.tab-image {
    grid-area: image;
    margin-top: 0;
    padding-top: 0;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    transition-delay: 0.15s;
    text-align: center;
}

.quickstart-tabs.animate-in .tab-text,
.quickstart-tabs.animate-in .tab-image {
    opacity: 1;
}

.tab-text h1 {
    margin-bottom: 1rem;
}

.tab-text p {
    margin-bottom: 2rem;
}

.tab-image {
    order: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-image img {
    max-width: 560px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Code Example Styles - Beautiful syntax highlighting */
.code-example {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
    border-left: 4px solid rgba(74, 222, 128, 0.6);
    border-radius: 12px;
    overflow: visible;
    margin: 2rem 0;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.code-example::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.4), transparent);
}

.code-example h4 {
    color: #9ca3af;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    padding: 1rem 1.5rem 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    text-align: left;
}

.code-example pre {
    margin: 0;
    padding: 1.5rem;
    padding-top: 3rem;
    overflow-x: auto;
    background: transparent;
    font-size: 1.2rem;
    line-height: 1.6;
    position: relative;
}

.code-example code {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Source Code Pro', monospace;
    white-space: pre;
    background: transparent;
    padding: 0;
    color: #e2e8f0;
}

/* Python Syntax Highlighting - Cool blues and greens palette */
.code-example pre code {
    /* Base text color */
    color: #c9d1d9;
}

/* Python keywords */
.python-keyword {
    color: #67e8f9 !important;
    font-weight: 500;
}

/* Python strings */
.python-string {
    color: hsl(42, 94%, 70%) !important;
}

/* Python comments */
.python-comment {
    color: #7c8591 !important;
    font-style: italic;
}

/* Python functions */
.python-function {
    color: hsl(232, 60%, 79%) !important;
}

/* Python operators */
.python-operator {
    color: #e2e8f0 !important;
}

/* Python numbers */
.python-number {
    color: #8b5cf6 !important;
}

/* Python built-ins */
.python-builtin {
    color: #10b981 !important;
}

/* Python variables */
.python-variable {
    color: #34d399 !important;
}

/* Add hover effect for better interactivity */
.code-example:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-left-color: rgba(74, 222, 128, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Copy button styling */
.code-copy-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(74, 222, 128, 0.2);
    border: 1px solid rgba(74, 222, 128, 0.4);
    border-radius: 6px;
    color: #6ee7b7;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
    font-family: inherit;
    z-index: 10;
    pointer-events: auto;
}

.code-copy-btn:hover {
    background: rgba(74, 222, 128, 0.3);
    border-color: rgba(74, 222, 128, 0.6);
    transform: scale(1.05);
}

.code-copy-btn.copied {
    background: rgba(34, 197, 94, 0.3);
    border-color: rgba(34, 197, 94, 0.6);
    color: #86efac;
}

/* Setup Instructions Styles */
.setup-instructions {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 1rem 0 0 0;
}

.setup-instructions > p:first-child {
    color: #6ee7b7;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    text-align: left;
}

.setup-instructions ul {
    margin: 0;
    padding-left: 1.2rem;
    list-style: disc;
}

.setup-instructions li {
    color: #e2e8f0;
    margin: 0.3rem 0;
    padding: 0;
    font-size: 1.1rem;
    line-height: 1.5;
    text-align: left;
}

.setup-instructions li::marker {
    color: #6ee7b7;
}

/* Python setup box - blue transparent styling */
.python-setup-box {
    background: rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.5);
    border-radius: 8px;
    padding: 1rem 1.2rem;
    margin: 1rem 0;
    backdrop-filter: blur(10px);
}

.setup-instructions code {
    background: rgba(74, 222, 128, 0.08);
    color: #6ee7b7;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
    font-size: 0.9em;
    border: 1px solid rgba(74, 222, 128, 0.1);
    font-weight: 400;
}

/* URL Copy Container - Alternative styling */
.url-copy-container {
    display: inline-block;
    background: rgba(15, 23, 42, 0.6);
    border: none;
    border-radius: 4px;
    padding: 0.4rem 0.6rem;
    margin: 0.3rem 0;
}

.url-copy-container.install-command {
    display: block;
    margin: 0.5rem 0 1rem 0;
}

/* Claude Code Infinite Instructions */
.image-caption {
    color: #e2e8f0;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    margin-top: 0.75rem;
}

.claude-code-instructions {
    text-align: left;
    width: 100%;
}

.claude-code-instructions .instructions-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 1rem 0;
    text-align: left;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #ffffff;
    background-clip: unset;
    text-shadow: none;
}

.claude-code-instructions p {
    color: #94a3b8;
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.claude-code-instructions p:first-child {
    color: #6ee7b7;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.claude-code-instructions code {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    box-sizing: border-box;
    position: relative;
    background: linear-gradient(90deg, #a8cfe8, #9ad8dc, #9adcd8, #a8dcc8, #a8cfe8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.claude-code-instructions code::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    z-index: -1;
}

/* Prominent GitHub CTA Button */
.github-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.15) 0%, rgba(136, 87, 229, 0.15) 100%);
    border: 1px solid rgba(136, 87, 229, 0.4);
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 0.75rem;
}

.github-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.1) 0%, rgba(136, 87, 229, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.github-cta:hover {
    transform: translateY(-2px);
    border-color: rgba(136, 87, 229, 0.7);
    box-shadow: 0 8px 30px rgba(136, 87, 229, 0.075), 0 4px 15px rgba(88, 166, 255, 0.05);
}

.github-cta:hover::before {
    opacity: 1;
}

.github-cta .github-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    z-index: 1;
}

.github-cta-text {
    z-index: 1;
}

.github-cta .arrow-icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
    transition: transform 0.3s ease;
    z-index: 1;
}

.github-cta:hover .arrow-icon {
    transform: translateX(4px);
}

/* Old github-link styles kept for backward compatibility */
.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.github-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.github-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Copyable URL Styles - Simplified approach */
.copyable-url {
    background: transparent;
    color: #94a3b8;
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
    font-family: 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
    font-size: 0.95em;
    cursor: pointer;
    transition: color 0.2s ease;
    border: none;
    font-weight: 400;
}

.copyable-url:hover {
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
}

/* Copy Button Styles - Minimal approach */
.copy-btn {
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 3px;
    color: #6ee7b7;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.25rem 0.4rem;
    transition: background-color 0.2s ease;
    font-weight: 400;
    box-shadow: none;
    position: relative;
    overflow: hidden;
    min-width: 2.2em;
    min-height: 2.5em;
    text-align: center;
}

.copy-btn:hover {
    background: rgba(74, 222, 128, 0.25);
    transform: none;
    box-shadow: none;
}

.copy-btn:active {
    transform: none;
}

.copy-btn.copied {
    background: rgba(16, 185, 129, 0.2);
    animation: none;
}

@keyframes pulseGreen {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Collapsible optional settings */
.optional-settings {
    margin: 1.5rem 0;
    text-align: left;
}

.optional-settings summary {
    padding: 0.5rem 0;
    cursor: pointer;
    font-weight: 600;
    color: #64b5f6;
    transition: color 0.2s ease;
    user-select: none;
    display: flex;
    align-items: center;
    text-align: left;
    justify-content: flex-start;
}

.optional-settings summary:hover {
    color: #87ceeb;
}

.optional-settings summary::marker {
    content: '';
}

.optional-settings summary::-webkit-details-marker {
    display: none;
}

.optional-settings summary::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 6px solid #64b5f6;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    margin-right: 0.75rem;
    transition: transform 0.2s ease;
    vertical-align: middle;
    flex-shrink: 0;
}

.optional-settings[open] summary::before {
    transform: rotate(90deg);
}

.optional-content {
    padding: 0.5rem 0 1rem 1rem;
    text-align: left;
}

.optional-section {
    margin-bottom: 1.5rem;
}

.optional-section:last-child {
    margin-bottom: 0;
}

.optional-section p {
    margin: 0.5rem 0;
    color: #64b5f6;
    font-size: 0.95em;
    text-align: left;
}

.optional-section ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1rem;
}

.optional-section li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Additional recommendation styling - Different approach */
.setup-instructions > p:last-child {
    background: transparent;
    border-top: 2px dotted rgba(156, 163, 175, 0.4);
    border-radius: 0;
    color: #9ca3af;
    padding: 0.8rem 0.5rem 0.5rem;
    margin-top: 1rem;
    font-style: normal;
    font-size: 0.95rem;
    position: relative;
    line-height: 1.5;
}

.setup-instructions > p:last-child::before {
    content: "Note: ";
    position: static;
    color: #6b7280;
    background: none;
    width: auto;
    height: auto;
    border-radius: 0;
    display: inline;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Coming Soon Notice - Understated approach */
.coming-soon-notice {
    background: rgba(20, 20, 20, 0.4);
    border: none;
    border-left: 4px solid rgba(251, 191, 36, 0.6);
    border-radius: 4px;
    padding: 1.5rem;
    text-align: left;
    margin: 2rem 0;
}

.coming-soon-notice p {
    color: #e5e7eb;
    font-size: 1.1rem;
    margin: 0;
}

/* How It Works Section - Apple-inspired minimalism */
.how-it-works {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.how-it-works-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: #4ade80;
    margin-bottom: 3.5rem;
    letter-spacing: -0.02em;
    text-shadow: none;
    position: relative;
    display: inline-block;
}

.how-it-works-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.how-it-works-content p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    letter-spacing: 0.01em;
}

.how-it-works-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.hiw-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.1), rgba(34, 197, 94, 0.05));
    border: 2px solid rgba(74, 222, 128, 0.3);
    border-radius: 16px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(10px);
    box-shadow: none;
    position: relative;
    overflow: hidden;
    min-width: 280px;
}

.hiw-link::before {
    display: none;
}

.hiw-link:hover::before {
    display: none;
}

.hiw-link:hover {
    opacity: 0.85;
}

.hiw-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    filter: none;
}

.hiw-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: left;
}

.hiw-text strong {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    display: block;
}

.hiw-text small {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    display: block;
}

/* Tree Diagram - Visual hierarchy representation */
.tree-diagram {
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.tree-node {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.tree-node:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(74, 222, 128, 0.3);
    transform: translateY(-2px);
}

.root-node {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.12), rgba(34, 197, 94, 0.08));
    border: 1px solid rgba(74, 222, 128, 0.25);
    box-shadow: 0 4px 20px rgba(74, 222, 128, 0.1);
}

.node-label {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.root-node .node-label {
    color: #ffffff;
    font-weight: 600;
}

.tree-level {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
}

.tree-branches,
.tree-branches-small {
    display: flex;
    gap: 4rem;
    justify-content: center;
    width: 100%;
    position: relative;
    height: 30px;
}

.tree-branches-small {
    gap: 2rem;
}

.branch-line {
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(74, 222, 128, 0.3), 
        rgba(74, 222, 128, 0.05));
    position: relative;
}

.branch-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: rgba(74, 222, 128, 0.5);
    border-radius: 50%;
}

.branch-line-small {
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(74, 222, 128, 0.25), 
        rgba(74, 222, 128, 0.05));
}

.leaf-node {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* How It Works Grid - Clean three-column layout */
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.work-item {
    text-align: center;
    padding: 2rem 1.5rem;
    transition: transform 0.3s ease;
}

.work-item:hover {
    transform: translateY(-4px);
}

.work-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 2px 8px rgba(74, 222, 128, 0.2));
}

.work-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.work-item p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

/* Utility classes */
.mobile-only {
    display: none;
}

/* Responsive adjustments for How It Works */
@media (max-width: 768px) {
    .mobile-only {
        display: inline;
    }
    .how-it-works {
        margin: 0rem 0;
        padding: 0rem 0;
    }

    .how-it-works-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 2.5rem;
    }

    .how-it-works-links {
        gap: 1.5rem;
        flex-direction: column;
        align-items: center;
    }

    .hiw-link {
        min-width: auto;
        width: 100%;
        max-width: 400px;
        padding: 1.25rem 1.5rem;
        gap: 1.25rem;
    }

    .hiw-icon {
        font-size: 2rem;
    }

    .hiw-text strong {
        font-size: 1.1rem;
    }

    .hiw-text small {
        font-size: 0.85rem;
    }

    .tree-diagram {
        padding: 2rem 1rem;
        margin-bottom: 3rem;
    }

    .tree-level {
        gap: 1rem;
    }

    .tree-branches {
        gap: 2rem;
    }

    .how-it-works-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .work-item {
        padding: 1.5rem 1rem;
    }

    .work-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .work-item h4 {
        font-size: 1.2rem;
    }

    .work-item p {
        font-size: 1rem;
    }
}

@media (max-width: 430px) {
    .how-it-works {
        margin: 2rem 0;
        padding: 2rem 0;
    }

    .how-it-works-title {
        font-size: clamp(1.75rem, 9vw, 2.5rem);
        margin-bottom: 2rem;
    }

    .how-it-works-links {
        gap: 1rem;
    }

    .hiw-link {
        padding: 1rem 1.25rem;
        gap: 1rem;
        min-width: auto;
    }

    .hiw-icon {
        font-size: 1.75rem;
    }

    .hiw-text strong {
        font-size: 1rem;
    }

    .hiw-text small {
        font-size: 0.8rem;
    }

    .tree-diagram {
        padding: 1.5rem 0.75rem;
        margin-bottom: 2rem;
    }

    .tree-node {
        padding: 0.75rem 1rem;
        border-radius: 10px;
    }

    .node-label {
        font-size: 0.85rem;
    }

    .tree-branches,
    .tree-branches-small {
        height: 20px;
    }

    .how-it-works-grid {
        gap: 1.5rem;
        padding: 0 0.75rem;
    }

    .work-icon {
        font-size: 2.2rem;
    }

    .work-item h4 {
        font-size: 1.1rem;
    }

    .work-item p {
        font-size: 0.95rem;
    }
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.7rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #4ade80;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Technology Section */
.section-technology {
    padding: 8rem 0;
    background: rgba(10, 10, 10, 0.3);
    backdrop-filter: blur(3px);
    color: #fff;
    position: relative;
    z-index: 1;
}

.tech-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.tech-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, #4ade80, #22c55e);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    padding-left: 5rem;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #000;
    font-size: 1.2rem;
}

.timeline-content h3 {
    font-size: 1.7rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #4ade80;
}

.timeline-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Contact Section */
.section-contact {
    padding: 8rem 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(10, 20, 10, 0.9) 100%);
    backdrop-filter: blur(20px);
    color: #fff;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(42, 93, 54, 0.3);
}

.section-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(42, 93, 54, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.contact-content {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.contact-info {
    text-align: left;
    max-width: 700px;
}

.contact-info h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.contact-info p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #4ade80;
    flex-shrink: 0;
}

.contact-icon svg {
    color: #4ade80;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #4ade80;
}

.email-contact {
    cursor: pointer;
    transition: all 0.3s ease;
}

.email-contact:hover {
    color: #4ade80;
    transform: translateX(4px);
}

.email-contact:hover .contact-icon svg {
    color: #22c55e;
}

.email-contact:active {
    transform: translateX(2px) scale(0.98);
}

.email-contact.copied {
    color: #22c55e;
    transform: translateX(4px);
}

.email-contact.copied .contact-icon svg {
    color: #22c55e;
}

.location-note {
    margin-top: 3rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.contact-form {
    background: rgba(255, 255, 255, 0.08);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4ade80;
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Footer */
.footer {
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 3rem 0 1rem;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.footer-tagline {
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 0.5rem;
}

.footer-tagline a {
    color: inherit;
    text-decoration: none;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4ade80;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Mobile optimizations */
.touch-device #tree-container canvas {
    image-rendering: optimizeSpeed;
    image-rendering: -webkit-optimize-contrast;
}

/* Reduce or disable animations/transitions on touch devices to improve scroll smoothness */
.touch-device *,
.mobile-reduced-motion * {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
}

/* Restore essential fades where needed without affecting layout jank */
.touch-device .bar-fill {
    transition: none !important;
}
.touch-device .tab-pane,
.touch-device .tab-buttons,
.touch-device .tab-text,
.touch-device .tab-image {
    transition: none !important;
}
.touch-device .chart-aurora,
.touch-device .performance-particles,
.touch-device .performance-grid,
.touch-device .announcement-content,
.touch-device .badge-icon,
.touch-device .failure-badge,
.mobile-reduced-motion .chart-aurora,
.mobile-reduced-motion .performance-particles,
.mobile-reduced-motion .performance-grid,
.mobile-reduced-motion .announcement-content,
.mobile-reduced-motion .badge-icon,
.mobile-reduced-motion .failure-badge {
    animation: none !important;
}

/* Respect reduced motion preference too */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

.low-end-device #tree-container {
    transform: scale(0.8);
    transform-origin: center center;
}

/* Fade-in animation for scroll effects */
.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* Enhanced button effects */
.btn-primary:active,
.btn-secondary:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

/* Improved mobile navigation */
.nav-links.active {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 1.5rem;
}

.nav-links.active a {
    font-size: 1.2rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-mobile-toggle {
        display: flex;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 280px;
    }

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

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

    .api-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 3rem;
    }

    .api-section {
        padding: 1.5rem;
    }

    /* Quickstart Section Mobile */
    .tab-header {
        grid-template-columns: 1fr;
        grid-template-areas:
            "image"
            "text";
        gap: 1rem;
        padding: 1.5rem;
    }

    .tab-image {
        order: 1;
        padding: 1.5rem;
    }

    .tab-text {
        order: 2;
    }

    .tab-buttons {
        gap: 0.25rem;
    }

    .tab-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }

    .tab-pane h1 {
        font-size: 1.5rem;
    }

    /* Claude Code Infinite responsive */
    .github-cta {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .code-example {
        margin: 1.5rem 0;
    }

    .code-example h4 {
        padding: 0.75rem 1rem 0.5rem;
        font-size: 0.9rem;
    }

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

    .tech-timeline::before {
        left: 15px;
    }

    .timeline-item {
        padding-left: 3rem;
    }

    .timeline-marker {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .section-contact {
        padding: 6rem 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .hero-overlay {
        padding: 1rem;
    }

    .section-about,
    .section-technology,
    .section-contact {
        padding: 4rem 0;
    }

}

/* Performance Section - Premium Redesign */
.performance-section {
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: linear-gradient(135deg,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(16, 22, 32, 0.95) 50%,
        rgba(0, 0, 0, 0.9) 100%);
    border: 1px solid rgba(74, 222, 128, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(24px);
}

/* Background Elements */
.performance-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.performance-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(74, 222, 128, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(147, 51, 234, 0.1) 0%, transparent 50%);
}

.performance-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridPulse 4s ease-in-out infinite alternate;
}

@keyframes particleFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes gridPulse {
    0% { opacity: 0.02; }
    100% { opacity: 0.05; }
}

/* Content */
.performance-content {
    position: relative;
    z-index: 10;
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

/* Header */
.performance-header {
    margin-bottom: 4rem;
}

.performance-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(74, 222, 128, 0.04);
    border: 1px solid rgba(74, 222, 128, 0.12);
    border-radius: 50px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: none;
    animation: none;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 32px rgba(74, 222, 128, 0.2); }
    50% { transform: scale(1.02); box-shadow: 0 12px 40px rgba(74, 222, 128, 0.3); }
}

.badge-icon {
    font-size: 1.1rem;
    animation: none;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.badge-text {
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.performance-header h3 {
    color: #fff;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg,
        #fff 0%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(74, 222, 128, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.performance-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.3rem;
    margin-bottom: 0;
    font-weight: 400;
    line-height: 1.6;
}

.highlight-text {
    background: linear-gradient(135deg, #4ade80, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* Stats Cards */
.performance-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.stat-card {
    position: relative;
    padding: 2rem;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(74, 222, 128, 0.2);
    border-color: rgba(74, 222, 128, 0.3);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        rgba(74, 222, 128, 0.8),
        rgba(59, 130, 246, 0.8),
        rgba(147, 51, 234, 0.8));
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(74, 222, 128, 0.3));
}

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

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-main {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.stat-value {
    color: #4ade80;
    font-weight: 800;
    font-size: 2.2rem;
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.5);
    transition: all 0.3s ease;
}

.stat-unit {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 1.1rem;
}

.stat-secondary {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.4;
}

.stat-cost {
    color: #fbbf24;
    font-weight: 600;
}

.stat-accuracy {
    color: #34d399;
    font-weight: 700;
}

.failure-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
    animation: failurePulse 2s ease-in-out infinite;
}

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

.stat-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

.stat-glow.success {
    box-shadow: 0 0 60px rgba(74, 222, 128, 0.3);
}

.stat-glow.warning {
    box-shadow: 0 0 60px rgba(249, 115, 22, 0.3);
}

.stat-card:hover .stat-glow {
    opacity: 1;
}

/* Chart Showcase */
.chart-showcase {
    position: relative;
    margin: 3rem 0;
}

.chart-container {
    position: relative;
    padding: 3rem;
    background: linear-gradient(135deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(16, 22, 32, 0.8) 50%,
        rgba(0, 0, 0, 0.6) 100%);
    border: 2px solid rgba(74, 222, 128, 0.2);
    border-radius: 28px;
    backdrop-filter: blur(20px);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(74, 222, 128, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.chart-aurora {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(74, 222, 128, 0.05) 0%,
        rgba(59, 130, 246, 0.05) 25%,
        rgba(147, 51, 234, 0.05) 50%,
        rgba(236, 72, 153, 0.05) 75%,
        rgba(74, 222, 128, 0.05) 100%);
    background-size: 400% 400%;
    animation: auroraMove 20s ease infinite;
    border-radius: 28px;
    z-index: 0;
}

@keyframes auroraMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.chart-header {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.chart-title-group h4 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, #fff, rgba(74, 222, 128, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.chart-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    font-weight: 400;
}

.chart-legend {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

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

.legend-item.memory .legend-dot {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.legend-item.no-memory .legend-dot {
    background: linear-gradient(135deg, #f97316, #ea580c);
    box-shadow: 0 0 8px rgba(249, 115, 22, 0.5);
}

.chart-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: stretch;
    gap: 2rem;
    height: 450px;
}

.chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    width: 160px;
    height: 100%;
    position: relative;
    padding-right: 1rem;
    /* Increase left padding to make space for rotated y-label */
    padding-left: 4.5rem;
}

.y-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center;
    white-space: nowrap;
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.y-label-sub {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.y-ticks {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    height: 350px;
    width: 100%;
    padding-right: 0.5rem;
    position: relative;
    margin-top: 1rem;
    margin-bottom: 0;
    z-index: 2; /* Ensure ticks render above the label if they overlap */
}

.y-tick {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-align: right;
    width: 100%;
    position: absolute;
    font-weight: 500;
    font-family: 'SF Mono', 'Monaco', monospace;
    transform: translateY(-50%); /* Center the tick on its position line */
}

/* Position each tick at exact percentage positions to align with bar heights */
.y-tick:nth-child(1) { top: 0%; }      /* 1.0 */
.y-tick:nth-child(2) { top: 20%; }     /* 0.8 */
.y-tick:nth-child(3) { top: 40%; }     /* 0.6 */
.y-tick:nth-child(4) { top: 60%; }     /* 0.4 */
.y-tick:nth-child(5) { top: 80%; }     /* 0.2 */
.y-tick:nth-child(6) { top: 100%; }    /* 0.0 */

.y-tick::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    width: 10px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.chart-area {
    flex: 1;
    position: relative;
}

.chart-grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 350px;
    margin-top: 1rem;
}

/* Grid lines positioned exactly at the same percentages as y-ticks */
.chart-grid-lines::before,
.chart-grid-lines::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
}

.chart-grid-lines::before { top: 20%; } /* 0.8 line */
.chart-grid-lines::after { top: 40%; }  /* 0.6 line */

/* Additional grid lines using pseudo-elements */
.chart-area::before,
.chart-area::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    top: 1rem; /* Account for margin-top */
    z-index: 1;
}

.chart-area::before { top: calc(1rem + 60%); } /* 0.4 line */
.chart-area::after { top: calc(1rem + 80%); }  /* 0.2 line */

.chart-bars {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 4rem;
    height: 511px;
    margin-top: 1rem;
    position: relative;
    z-index: 5;
}

.chart-bars::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 1px;
}

.bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

.bar {
    width: 313px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 350px;
    justify-content: flex-end;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bar:hover {
    transform: scale(1.02);
}

.bar-shadow {
    position: absolute;
    bottom: -10px;
    width: 120%;
    height: 20px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.3), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.bar:hover .bar-shadow {
    opacity: 1;
}

.bar-fill {
    width: 100%;
    border-radius: 12px 12px 4px 4px;
    position: relative;
    transition: height 2s cubic-bezier(0.2, 0.8, 0.2, 1);
    height: 0;
    overflow: hidden;
}

.bar-with-memory .bar-fill {
    background: linear-gradient(180deg,
        #60a5fa 0%,
        #3b82f6 30%,
        #2563eb 70%,
        #1d4ed8 100%);
    box-shadow:
        0 8px 32px rgba(59, 130, 246, 0.4),
        0 0 40px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.bar-without-memory .bar-fill {
    background: linear-gradient(180deg,
        #fb923c 0%,
        #f97316 30%,
        #ea580c 70%,
        #c2410c 100%);
    box-shadow:
        0 8px 32px rgba(249, 115, 22, 0.4),
        0 0 40px rgba(249, 115, 22, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.bar-shine {
    position: absolute;
    top: 0;
    left: 10%;
    width: 30%;
    height: 100%;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%);
    border-radius: 6px;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.bar-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.6) 2px, transparent 2px),
        radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.4) 1px, transparent 1px),
        radial-gradient(circle at 60% 80%, rgba(255, 255, 255, 0.5) 1.5px, transparent 1.5px);
    background-size: 40px 40px, 30px 30px, 50px 50px;
    animation: particleFloat 4s ease-in-out infinite;
    opacity: 0.3;
}

.bar-value {
    position: absolute;
    top: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    backdrop-filter: none;
    opacity: 1;
    transition: none;
    z-index: 20;
}

/* Specific positioning for the bar with value 0.690 */
.bar[data-value="0.690"] .bar-value {
    top: 3.5rem;
}

.value-number {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'SF Mono', 'Monaco', monospace;
}

.value-pulse { display: none; }

@keyframes valuePulse {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.bar-impact-indicator {
    position: absolute;
    top: -4rem;
    right: -1rem;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #4ade80, #22d3ee);
    border-radius: 50%;
    opacity: 0;
    animation: impactBlink 3s ease-in-out infinite 2s;
}

@keyframes impactBlink {
    0%, 90%, 100% { opacity: 0; transform: scale(1); }
    95% { opacity: 1; transform: scale(1.5); }
}

.bar-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    margin-top: 1.25rem; /* add a bit more space from the x-axis */
    padding: 0; /* remove pill padding */
    background: transparent; /* no background */
    border-radius: 0; /* no rounded corners */
    border: none; /* no border */
    backdrop-filter: none; /* no blur */
    white-space: nowrap;
}

/* Performance Gap Indicator */
.performance-gap-indicator {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    pointer-events: none;
}

@keyframes gapPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; transform: scaleX(1.1); }
}

.gap-label {
    position: absolute;
    top: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg,
        rgba(74, 222, 128, 1.0),
        rgba(34, 211, 238, 0.95));
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(74, 222, 128, 0.4);
    animation: gapLabelFloat 4s ease-in-out infinite;
}

@keyframes gapLabelFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-3px); }
}

.gap-percentage {
    font-size: 1rem;
    font-weight: 800;
}

.gap-text {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.8;
}

/* Chart Source */
.chart-source {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 4.5rem; /* push badge lower so it won't overlap labels */
    padding-top: 2.5rem; /* increase spacing above */
}

.source-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(5px);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.source-badge:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(74, 222, 128, 0.3);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.source-icon {
    font-size: 1rem;
}

/* Enlarge Octocat icon inside the source badge */
.source-badge .source-icon {
    display: inline-flex;
    align-items: center;
}

.source-badge .source-icon svg {
    width: 20px;
    height: 20px;
}

/* Breakthrough Announcement */
.breakthrough-announcement {
    margin-top: 4rem;
    position: relative;
}

.announcement-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem;
    border-radius: 16px;
    
    /* Clean, Apple-inspired background */
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    
    backdrop-filter: blur(16px);
    
    /* Minimal, tasteful shadow */
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

/* Remove all pseudo-elements and hover effects for cleaner look */
.announcement-content::after {
    display: none;
}

.announcement-content:hover {
    transform: none;
    box-shadow: inherit;
}

@keyframes announcementGlow {
    0% { box-shadow: 0 0 40px rgba(74, 222, 128, 0.2); }
    100% { box-shadow: 0 0 60px rgba(74, 222, 128, 0.35); }
}

@keyframes sheenMove {
    0% { transform: translateX(-120%); }
    45% { transform: translateX(0%); }
    100% { transform: translateX(120%); }
}

.announcement-icon {
    font-size: 2.5rem;
    color: #4ade80;
    filter: none;
}

.announcement-content:hover .announcement-icon {
    transform: none;
    filter: none;
}

.announcement-text {
    flex: 1;
    text-align: left;
}

.announcement-text h5 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #ffffff;
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.3;
}

.announcement-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.announcement-text a {
    color: #22d3ee;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.announcement-text a:hover {
    color: #4ade80;
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}

.announcement-text strong {
    background: linear-gradient(135deg, #4ade80, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* Remove announcement glow entirely for clean look */
.announcement-glow {
    display: none;
}

/* Chart Animation States */
.bar-fill.animated {
    height: var(--bar-height);
}

.bar-value.visible { opacity: 1; }

.bar-value.visible .value-pulse {
    opacity: 1;
}

.bar-impact-indicator.visible {
    opacity: 1;
}

/* Responsive Design for Performance Section */
@media (max-width: 1000px) {
    .bar {
        width: 200px;
        height: 250px;
    }

    /* Adjust overall bar area height and spacing slightly below desktop */
    .chart-bars {
        height: 468px;
        gap: 3rem;
    }

    /* Keep wrapper and grid/ticks consistent with 250px bar height */
    .chart-wrapper {
        height: 400px;
    }
    .y-ticks {
        height: 250px;
    }
    .chart-grid-lines {
        height: 250px;
    }

    /* Nudge value labels closer to bars for this breakpoint */
    .bar-value {
        top: -2rem;
    }

    /* Ensure the 0.690 value sits just above the bar on smaller widths */
    .bar[data-value="0.690"] .bar-value {
        top: 1.5rem;
    }

    .performance-content {
        padding: 3rem 1.5rem;
    }

    .performance-header h3 {
        font-size: 2.8rem;
    }

    .performance-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .chart-container {
        padding: 2rem;
    }

    .announcement-content {
        padding: 2rem;
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .performance-section {
        margin-top: 2rem;
        border-radius: 20px;
    }

    .performance-content {
        padding: 2rem 1rem;
    }

    .performance-header h3 {
        font-size: 2rem;
    }

    .performance-subtitle {
        font-size: 1rem;
    }

    .performance-badge {
        padding: 0.5rem 1rem;
        margin-bottom: 1.5rem;
    }

    .badge-text {
        font-size: 0.75rem;
    }

    .performance-stats {
        gap: 1rem;
        margin-bottom: 3rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-icon {
        font-size: 2rem;
    }

    .stat-value {
        font-size: 1.8rem;
    }

    .chart-container {
        padding: 1.5rem 1rem;
        margin: 2rem 0;
    }

    .chart-header {
        flex-direction: column;
        gap: 1rem;
    }

    .chart-title-group h4 {
        font-size: 1.3rem;
    }

    .chart-legend {
        gap: 1rem;
    }

    .chart-wrapper {
        height: 350px;
        gap: 1rem;
    }

    .chart-y-axis {
        width: 100px;
    }

    .y-ticks {
        height: 250px;
    }

    .chart-bars {
        height: 416px;
        gap: 2rem;
    }

    .bar {
        width: 150px;
        height: 250px;
    }

    .chart-grid-lines {
        height: 250px;
    }

    .performance-gap-indicator {
        display: none; /* Hide on mobile for cleaner look */
    }

    .announcement-content {
        padding: 2rem 1rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .announcement-icon {
        font-size: 2.5rem;
    }

    .announcement-text h5 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .announcement-text p {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .bar {
        width: 100px;
        height: 200px;
    }
}


@media (max-width: 480px) {
    .performance-content {
        padding: 1.5rem 0.75rem;
    }

    .performance-header h3 {
        font-size: 1.6rem;
        line-height: 1.2;
    }

    .chart-wrapper {
        height: 300px;
        gap: 0.5rem;
    }

    .chart-y-axis {
        width: 80px;
    }

    .y-ticks {
        height: 200px;
    }

    .chart-bars {
        height: 365px;
        gap: 1.5rem;
    }

    .bar {
        width: 100px;
        height: 200px;
    }

    .chart-grid-lines {
        height: 200px;
    }
}

/* Mobile Phone Specific Styles - Typical mobile screens 360-430px */
@media (max-width: 430px) {
    /* Enhanced mobile typography */
    body {
        font-size: 16px;
    }

    /* Navigation optimizations */
    .nav-container {
        padding: 0.75rem 1rem;
    }

    .nav-logo {
        font-size: 1.3rem;
    }

    .logo-tagline {
        font-size: 0.8rem;
    }

    /* Hero section mobile optimizations */
    .hero {
        height: auto;
        min-height: 80vh;
        padding-top: 80px;
    }

    .hero-overlay {
        padding: 2.5rem 0.75rem 1rem;
    }

    .hero-title {
        font-size: clamp(2rem, 12vw, 3.5rem);
        margin-bottom: 1rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.3rem);
        margin-bottom: 0.5rem;
    }

    .hero-compression-text {
        font-size: clamp(0.95rem, 3.9vw, 1.2rem);
        margin-bottom: 1.5rem;
    }

    .hero-tagline {
        font-size: clamp(0.8rem, 3vw, 1rem);
    }

    .hero-feature-bubble {
        padding: 0.5rem 0.9rem;
        font-size: 0.85rem;
        gap: 0.4rem;
        border-radius: 8px;
    }

    .hero-feature-bubble::before {
        border-radius: 8px;
    }

    .hero-feature-bubble .bubble-highlight {
        font-size: 0.9rem;
    }

    .hero-buttons {
        gap: 0.75rem;
    }

    .btn-primary, .btn-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        min-width: 140px;
        max-width: 260px;
    }

    /* Container and section adjustments */
    .container {
        padding: 0 0.75rem;
    }

    .section-about,
    .section-technology,
    .section-contact {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-header h2 {
        font-size: clamp(2rem, 10vw, 2.8rem);
    }

    .section-header h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .section-header p {
        font-size: 1.1rem;
    }

    /* Feature cards mobile optimization */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }

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

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

    .feature-card p {
        font-size: 1rem;
        line-height: 1.5;
    }

    /* API section mobile adjustments */
    .api-details {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }

    .api-section {
        padding: 1rem;
    }

    .api-section h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .api-section p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    /* Quickstart section mobile improvements */
    .quickstart-content {
        padding: 0 0.5rem;
    }

    .quickstart-info h3 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .quickstart-info p {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    /* Tab system mobile enhancements */
    .tab-buttons {
        gap: 0.25rem;
        padding-bottom: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .tab-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        border-radius: 6px;
    }

    .tab-header {
        padding: 1rem;
        gap: 1rem;
    }

    .tab-text h1 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .tab-text p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .tab-image {
        padding: 1rem;
    }

    .tab-image img {
        max-width: 100%;
        width: 100%;
        height: auto;
    }

    /* Code examples mobile optimization */
    .code-example {
        margin: 1rem 0;
        border-radius: 8px;
    }

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

    .code-example pre {
        padding: 1rem 0.75rem;
        font-size: 0.75rem;
        line-height: 1.4;
        padding-top: 2rem;
    }

    .code-copy-btn {
        top: 0.75rem;
        right: 0.75rem;
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    /* Setup instructions mobile adjustments */
    .setup-instructions {
        margin: 0.75rem 0 0 0;
    }

    .setup-instructions li {
        font-size: 1rem;
        margin: 0.25rem 0;
    }

    .setup-instructions code {
        font-size: 0.85em;
        padding: 0.15rem 0.35rem;
    }

    /* Technology timeline mobile */
    .tech-timeline::before {
        left: 12px;
    }

    .timeline-item {
        padding-left: 2.5rem;
        margin-bottom: 2.5rem;
    }

    .timeline-marker {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }

    .timeline-content h3 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .timeline-content p {
        font-size: 1rem;
        line-height: 1.5;
    }

    /* Contact section mobile */
    .section-contact {
        padding: 4rem 0;
    }

    .contact-info h2 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .contact-info p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .contact-item {
        font-size: 1rem;
    }

    .contact-details {
        gap: 1.25rem;
    }

    .location-note {
        margin-top: 2rem;
        font-size: 0.9rem;
    }

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

    .form-group input,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 1rem;
        border-radius: 8px;
    }

    /* Footer mobile optimization */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .footer-brand {
        font-size: 1.3rem;
    }

    .footer-tagline {
        font-size: 0.8rem;
    }

    .footer-links {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Performance section mobile phone optimization */
    .performance-section {
        margin-top: 1.5rem;
        border-radius: 16px;
    }

    .performance-content {
        padding: 1.5rem 0.75rem;
    }

    .performance-header {
        margin-bottom: 2.5rem;
    }

    .performance-badge {
        padding: 0.5rem 1rem;
        margin-bottom: 1rem;
        font-size: 0.8rem;
    }

    .badge-text {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }

    .performance-header h3 {
        font-size: 1.5rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }

    .performance-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .performance-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2.5rem;
    }

    .stat-card {
        padding: 1.25rem 1rem;
        border-radius: 16px;
    }

    .stat-icon {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }

    .stat-label {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .stat-value {
        font-size: 1.6rem;
    }

    .stat-unit {
        font-size: 1rem;
    }

    .stat-secondary {
        font-size: 0.85rem;
    }

    /* Chart container mobile phone adjustments */
    .chart-container {
        padding: 1rem 0.75rem;
        border-radius: 16px;
        margin: 1.5rem 0;
    }

    .chart-header {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .chart-title-group h4 {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }

    .chart-subtitle {
        font-size: 0.8rem;
    }

    .chart-legend {
        gap: 0.75rem;
        justify-content: center;
    }

    .legend-item {
        font-size: 0.8rem;
    }

    .legend-dot {
        width: 10px;
        height: 10px;
    }

    /* Chart dimensions for mobile phones */
    .chart-wrapper {
        height: 280px;
        gap: 0.5rem;
    }

    .chart-y-axis {
        width: 70px;
        padding-left: 3.5rem;
        padding-right: 0.5rem;
    }

    .y-label {
        font-size: 0.8rem;
    }

    .y-label-sub {
        font-size: 0.75rem;
    }

    .y-ticks {
        height: 180px;
        padding-right: 0.25rem;
    }

    .y-tick {
        font-size: 0.8rem;
    }

    .y-tick::after {
        right: -8px;
        width: 6px;
    }

    .chart-grid-lines {
        height: 180px;
    }

    .chart-bars {
        height: 345px;
        gap: 1rem;
    }

    .bar {
        width: 80px;
        height: 180px;
    }

    .bar-fill {
        border-radius: 8px 8px 3px 3px;
    }

    .bar-value {
        top: -1.75rem;
    }

    .bar[data-value="0.690"] .bar-value {
        top: 1rem;
    }

    .value-number {
        font-size: 0.95rem;
    }

    .bar-label {
        font-size: 0.85rem;
        margin-top: 1rem;
    }

    /* Hide performance gap indicator on very small screens */
    .performance-gap-indicator {
        display: none;
    }

    /* Chart source mobile */
    .chart-source {
        margin-top: 4rem;
        padding-top: 2.5rem;
    }

    .source-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        border-radius: 16px;
    }

    .source-badge .source-icon svg {
        width: 16px;
        height: 16px;
    }

    /* Breakthrough announcement mobile */
    .breakthrough-announcement {
        margin-top: 2.5rem;
    }

    .announcement-content {
        padding: 1.5rem 1rem;
        gap: 1rem;
        border-radius: 16px;
        flex-direction: column;
        text-align: center;
    }

    .announcement-icon {
        font-size: 2rem;
    }

    .announcement-text h5 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
        letter-spacing: 0.5px;
    }

    .announcement-text p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Mobile navigation improvements */
    .nav-links.active {
        padding: 1.5rem 1rem;
        gap: 1rem;
    }

    .nav-links.active a {
        font-size: 1.1rem;
        padding: 0.4rem 0;
    }

    /* Mobile scroll indicator adjustments */
    .hero-scroll-indicator {
        bottom: 1.5rem;
        font-size: 0.8rem;
    }

/* Restore hero fade-in animations on mobile/touch despite global mobile optimizations */
.touch-device .hero .title-line,
.mobile-reduced-motion .hero .title-line {
    animation: fadeInUp 1s ease 0.2s both !important;
}
.touch-device .hero .title-line:nth-child(2),
.mobile-reduced-motion .hero .title-line:nth-child(2) {
    animation-delay: 0.4s !important;
}
.touch-device .hero-subtitle,
.mobile-reduced-motion .hero-subtitle {
    animation: fadeInUp 1s ease 0.6s both !important;
}
.touch-device .hero-compression-text,
.mobile-reduced-motion .hero-compression-text {
    animation: fadeInUp 1s ease 0.7s both !important;
}
.touch-device .hero-tagline,
.mobile-reduced-motion .hero-tagline {
    animation: fadeInUp 1s ease 0.8s both !important;
}
.touch-device .hero-buttons,
.mobile-reduced-motion .hero-buttons {
    animation: fadeInUp 1s ease 0.8s both !important;
}

    .scroll-arrow {
        width: 16px;
        height: 16px;
    }

    /* Touch optimizations */
    .btn-primary:active,
    .btn-secondary:active {
        transform: scale(0.98);
    }

    .tab-btn:active {
        transform: scale(0.97);
    }

    .copy-btn:active,
    .code-copy-btn:active {
        transform: scale(0.95);
    }
}
