:root {
    --bg-dark: #07070a;
    --bg-darker: #030305;
    --text-primary: #ededed;
    --text-secondary: #8a8f98;
    --accent-primary: #a78bfa;
    --accent-secondary: #f472b6;
    --accent-tertiary: #60a5fa;
    --glass-bg: rgba(255, 255, 255, 0.015);
    --glass-border: rgba(255, 255, 255, 0.04);
    --glass-border-hover: rgba(255, 255, 255, 0.1);
    --positive: #34d399;
    --warning: #facc15;
    --negative: #f87171;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.4s var(--ease-out-expo);
}

a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Premium Background Glow */
.glow-bg {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 40% 40%, rgba(167, 139, 250, 0.05), transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(244, 114, 182, 0.03), transparent 40%),
        radial-gradient(circle at 50% 90%, rgba(96, 165, 250, 0.03), transparent 60%);
    z-index: -1;
    pointer-events: none;
    filter: blur(40px);
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.02);
    transition: all 0.5s var(--ease-out-expo);
}

/* Typography */
.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons - Premium Feel */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.btn-large {
    padding: 14px 32px;
    font-size: 1rem;
    border-radius: 12px;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-dark);
    border: none;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px -5px rgba(255, 255, 255, 0.2);
    color: var(--bg-dark);
    text-shadow: none;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(7, 7, 10, 0.5);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.4s ease;
}

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

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

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

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a:not(.btn) {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14rem 2rem 8rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    min-height: 100vh;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(167, 139, 250, 0.05);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 20px;
    color: #c4b5fd;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 480px;
    line-height: 1.7;
    font-weight: 300;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.feature-tag {
    font-size: 0.8rem;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.02em;
}

.feature-tag::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-primary);
}

.feature-tag:nth-child(2)::before { background: var(--accent-secondary); }
.feature-tag:nth-child(3)::before { background: var(--positive); }

.cta-group {
    display: flex;
    gap: 1.25rem;
}

/* Code Window (Terminal Aesthetic) */
.code-window {
    overflow: hidden;
    transform: perspective(1200px) rotateY(-8deg) rotateX(4deg) scale(0.95);
    transition: transform 0.8s var(--ease-out-expo), box-shadow 0.8s var(--ease-out-expo);
    box-shadow: 30px 30px 60px -15px rgba(0,0,0,0.8), 
                0 0 0 1px rgba(255,255,255,0.05) inset;
    background: #0d0d12;
}

.hero-visual {
    position: relative;
}

.hero-visual:hover .code-window {
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg) scale(1);
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.7),
                0 0 0 1px rgba(255,255,255,0.1) inset,
                0 0 40px rgba(167, 139, 250, 0.1);
}

.collab-float {
    position: absolute;
    top: -20px;
    right: -20px;
    background: rgba(167, 139, 250, 0.15);
    border: 1px solid rgba(167, 139, 250, 0.3);
    padding: 10px 16px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.5);
    transform: translateZ(50px);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.8s var(--ease-out-expo);
    animation: float 6s ease-in-out infinite;
}

.hero-visual:hover .collab-float {
    transform: translateZ(80px) translateY(-10px) scale(1.05);
}

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

.window-header {
    background: #15151e;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    opacity: 0.8;
}

.dot.red { background: #ed6a5e; }
.dot.yellow { background: #f4bf4f; }
.dot.green { background: #61c554; }

.window-title {
    margin-left: auto;
    margin-right: auto;
    font-family: 'Fira Code', monospace;
    color: #6a6a7c;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.window-body {
    padding: 30px;
    background: transparent;
}

pre {
    font-family: 'Fira Code', ui-monospace, monospace;
    font-size: 0.85rem;
    line-height: 1.7;
    overflow-x: auto;
}

code .comment { color: #5c6370; }
code .keyword { color: #c678dd; }
code .string { color: #98c379; }
code .number { color: #d19a66; }

/* Sections */
.features-section, .comparison-section, .cta-section, .api-section, .architecture-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem;
}

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

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1.25rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

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

.feature-card {
    padding: 2.5rem;
    position: relative;
    border: 1px solid transparent;
}

/* Subtle border glow effect on hover */
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.3;
    transition: opacity 0.5s var(--ease-out-expo);
}

.feature-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.feature-card:hover::before {
    opacity: 0.8;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.3), transparent);
}

.icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: all 0.4s var(--ease-out-expo);
}

.feature-card:hover .icon-wrapper {
    background: rgba(167, 139, 250, 0.1);
    color: var(--accent-primary);
    border-color: rgba(167, 139, 250, 0.2);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 300;
}

/* Architecture Section */
.arch-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(13, 13, 18, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 4rem 3rem;
    box-shadow: inset 0 0 80px rgba(0,0,0,0.5);
}

.arch-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.arch-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.arch-label.highlight {
    color: var(--accent-primary);
}

.arch-node {
    padding: 1.5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.arch-node.core {
    padding: 2.5rem 2rem;
    background: radial-gradient(circle at center, rgba(167, 139, 250, 0.1), transparent);
    border-color: rgba(167, 139, 250, 0.3);
    box-shadow: 0 0 30px rgba(167, 139, 250, 0.1);
}

.arch-node h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.core-tags {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    width: 100%;
}

.core-tags span {
    background: rgba(255,255,255,0.05);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.05);
}

.arch-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100px;
    position: relative;
}

.arrow-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    position: relative;
}

