/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Targeted text overflow protection - no layout disruption */
.feature-title,
.feature-description,
.use-case-title,
.use-case-description,
.problem-label,
.security-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Prevent word breaking for section titles and subtitles */
.section-title,
.section-subtitle,
.hero-headline,
.hero-subheadline {
    word-wrap: normal;
    overflow-wrap: normal;
    hyphens: none;
    word-break: normal;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #151515;
    background: #ffffff;
    overflow-x: hidden;
    max-width: 100vw;
}

/* CSS Variables */
:root {
    --primary-black: #151515;
    --primary-white: #ffffff;
    --gray-600: #737373;
    --gray-500: #8b8b8b;
    --gray-300: #d1d5db;
    --gray-100: #f3f4f6;
    --gray-150: #e5e7eb;
    --yai-blue: #3b82f6;
    --yai-blue-light: #60a5fa;
    --yai-blue-dark: #1d4ed8;
    --font-sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-inter: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Crimson Pro', Georgia, 'Times New Roman', serif;
}

/* Navigation */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    border-bottom: none;
    z-index: 1000;
    padding: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

.nav-brand {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--yai-blue);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
}

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

.nav-link {
    color: var(--primary-white);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--yai-blue);
}

/* Navigation on light backgrounds */
.navigation.on-light-bg {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.navigation.on-light-bg .nav-link {
    color: var(--primary-black);
}

.navigation.on-light-bg .nav-link:hover {
    color: var(--yai-blue);
}

.navigation.on-light-bg .nav-brand {
    color: var(--yai-blue);
}

.navigation.on-light-bg .nav-cta {
    background: var(--primary-white);
    color: var(--gray-600);
    border: 1px solid var(--gray-500);
}

.navigation.on-light-bg .nav-cta:hover {
    background: var(--yai-blue);
    color: var(--primary-white);
    border-color: var(--yai-blue);
}

.navigation.on-light-bg .nav-cta:active {
    background: var(--yai-blue-dark);
    color: var(--primary-white);
    border-color: var(--yai-blue-dark);
}

.nav-cta {
    background: var(--primary-white);
    color: var(--gray-600);
    border: 1px solid var(--gray-500);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.15s ease-in-out;
    display: inline-block;
}

.nav-cta:hover {
    background: var(--yai-blue);
    color: var(--primary-white);
    border-color: var(--yai-blue);
    transform: none;
}

.nav-cta:active {
    background: var(--yai-blue-dark);
    color: var(--primary-white);
    border-color: var(--yai-blue-dark);
    transform: none;
}

/* Hero Section */
.hero {
    background: var(--primary-white);
    background-image: url('../images/hero-background.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: clamp(4rem, 8vh, 8rem) 2rem clamp(3rem, 6vh, 6rem);
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
    margin-top: -2vh;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 400;
    color: var(--primary-white);
    line-height: 1.2;
    letter-spacing: normal;
    margin: 0;
    max-width: 900px;
}

.highlight {
    color: var(--yai-blue);
}

.hero-subheadline {
    font-family: var(--font-inter);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 800px;
    margin: -0.25rem auto 0 auto;
    word-wrap: break-word;
    hyphens: auto;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.stat-item {
    text-align: center;
    background: var(--primary-white);
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    padding: 1.5rem 1rem;
    transition: all 0.3s ease;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-black);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    text-transform: none;
    letter-spacing: normal;
}

.hero-benefit {
    margin: 1rem 0;
}

.hero-benefit p {
    font-family: var(--font-inter);
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray-600);
    margin: 0;
    background: var(--gray-100);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    display: inline-block;
}

.hero-cta {
    margin-top: 1rem;
}

.cta-primary {
    background: var(--yai-blue);
    color: var(--primary-white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-sans);
}

.cta-primary:hover {
    background: var(--yai-blue-dark);
    transform: translateY(-1px);
}

/* Section Base Styles */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    padding-left: 1rem;
    padding-right: 1rem;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--yai-blue);
    border-radius: 2px;
    opacity: 0.3;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 400;
    color: var(--primary-black);
    line-height: 1.2;
    letter-spacing: normal;
    margin-bottom: 0.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    hyphens: auto;
    overflow-wrap: break-word;
}

