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

:root {
    --primary: #2563eb;          /* Rich blue - professional yet vibrant */
    --primary-light: #60a5fa;    /* Lighter blue for gradients */
    --primary-dark: #1e40af;     /* Darker blue for depth */
    --accent: #f59e0b;           /* Warm amber for contrast */
    --dark: #0a0a0a;
    --darker: #000000;
    --light: #f3f4f6;
    --light-gray: #f1f5f9;
    --gray: #6b7280;
    --success: #10b981;
    --cyan: #06b6d4;             /* Complementary cyan for variety */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--darker);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

section {
    padding: 3rem 0;
}

.section-light {
    background: var(--light);
}

.section-dark {
    background: var(--dark);
}

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

.section-light .section-title {
    color: var(--dark);
}

/* Navigation styles */
.nav-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-wrapper {
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 70px;
    flex-wrap: nowrap;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo img {
    height: calc(70px * 0.75); /* 75% of nav height */
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

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

/* Animated gradient background */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at top, #0a1628 0%, #000000 50%);
    overflow: hidden;
    padding-top: 1rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
    radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(96, 165, 250, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(37, 99, 235, 0.08) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-20px, -20px) scale(1.05); }
    66% { transform: translate(20px, -10px) scale(0.95); }
}

.problem.hero {
    padding-bottom: 10rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Typography with fade-in animations */
.company-name {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 600;
    color: var(--primary-light);
    margin-top: 1rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
    letter-spacing: 0.1em;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.subtitle {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--gray);
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.unstructured-data {
}

.unstructured-data h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--light);
}

.unstructured-data .intro {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--gray);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.data-type {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(255,255,255,0.5);
    border: 1px solid var(--gray);
}

.data-type h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
}

.data-type ul {
    list-style: none;
    padding: 0;
}

.data-type li {
    padding: 0.5rem 0;
    color: #64748b;
    border-bottom: 1px solid var(--light-gray);
}

.data-type li:last-child {
    border-bottom: none;
}

.why-matters {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    text-align: left;
}

.why-matters h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
}

.why-matters ul {
    list-style: none;
    padding: 0;
}

.why-matters li {
    padding: 0.5rem 0;
    color: var(--gray);
    position: relative;
    padding-left: 1.5rem;
}

.why-matters li::before {
    content: "•";
    color: var(--primary-dark);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Value Propositions */
.value-props {
}

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

.prop {
    text-align: center;
    padding: 2rem;
}

.prop-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.prop h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.prop p {
    color: #64748b;
    line-height: 1.7;
}

.prop ul {
    text-align: left;
    margin-top: 1rem;
    list-style: none;
    padding: 0;
}

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

.prop li::before {
    content: "✓";
    color: #10b981;
    position: absolute;
    left: 0;
    font-weight: bold;
}


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

/* Glowing button */
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

/* Code preview with typing animation */
.code-preview {
    margin-top: 4rem;
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    animation: fadeIn 1s ease-out 0.6s both;
}

.code-line {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: typeIn 0.5s ease-out forwards;
}

.code-line:nth-child(1) { animation-delay: 1s; }
.code-line:nth-child(2) { animation-delay: 1.3s; }
.code-line:nth-child(3) { animation-delay: 1.6s; }

@keyframes typeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Features section */
.features {
    background: var(--dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature-card:hover::before {
    opacity: 0.05;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem auto;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.feature-description {
    color: var(--gray);
    line-height: 1.8;
}

/* Connectors Section */
.connectors {
}

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

.connector-category {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.connector-category h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
}

.connector-category p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.connector-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    opacity: 0.7;
}

.connector-logo {
    width: 100px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(37, 99, 235, 0.1);
    font-size: 0.9rem;
    color: var(--gray);
}

.connector-logo:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(37, 99, 235, 0.3);
    color: var(--light);
}

/* Use cases with scroll animation */
.use-cases {
}

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

.use-case-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    padding: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.use-case-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.use-case-card:hover {
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-5px);
}

.use-case-emoji {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.use-case-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--light);
}

