:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --rounded: 0.5rem;
    --transition: all 0.2s ease-in-out;
}

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

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-color);
    line-height: 1.5;
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Media Queries */
@media (max-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .benefit-card:nth-child(4),
    .benefit-card:nth-child(5) {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .hero {
        padding-top: 60px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .subheader {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    /* Benefits Grid - Mobile */
    .benefits .container {
        padding: 0 1rem;
    }
    
    .benefits-grid {
        display: block !important;
        width: 100%;
        padding: 0;
    }
    
    .benefit-card {
        width: 100% !important;
        margin: 0 0 1.5rem 0 !important;
        display: block !important;
        position: relative !important;
        transform: none !important;
        max-width: 100% !important;
        height: auto !important;
        float: none !important;
        clear: both !important;
    }
    
    .benefit-card:last-child {
        margin-bottom: 0 !important;
    }
    
    /* Use Cases Grid - Mobile */
    .use-cases-grid {
        display: block;
        padding: 0;
    }
    
    .use-case-card {
        width: 100%;
        margin: 0 0 1.5rem 0;
        max-width: 100%;
    }
    
    .use-case-card:last-child {
        margin-bottom: 0;
    }
    
    /* Headers */
    .use-cases h2,
    .benefits h2 {
        font-size: 1.8rem;
        padding: 0 0 1.5rem 0;
        text-align: center;
    }
    
    .cta-section h2 {
        font-size: 2rem;
        padding: 0 1rem;
    }
    
    .cta-subheadline {
        padding: 0 1rem;
    }
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-color);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.8;
    text-decoration: none;
}

.logo-img {
    height: 3rem;
    width: auto;
}

.hamburger {
    display: none;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
}

.hamburger-box {
    width: 24px;
    height: 20px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 4px;
    position: absolute;
    transition-property: transform;
    transition-duration: 0.15s;
    transition-timing-function: ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before {
    top: -8px;
    transition: top 0.1s ease-in 0.25s, opacity 0.1s ease-in;
}

.hamburger-inner::after {
    bottom: -8px;
    transition: bottom 0.1s ease-in 0.25s, transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

/* Active state */
.hamburger[aria-expanded="true"] .hamburger-inner {
    transform: rotate(45deg);
    transition-delay: 0.12s;
    transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}

.hamburger[aria-expanded="true"] .hamburger-inner::before {
    top: 0;
    opacity: 0;
    transition: top 0.1s ease-out, opacity 0.1s ease-out 0.12s;
}

.hamburger[aria-expanded="true"] .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
    transition: bottom 0.1s ease-out, transform 0.22s cubic-bezier(0.215, 0.61, 0.355, 1) 0.12s;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Mobile styles */
@media (max-width: 768px) {
    .hamburger {
        display: block;
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
    }
    
    .navbar {
        position: relative;
        padding: 0.75rem 0;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        display: none;
        flex-direction: column;
        padding: 1rem 0;
        gap: 0.5rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 0.5rem 0.5rem;
        z-index: 1000;
        margin: 0;
        border: 1px solid var(--border-color);
        border-top: none;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        display: block;
        padding: 0.75rem 1.5rem;
        color: var(--text-color);
        text-decoration: none;
        font-weight: 500;
        font-size: 1rem;
        transition: all 0.2s ease-in-out;
        width: 100%;
        text-align: center;
    }
    
    .nav-links a:hover {
        background-color: rgba(37, 99, 235, 0.1);
        color: var(--primary-color);
    }
}

/* Desktop styles for nav links */
.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.nav-links a:hover {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}


/* X Handle in Navbar */
.x-handle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.x-handle svg {
    width: 1.25rem;
    height: 1.25rem;
}

.x-handle:hover {
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.1);
}

/* Footer Styles */
.site-footer {
    background-color: #f8fafc;
    padding: 4rem 0 2rem;
    color: #334155;
    border-top: 1px solid #e2e8f0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    text-decoration: none;
}

.footer-brand .logo-img {
    width: 2rem;
    height: 2rem;
}

.footer-brand .logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.tagline {
    color: #64748b;
    margin: 0.5rem 0 0;
    max-width: 280px;
    line-height: 1.5;
}

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

.footer-section h4 {
    color: #1e293b;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    position: relative;
}

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

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

.footer-section a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
    font-size: 0.9375rem;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

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

.social-links svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.875rem;
}

.legal-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.legal-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease-in-out;
}

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

.legal-links span {
    color: #cbd5e1;
    font-size: 0.75rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 2fr;
    }
    
    .footer-bottom {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 3fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    border-radius: var(--rounded);
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

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

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

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

.btn-outline:hover {
    background-color: rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
    text-align: center;
    background: linear-gradient(to bottom, #f9fafb, #ffffff);
    box-sizing: border-box;
    overflow-x: hidden;
}

#features {
    scroll-margin-top: 6rem;
    padding-top: 4rem;
    margin-top: -4rem;
}

.hero-logo .logo-img {
    height: 9rem;
    width: auto;
    margin: 0 auto;
    display: block;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 1.5rem;
    background: linear-gradient(90deg, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text {
    background: linear-gradient(90deg, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

.hero .subheader {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

/* Benefits Section */
.benefits {
    padding: 4rem 0;
    background-color: #f8fafc;
    position: relative;
    z-index: 1;
}

.benefits h2 {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
    clear: both;
}

.benefit-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem;
    text-align: left;
    position: relative;
    overflow: hidden;
    height: 100%;
    box-sizing: border-box;
}

/* 4th card styles (rectangle) */
.benefit-card:nth-child(4) {
    grid-column: span 2;
    grid-row: 2;
    aspect-ratio: unset;
    height: 100%;
    min-height: 100%;
}

/* First card specific styles */
.benefits-grid > .benefit-card:first-child {
    background-color: #ffffff;
}

.benefits-grid > .benefit-card:first-child .benefit-icon {
    background-color: #f3f4f6;
}

/* 5th card styles */
.benefit-card:nth-child(5) {
    grid-row: 2;
    height: 100%;
    min-height: 100%;
    aspect-ratio: unset;
}

.benefit-card {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.benefit-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: var(--text-color);
    line-height: 1.3;
}

.benefit-card p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

/* Use Cases Section */
.use-cases {
    padding: 5rem 0;
    background-color: white;
}

.use-cases h2 {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 3.5rem;
    color: var(--text-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.3;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
}

.use-case-card {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.use-case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.use-case-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 1.5rem 0;
    padding: 1rem;
}

.use-case-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.use-case-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: var(--text-color);
    line-height: 1.3;
}

.use-case-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

/* Call to Action Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.cta-subheadline {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(90deg, #1e40af, #3b82f6);
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    background: linear-gradient(90deg, #1e3a8a, #2563eb);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-subheadline {
        font-size: 1.125rem;
    }
    .use-cases-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .benefit-card:nth-child(4) {
        grid-column: span 1;
        aspect-ratio: auto;
    }
}

@media (max-width: 640px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .benefit-card {
        height: auto !important;
        min-height: auto !important;
        aspect-ratio: auto;
    }
    
    .benefit-card:nth-child(4) {
        aspect-ratio: auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero .subheader {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
}