.cta-section .section-title {
    color: var(--yai-blue);
    text-align: center;
    word-wrap: normal;
    hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

.cta-section .section-subtitle {
    color: var(--primary-white);
    max-width: 750px;
    margin: 0 auto 2.5rem auto; /* Updated spacing */
    font-size: 1.125rem;
    line-height: 1.6;
    text-align: center;
    width: 100%;
    display: block;
    word-wrap: normal;
    hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

.section-subheading {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray-500);
    line-height: 1.5;
    margin-bottom: 2rem;
    margin-top: 0.5rem;
    font-style: italic;
    opacity: 0.9;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    word-wrap: normal;
    hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

/* Features Section */
.features {
    background: var(--primary-white);
    padding: 6rem 0;
}

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

.feature-card {
    background: var(--primary-white);
    padding: 2rem;
    border: 1px solid var(--gray-500);
    border-radius: 8px;
    position: relative;
    text-align: left;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--yai-blue);
}

.feature-card:hover .feature-icon {
    color: var(--yai-blue);
}

.feature-icon {
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.feature-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-black);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.feature-description {
    color: var(--gray-600);
    line-height: 1.6;
    max-width: 300px;
    word-wrap: break-word;
    hyphens: auto;
}

/* Use Cases Section */
.use-cases {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/web3.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 6rem 0;
    position: relative;
}

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

.use-case-card {
    background: none;
    padding: 2rem;
    border: none;
    border-radius: 0;
    position: relative;
    text-align: left;
    transition: none;
    box-shadow: none;
}

.use-case-card:hover {
    /* No hover effects for borderless design */
}

.use-case-icon {
    color: var(--primary-white);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-shadow: none;
}

.use-case-title {
    font-family: var(--font-serif);
    font-size: 1.625rem;
    font-weight: 400;
    color: var(--primary-white);
    margin-bottom: 0.75rem;
    line-height: 1.2;
    text-shadow: none;
}

.use-case-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 300px;
    text-shadow: none;
    word-wrap: break-word;
    hyphens: auto;
}

/* Use Cases Section - White text styling */
.use-cases .section-title {
    color: var(--primary-white);
    text-shadow: none;
}

.use-cases .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: none;
}



/* Problem Section */
.problem-section {
    background: var(--primary-black);
    color: var(--primary-white);
    padding: 6rem 0;
}

.problem-section .section-title {
    color: var(--primary-white);
    white-space: normal;
    word-wrap: break-word;
    hyphens: auto;
    overflow-wrap: break-word;
}

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

.problem-stat {
    text-align: center;
}

.problem-number {
    font-family: var(--font-sans);
    font-size: 4.5rem;
    font-weight: 600;
    color: var(--yai-blue);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.problem-label {
    font-size: 1rem;
    color: var(--primary-white);
    line-height: 1.5;
}

/* Security Section */
.security-section {
    background: var(--primary-white);
    padding: 6rem 0;
}

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

.security-card {
    background: var(--primary-white);
    padding: 2.5rem 2rem;
    border: 1px solid var(--gray-500);
    border-radius: 8px;
    position: relative;
    text-align: left;
    transition: all 0.3s ease;
}

.security-card:hover {
    border-color: var(--yai-blue);
}

.security-card:hover .security-icon {
    color: var(--yai-blue);
}

.security-icon {
    color: var(--primary-black);
    margin-bottom: 1.5rem;
}

.security-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-black);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.security-description {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.security-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.security-details li {
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.security-details li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--yai-blue);
    font-weight: 600;
}

.security-details li:last-child {
    margin-bottom: 0;
}

/* About Section - v2 */
.about-section {
    background: var(--gray-100);
    padding: 6rem 0;
    text-align: center;
}

.about-section .section-container {
    max-width: 1200px;
    text-align: center;
}

.about-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
    width: 100%;
    display: block;
}

.about-section .section-title {
    margin-bottom: 0.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: 100%;
    display: block;
    word-wrap: normal;
    hyphens: none;
    word-break: normal;
}

.about-section .section-subtitle {
    max-width: 750px;
    margin: 0 auto 2.5rem auto;
    font-size: 1.125rem;
    line-height: 1.6;
    text-align: center;
    width: 100%;
    display: block;
    word-wrap: normal;
    hyphens: none;
    word-break: normal;
}

