:root {
    --bg-base: #000000;
    --bg-surface: #09090b;
    --text-primary: #ffffff;
    --text-muted: #a1a1aa;
    --accent: #ffffff;
    --accent-fg: #000000;
    --border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --radius-lg: 12px;
    --radius-md: 8px;
    --glow-color: rgba(79, 70, 229, 0.15);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-muted);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

/* Background Glows */
.glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--glow-color);
    filter: blur(120px);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}
.glow-bg-1 {
    top: -200px;
    left: -200px;
    background: rgba(79, 70, 229, 0.15); /* Indigo glow */
}
.glow-bg-2 {
    top: 400px;
    right: -200px;
    background: rgba(147, 51, 234, 0.1); /* Purple glow */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.2;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid transparent;
    position: sticky;
    top: 0;
    z-index: 100;
    background: transparent;
    transition: all 0.3s ease;
}
.navbar.scrolled {
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
}
.logo {
    display: flex;
    align-items: center;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}
.nav-link:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    text-align: center;
}
.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 32px;
}
.badge-dot {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}
.text-gradient {
    background: linear-gradient(to bottom right, #ffffff 30%, #71717a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--text-muted);
}

/* Buttons */
.cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.btn-primary {
    background-color: var(--accent);
    color: var(--accent-fg);
    box-shadow: 0 4px 14px 0 rgba(255, 255, 255, 0.1);
}
.btn-primary:hover {
    background-color: #e4e4e7;
    transform: translateY(-1px);
}
.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--border);
}
.btn-secondary:hover {
    background-color: var(--glass-bg);
}

/* Glass Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}
.section-subtitle {
    text-align: center;
    margin-bottom: 64px;
    font-size: 1.1rem;
}

/* Features */
.features {
    padding: 100px 24px;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.feature-card {
    padding: 32px 24px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
}
.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--text-primary);
}
.feature-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}
.feature-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Generator Section */
.generator-section {
    padding: 60px 24px 120px;
}
.generator-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    margin-bottom: 32px;
}
.generator-controls {
    padding: 32px;
}
.controls-title {
    font-size: 1.2rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.form-group {
    margin-bottom: 24px;
}
.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}
.modern-input {
    width: 100%;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: border-color 0.2s ease;
}
select.modern-input {
    padding: 12px;
    font-size: 0.95rem;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23a1a1aa" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="m6 9 6 6 6-6"/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 12px center;
}
select.modern-input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.3);
}

.color-input-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 16px 8px 8px;
}
.color-swatch-ring {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    padding: 2px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}
input[type="color"] {
    -webkit-appearance: none;
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    background: transparent;
}
input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}
input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 50%;
}
.mono-text {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9rem;
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 8px 0;
    transition: color 0.2s;
}
.btn-text:hover {
    color: var(--text-primary);
}

/* IDE Window (Code Snippet) */
.ide-window {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-surface);
}
.ide-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--border);
}
.ide-dots {
    display: flex;
    gap: 8px;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot-close { background-color: #ff5f56; }
.dot-min { background-color: #ffbd2e; }
.dot-max { background-color: #27c93f; }

.ide-title {
    font-family: ui-monospace, monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.btn-copy {
    background: transparent;
    color: var(--text-muted);
    border: none;
    border-radius: 4px;
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.btn-copy:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
}
.btn-copy.copied {
    color: #10b981;
}

.ide-content {
    padding: 32px 24px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    overflow-x: auto;
}
.ide-content code {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    color: #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Alerts */
.alert-warning {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}
.alert-icon {
    flex-shrink: 0;
    margin-top: 2px;
}
.alert-content strong {
    color: #fde68a;
}
.alert-content {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    margin-top: 60px;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}
.footer-links {
    display: flex;
    gap: 24px;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--text-primary);
}

/* Developer Profile Section */
.developer-section {
    padding: 80px 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}
.developer-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.dev-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--glass-bg);
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.4);
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}
.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}
.social-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}
.social-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}
.social-card svg {
    color: var(--text-muted);
}
.social-card:hover svg {
    color: var(--text-primary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Syntax Highlighting */
.token-tag { color: #f87171; } /* Red for <script> */
.token-attr { color: #c084fc; } /* Purple for src, defer */
.token-string { color: #a7f3d0; } /* Green for URLs */
.token-punct { color: #94a3b8; } /* Slate for < > = */

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.slide-up {
    transform: translateY(40px);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
.floating {
    animation: float 6s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 900px) {
    .generator-layout {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .hero-title {
        font-size: 3rem;
    }
    .footer-content {
        flex-direction: column;
        gap: 16px;
    }
}
