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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-logo img {
    display: block;
}

@media (max-width: 768px) {
    .nav-logo img {
        width: 100px;
        height: 50px;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #667eea;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

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

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        padding: 0 16px;
        text-align: center;
    }
    
    .hero-content {
        width: 80%;
    }
    
    .hero-code {
        width: 80%;
    }
    
    .code-window {
        max-width: 100%;
        overflow: hidden;
    }
    
    .code-content {
        overflow-x: auto;
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: slideInLeft 1s ease-out;
}

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

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: slideInLeft 1s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: slideInLeft 1s ease-out 0.4s both;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: white;
    color: #667eea;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
}

/* Code Window */
.hero-code {
    animation: slideInRight 1s ease-out 0.6s both;
}

.code-window {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.code-window:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.code-header {
    background: #2d2d2d;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.code-dots {
    display: flex;
    gap: 6px;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f56;
}

.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #27ca3f; }

.code-title {
    color: #ccc;
    font-size: 0.9rem;
}

.code-content {
    padding: 20px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ffffff;
}

.code-line {
    margin-bottom: 4px;
    animation: typewriter 0.5s ease-out;
}

.code-comment { color: #6a9955; }
.code-keyword { color: #569cd6; }
.code-variable { color: #9cdcfe; }
.code-function { color: #dcdcaa; }
.code-string { color: #ce9178; }

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

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes typewriter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Features Section */
.features {
    padding: 100px 0;
    background: #f8fafc;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1a202c;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a202c;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Comparison Section */
.comparison {
    padding: 100px 0;
    background: white;
}

.comparison-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.comparison-intro p {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.comparison-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.comparison-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a202c;
}

.comparison-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comparison-item {
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.comparison-table {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1rem;
    background: white;
    padding: 1rem;
    border-radius: 8px;
}

.table-header {
    display: contents;
    font-weight: 600;
    color: #1a202c;
}

.table-row {
    display: contents;
}

.table-row span {
    padding: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.advantage {
    color: #059669;
    font-weight: 600;
}

/* Code Comparison */
.code-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

.code-block h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.code-block .code-window {
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
}

.code-block pre {
    padding: 1.5rem;
    margin: 0;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #ffffff;
}

/* Use Cases */
.use-cases {
    margin-top: 3rem;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
}

.use-cases h3 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #1a202c;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.use-case-column h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a202c;
}

.use-case-column ul {
    list-style: none;
}

.use-case-column li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #64748b;
}

.use-case-column li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #059669;
    font-weight: bold;
}

/* Examples Section */
.examples {
    padding: 100px 0;
    background: #f8fafc;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.example-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.example-card:hover {
    transform: translateY(-5px);
}

.example-card h3 {
    padding: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a202c;
    border-bottom: 1px solid #e2e8f0;
}

.example-card .code-window {
    background: #1e1e1e;
    margin: 0;
}

.example-card pre {
    padding: 1.5rem;
    margin: 0;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #ffffff;
    overflow-x: auto;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Footer */
.footer {
    background: #1a202c;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #2d3748;
    color: #cbd5e0;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 2px 0;
    transition: 0.3s;
    display: block;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-container {
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 16px;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
        display: flex;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
    }
    
    .nav-toggle {
        display: flex;
        position: relative;
        z-index: 1000;
    }
    
    .hero {
        min-height: 100vh;
        padding: 80px 0 40px;
    }
    

    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 200px;
        padding: 14px 24px;
    }
    
    .code-window {
        transform: none;
        margin-top: 1rem;
        max-width: 100%;
    }
    
    .code-content {
        padding: 16px;
    }
    
    .code-content .code-line {
        font-size: 0.8rem;
        white-space: nowrap;
        overflow-x: auto;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .features {
        padding: 60px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .comparison {
        padding: 60px 0;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        font-size: 0.9rem;
    }
    
    .code-comparison {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .code-block pre {
        font-size: 0.8rem;
        padding: 1rem;
        white-space: pre-wrap;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .code-window {
        overflow: hidden;
    }
    
    .code-content {
        overflow-x: auto;
    }
    
    .code-content .code-line {
        white-space: nowrap;
        overflow-x: auto;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .examples {
        padding: 60px 0;
    }
    
    .examples-two-column {
        display: block !important;
    }
    
    .example-column {
        margin-bottom: 24px;
    }
    
    .example-column {
        gap: 16px;
    }
    
    .code-window.large {
        min-height: auto;
        overflow: hidden;
    }
    
    .code-window.large pre {
        padding: 12px;
        font-size: 11px;
        line-height: 1.3;
        white-space: pre-wrap;
        word-wrap: break-word;
    }
    
    .example-label {
        font-size: 16px;
    }
    
    .development-options {
        padding: 40px 0;
    }
    
    .options-grid {
        display: block !important;
    }
    
    .option-card {
        margin-bottom: 20px;
    }
    
    .option-card {
        padding: 20px;
    }
    
    .option-card h3 {
        font-size: 1.2rem;
    }
    
    .code-window.small {
        margin: 16px 0;
    }
    
    .code-window.small pre {
        padding: 12px;
        font-size: 10px;
        white-space: pre-wrap;
        word-wrap: break-word;
    }
    
    .compatibility-note {
        flex-direction: column;
        text-align: center;
        padding: 16px;
        margin-top: 20px;
    }
    
    .note-content h4 {
        margin-bottom: 8px;
        font-size: 1.1rem;
    }
    
    .cta {
        padding: 60px 0;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 180px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .feature-card h3 {
        font-size: 1.25rem;
    }
    
    .comparison-table {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .table-header {
        display: none;
    }
    
    .table-row {
        display: block;
        background: #f8fafc;
        padding: 1rem;
        border-radius: 8px;
        margin-bottom: 1rem;
    }
    
    .table-row span {
        display: block;
        padding: 0.25rem 0;
        border-bottom: none;
    }
    
    .table-row span:first-child::before {
        content: "Task: ";
        font-weight: bold;
    }
    
    .table-row span:nth-child(2)::before {
        content: "Python: ";
        font-weight: bold;
    }
    
    .table-row span:nth-child(3)::before {
        content: "MSL: ";
        font-weight: bold;
    }
    
    .table-row span:nth-child(4)::before {
        content: "Advantage: ";
        font-weight: bold;
    }
    
    .code-block pre {
        font-size: 0.75rem;
        line-height: 1.4;
        white-space: pre-wrap;
        word-wrap: break-word;
    }
    
    .code-window .code-content {
        padding: 12px;
    }
    
    .code-window .code-content .code-line {
        font-size: 0.7rem;
        margin-bottom: 2px;
    }
    
    .example-column {
        margin-bottom: 16px;
    }
    
    .code-window.large pre {
        padding: 8px;
        font-size: 10px;
    }
    
    .option-card {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .code-window.small pre {
        font-size: 9px;
        padding: 8px;
    }
    
    .feature-tag {
        font-size: 10px;
        padding: 2px 6px;
        margin: 2px;
    }
    
    .option-features {
        justify-content: center;
    }
    
    .cta h2 {
        font-size: 1.75rem;
    }
    
    .cta p {
        font-size: 1rem;
    }
}