/* Catppuccin Mocha Color Palette */
:root {
    --ctp-rosewater: #f5e0dc;
    --ctp-flamingo: #f2cdcd;
    --ctp-pink: #f5c2e7;
    --ctp-mauve: #cba6f7;
    --ctp-red: #f38ba8;
    --ctp-maroon: #eba0ac;
    --ctp-peach: #fab387;
    --ctp-yellow: #f9e2af;
    --ctp-green: #a6e3a1;
    --ctp-teal: #94e2d5;
    --ctp-sky: #89dceb;
    --ctp-sapphire: #74c7ec;
    --ctp-blue: #89b4fa;
    --ctp-lavender: #b4befe;
    --ctp-text: #cdd6f4;
    --ctp-subtext1: #bac2de;
    --ctp-subtext0: #a6adc8;
    --ctp-overlay2: #9399b2;
    --ctp-overlay1: #7f849c;
    --ctp-overlay0: #6c7086;
    --ctp-surface2: #585b70;
    --ctp-surface1: #45475a;
    --ctp-surface0: #313244;
    --ctp-base: #1e1e2e;
    --ctp-mantle: #181825;
    --ctp-crust: #11111b;

    /* Semantic colors */
    --bg-primary: var(--ctp-base);
    --bg-secondary: var(--ctp-mantle);
    --bg-tertiary: var(--ctp-crust);
    --bg-surface: var(--ctp-surface0);
    --bg-surface-hover: var(--ctp-surface1);
    --text-primary: var(--ctp-text);
    --text-secondary: var(--ctp-subtext1);
    --text-muted: var(--ctp-overlay1);
    --accent-primary: var(--ctp-blue);
    --accent-secondary: var(--ctp-lavender);
    --accent-gradient-start: var(--ctp-blue);
    --accent-gradient-end: var(--ctp-mauve);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;

    /* Component dimensions */
    --floating-card-size: 350px;
    --hero-logo-max-size: 375px; /* Increased by 25% from 300px */

    /* Gradient effects */
    --gradient-blur-size: 8px;
    --gradient-blur-size-large: 10px;
    --gradient-inset-negative: -1px;
    --gradient-inset-negative-large: -2px;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

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

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo {
    width: 50px; /* Increased by 25% from 40px */
    height: 50px; /* Increased by 25% from 40px */
    animation: float 3s ease-in-out infinite;
}

.nav-brand .logo-container {
    width: 75px; /* Increased by 25% from 60px */
    height: 75px; /* Increased by 25% from 60px */
    position: relative;
    /* Removed colored background and shadow */
}

.nav-brand .logo {
    width: 100%;
    height: 100%;
    /* Removed border-radius and padding since no background */
    animation: none;
    position: relative;
    z-index: 1;
}

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

.brand-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

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

.nav-link:hover {
    color: var(--accent-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

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

.github-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background-color: var(--bg-surface);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.github-link:hover {
    background-color: var(--bg-surface-hover);
    transform: translateY(-2px);
}

.github-icon {
    width: 20px;
    height: 20px;
}

/* Hero Section */
.hero {
    padding: calc(80px + var(--spacing-2xl)) 0 var(--spacing-2xl);
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: radial-gradient(ellipse at top right, rgba(137, 180, 250, 0.1), transparent 50%),
                radial-gradient(ellipse at bottom left, rgba(203, 166, 247, 0.1), transparent 50%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.title-line {
    display: block;
    animation: slideInFromLeft 0.8s ease-out;
}

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

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-gradient-start), var(--accent-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    animation: fadeIn 1s ease-out 0.4s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.highlight {
    color: var(--ctp-green);
    font-weight: 600;
    font-family: var(--font-mono);
    white-space: nowrap;
}

.hero-quote {
    margin-bottom: var(--spacing-xl);
    animation: fadeIn 1s ease-out 0.6s both;
}

.hero-quote blockquote {
    font-style: italic;
    color: var(--text-muted);
    border-left: 3px solid var(--ctp-surface2);
    padding-left: var(--spacing-md);
}

.hero-quote cite {
    display: block;
    margin-top: var(--spacing-xs);
    font-size: 0.875rem;
    color: var(--ctp-overlay0);
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    animation: fadeIn 1s ease-out 0.8s both;
}

.btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gradient-start), var(--accent-gradient-end));
    color: var(--ctp-crust);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(137, 180, 250, 0.3);
}

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

.btn-secondary:hover {
    background-color: var(--bg-surface-hover);
    transform: translateY(-2px);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-card {
    /* Removed colored background */
    border-radius: 20px;
    padding: 0;
    /* Removed shadow since no background */
    animation: float 4s ease-in-out infinite;
    position: relative;
    width: var(--floating-card-size);
    height: var(--floating-card-size);
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    width: 90%;
    height: 90%;
    max-width: var(--hero-logo-max-size);
    max-height: var(--hero-logo-max-size);
}

/* Features Section */
.features {
    padding: var(--spacing-2xl) 0;
    background-color: var(--bg-secondary);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    color: var(--text-primary);
}

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

.feature-card {
    background-color: var(--bg-surface);
    border-radius: 12px;
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.feature-card h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

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

/* Architecture Section */
.architecture {
    padding: var(--spacing-2xl) 0;
}

.architecture-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: start;
    width: 100%;
}

.architecture-text {
    min-width: 0; /* Prevent grid blowout */
}

.architecture-visual {
    min-width: 0; /* Prevent grid blowout */
}

.architecture-text h3 {
    color: var(--accent-primary);
    margin-bottom: var(--spacing-md);
}

.architecture-text ul {
    list-style: none;
    margin: var(--spacing-md) 0;
}

.architecture-text li {
    padding: var(--spacing-xs) 0;
    color: var(--text-secondary);
}

.architecture-text strong {
    color: var(--text-primary);
}

.link-card {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--bg-surface);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    margin-top: var(--spacing-md);
}

.link-card:hover {
    background-color: var(--bg-surface-hover);
    transform: translateX(5px);
}

.link-icon {
    font-size: 1.5rem;
}

.code-block {
    background-color: var(--bg-tertiary);
    border-radius: 12px;
    padding: var(--spacing-lg);
    overflow-x: auto;
    border: 1px solid var(--ctp-surface1);
}

.code-block pre {
    margin: 0;
}

.code-block code {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-primary);
}

/* Syntax highlighting classes */
.syntax-keyword { color: var(--ctp-mauve); }
.syntax-type { color: var(--ctp-yellow); }
.syntax-function { color: var(--ctp-blue); }
.syntax-string { color: var(--ctp-green); }
.syntax-comment { color: var(--ctp-overlay0); }
.syntax-attribute { color: var(--ctp-peach); }
.syntax-generic { color: var(--ctp-teal); }

/* Getting Started Section */
.getting-started {
    padding: var(--spacing-2xl) 0;
    background-color: var(--bg-secondary);
}

.steps-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    max-width: 800px;
    margin: 0 auto;
}