.arrow-line::after {
    content: '';
    position: absolute;
    right: 20%;
    top: -4px;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--accent-primary);
    border-right: 2px solid var(--accent-primary);
    transform: rotate(45deg);
}

.arrow-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: 'Fira Code', monospace;
    white-space: nowrap;
}

.icon-wrapper.small {
    width: 32px;
    height: 32px;
    margin-bottom: 0.5rem;
}

/* API Playground */
.api-playground {
    display: flex;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
    background: rgba(13, 13, 18, 0.4);
}

.api-sidebar {
    width: 340px;
    background: rgba(0, 0, 0, 0.3);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
}

.api-endpoint {
    padding: 22px 24px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.02);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
}

.api-endpoint:hover {
    background: rgba(255,255,255,0.03);
}

.api-endpoint.active {
    background: rgba(167, 139, 250, 0.08);
}

.api-endpoint.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
}

.method {
    font-size: 0.75rem;
    font-family: 'Fira Code', monospace;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.method.get {
    color: var(--positive);
    background: rgba(52, 211, 153, 0.1);
}

.method.post {
    color: var(--accent-tertiary);
    background: rgba(96, 165, 250, 0.1);
}

.path {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--text-primary);
    opacity: 0.8;
}

.api-endpoint.active .path {
    opacity: 1;
}

.api-content {
    flex: 1;
    border-radius: 0;
    box-shadow: none;
    transform: none !important;
    border: none;
    background: transparent;
}

.api-content .window-header {
    background: rgba(21, 21, 30, 0.5);
}

.api-content .window-body {
    padding: 24px 32px;
    height: 400px;
    overflow-y: auto;
}

.api-content pre {
    margin: 0;
    font-size: 0.9rem;
}

.json-key { color: #e06c75; }
.json-string { color: #98c379; }
.json-number { color: #d19a66; }
.json-boolean { color: #56b6c2; }
.json-null { color: #c678dd; }

/* Comparison Table */
.table-container {
    overflow-x: auto;
    background: transparent;
    padding: 0;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
}

tbody tr {
    transition: background 0.3s ease;
    background: rgba(13, 13, 18, 0.4);
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

th, td {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--glass-border);
}

th {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: #fff;
    background: transparent;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

td:first-child {
    font-weight: 500;
    color: var(--text-primary);
    border-left: 1px solid transparent;
}

.flex-align {
    display: flex;
    align-items: center;
    gap: 10px;
}

.negative {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.01);
}

.negative svg {
    color: var(--negative);
    opacity: 0.7;
}

.positive {
    color: var(--text-primary);
    font-weight: 500;
    background: linear-gradient(90deg, rgba(52, 211, 153, 0.05), transparent);
    position: relative;
}

.positive::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--positive);
}

.positive svg {
    color: var(--positive);
}

/* CTA Section */
.cta-box {
    text-align: center;
    padding: 6rem 2rem;
    background: radial-gradient(circle at center, rgba(167, 139, 250, 0.08) 0%, transparent 70%);
    border: 1px solid var(--glass-border);
}

.cta-box h2 {
    font-size: 3rem;
    margin-bottom: 1.25rem;
}

.cta-box p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    font-weight: 300;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.email-input {
    flex: 1;
    padding: 14px 24px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.4s var(--ease-out-expo);
}

.email-input:focus {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255, 255, 255, 0.04);
}

/* Footer */
footer {
    border-top: 1px solid rgba(255,255,255,0.03);
    background: var(--bg-darker);
    padding: 5rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
}

.footer-brand h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.05em;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 300;
}

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

.link-group h4 {
    margin-bottom: 1.25rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.link-group a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    color: var(--text-secondary);
    font-size: 0.8rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.03);
}

/* Premium Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: premiumFadeInUp 1s var(--ease-out-expo) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@keyframes premiumFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo), filter 1s var(--ease-out-expo);
    filter: blur(4px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Pricing Section */
