/* ===== CSS VARIABLES ===== */
:root {
    --primary: #00f0ff;
    --primary-dark: #00c0cc;
    --primary-light: #40f5ff;
    --secondary: #7000ff;
    --secondary-dark: #5000cc;
    --accent: #ff006e;
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-card: rgba(20, 20, 30, 0.6);
    --bg-card-hover: rgba(30, 30, 45, 0.7);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;
    --border: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 240, 255, 0.3);
    --shadow-glow: 0 0 30px rgba(0, 240, 255, 0.2);
    --gradient-primary: linear-gradient(135deg, #00f0ff 0%, #7000ff 100%);
    --gradient-secondary: linear-gradient(135deg, #7000ff 0%, #ff006e 100%);
    --gradient-cyan: linear-gradient(135deg, #00f0ff 0%, #00ff88 100%);
    --gradient-purple: linear-gradient(135deg, #7000ff 0%, #b000ff 100%);
    --gradient-pink: linear-gradient(135deg, #ff006e 0%, #ff00ff 100%);
    --gradient-orange: linear-gradient(135deg, #ff6b00 0%, #ff006e 100%);
    --gradient-green: linear-gradient(135deg, #00ff88 0%, #00f0ff 100%);
    --gradient-blue: linear-gradient(135deg, #0088ff 0%, #7000ff 100%);
    --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
}

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

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

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

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    cursor: pointer;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-lang {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.lang-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: var(--text-primary);
}

/* ===== MAIN CONTENT ===== */
#app {
    min-height: 100vh;
    padding-top: 80px;
}

.page {
    animation: fadeIn 0.3s ease;
}

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

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: -150px;
    left: -100px;
    animation-delay: -2s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 2rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    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-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* ===== SECTIONS ===== */
section {
    padding: 6rem 2rem;
}

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

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

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

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* ===== FEATURES ===== */
.features {
    background: var(--bg-darker);
}

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

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--card-gradient, var(--gradient-primary));
    opacity: 0.05;
    transition: opacity 0.3s ease;
    border-radius: 1rem;
}

.feature-card:hover::before {
    opacity: 0.1;
}

.feature-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.feature-card > * {
    position: relative;
    z-index: 1;
}

/* Different gradient colors for feature cards */
.feature-card:nth-child(1) {
    --card-gradient: var(--gradient-cyan);
    --icon-gradient: var(--gradient-cyan);
    --glow-color: rgba(0, 240, 255, 0.3);
}

.feature-card:nth-child(2) {
    --card-gradient: var(--gradient-purple);
    --icon-gradient: var(--gradient-purple);
    --glow-color: rgba(112, 0, 255, 0.3);
}

.feature-card:nth-child(3) {
    --card-gradient: var(--gradient-green);
    --icon-gradient: var(--gradient-green);
    --glow-color: rgba(0, 255, 136, 0.3);
}

.feature-card:nth-child(4) {
    --card-gradient: var(--gradient-pink);
    --icon-gradient: var(--gradient-pink);
    --glow-color: rgba(255, 0, 110, 0.3);
}

.feature-card:nth-child(5) {
    --card-gradient: var(--gradient-blue);
    --icon-gradient: var(--gradient-blue);
    --glow-color: rgba(0, 136, 255, 0.3);
}

.feature-card:nth-child(6) {
    --card-gradient: var(--gradient-orange);
    --icon-gradient: var(--gradient-orange);
    --glow-color: rgba(255, 107, 0, 0.3);
}

.feature-card:hover {
    box-shadow: 0 8px 32px var(--glow-color);
    border-color: var(--glow-color);
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--icon-gradient, var(--gradient-primary));
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    box-shadow: 0 4px 20px var(--glow-color);
}

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

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== QUICKSTART ===== */
.quickstart {
    background: var(--bg-dark);
}

.code-window {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

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

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

.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28c940; }

.code-title {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.code-content {
    padding: 1.5rem;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.7;
}

.code-content code {
    color: var(--text-primary);
}

.comment { color: #6a9955; }
.keyword { color: #569cd6; }
.string { color: #ce9178; }
.number { color: #b5cea8; }

/* ===== DOCUMENTATION PAGE ===== */
.doc-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.doc-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.doc-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.doc-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.doc-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.doc-breadcrumb a:hover {
    color: var(--primary);
}

.doc-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
}

.doc-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.doc-sidebar ul {
    list-style: none;
}

.doc-sidebar li {
    margin-bottom: 0.5rem;
}

.doc-sidebar a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.doc-sidebar a:hover,
.doc-sidebar a.active {
    color: var(--primary);
}

.doc-main {
    font-size: 1.125rem;
    line-height: 1.8;
}

.doc-main h2 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.doc-main h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.doc-main h4 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
}

.doc-main p {
    margin-bottom: 1rem;
}

.doc-main ul,
.doc-main ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.doc-main li {
    margin-bottom: 0.5rem;
}

.doc-main pre {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.doc-main code {
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.doc-main p code,
.doc-main li code {
    background: var(--bg-darker);
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.doc-main table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.doc-main th,
.doc-main td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.doc-main th {
    background: var(--bg-card);
    font-weight: 600;
}

.doc-main a {
    color: var(--primary);
    text-decoration: none;
}

.doc-main a:hover {
    text-decoration: underline;
}

/* ===== DOCS GRID PAGE ===== */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.doc-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
}

.doc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--card-gradient, var(--gradient-primary));
    opacity: 0.05;
    transition: opacity 0.3s ease;
    border-radius: 1rem;
}

.doc-card:hover::before {
    opacity: 0.1;
}

.doc-card:hover {
    border-color: var(--glow-color, var(--primary));
    transform: translateY(-4px);
    box-shadow: 0 8px 32px var(--glow-color, rgba(0, 240, 255, 0.3));
}

.doc-card > * {
    position: relative;
    z-index: 1;
}

/* Different gradient colors for doc cards */
.doc-card:nth-child(1) {
    --card-gradient: var(--gradient-cyan);
    --glow-color: rgba(0, 240, 255, 0.3);
}

.doc-card:nth-child(2) {
    --card-gradient: var(--gradient-purple);
    --glow-color: rgba(112, 0, 255, 0.3);
}

.doc-card:nth-child(3) {
    --card-gradient: var(--gradient-blue);
    --glow-color: rgba(0, 136, 255, 0.3);
}

.doc-card:nth-child(4) {
    --card-gradient: var(--gradient-green);
    --glow-color: rgba(0, 255, 136, 0.3);
}

.doc-card:nth-child(5) {
    --card-gradient: var(--gradient-orange);
    --glow-color: rgba(255, 107, 0, 0.3);
}

.doc-card:nth-child(6) {
    --card-gradient: var(--gradient-pink);
    --glow-color: rgba(255, 0, 110, 0.3);
}

.doc-card:nth-child(7) {
    --card-gradient: var(--gradient-cyan);
    --glow-color: rgba(0, 240, 255, 0.3);
}

.doc-card:nth-child(8) {
    --card-gradient: var(--gradient-secondary);
    --glow-color: rgba(112, 0, 255, 0.3);
}

.doc-card:nth-child(9) {
    --card-gradient: var(--gradient-purple);
    --glow-color: rgba(112, 0, 255, 0.3);
}

.doc-card:nth-child(10) {
    --card-gradient: var(--gradient-green);
    --glow-color: rgba(0, 255, 136, 0.3);
}

.doc-card:nth-child(11) {
    --card-gradient: var(--gradient-pink);
    --glow-color: rgba(255, 0, 110, 0.3);
}

.doc-card:nth-child(12) {
    --card-gradient: var(--gradient-orange);
    --glow-color: rgba(255, 107, 0, 0.3);
}

.doc-card:nth-child(13) {
    --card-gradient: var(--gradient-blue);
    --glow-color: rgba(0, 136, 255, 0.3);
}

.doc-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--card-gradient, var(--gradient-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

.doc-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.doc-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.doc-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--card-gradient, var(--gradient-primary));
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    padding: 4rem 2rem 2rem;
    margin-top: auto;
}

.footer-content {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.6;
}

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

/* ===== LOADING ===== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== EXAMPLES PAGE ===== */
.example-category {
    margin-bottom: 4rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--category-gradient, var(--gradient-primary));
    opacity: 0.08;
    border-radius: 12px;
}

.category-header > * {
    position: relative;
    z-index: 1;
}

/* Different colors for category headers */
.example-category:nth-child(1) .category-header {
    --category-gradient: var(--gradient-cyan);
    border-color: rgba(0, 240, 255, 0.2);
}

.example-category:nth-child(2) .category-header {
    --category-gradient: var(--gradient-purple);
    border-color: rgba(112, 0, 255, 0.2);
}

.example-category:nth-child(3) .category-header {
    --category-gradient: var(--gradient-green);
    border-color: rgba(0, 255, 136, 0.2);
}

.example-category:nth-child(4) .category-header {
    --category-gradient: var(--gradient-pink);
    border-color: rgba(255, 0, 110, 0.2);
}

.example-category:nth-child(5) .category-header {
    --category-gradient: var(--gradient-orange);
    border-color: rgba(255, 107, 0, 0.2);
}

.category-header svg {
    flex-shrink: 0;
    color: var(--primary);
}

.category-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.category-header p {
    margin: 0.25rem 0 0;
    color: var(--text-secondary);
}

.examples-list {
    display: grid;
    gap: 2rem;
}

.example-card h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.example-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.example-card .code-window {
    margin-top: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    /* Navigation */
    .nav-container {
        flex-wrap: wrap;
        padding: 0.75rem 1rem;
    }

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

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

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-darker);
        flex-direction: column;
        padding: 1rem;
        border-top: 1px solid var(--border);
        gap: 0;
    }

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

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 0.75rem 0;
        width: 100%;
    }

    .nav-lang {
        margin-left: auto;
    }

    .lang-btn {
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
    }

    /* Hero */
    .hero {
        padding: 6rem 1rem 2rem;
        min-height: auto;
    }

    .hero-bg {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

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

    .hero-stats {
        gap: 1.5rem;
        flex-direction: column;
    }

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

    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

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

    /* Features */
    .features-grid,
    .docs-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card,
    .doc-card {
        padding: 1.5rem;
    }

    /* Code Window */
    .code-window {
        margin: 0 -1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .code-content {
        font-size: 0.8rem;
        padding: 1rem;
        overflow-x: scroll;
    }

    /* Documentation Page */
    .doc-page {
        padding: 2rem 1rem;
    }

    .doc-header {
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }

    .doc-header h1 {
        font-size: 1.75rem;
    }

    .doc-breadcrumb {
        font-size: 0.875rem;
        flex-wrap: wrap;
    }

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

    .doc-sidebar {
        display: none;
    }

    .doc-main {
        font-size: 1rem;
    }

    .doc-main h2 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem;
    }

    .doc-main h3 {
        font-size: 1.25rem;
    }

    .doc-main h4 {
        font-size: 1.125rem;
    }

    .doc-main pre {
        font-size: 0.8rem;
        padding: 1rem;
        overflow-x: scroll;
    }

    .doc-main table {
        font-size: 0.875rem;
        display: block;
        overflow-x: scroll;
        white-space: nowrap;
    }

    .doc-main th,
    .doc-main td {
        padding: 0.75rem 0.5rem;
    }

    /* Sections */
    section {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

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

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

    .footer-bottom {
        font-size: 0.75rem;
    }

    /* Loading */
    .loading {
        min-height: 30vh;
    }

    /* Orbs animation disable on mobile */
    .floating-orb {
        display: none;
    }
}

/* Extra small phones */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.75rem;
    }

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

    .hero-subtitle,
    .section-subtitle {
        font-size: 0.875rem;
    }
}
