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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #FDFDFD;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #FDFDFD;
    z-index: 1000;
}

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

.logo-link {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-image {
    height: 19px;
    width: auto;
    object-fit: contain;
}

.nav-tagline {
    font-size: 0.875rem;
    color: #6b7280;
    margin-left: 0.5rem;
    font-weight: 400;
}

.nav-actions {
    display: flex;
    align-items: center;
}

.btn-header {
    background-color: #000000;
    color: #ffffff;
    padding: 0.336rem 0.84rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.btn-header.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.btn-header.visible:hover {
    background-color: #333333;
    transform: translateY(-1px);
}


/* Hero Section */
.hero {
    min-height: 85vh;
    padding-top: 70px; /* Account for fixed header */
    background: #FDFDFD;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    color: #333;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

/* Typewriter effect with gradient flowing animation */
.typewriter-text {
    position: relative;
    display: inline-block;
    font-weight: inherit;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    /* Ensure crisp rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translateZ(0); /* Force hardware acceleration for crisp rendering */
}

.typewriter-text.typing::after {
    content: '|';
    font-weight: 400;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: #666;
}

/* Animated Word Effect */
.word-animation {
    position: relative;
    display: inline-block;
    font-weight: 600;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    transition: all 0.3s ease;
    /* Ensure crisp rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translateZ(0); /* Force hardware acceleration for crisp rendering */
}

.word-animation::after {
    content: '';
    position: absolute;
    top: 0;
    right: -2px;
    width: 2px;
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    animation: blink 1s infinite;
    opacity: 0;
}

.word-animation.typing::after {
    opacity: 1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Gradient text effect without typewriter animation */
.gradient-text {
    position: relative;
    display: inline-block;
    font-weight: inherit;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    /* Ensure crisp rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translateZ(0); /* Force hardware acceleration for crisp rendering */
}

/* Data Controls Button */
.data-controls-btn {
    display: inline-block;
    background: transparent;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 6px;
    margin-top: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.data-controls-btn:hover {
    color: #000000;
    border-color: #000000;
    background: rgba(0, 0, 0, 0.02);
}


.beta-signup-form {
    max-width: 473px;
    margin: 0;
}

.email-form {
    display: flex;
    gap: 0.525rem;
    align-items: center;
    flex-wrap: wrap;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8.4px;
    padding: 0.2625rem;
    transition: all 0.3s ease;
}

.email-input {
    flex: 1;
    min-width: 262px;
    padding: 0.945rem 1.05rem;
    border: none;
    border-radius: 6.3px;
    font-size: 0.9975rem;
    line-height: 1.3;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: all 0.3s ease;
    background-color: #ffffff;
    color: #1f2937;
}

.email-form:focus-within {
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.email-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.9);
}

.email-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.success-message {
    text-align: center;
    padding: 1.5rem;
    background-color: #f0fdf4;
    border: 2px solid #22c55e;
    border-radius: 5px;
    color: #166534;
    font-weight: 500;
}

.success-message p {
    margin: 0;
    font-size: 1rem;
}

/* Screen reader only class for accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.btn {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 98px;
    font-size: 0.7rem;
}

.btn-primary {
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 0.945rem 1.3125rem;
    font-size: 0.9975rem;
    line-height: 1.3;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary:hover {
    background-color: #1f2937;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.hero-img:hover {
    transform: scale(1.05);
}

/* Footer Section */
.footer {
    background: #FDFDFD;
    padding: 2rem 0;
    margin-top: 4rem;
}

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

.footer-left {
    flex: 1;
}

.footer-copyright {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.footer-right {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.footer-link {
    font-size: 0.875rem;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #111827;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .btn-header {
        padding: 0.384rem 0.96rem;
        font-size: 0.9rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .beta-signup-form {
        max-width: 100%;
    }
    
    .email-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .email-input {
        min-width: auto;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .hero-img {
        height: 250px;
    }
    
    /* App Logos Mobile */
    .works-with-text {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .app-logos-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .app-logo {
        width: 50px;
        height: 50px;
    }
    
    /* Sticky Features Mobile */
    .sticky-features-section {
        padding: 60px 0 60px 0;
    }
    
    .sticky-features-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
        min-height: auto;
    }
    
    .main-feature {
        flex: none;
        position: static !important;
        top: auto !important;
        height: auto;
        max-height: none;
    }
    
    .main-feature-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .main-feature-description {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .main-image-placeholder {
        height: 250px;
    }
    
    .features-sidebar {
        flex: none;
        padding: 0;
    }
    
    .main-feature-image {
        margin-bottom: 0.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .feature-card-title {
        font-size: 1.25rem;
        text-align: center;
    }
    
    .feature-card-description {
        text-align: center;
    }
    
    .feature-icon {
        display: block;
        margin: 0 auto 0.5rem auto;
    }
    
    .compliance-badges {
        display: block;
        margin: 0 auto 1rem auto;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-right {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .btn {
        padding: 0.56rem 1.05rem;
        min-width: 84px;
    }
    
    
    .hero-placeholder {
        height: 200px;
        font-size: 1rem;
    }
    
    /* Sticky Features Small Mobile */
    .main-feature-title {
        font-size: 1.75rem;
    }
    
    .main-feature-description {
        font-size: 1rem;
    }
    
    .main-feature-img {
        height: 162px;
        max-height: 81vh;
    }
    
    .feature-card-title {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .feature-card-description {
        font-size: 0.95rem;
        text-align: center;
    }
    
}

@media (max-width: 1024px) {
    /* Testimonials Tablet */
    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.75rem;
    }
}

@media (max-width: 768px) {
    /* Hide testimonials section on mobile */
    .testimonials-section {
        display: none;
    }
}

@media (max-width: 480px) {
    /* App Logos Small Mobile */
    .app-logos-container {
        padding: 0 1rem;
    }
    
    .works-with-text {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .app-logos-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1rem;
        max-width: 240px;
        margin: 0 auto;
    }
    
    .app-logo {
        width: 40px;
        height: 40px;
    }
    
    /* Hide Google Docs icon on mobile only */
    .app-logo-item:nth-child(7) {
        display: none;
    }
    
    /* Ensure main feature doesn't stick on small mobile */
    .main-feature {
        position: static !important;
        top: auto !important;
    }
    
    
    /* CTA Section Mobile */
    .cta-section {
        padding: 0 0 80px 0;
    }
    
    .cta-container {
        margin: 0 auto;
        padding: 0 1rem;
    }
    
    .cta-content {
        padding: 7.5rem 1.5rem;
        border-radius: 5px;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .btn {
        transition: none;
    }
}

/* Focus states for accessibility */
.btn:focus,
.logo-link:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero {
        background: #000000;
    }
    
    .hero-title,
    .hero-subtitle {
        text-shadow: none;
    }
}

/* App Logos Section */
.app-logos-section {
    background: #FDFDFD;
    padding: 20px 0 40px 0;
}

.works-with-text {
    text-align: center;
    font-size: 0.875rem;
    color: #9ca3af;
    margin: 0 0 1.5rem 0;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.app-logos-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Main app logos grid - default desktop layout */
.app-logos-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.app-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.app-logo-item:hover {
    transform: scale(1.1);
}

.app-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: grayscale(60%) opacity(0.8);
    transition: filter 0.3s ease;
}

.app-logo:hover {
    filter: grayscale(0%) opacity(1);
}

/* Sticky Features Section */
.sticky-features-section {
    background: #FDFDFD;
    padding: 80px 0 80px 0;
}

.sticky-features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 4rem;
    min-height: 100vh;
}

/* Main Feature (Left Side - Sticky on desktop only) */
.main-feature {
    flex: 0 0 60%;
    position: sticky;
    top: 120px;
    height: fit-content;
    max-height: calc(100vh - 140px);
}

/* Remove sticky behavior on all mobile and tablet devices */
@media (max-width: 1024px) {
    .main-feature {
        position: static !important;
        top: auto !important;
        height: auto;
        max-height: none;
    }
    
    .sticky-features-container {
        min-height: auto;
    }
}

.main-feature-image {
    margin-bottom: 2rem;
}

.main-feature-img {
    width: 100%;
    height: auto;
    max-height: 81vh;
    object-fit: contain;
    border-radius: 5px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.main-feature-img:hover {
    transform: scale(1.05);
}

.main-feature-content {
    padding: 0 1rem;
}

.main-feature-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.main-feature-description {
    font-size: 1.2rem;
    color: #6b7280;
    line-height: 1.6;
}

/* Features Sidebar (Right Side - Scrollable) */
.features-sidebar {
    flex: 0 0 35%;
    padding: 2rem 0;
}

/* Main content card styling */
.main-content-card {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.feature-card {
    background: #FDFDFD;
    border-radius: 5px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
}

.feature-card:last-child {
    margin-bottom: 4rem;
}

.compliance-badges {
    width: 128px;
    height: auto;
    margin-bottom: 1rem;
    margin-left: 0;
}

.feature-icon {
    width: 34px;
    height: 34px;
    margin-bottom: 0.5rem;
    margin-left: 0;
    object-fit: contain;
}

.feature-card:first-child .feature-icon {
    margin-top: -1.5rem;
}

.feature-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.feature-card-description {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
}

/* Testimonials Section Styles */
.testimonials-section {
    padding: 80px 0;
    background: #FDFDFD;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: #FDFDFD;
    border-radius: 5px;
    padding: 2rem;
}

.testimonial-quote {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 0.5rem;
}

.testimonial-quote::before {
    content: '"';
    font-size: 2rem;
    color: #d1d5db;
    position: absolute;
    left: -0.6rem;
    top: -0.4rem;
    line-height: 1;
}

.testimonial-quote::after {
    content: '"';
    font-size: 2rem;
    color: #d1d5db;
    line-height: 1;
    display: inline-block;
    margin-left: 0.05em;
    vertical-align: text-top;
}

.testimonial-author {
    margin-top: 1.5rem;
}

.author-name {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.author-title {
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* CTA Section Styles */
.cta-section {
    padding: 0 0 100px 0;
    background: #FDFDFD;
    text-align: center;
}

.cta-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta-content {
    max-width: none;
    margin: 0;
    background: #F5F5F5;
    border-radius: 5px;
    padding: 9rem 2.5rem;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 500;
    color: #000000;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 2.5rem;
    text-align: center;
    line-height: 1.6;
}

.cta-content .email-input {
    background-color: #ffffff;
    border: none;
    color: #1f2937;
}

.cta-content .email-input:focus {
    background-color: rgba(255, 255, 255, 0.9);
    outline: none;
}

.cta-content .email-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.cta-content .beta-signup-form {
    margin: 0 auto;
}

/* Mobile-specific overrides with higher specificity for centering icons and badges */
@media (max-width: 768px) {
    .feature-card .feature-icon {
        display: block;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 0.5rem;
    }
    
    .feature-card .compliance-badges {
        display: block;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 1rem;
    }
}