:root {
    --primary: #4F46E5; /* Indigo */
    --title-color: #2563EB; /* Strong Blue for titles */
    --secondary: #06B6D4; /* Cyan */
    --bg-color: #F8FAFC; /* Slate 50 background */
    --text-main: #333333; /* Dark Gray for main text */
    --text-muted: #6B7280; /* Medium Gray for muted text */
    --card-bg: #FFFFFF;
    --border-color: #E5E7EB; /* Light Gray */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
    letter-spacing: -0.04em;
}

/* Navbar */
.navbar {
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 32px;
    width: auto;
}

.logo span {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #FFFFFF;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4338CA, #0891B2);
    box-shadow: 0 6px 12px rgba(79, 70, 229, 0.3);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #FFFFFF;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 3rem 2rem 6rem;
    text-align: center;
    color: #FFFFFF;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255,255,255,0.6);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    color: #FFFFFF;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.hero .btn-primary {
    background: #FFFFFF;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero .btn-primary:hover {
    background: #F8FAFC;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Features */
.features {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features-header {
    text-align: center;
    margin-bottom: 4rem;
}

.features-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.features-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

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

.bento-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.08);
    border-color: rgba(79, 70, 229, 0.3);
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.bento-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.bento-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Footer */
footer {
    background-color: #FFFFFF;
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem;
}

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

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

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    .hero-actions {
        flex-direction: column;
    }
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Feature Showcases */
.feature-showcase {
    padding: 6rem 2rem;
    background-color: #FFFFFF;
}

.feature-showcase:nth-child(even) {
    background-color: var(--bg-color);
}

.showcase-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.showcase-reverse {
    flex-direction: row-reverse;
}

.showcase-content {
    flex: 1;
}

.showcase-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.showcase-content p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.showcase-image {
    flex: 1;
}

.showcase-image img, .hero-image-container img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.showcase-image img:hover, .hero-image-container img:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

@media (max-width: 900px) {
    .showcase-container, .showcase-reverse {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
}

/* Text Content Sections (How it works, Code Types, FAQ) */
.content-section {
    padding: 6rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.content-section h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.content-section > p.subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 4rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.feature-list-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-list-item p, .feature-list-item li {
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.6;
}

.feature-list-item ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.feature-list-item li {
    margin-bottom: 0.5rem;
}

.code-types {
    background-color: var(--bg-color);
    padding: 6rem 2rem;
}

.code-types-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.code-type-card {
    background-color: #FFFFFF;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.code-type-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.code-type-card p {
    color: var(--text-muted);
}

/* FAQ */
.faq-section {
    padding: 6rem 2rem;
    background-color: #FFFFFF;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
}

.faq-item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.faq-item p {
    color: var(--text-muted);
}

/* Gradient Section (How It Works) */
.gradient-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #FFFFFF;
}

.gradient-section h2, .gradient-section h3 {
    color: #FFFFFF;
}

.gradient-section p.subtitle, 
.gradient-section .feature-list-item p, 
.gradient-section .feature-list-item li {
    color: rgba(255, 255, 255, 0.95);
}



/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--primary);
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.carousel-nav:hover {
    background: #FFFFFF;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: -3.5rem;
}

.carousel-nav.next {
    right: -3.5rem;
}

/* Top Menu Links */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

@media (max-width: 900px) {
    .nav-links, .nav-actions {
        display: none;
    }
}