/* CTA Section - Updated */
.cta-section {
    background: var(--primary-black);
    color: var(--primary-white);
    padding: 6rem 0;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 3rem auto 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.cta-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 400;
    color: var(--primary-white);
    line-height: 1.2;
    letter-spacing: normal;
    margin-bottom: 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    white-space: normal;
    word-wrap: break-word;
    hyphens: auto;
    overflow-wrap: break-word;
}

.cta-subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.cta-secondary {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 1rem;
    font-weight: 500;
    opacity: 0.8;
}

.cta-section .cta-primary {
    background: var(--yai-blue);
    color: var(--primary-white);
}

.cta-section .cta-primary:hover {
    background: var(--yai-blue-dark);
}

/* Footer */
.footer {
    background: var(--primary-black);
    border-top: none;
    padding: 2rem 0;
}

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

.footer-brand {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--yai-blue);
}

.footer-text {
    color: var(--primary-white);
    font-size: 0.875rem;
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-white);
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.navigation.on-light-bg .nav-toggle {
    color: var(--primary-black);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Ensure all text wraps properly on mobile */
    p:not(.section-subtitle):not(.hero-subheadline) {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    /* Keep section titles and subtitles from breaking words */
    .section-title, .section-subtitle, .hero-headline, .hero-subheadline,
    .about-section .section-title, .about-section .section-subtitle,
    .cta-section .section-title, .cta-section .section-subtitle {
        word-wrap: normal !important;
        hyphens: none !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        right: 0;
        width: 200px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        gap: 0.5rem;
        padding: 1.25rem 1.5rem;
        border-radius: 0 0 0 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-menu.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-link {
        padding: 0.75rem 0;
        text-align: center;
        color: var(--primary-black) !important;
        border: none;
        transition: color 0.2s ease;
    }

    .nav-link:hover {
        color: var(--yai-blue) !important;
    }

    .nav-cta {
        background: var(--primary-white);
        color: var(--gray-600);
        border: 1px solid var(--gray-500);
        padding: 0.5rem 1rem;
        border-radius: 4px;
        text-decoration: none;
        font-weight: 500;
        font-size: 0.9rem;
        transition: all 0.15s ease-in-out;
        margin-top: 0.5rem;
        text-align: center;
        display: block;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    .nav-cta:hover {
        background: var(--yai-blue);
        color: var(--primary-white);
        border-color: var(--yai-blue);
    }

    .nav-cta:active {
        background: var(--yai-blue-dark);
        color: var(--primary-white);
        border-color: var(--yai-blue-dark);
    }

    .hero {
        background-attachment: scroll;
        background-position: center 40%;
    }

    .use-cases {
        background-attachment: scroll;
        background-position: center center;
        background-size: cover;
        background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/web3.jpg');
    }

    .stat-item {
        background: var(--primary-white);
        padding: 1rem 0.75rem;
    }

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

    .hero-stats {
        gap: 2rem;
    }

    .section-container {
        padding: 0 1rem;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .section-title {
        font-size: 2rem;
        white-space: normal;
    }

    .features-grid,
    .use-cases-grid,
    .security-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .problem-stats {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .about-section {
        padding: 4rem 0;
    }

    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* Extra text protection for very small screens */
    .section-subtitle,
    .hero-subheadline,
    .feature-description,
    .use-case-description {
        padding: 0 0.5rem;
        max-width: calc(100% - 1rem);
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .hero {
        background-position: center 35%;
    }

    .use-cases {
        background-position: center center;
        background-size: cover;
        background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/web3.jpg');
    }

    .section-title {
        font-size: 1.75rem;
        white-space: normal;
    }

    .cta-title {
        font-size: 2rem;
        white-space: normal;
    }

    .about-section {
        padding: 3rem 0;
    }
}


/* Typeform Modal */
.typeform-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.typeform-modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 70vh;
    max-height: 500px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.typeform-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.typeform-close:hover {
    background: white;
    color: #333;
    transform: scale(1.1);
}

.typeform-modal-content > div[data-tf-live] {
    width: 100%;
    height: 100%;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .typeform-modal-content {
        width: 95%;
        height: 95vh;
        max-height: none;
    }

    .typeform-modal {
        padding: 10px;
    }
}

/* Scroll Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-animate {
    animation: fadeUp 0.6s ease-out;
}

.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}