.pricing-section {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.pricing-card {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card.popular {
    transform: scale(1.05);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.2), inset 0 0 0 1px rgba(99, 102, 241, 0.4);
    z-index: 2;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), #818cf8);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.4);
}

.pricing-header {
    margin-bottom: 2rem;
    text-align: center;
}

.pricing-header h3 {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.pricing-header .price {
    font-size: 1rem;
    color: var(--text-secondary);
}

.pricing-header .price span {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pricing-header p {
    margin-top: 1rem;
    font-size: 0.95rem;
    min-height: 40px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 3rem;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.pricing-features li i {
    color: var(--primary);
    font-size: 0.9rem;
}

.pricing-card .btn {
    width: 100%;
}

/* Responsive - Mobile Optimized */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 9rem 1.5rem 5rem;
        gap: 3rem;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero p {
        margin: 0 auto 2.5rem;
        font-size: 1.1rem;
    }
    
    .cta-group {
        justify-content: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 3rem;
    }
    
    .features-section, .comparison-section, .cta-section, .api-section, .architecture-section {
        padding: 5rem 1.5rem;
    }

    .arch-container {
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }

    .arch-arrow {
        transform: rotate(90deg);
        width: 60px;
        margin: 1rem 0;
    }

    .arrow-text {
        transform: rotate(-90deg);
        margin-left: -60px;
        margin-top: 20px;
    }

    .api-playground {
        flex-direction: column;
    }
    
    .api-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }
}

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

    .logo {
        font-size: 1.2rem;
    }
    
    .hero {
        padding: 6rem 1rem 3rem;
        gap: 2rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-features {
        justify-content: center;
        margin-bottom: 2rem;
        gap: 0.5rem;
    }
    
    .feature-tag {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .btn-large {
        width: 100%;
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .code-window {
        transform: none !important;
        box-shadow: 0 15px 30px -5px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.05) inset;
        border-radius: 12px;
    }

    .window-body {
        padding: 15px;
        overflow-x: auto;
    }

    pre {
        font-size: 0.75rem;
        line-height: 1.5;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }
    
    .api-endpoint {
        padding: 16px;
    }

    .api-content .window-body {
        height: 300px;
        padding: 16px;
    }

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

    .feature-card h3 {
        font-size: 1.15rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .table-container {
        padding: 0;
        margin: 0 -1rem; /* Edge-to-edge on mobile */
        border-radius: 0;
        border-left: none;
        border-right: none;
        background: transparent;
    }
    
    table {
        min-width: 600px; /* Ensure scrolling */
    }

    th, td {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    .cta-box {
        padding: 3rem 1.5rem;
        margin: 0 -1rem; /* Edge-to-edge */
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .cta-box h2 {
        font-size: 1.8rem;
    }

    .cta-box p {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .email-input {
        padding: 14px;
        width: 100%;
    }
    
    footer {
        padding: 4rem 1rem 2rem;
    }

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

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

    .link-group h4 {
        margin-bottom: 0.75rem;
    }
}
/* --- Auth Modals --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    width: 100%;
    max-width: 440px;
    padding: 3rem;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s var(--ease-out-expo);
}

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

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

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

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

.modal-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-left: 0.25rem;
}

.form-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.1);
}

.form-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-footer a {
    color: var(--accent-primary);
    font-weight: 500;
}

.error-msg {
    color: var(--negative);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    text-align: center;
    display: none;
}

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

.oauth-btn {
    width: 100%;
    justify-content: center;
    gap: 0.625rem;
    background: rgba(255, 255, 255, 0.02);
}

.oauth-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 0.25rem 0 0.15rem;
}

.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid var(--glass-border);
}

.auth-divider span {
    position: relative;
    padding: 0 0.75rem;
    background: var(--bg-dark);
    color: var(--text-secondary);
    font-size: 0.75rem;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.btn.is-loading {
    pointer-events: none;
    gap: 0.55rem;
}

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--glass-border-hover);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: btn-spin 0.8s linear infinite;
}

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

.password-strength {
    margin-top: -0.35rem;
    margin-bottom: 0.35rem;
}

.strength-meter {
    width: 100%;
    height: 7px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
}

.strength-fill {
    display: block;
    height: 100%;
    width: 20%;
    border-radius: inherit;
    transition: width 0.25s ease, background-color 0.25s ease;
}

.strength-label {
    margin-top: 0.45rem;
    display: inline-block;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.password-strength.strength-weak .strength-fill {
    width: 28%;
    background: var(--negative);
}

.password-strength.strength-medium .strength-fill {
    width: 62%;
    background: var(--warning);
}

.password-strength.strength-strong .strength-fill {
    width: 100%;
    background: var(--positive);
}
