:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #06b6d4;
    --accent: #8b5cf6;
    --success: #10b981;
    --dark: #0f172a;
    --dark-secondary: #1e293b;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light: #f1f5f9;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05); padding: 1rem 0; transition: var(--transition);
}
.navbar.scrolled { padding: 0.75rem 0; box-shadow: var(--shadow); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-size: 1.5rem; font-weight: 700; color: var(--dark); }
.logo i { color: var(--primary); font-size: 1.75rem; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-weight: 500; color: var(--gray); position: relative; }
.nav-links a:hover { color: var(--primary); }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--gradient); transition: var(--transition); }
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 5px; }
.nav-toggle span { width: 25px; height: 2px; background: var(--dark); transition: var(--transition); }

.hero {
    min-height: 100vh; display: flex; align-items: center; padding: 6rem 0 4rem;
    background: linear-gradient(135deg, var(--light) 0%, var(--white) 50%, rgba(99,102,241,0.05) 100%);
}
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-badge { display: inline-block; padding: 0.5rem 1rem; background: rgba(99,102,241,0.1); color: var(--primary); font-size: 0.875rem; font-weight: 600; border-radius: 2rem; margin-bottom: 1.5rem; }
.hero h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-description { font-size: 1.25rem; color: var(--gray); margin-bottom: 2rem; max-width: 500px; }
.hero-buttons { display: flex; gap: 1rem; margin-bottom: 3rem; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 1.75rem; font-size: 1rem; font-weight: 600; border-radius: var(--radius-lg); transition: var(--transition); cursor: pointer; border: none; }
.btn-primary { background: var(--gradient); color: var(--white); box-shadow: 0 4px 15px rgba(99,102,241,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(99,102,241,0.45); }
.btn-secondary { background: var(--white); color: var(--dark); border: 2px solid var(--light); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.hero-stats { display: flex; gap: 3rem; }
.stat { display: flex; flex-direction: column; }
.stat-number { font-size: 2rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 0.875rem; color: var(--gray); }

.hero-visual { display: flex; justify-content: center; }
.code-editor { width: 100%; max-width: 500px; background: var(--dark); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-xl); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
.editor-header { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.5rem; background: var(--dark-secondary); }
.editor-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: #28ca42; }
.editor-title { color: var(--gray-light); font-size: 0.875rem; }
.editor-content { padding: 1.5rem; }
.code-line { display: flex; align-items: center; gap: 1rem; padding: 0.5rem 0; font-family: 'Monaco','Menlo',monospace; font-size: 0.875rem; }
.line-number { color: var(--gray); min-width: 20px; }
.code-comment { color: var(--success); font-style: italic; }
.code-keyword { color: var(--accent); font-weight: 600; }
.code-text { color: var(--gray-light); }
.code-success { color: var(--success); }

section { padding: 6rem 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 4rem; }
.section-badge { display: inline-block; padding: 0.5rem 1rem; background: rgba(99,102,241,0.1); color: var(--primary); font-size: 0.875rem; font-weight: 600; border-radius: 2rem; margin-bottom: 1rem; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; }
.section-header p { font-size: 1.125rem; color: var(--gray); }

.about { background: var(--light); }
.about-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.about-card { background: var(--white); padding: 2rem; border-radius: var(--radius-xl); text-align: center; transition: var(--transition); box-shadow: var(--shadow-sm); }
.about-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.about-icon { width: 80px; height: 80px; margin: 0 auto 1.5rem; display: flex; align-items: center; justify-content: center; background: var(--gradient); border-radius: var(--radius-xl); }
.about-icon i { font-size: 2rem; color: var(--white); }
.about-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.about-card p { color: var(--gray); font-size: 0.9375rem; }

.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.feature-card { background: var(--white); padding: 2rem; border-radius: var(--radius-xl); border: 1px solid var(--light); transition: var(--transition); }
.feature-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.feature-icon { width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; background: rgba(99,102,241,0.1); border-radius: var(--radius-lg); margin-bottom: 1.5rem; }
.feature-icon i { font-size: 1.5rem; color: var(--primary); }
.feature-card h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.75rem; }
.feature-card p { color: var(--gray); font-size: 0.9375rem; line-height: 1.6; }

.steps { background: var(--light); }
.steps-timeline { max-width: 800px; margin: 0 auto; position: relative; }
.steps-timeline::before { content: ''; position: absolute; left: 30px; top: 0; bottom: 0; width: 2px; background: var(--gradient); }
.step { display: flex; gap: 2rem; margin-bottom: 3rem; position: relative; }
.step:last-child { margin-bottom: 0; }
.step-number { width: 60px; height: 60px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--gradient); color: var(--white); font-size: 1.5rem; font-weight: 700; border-radius: 50%; position: relative; z-index: 1; }
.step-content { background: var(--white); padding: 2rem; border-radius: var(--radius-xl); flex: 1; box-shadow: var(--shadow); }
.step-content h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.step-content p { color: var(--gray); margin-bottom: 1rem; }
.step-example { background: var(--dark); padding: 1rem 1.5rem; border-radius: var(--radius); overflow-x: auto; }
.step-example code { color: var(--success); font-family: 'Monaco','Menlo',monospace; font-size: 0.875rem; }

.examples-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.example-card { background: var(--white); padding: 2rem; border-radius: var(--radius-xl); border: 1px solid var(--light); transition: var(--transition); }
.example-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.example-icon { width: 70px; height: 70px; display: flex; align-items: center; justify-content: center; background: var(--gradient); border-radius: var(--radius-xl); margin-bottom: 1.5rem; }
.example-icon i { font-size: 1.75rem; color: var(--white); }
.example-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.example-card p { color: var(--gray); margin-bottom: 1rem; }
.example-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.example-tags span { padding: 0.25rem 0.75rem; background: rgba(99,102,241,0.1); color: var(--primary); font-size: 0.75rem; font-weight: 600; border-radius: 1rem; }