.step-card {
    background-color: var(--bg-surface);
    border-radius: 12px;
    padding: var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.step-number {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    font-size: 3rem;
    font-weight: 700;
    color: var(--ctp-surface2);
    opacity: 0.5;
}

.step-card h3 {
    color: var(--accent-primary);
    margin-bottom: var(--spacing-md);
}

.code-snippet {
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    padding: var(--spacing-sm);
    overflow-x: auto;
}

.code-snippet pre {
    margin: 0;
}

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

/* Releases Section */
.releases {
    padding: var(--spacing-2xl) 0;
}

.release-card {
    background-color: var(--bg-surface);
    border-radius: 12px;
    padding: var(--spacing-xl);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--ctp-surface1);
}

.release-status {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.status-badge {
    background-color: var(--ctp-peach);
    color: var(--ctp-crust);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
}

.release-date {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.release-title {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.release-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline:hover {
    background-color: var(--accent-primary);
    color: var(--ctp-crust);
}

/* Footer */
.footer {
    background-color: var(--bg-tertiary);
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-2xl);
}

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

.footer-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.footer-logo {
    width: 38px; /* Increased by 25% from 30px, rounded for browser compatibility */
    height: 38px; /* Increased by 25% from 30px, rounded for browser compatibility */
    opacity: 0.7;
}

.footer-left p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
}

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

.footer-links a:hover {
    color: var(--accent-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        margin-top: var(--spacing-xl);
    }

    .architecture-content {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: var(--spacing-md);
    }

    .nav-link:not(.github-link) {
        display: none;
    }

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

    .footer-content {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
}
