:root {
    --primary: #3B82F6;
    --primary-hover: #2563EB;
    --text-dark: #111827;
    --text-muted: #4B5563;
    --bg-light: #FFFFFF;
    --bg-section: #F9FAFB;
    --border: #E5E7EB;
    --radius-lg: 24px;
    --radius-md: 16px;
    --container-width: 1200px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

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

/* Navbar */
.navbar {
    padding: 24px 0;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}



.logo-text {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
}

.nav-links {
    display: flex;
    gap: 32px;
}

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

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

/* Hamburger Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-primary-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-primary-outline:hover {
    background-color: var(--primary);
    color: white;
}

.btn-full {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFFBEB;
    padding: 8px 16px;
    border-radius: 9999px;
    margin-bottom: 24px;
    border: 1px solid #FEF3C7;
}

.stars {
    color: #F59E0B;
}

.hero-badge-text {
    color: #92400E;
    font-size: 0.875rem;
    font-weight: 600;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    max-width: 900px;
    margin: 0 auto 24px;
    letter-spacing: -0.02em;
}

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

/* Partners */
.partners-section {
    margin-top: 100px;
}

.partners-section p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-weight: 500;
}

.partners-list {
    display: flex;
    justify-content: center;
}

.partners-image {
    max-width: 800px;
    width: 100%;
    opacity: 0.6;
    filter: grayscale(1);
}

.logo img {
    height: 40px;
}

/* Section Common */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    display: block;
}

.section-header h2 {
    font-size: 2.75rem;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Solutions Section */
.solutions-section {
    padding: 100px 0;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.solution-card {
    padding: 32px;
    text-align: center;
}

.card-image {
    background: #F3F4F6;
    height: 200px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    max-width: 80%;
    max-height: 80%;
}

.solution-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

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

/* Benefits Section */
.benefits-section {
    padding: 100px 0;
    background-color: var(--bg-section);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.benefit-card {
    display: flex;
    flex-direction: column;
    padding: 40px;
}

.benefit-card .card-image {
    height: 240px;
    background: white;
}

.benefit-card .card-content {
    margin-top: 24px;
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

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

/* Steps Section */
.steps-section {
    padding: 100px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.step-card {
    background: var(--bg-light);
    padding: 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.step-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 24px;
    opacity: 0.1;
    font-family: var(--font-heading);
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

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

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: white;
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea {
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #F9FAFB;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-checkbox label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.form-checkbox a {
    color: var(--primary);
    text-decoration: none;
}

/* Footer */
.footer {
    background-color: #000;
    color: white;
    padding: 80px 0 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: #27272a;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    transition: background 0.2s;
}

.social-icon:hover {
    background: var(--primary);
}

.footer-links-wrapper {
    display: flex;
    gap: 100px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-nav h4 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.footer-nav a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid #27272a;
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: #6B7280;
    font-size: 0.875rem;
}

.footer-address p {
    margin-bottom: 4px;
    text-align: right;
}

.copyright-desktop {
    display: block;
}

.copyright-mobile {
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }

    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        order: 3;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        padding: 100px 40px;
        gap: 24px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--text-dark);
    }

    .navbar .btn-primary-outline {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .solutions-grid,
    .benefits-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links-wrapper {
        gap: 40px;
        flex-wrap: wrap;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
    }

    .footer-address p {
        text-align: center;
    }

    .copyright-desktop {
        display: none;
    }

    .copyright-mobile {
        display: block;
    }
}

/* Use Cases Section */
.use-cases-section {
    padding: 100px 0;
    background-color: var(--bg-section);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.use-case-card {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    overflow: hidden;
    height: fit-content;
}

.use-case-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.use-case-card[open] {
    border-color: var(--primary);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.use-case-header {
    padding: 24px;
    font-weight: 600;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    list-style: none;
    /* Hide default arrow in some browsers */
}

.use-case-header::-webkit-details-marker {
    display: none;
    /* Hide default arrow in Chrome/Safari */
}

.use-case-header::before {
    content: '✓';
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 900;
    transition: transform 0.3s ease;
}

.use-case-card[open] .use-case-header::before {
    transform: rotate(90deg);
    content: '▼';
    /* Change icon when open or keep checkmark but rotate? User asked for expandable. Usually a chevron is better. Let's use a chevron. */
}

/* Let's refine the chevron/checkmark logic */
.use-case-header::after {
    content: '▼';
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.use-case-card[open] .use-case-header::after {
    transform: rotate(180deg);
}

.use-case-content {
    padding: 0 24px 24px 60px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
.card,
.step-card,
.section-header {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero>* {
    animation: fadeIn 0.8s ease-out forwards;
}

.hero h1 {
    animation-delay: 0.1s;
}

.hero-subheadline {
    animation-delay: 0.2s;
}

.hero-cta {
    animation-delay: 0.3s;
}

.partners-section {
    animation-delay: 0.4s;
}

/* Form Message */
.form-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 12px;
    font-size: 0.9375rem;
    text-align: center;
    display: none;
    font-weight: 500;
}

.form-message.success {
    display: block;
    background-color: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
    animation: fadeIn 0.3s ease-out;
}

.form-message.error {
    display: block;
    background-color: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
    animation: fadeIn 0.3s ease-out;
}

/* Comic Sections */
section[id^="comic"] {
    padding: 80px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-light);
}

section[id^="comic"] img {
    width: 100%;
    max-width: min(85vw, 960px); /* 85% of screen width on smaller screens, capped at 960px on larger screens */
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section[id^="comic"] img:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px rgba(59, 130, 246, 0.1);
}