.code-example { background: var(--dark); color: var(--white); }
.code-example .section-header h2 { color: var(--white); }
.code-example .section-header p { color: var(--gray-light); }
.code-comparison { display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: center; }
.code-panel { background: var(--dark-secondary); border-radius: var(--radius-xl); overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
.panel-header { padding: 1rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.panel-badge { padding: 0.375rem 0.75rem; font-size: 0.75rem; font-weight: 600; border-radius: 1rem; }
.panel-badge.prompt { background: rgba(99,102,241,0.2); color: var(--primary-light); }
.panel-badge.result { background: rgba(16,185,129,0.2); color: var(--success); }
.panel-content { padding: 1.5rem; }
.panel-content pre { margin: 0; overflow-x: auto; }
.panel-content code { font-family: 'Monaco','Menlo',monospace; font-size: 0.875rem; line-height: 1.7; color: var(--gray-light); }
.code-arrow { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; background: var(--gradient); border-radius: 50%; font-size: 1.5rem; color: var(--white); }

.tools { background: var(--light); }
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.tool-card { background: var(--white); padding: 2rem; border-radius: var(--radius-xl); text-align: center; transition: var(--transition); border: 1px solid var(--light); }
.tool-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.tool-logo { width: 80px; height: 80px; margin: 0 auto 1.5rem; display: flex; align-items: center; justify-content: center; background: var(--gradient); border-radius: var(--radius-xl); }
.tool-logo i { font-size: 2rem; color: var(--white); }
.tool-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.tool-card p { color: var(--gray); font-size: 0.9375rem; margin-bottom: 1rem; }
.tool-tag { display: inline-block; padding: 0.25rem 0.75rem; background: rgba(99,102,241,0.1); color: var(--primary); font-size: 0.75rem; font-weight: 600; border-radius: 1rem; }

.contact { background: var(--white); }
.contact-content { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 4rem; }
.contact-card { text-align: center; padding: 2rem; background: var(--light); border-radius: var(--radius-xl); transition: var(--transition); }
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.contact-icon { width: 70px; height: 70px; margin: 0 auto 1.5rem; display: flex; align-items: center; justify-content: center; background: var(--gradient); border-radius: var(--radius-xl); }
.contact-icon i { font-size: 1.75rem; color: var(--white); }
.contact-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.contact-card p { color: var(--gray); }

.contact-form-container { max-width: 800px; margin: 0 auto; }
.contact-form { background: var(--light); padding: 3rem; border-radius: var(--radius-xl); }
.form-header { text-align: center; margin-bottom: 2rem; }
.form-header h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.form-header p { color: var(--gray); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: var(--dark); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 1rem 1.25rem; font-size: 1rem; font-family: inherit;
    border: 2px solid var(--light); border-radius: var(--radius-lg); background: var(--white);
    transition: var(--transition); color: var(--dark);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(99,102,241,0.1);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--gray-light); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.btn-submit { width: 100%; justify-content: center; padding: 1rem 2rem; font-size: 1.125rem; }
.form-success { display: none; text-align: center; padding: 2rem; margin-top: 1.5rem; background: rgba(16,185,129,0.1); border-radius: var(--radius-lg); }
.form-success.show { display: block; }
.form-success i { font-size: 3rem; color: var(--success); margin-bottom: 1rem; }
.form-success p { color: var(--success); font-weight: 600; font-size: 1.125rem; }

.cta-box { text-align: center; padding: 4rem; background: var(--gradient); border-radius: var(--radius-xl); color: var(--white); }
.cta-box h3 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.cta-box p { font-size: 1.125rem; margin-bottom: 2rem; opacity: 0.9; }
.cta-box .btn-primary { background: var(--white); color: var(--primary); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }

.footer { background: var(--dark); color: var(--gray-light); padding: 4rem 0 2rem; }
.footer-content { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; margin-bottom: 3rem; }
.footer-brand .logo { color: var(--white); margin-bottom: 1rem; }
.footer-brand p { max-width: 300px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-column h4 { color: var(--white); font-size: 1rem; font-weight: 700; margin-bottom: 1.5rem; }
.footer-column ul li { margin-bottom: 0.75rem; }
.footer-column ul li a { color: var(--gray-light); transition: var(--transition); }
.footer-column ul li a:hover { color: var(--primary-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom p { font-size: 0.875rem; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.1); border-radius: 50%; color: var(--gray-light); transition: var(--transition); }
.footer-social a:hover { background: var(--primary); color: var(--white); }

@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-description { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { margin-top: 3rem; }
    .about-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .examples-grid { grid-template-columns: repeat(2, 1fr); }
    .tools-grid { grid-template-columns: repeat(2, 1fr); }
    .code-comparison { grid-template-columns: 1fr; }
    .code-arrow { transform: rotate(90deg); margin: 0 auto; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .nav-links.active { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 2rem; box-shadow: var(--shadow-lg); }
    .hero h1 { font-size: 2.5rem; }
    .section-header h2 { font-size: 2rem; }
    .about-grid, .features-grid, .examples-grid, .tools-grid { grid-template-columns: 1fr; }
    .contact-content { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 2rem; }
    .footer-content { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .step { flex-direction: column; align-items: center; text-align: center; }
    .steps-timeline::before { left: 50%; transform: translateX(-50%); }
    .step-number { margin-bottom: 1rem; }
}