.use-case-description {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Security section */
.security {
    background: linear-gradient(180deg, var(--dark) 0%, var(--darker) 50%, var(--dark) 100%);
}

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

.security-item {
    text-align: center;
}

.security-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* Beta signup section */
.beta-signup {
    background: linear-gradient(180deg, var(--dark) 0%, var(--darker) 100%);
    text-align: center;
}

.flip-text {
    display: inline-block;
    position: relative;
    color: var(--primary);
    font-weight: bold;
}

.flip-text::before {
    content: "Engineering"; /* Use the longest word to reserve space */
    visibility: hidden;
    display: block;
    height: 0;
}

.flip-text .text-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
}

.flip-text .text-item:nth-child(1) {
    animation: textFlip 6s infinite;
    animation-delay: 0s;
}

.flip-text .text-item:nth-child(2) {
    animation: textFlip 6s infinite;
    animation-delay: 2s;
}

.flip-text .text-item:nth-child(3) {
    animation: textFlip 6s infinite;
    animation-delay: 4s;
}

@keyframes textFlip {
    0%, 16.66% {
        opacity: 1;
        transform: translateY(0);
    }
    33.33%, 100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes textFlipFinal {
    0%, 100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.signup-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 3rem auto 0;
}

.email-input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 8px;
    color: var(--light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.email-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.submit-button {
    padding: 1rem 2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* Success message */
.success-message {
    display: none;
    color: var(--success);
    margin-top: 1rem;
    animation: fadeIn 0.5s ease;
}

/* Responsive */
@media (max-width: 853px) {
    /* Beta signup section fixes */
    .signup-form {
        flex-direction: column;
        max-width: 100%;
        margin: 2rem auto 0;
        gap: 0.8rem;
    }

    .email-input,
    .submit-button {
        width: 100%;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    /* Force proper box sizing and prevent overflow */
    body {
        overflow-x: hidden;
    }

    .nav-wrapper {
        padding: 0 15px;
        height: 60px;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    /* Container padding adjustment */
    .container {
        padding: 0 15px;
        max-width: 100vw;
        box-sizing: border-box;
    }

    /* Hero section fixes */
    .hero {
        padding: 2rem 0;
        width: 100%;
        overflow: hidden;
    }

    /* Logo fixes */
    .company-name {
        width: 100%;
        overflow: hidden;
    }

    .company-name img {
        max-width: 100%;
        height: auto;
    }

    /* Main heading - force text wrapping */
    h1 {
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    /* Subtitle fixes */
    .subtitle {
        font-size: clamp(1rem, 4vw, 1.2rem);
        margin-bottom: 2rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Code preview - much more aggressive fixes */
    .code-preview {
        margin-top: 2rem;
        padding: 1rem 0.8rem;
        border-radius: 8px;
        width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    .code-line {
        font-size: 0.75rem;
        margin-bottom: 0.3rem;
        word-break: break-all;
        overflow-wrap: break-word;
        line-height: 1.4;
    }

    /* Features grid - reduce minimum width */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    /* Use cases grid */
    .use-case-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Connectors section */
    .connector-logos {
        gap: 1rem;
        margin: 0 -10px; /* Allow slight overflow for better spacing */
    }

    .connector-logo {
        width: 80px;
        height: 50px;
        font-size: 0.8rem;
        flex-shrink: 0;
    }

    /* Stats section - stack vertically */
    .beta-signup .container > div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 2rem !important;
        margin-bottom: 2rem !important;
    }

}

/* Stats counter animation */
.stat-counter {
    text-align: center;
    width: 11rem;
}

.stat-counter .stat-number {
    font-size: 2.95vw;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

/* Gradient divider */
.gradient-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 4rem 0;
}

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

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(255,255,255,0.5);
    border: 1px solid var(--gray);
}

.stat-label {
    color: var(--gray);
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.challenge-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards fill grid row height */
}

.challenge-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.challenge-card:hover::before {
    opacity: 0.05;
}

.challenge-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.3);
}

.challenge-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem auto;
}

.challenge-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.challenge-description {
    color: var(--gray);
    line-height: 1.8;
    flex-grow: 1; /* This pushes the impact div to the bottom */
    margin-bottom: 1.5rem; /* Add some space before impact */
}

.challenge-impact {
    background: rgba(248, 113, 113, 0.1);
    border-left: 4px solid #f87171;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #fca5a5;
    margin-top: auto; /* This ensures it sticks to the bottom */
}

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

.solution-category {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.solution-category h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
}

.solution-category p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.solution-logo {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.solution-logo:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(37, 99, 235, 0.3);
    color: var(--light);
}
