* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: 0 0% 3.9%;
    --foreground: 0 0% 98%;
    --card: 0 0% 3.9%;
    --card-foreground: 0 0% 98%;
    --popover: 0 0% 3.9%;
    --popover-foreground: 0 0% 98%;
    --primary: 0 0% 98%;
    --primary-foreground: 0 0% 9%;
    --secondary: 0 0% 14.9%;
    --secondary-foreground: 0 0% 98%;
    --muted: 0 0% 14.9%;
    --muted-foreground: 0 0% 63.9%;
    --accent: 0 0% 14.9%;
    --accent-foreground: 0 0% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 0 0% 98%;
    --border: 0 0% 14.9%;
    --input: 0 0% 14.9%;
    --ring: 0 0% 83.1%;
    --radius: 0.5rem;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: hsl(var(--foreground));
    background: hsl(var(--background));
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    background: hsl(var(--background) / 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid hsl(var(--border));
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 24px;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    text-decoration: none;
    transition: opacity 0.2s;
}

.nav-brand a:hover {
    opacity: 0.8;
}

.logo-icon {
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: hsl(var(--foreground));
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-ghost {
    padding: 0.5rem 1rem;
    color: hsl(var(--foreground));
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: background 0.2s;
    background: transparent;
    border: 1px solid hsl(var(--border));
    cursor: pointer;
}

.btn-ghost:hover {
    background: hsl(var(--accent));
}

.btn-primary-small {
    padding: 0.5rem 1rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: opacity 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary-small:hover {
    opacity: 0.9;
}

/* Hero Section */
.hero {
    padding: 180px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top, hsl(var(--primary) / 0.15), transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid hsl(var(--border));
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(to bottom, hsl(var(--foreground)), hsl(var(--muted-foreground)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.description {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.btn {
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
    display: inline-block;
}

.btn-primary {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-secondary {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    border: 1px solid hsl(var(--border));
}

.btn-secondary:hover {
    background: hsl(var(--accent));
}

.btn-outline {
    background: transparent;
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
}

.btn-outline:hover {
    background: hsl(var(--accent));
}

.hero-stats {
    display: flex;
    gap: 4rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

/* Features Section */
.features {
    padding: 100px 0;
    background: hsl(var(--background));
}

.features h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-description {
    text-align: center;
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: hsl(var(--card));
    padding: 2rem;
    border-radius: calc(var(--radius) * 2);
    border: 1px solid hsl(var(--border));
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: hsl(var(--primary) / 0.5);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px hsl(var(--background) / 0.5);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: hsl(var(--muted-foreground));
    line-height: 1.7;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background: hsl(var(--card));
    border-top: 1px solid hsl(var(--border));
    border-bottom: 1px solid hsl(var(--border));
}

.how-it-works h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.step {
    text-align: center;
}

.step-number {
    width: 64px;
    height: 64px;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.step p {
    color: hsl(var(--muted-foreground));
    line-height: 1.7;
}

/* Use Cases Section */
.use-cases {
    padding: 100px 0;
    background: hsl(var(--background));
}

.use-cases h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.use-case-card {
    background: hsl(var(--card));
    padding: 2rem;
    border-radius: calc(var(--radius) * 2);
    border: 1px solid hsl(var(--border));
    transition: all 0.3s;
}

.use-case-card:hover {
    border-color: hsl(var(--primary) / 0.5);
    transform: translateY(-4px);
}

.use-case-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.use-case-card p {
    color: hsl(var(--muted-foreground));
    line-height: 1.7;
}

/* Pricing Section */
.pricing {
    padding: 100px 0;
    background: hsl(var(--card));
    border-top: 1px solid hsl(var(--border));
    border-bottom: 1px solid hsl(var(--border));
}

.pricing h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.pricing-card {
    background: hsl(var(--background));
    padding: 2.5rem;
    border-radius: calc(var(--radius) * 2);
    border: 1px solid hsl(var(--border));
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    border-color: hsl(var(--primary) / 0.5);
    transform: translateY(-4px);
}

.pricing-card.featured {
    border-color: hsl(var(--primary));
    box-shadow: 0 20px 40px hsl(var(--primary) / 0.2);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.price {
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
}

.price-period {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
}

.price-description {
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
}

.features-list li {
    padding: 0.75rem 0;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.pricing-card .btn {
    width: 100%;
    text-align: center;
}

/* Documentation Section */
.docs {
    padding: 100px 0;
    background: hsl(var(--background));
}

.docs h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.doc-card {
    background: hsl(var(--card));
    padding: 2rem;
    border-radius: calc(var(--radius) * 2);
    border: 1px solid hsl(var(--border));
    text-decoration: none;
    display: block;
    transition: all 0.3s;
}

.doc-card:hover {
    border-color: hsl(var(--primary) / 0.5);
    transform: translateY(-4px);
}

.doc-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.doc-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.doc-card p {
    color: hsl(var(--muted-foreground));
    line-height: 1.7;
    margin-bottom: 1rem;
}

.doc-link {
    color: hsl(var(--primary));
    font-size: 0.875rem;
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: hsl(var(--card));
    border-top: 1px solid hsl(var(--border));
}

.contact h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.contact-description {
    text-align: center;
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 3rem;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    color: hsl(var(--foreground));
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 3px hsl(var(--ring) / 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: hsl(var(--muted-foreground));
}

.contact-form .btn-primary {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.contact-form .btn-primary:hover {
    opacity: 0.9;
}

/* Footer */
.footer {
    background: hsl(var(--background));
    border-top: 1px solid hsl(var(--border));
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-description {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: hsl(var(--foreground));
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--border));
}

.footer-bottom p {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: hsl(var(--muted-foreground));
    transition: color 0.2s;
}

.social-links a:hover {
    color: hsl(var(--foreground));
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-menu {
        display: none;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .features h2,
    .how-it-works h2,
    .use-cases h2,
    .pricing h2,
    .docs h2,
    .contact h2 {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .description {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .stat-value {
        font-size: 2rem;
    }
}


/* Content Sections */
.content-section {
    padding: 100px 0;
    background: hsl(var(--background));
    border-bottom: 1px solid hsl(var(--border));
}

.content-section h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.content-section h3 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.content-section h4 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.content-body {
    max-width: 900px;
}

.content-body p {
    color: hsl(var(--muted-foreground));
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.content-body a {
    color: hsl(var(--primary));
    text-decoration: none;
    border-bottom: 1px solid hsl(var(--primary) / 0.3);
    transition: border-color 0.2s;
}

.content-body a:hover {
    border-bottom-color: hsl(var(--primary));
}

.last-updated {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    font-style: italic;
    margin-bottom: 2rem;
}

.code-block {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    line-height: 1.6;
}

.tutorial-list {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.tutorial-item {
    background: hsl(var(--card));
    padding: 1.5rem;
    border-radius: calc(var(--radius) * 2);
    border: 1px solid hsl(var(--border));
    transition: all 0.3s;
}

.tutorial-item:hover {
    border-color: hsl(var(--primary) / 0.5);
    transform: translateX(4px);
}

.tutorial-item h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.tutorial-item p {
    margin-bottom: 0;
}

.sdk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.sdk-card {
    background: hsl(var(--card));
    padding: 2rem;
    border-radius: calc(var(--radius) * 2);
    border: 1px solid hsl(var(--border));
}

.sdk-card h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.sdk-card p {
    margin-bottom: 1.5rem;
}

.sdk-card .code-block {
    margin-bottom: 0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) * 2);
    padding: 2.5rem;
    max-width: 480px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: hsl(var(--muted-foreground));
    font-size: 2rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.modal-close:hover {
    background: hsl(var(--accent));
    color: hsl(var(--foreground));
}

.modal-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.modal-description {
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.invite-notice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: hsl(var(--secondary));
    border: 1px solid hsl(var(--border));
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    color: hsl(var(--secondary-foreground));
    font-size: 0.875rem;
}

.invite-notice svg {
    flex-shrink: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-form label {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
}

.auth-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    color: hsl(var(--foreground));
    transition: all 0.2s;
}

.auth-form input:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 3px hsl(var(--ring) / 0.1);
}

.auth-form input::placeholder {
    color: hsl(var(--muted-foreground));
}

.btn-full {
    width: 100%;
    margin-top: 0.5rem;
}

.auth-switch {
    text-align: center;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.5rem;
}

.auth-switch a {
    color: hsl(var(--primary));
    text-decoration: none;
    font-weight: 500;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Responsive adjustments for modals */
@media (max-width: 480px) {
    .modal-content {
        padding: 2rem 1.5rem;
    }

    .modal-content h2 {
        font-size: 1.5rem;
    }
}
