:root {
    --primary-blue: #0000FF;
    --primary-gradient: -webkit-linear-gradient(135deg, var(--primary-blue), rgba(0, 0, 255, 0.7));
    --primary-gradient: linear-gradient(135deg, var(--primary-blue), rgba(0, 0, 255, 0.7));
    --neutral-white: #ffffff;
    --neutral-gray: #f8f9fa;
    --neutral-slate: #343a40;
    --border-radius: 0px;
}

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

body {
    font-family: 'Maven Pro', sans-serif;
    line-height: 1.6;
    color: var(--neutral-slate);
    background-color: var(--neutral-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    outline: 1px solid rgba(112, 122, 244, 0.5);
}

.scroll-indicator.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.scroll-indicator svg {
    width: 20px;
    height: 20px;
    stroke: #0404FF;
    transition: transform 0.3s ease;
}

.scroll-indicator:hover {
    background: rgba(112, 122, 244, 0.1);
    outline: 1px solid rgba(112, 122, 244, 0.8);
}

.scroll-indicator.point-up {
    background: transparent;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    outline: 1px solid rgba(112, 122, 244, 0.5);
}

.scroll-indicator.point-up:hover {
    background: rgba(112, 122, 244, 0.1);
    outline: 1px solid rgba(112, 122, 244, 0.8);
}

/* Scroll indicator styling when in black section */
.scroll-indicator.in-black-section {
    outline: 1px solid rgba(255, 255, 255, 0.5);
}

.scroll-indicator.in-black-section svg {
    stroke: #ffffff;
}

.scroll-indicator.in-black-section:hover {
    background: rgba(255, 255, 255, 0.1);
    outline: 1px solid rgba(255, 255, 255, 0.8);
}

.scroll-indicator.in-black-section.point-up {
    outline: 1px solid rgba(255, 255, 255, 0.5);
}

.scroll-indicator.in-black-section.point-up:hover {
    background: rgba(255, 255, 255, 0.1);
    outline: 1px solid rgba(255, 255, 255, 0.8);
}

h1, h2, h3 {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.15);
    z-index: 1000;
    padding: 0.5rem 1rem;
    width: 100%;
    outline: 1px solid rgba(112, 122, 244, 0.5);
    transition: outline 0s, background 0s;
}

/* Header styling when in black section */
.header.in-black-section {
    outline: 1px solid rgba(255, 255, 255, 0.2);
}

.backdrop {
    position: absolute;
    inset: 0;
    height: 200%;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    mask-image: linear-gradient(
        to bottom,
        black 0% 50%,
        transparent 50% 100%
    );
    -webkit-mask-image: linear-gradient(
        to bottom,
        black 0% 50%,
        transparent 50% 100%
    );
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.logo {
    display: block;
    line-height: 1;
    padding: 0.5rem 0;
}

.logo img {
    width: 100px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--neutral-slate);
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-links a:not(.cta-button) {
    background: transparent;
    padding: 0.5rem 1rem;
    color: #000000;
    transition: transform 0.3s ease, color 0s;
    text-shadow: 
        -1px -1px 0 rgba(255, 255, 255, 0.15),
        1px -1px 0 rgba(255, 255, 255, 0.15),
        -1px 1px 0 rgba(255, 255, 255, 0.15),
        1px 1px 0 rgba(255, 255, 255, 0.15),
        0 -1px 0 rgba(255, 255, 255, 0.15),
        0 1px 0 rgba(255, 255, 255, 0.15),
        -1px 0 0 rgba(255, 255, 255, 0.15),
        1px 0 0 rgba(255, 255, 255, 0.15);
}

.nav-links a:not(.cta-button):hover {
    background: transparent;
    color: var(--primary-blue);
    transform: translateY(-1px);
    text-shadow: 
        -1px -1px 0 rgba(255, 255, 255, 0.15),
        1px -1px 0 rgba(255, 255, 255, 0.15),
        -1px 1px 0 rgba(255, 255, 255, 0.15),
        1px 1px 0 rgba(255, 255, 255, 0.15),
        0 -1px 0 rgba(255, 255, 255, 0.15),
        0 1px 0 rgba(255, 255, 255, 0.15),
        -1px 0 0 rgba(255, 255, 255, 0.15),
        1px 0 0 rgba(255, 255, 255, 0.15);
}

/* Navigation links styling when in black section */
.header.in-black-section .nav-links a:not(.cta-button) {
    background: transparent;
    color: #ffffff !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0s !important;
    text-shadow: 
        -1px -1px 0 rgba(0, 0, 0, 0.15),
        1px -1px 0 rgba(0, 0, 0, 0.15),
        -1px 1px 0 rgba(0, 0, 0, 0.15),
        1px 1px 0 rgba(0, 0, 0, 0.15),
        0 -1px 0 rgba(0, 0, 0, 0.15),
        0 1px 0 rgba(0, 0, 0, 0.15),
        -1px 0 0 rgba(0, 0, 0, 0.15),
        1px 0 0 rgba(0, 0, 0, 0.15);
}

.header.in-black-section .nav-links a:not(.cta-button):hover {
    background: transparent;
    color: var(--primary-blue);
    text-shadow: 
        -1px -1px 0 rgba(0, 0, 0, 0.15),
        1px -1px 0 rgba(0, 0, 0, 0.15),
        -1px 1px 0 rgba(0, 0, 0, 0.15),
        1px 1px 0 rgba(0, 0, 0, 0.15),
        0 -1px 0 rgba(0, 0, 0, 0.15),
        0 1px 0 rgba(0, 0, 0, 0.15),
        -1px 0 0 rgba(0, 0, 0, 0.15),
        1px 0 0 rgba(0, 0, 0, 0.15);
}

.nav-links .cta-button {
    background: #000000;
    color: var(--neutral-white) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 8px 24px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-left: 1rem;
}

.nav-links .cta-button:hover {
    background: #333333;
    color: var(--neutral-white) !important;
    transform: translateY(-2px);
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.25),
        0 12px 32px rgba(0, 0, 0, 0.15);
}

/* CTA button styling for black section */
.nav-links .cta-button.black-section-style {
    background: white !important;
    color: #000000 !important;
    box-shadow: 
        0 4px 12px rgba(255, 255, 255, 0.2),
        0 8px 24px rgba(255, 255, 255, 0.1);
}

.nav-links .cta-button.black-section-style:hover {
    background: #f0f0f0 !important;
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 
        0 6px 16px rgba(255, 255, 255, 0.25),
        0 12px 32px rgba(255, 255, 255, 0.15);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 0 0rem;
    background: #ffffff;
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Fallback for browsers that don't support modern CSS */
    background-color: #ffffff;
}

/* First gradient ellipse - orange/yellow linear gradient with blur */
.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 10%;
    width: 80vw;
    height: 80vw;
    /* Fallback for very old browsers */
    background: rgba(255, 231, 186, 0.8);
    /* Cross-browser linear gradient */
    background: -webkit-gradient(linear, left top, right bottom, from(rgba(255, 231, 186, 0.6)), to(rgba(255, 231, 186, 1)));
    background: -webkit-linear-gradient(
        125deg,
        rgba(255, 188, 63, 0.2) 0%,
        rgba(255, 231, 186, 1) 100%
    );
    background: -moz-linear-gradient(
        125deg,
        rgba(255, 188, 63, 0.2) 0%,
        rgba(255, 231, 186, 1) 100%
    );
    background: -o-linear-gradient(
        125deg,
        rgba(255, 188, 63, 0.2) 0%,
        rgba(255, 231, 186, 1) 100%
    );
    background: linear-gradient(
        125deg,
        rgba(255, 188, 62, 0.2) 0%,
        rgba(255, 231, 186, 1) 100%
    );
    border-radius: 50%;
    /* Cross-browser blur filter */
    -webkit-filter: blur(104px);
    -moz-filter: blur(104px);
    -o-filter: blur(104px);
    -ms-filter: blur(104px);
    filter: blur(104px);
    opacity: 0.9;
    /* Cross-browser transform support */
    -webkit-transform: rotate(-38deg);
    -moz-transform: rotate(-38deg);
    -o-transform: rotate(-38deg);
    -ms-transform: rotate(-38deg);
    transform: rotate(-38deg);
    /* Force hardware acceleration for smoother rendering */
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    will-change: transform;
    z-index: 0;
}

/* Second gradient ellipse - blue radial gradient with blur */
.hero::after {
    content: '';
    position: absolute;
    top: -60%;
    right: -20%;
    width: 80vw;
    height: 80vw;
    /* Fallback for very old browsers */
    background: rgba(0, 0, 255, 0.3);
    /* Cross-browser radial gradient */
    background: -webkit-gradient(radial, center center, 0px, center center, 100%, from(rgba(0, 0, 255, 1)), color-stop(45.2%, rgba(104, 152, 255, 1)), to(rgba(104, 152, 255, 0)));
    background: -webkit-radial-gradient(
        circle at center,
        rgba(0, 0, 255, 1) 0%,
        rgba(104, 152, 255, 1) 45.2%,
        rgba(104, 152, 255, 0) 100%
    );
    background: -moz-radial-gradient(
        circle at center,
        rgba(0, 0, 255, 1) 0%,
        rgba(104, 152, 255, 1) 45.2%,
        rgba(104, 152, 255, 0) 100%
    );
    background: -o-radial-gradient(
        circle at center,
        rgba(0, 0, 255, 1) 0%,
        rgba(104, 152, 255, 1) 45.2%,
        rgba(104, 152, 255, 0) 100%
    );
    background: radial-gradient(
        circle at center,
        rgba(0, 0, 255, 1) 0%,
        rgba(104, 152, 255, 1) 45.2%,
        rgba(104, 152, 255, 0) 100%
    );
    border-radius: 50%;
    /* Cross-browser blur filter */
    -webkit-filter: blur(164px);
    -moz-filter: blur(164px);
    -o-filter: blur(164px);
    -ms-filter: blur(164px);
    filter: blur(164px);
    opacity: 0.6;
    /* Cross-browser transform support */
    -webkit-transform: rotate(-38deg);
    -moz-transform: rotate(-38deg);
    -o-transform: rotate(-38deg);
    -ms-transform: rotate(-38deg);
    transform: rotate(-38deg);
    /* Force hardware acceleration for smoother rendering */
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    will-change: transform;
    z-index: 1;
}

.hero-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 6rem 1rem 0 1rem;
    gap: 2rem;
    min-height: calc(100vh - 6rem);
    position: relative;
    z-index: 10;
}

.hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    text-align: left;
    justify-content: flex-start;
    padding-top: 0;
    margin-top: -12rem;
}

.hero-left h1 {
    font-size: 6rem;
    margin: 0;
    color: #000000;
    line-height: 1.2;
    font-weight: 600;
}

.hero-left .hero-main-subheader {
    font-size: 1.5rem;
    margin: 0;
    color: var(--neutral-slate);
    line-height: 1.4;
    font-weight: 500;
    max-width: 500px;
}

.hero-right {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-top: -0rem;
    margin-left: -6rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.mark {
    margin: 0 -0.0em;
    padding: -0.05em 0.1em;
    border-radius: 0.8em 0.0em;
    background: transparent;
    background-image: linear-gradient(
        to right,
        rgba(255, 225, 0, 0.1),
        rgba(255, 225, 0, 0.7) 4%,
        rgba(255, 225, 0, 0.3)
    );
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* Join Beta Button */
.beta-button {
    background: #000000;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
}

.beta-button:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.25),
        0 12px 32px rgba(0, 0, 0, 0.15);
}

/* Features Section */
.features {
    /* Restore dark/black gradient background */
    background: -webkit-linear-gradient(180deg, #0b0b0b 0%, #000000 100%);
    background: linear-gradient(180deg, #0b0b0b 0%, #000000 100%);
    padding: 4rem 0 1.5rem 0;
    position: relative;
    overflow: hidden;
}

/* Subtle grid overlay over dark background */
.features > .features-bg-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        -webkit-linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        -webkit-linear-gradient(left, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 0 0;
    /* Full coverage grid, no masking */
}

.features h2 {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
}

/* Decorative blurred ellipses over the black gradient */
.features-gradient-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.features-gradient-bg .blur-ellipse {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.6;
}

.features-gradient-bg .blur-ellipse-1 {
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: -webkit-radial-gradient(center center, rgba(104, 152, 255, 0.65), rgba(104, 152, 255, 0) 70%);
    background: radial-gradient(circle at center, rgba(104, 152, 255, 0.65), rgba(104, 152, 255, 0) 70%);
}

.features-gradient-bg .blur-ellipse-2 {
    top: -30%;
    right: -15%;
    width: 700px;
    height: 700px;
    background: -webkit-radial-gradient(center center, rgba(255, 231, 186, 0.5), rgba(255, 231, 186, 0) 70%);
    background: radial-gradient(circle at center, rgba(255, 231, 186, 0.5), rgba(255, 231, 186, 0) 70%);
}

.features-gradient-bg .blur-ellipse-3 {
    bottom: -25%;
    left: 25%;
    width: 900px;
    height: 900px;
    background: -webkit-radial-gradient(center center, rgba(60, 60, 60, 0.8), rgba(0, 0, 0, 0) 70%);
    background: radial-gradient(circle at center, rgba(60, 60, 60, 0.8), rgba(0, 0, 0, 0) 70%);
}

/* Ensure content sits above the background glows */
.features > * { position: relative; z-index: 1; }

/* Remove white outlines/lines on tabs and containers in dark section */
.features .features-tab,
.features .features-tab .tab-content,
.features .feature-item {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.features .features-tab .tab-content::before {
    /* Inactive tabs: white line at 70% */
    background: rgba(255, 255, 255, 0.7) !important;
}

.features .features-tab.active .tab-content::before {
    /* Active tab: blue line */
    background: #6580FE !important;
}

/* Hide glass backdrops that re-enable via @supports */
.features .features-tab > .tab-backdrop,
.features .features-tab > .tab-backdrop-edge {
    display: none !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.features h3, .features p, 
.feature-content, .doc-preview-title, .doc-name, .doc-tag,
.reminder-name, .reminder-date, .doc-group-label {
    text-align: left;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(0, 0, 255, 0.04);
}

.feature-item {
    background: white;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    border-radius: 50px;
}

.feature-content {
    margin-bottom: 2rem;
}

.feature-content h3 {
    color: #333;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-content p {
    color: #555;
    line-height: 1.6;
}

.feature-visual {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* App-style document list */
.app-style {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 255, 0.08);
    background: #f8f9fc;
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
}

.transparency-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: -webkit-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 100%);
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 100%);
    pointer-events: none;
    z-index: 10;
}

.doc-list-header {
    padding: 20px 16px;
    background: #f8f9fc;
}

.search-bar-mock {
    background: white;
    border-radius: 25px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.search-icon-mock {
    width: 20px;
    height: 20px;
    color: #888;
    margin-right: 10px;
}

.search-text {
    color: #999;
    font-weight: 400;
}

.home-title {
    font-size: 24px;
    font-weight: 700;
    margin: 15px 0;
    color: #000;
}

.tabs-container {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #edf0fb;
    border-radius: 25px;
    color: #666;
    font-weight: 500;
}

.tab svg {
    width: 18px;
    height: 18px;
}

.tab.active {
    background: #e6e9ff;
    color: #0404FF;
}

.document-list {
    flex: 1;
    overflow-y: hidden;
    background: white;
    padding: 10px 0;
}

.document-item {
    display: flex;
    padding: 15px 16px;
    border-bottom: 1px solid #f0f2f5;
    align-items: center;
}

.document-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.document-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.document-icon.purple {
    background: #e5e0ff;
}

.document-icon.purple svg {
    color: #7761FF;
}

.document-icon.green {
    background: #e0fff0;
}

.document-icon.green svg {
    color: #30C165;
}

.document-icon.green-light {
    background: #e8ffd0;
}

.document-icon.green-light svg {
    color: #76C14A;
}

.document-details {
    flex: 1;
}

.document-title {
    font-weight: 600;
    color: #000;
    margin-bottom: 3px;
}

.document-actions {
    width: 24px;
    height: 24px;
    color: #999;
    margin-left: 10px;
}

.doc-info-bubbles {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    pointer-events: none;
}

.info-bubble {
    position: absolute;
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 255, 0.08);
    transform: translateX(20px);
    opacity: 0;
    animation: slideIn 0.5s ease-out forwards;
}

.info-bubble:nth-child(1) { animation-delay: 0.2s; }
.info-bubble:nth-child(2) { animation-delay: 0.4s; }
.info-bubble:nth-child(3) { animation-delay: 0.6s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Reminder List Styling */
.reminder-list {
    width: 100%;
    max-width: 450px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 255, 0.1);
    background: white;
}

/* Category View Styling */
.category-view {
    width: 100%;
    max-width: 450px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 255, 0.1);
    background: white;
}

.category-header {
    background: #f5f7fa;
    padding: 12px 16px;
    border-bottom: 1px solid #e1e5eb;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    padding: 6px 12px;
    background: white;
    border-radius: 16px;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
    border: 1px solid #e1e5eb;
}

.filter-tag.active {
    background: #0404FF;
    color: white;
    border-color: #0404FF;
}

.category-content {
    padding: 16px;
}

.doc-group {
    margin-bottom: 16px;
}

.doc-group-label {
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.doc-tag-item {
    padding: 6px 12px;
    background: rgba(0, 0, 255, 0.08);
    color: #0404FF;
    border-radius: 16px;
    font-size: 0.9rem;
}

/* Chat Interface Styling */
.chat-interface {
    width: 100%;
    max-width: 450px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 255, 0.1);
    background: white;
    display: flex;
    flex-direction: column;
    height: 400px;
}

.doc-preview-mini {
    padding: 12px 16px;
    background: #f5f7fa;
    border-bottom: 1px solid #e1e5eb;
}

.doc-preview-page {
    height: 100px;
    background: rgba(0, 0, 0, 0.05);
    margin-top: 8px;
    border-radius: 4px;
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message {
    display: flex;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.95rem;
}

.chat-message.user .chat-bubble {
    background: #0404FF;
    color: white;
    border-top-right-radius: 4px;
}

.chat-message.assistant .chat-bubble {
    background: #f0f2f5;
    color: #333;
    border-top-left-radius: 4px;
}

.chat-input {
    padding: 12px 16px;
    border-top: 1px solid #e1e5eb;
}

.chat-input input {
    width: 100%;
    padding: 10px 16px;
    border-radius: 20px;
    border: 1px solid #e1e5eb;
    outline: none;
    font-size: 0.95rem;
}

.chat-input input:focus {
    border-color: #0404FF;
}

/* Workflow Section */
.workflow {
    padding: 6rem 2rem;
    background: var(--neutral-gray);
    text-align: center;
}

.workflow h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-blue);
    background: none;
    -webkit-text-fill-color: initial;
}

.workflow-steps {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

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

/* Step icon variants to replace inline styles */
.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.step-icon::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 20px;
    background: -webkit-linear-gradient(180deg, rgba(255, 255, 255, 0.15), transparent);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), transparent);
    border-radius: 14px 14px 0 0;
}
.step-icon--dark { 
    background: -webkit-linear-gradient(145deg, #2c3e50, #34495e);
    background: linear-gradient(145deg, #2c3e50, #34495e);
}
.step-icon--green { 
    background: -webkit-linear-gradient(145deg, #27ae60, #2ecc71);
    background: linear-gradient(145deg, #27ae60, #2ecc71);
}
.step-icon--blue { 
    background: -webkit-linear-gradient(145deg, #3498db, #2980b9);
    background: linear-gradient(145deg, #3498db, #2980b9);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: bold;
}

/* Button Styles */
.secondary-button {
    border: none;
    background: var(--primary-blue);
    color: var(--neutral-white);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    box-shadow: 
        0 1px 2px rgba(0, 0, 255, 0.1),
        0 2px 4px rgba(0, 0, 255, 0.1),
        0 4px 8px rgba(0, 0, 255, 0.1),
        0 8px 16px rgba(0, 0, 255, 0.1);
    transition: all 0.2s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.secondary-button:hover {
    background: #0000dd;
    transform: translateY(-1px);
    box-shadow: 
        0 2px 4px rgba(0, 0, 255, 0.1),
        0 4px 8px rgba(0, 0, 255, 0.1),
        0 8px 16px rgba(0, 0, 255, 0.1),
        0 16px 32px rgba(0, 0, 255, 0.1);
}

.secondary-button:active {
    background: #0000cc;
    transform: translateY(1px);
    box-shadow: 
        0 1px 2px rgba(0, 0, 255, 0.1),
        0 2px 4px rgba(0, 0, 255, 0.1);
}

/* Footer */
.footer {
    background: var(--neutral-slate);
    color: var(--neutral-white);
    padding: 4rem 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    color: #cccccc;
    text-decoration: none;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-icons a::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
}

.social-icons a[aria-label*="Twitter"]::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23fff" viewBox="0 0 24 24"><path d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"/></svg>');
}

.social-icons a[aria-label*="LinkedIn"]::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23fff" viewBox="0 0 24 24"><path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"/><rect x="2" y="9" width="4" height="12"/><circle cx="4" cy="4" r="2"/></svg>');
}

.social-icons a[aria-label*="Facebook"]::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23fff" viewBox="0 0 24 24"><path d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"/></svg>');
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links li:not(:last-child) {
        display: none;
    }
    
    .nav-links {
        gap: 0;
    }
    
    .nav-links .cta-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 8rem 0 4rem;
    }
    
    .hero-main-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
        padding: 2rem 1rem 0 1rem;
        min-height: auto;
    }
    
    .hero-left {
        align-items: center;
        text-align: center;
        order: 1;
        margin-top: 0;
        padding-top: 0;
        gap: 1rem;
    }
    
    .hero-left h1 {
        font-size: 4rem;
        line-height: 1.1;
    }
    
    .hero-left .hero-main-subheader {
        font-size: 1.3rem;
        max-width: 100%;
    }
    
    .hero-right {
        order: 2;
        margin-top: 0;
        margin-left: 0;
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .apple-picker {
        min-width: 300px;
    }
    
    .picker-container {
        gap: 0.8rem;
    }
    
    .picker-option {
        font-size: 1.2rem;
        min-width: 280px;
        padding: 0.8rem 1.5rem;
        min-height: 50px;
    }
    

    
    /* Adjust background elements for mobile */
    .hero::before {
        width: 100vw;
        height: 100vw;
        top: -25%;
        left: -10%;
        /* Cross-browser blur filter for mobile */
        -webkit-filter: blur(60px);
        -moz-filter: blur(60px);
        -o-filter: blur(60px);
        -ms-filter: blur(60px);
        filter: blur(60px);
    }
    
    .hero::after {
        width: 120vw;
        height: 120vw;
        top: -50%;
        right: -30%;
        /* Cross-browser blur filter for mobile */
        -webkit-filter: blur(120px);
        -moz-filter: blur(120px);
        -o-filter: blur(120px);
        -ms-filter: blur(120px);
        filter: blur(120px);
    }
    
    .features, .workflow {
        padding: 4rem 1rem;
    }
    
    .footer {
        padding: 3rem 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        min-height: auto;
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .feature-item {
        padding: 1.5rem;
    }
    
    .feature-content h3 {
        font-size: 1.2rem;
    }
    
    .reminder-list, .category-view, .chat-interface {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-main-content {
        padding: 1.5rem 1rem 0 1rem;
        gap: 1rem;
    }
    
    .hero-left {
        padding-top: 0;
        gap: 0.8rem;
    }
    
    .hero-left h1 {
        font-size: 3rem;
        line-height: 1.1;
    }
    
    .hero-left .hero-main-subheader {
        font-size: 1.2rem;
    }
    
    .hero-subheader {
        font-size: 1.3rem;
    }
    
    .apple-picker {
        min-width: 250px;
    }
    
    .picker-container {
        gap: 0.6rem;
    }
    
    .picker-option {
        font-size: 1rem;
        min-width: 220px;
        padding: 0.6rem 1rem;
        min-height: 40px;
    }
    
    .beta-button {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.5rem 2rem;
    z-index: 10000;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show {
    transform: translateY(0);
}

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

.cookie-banner-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--neutral-slate);
}

.cookie-banner-text a {
    color: #0404FF;
    text-decoration: none;
    font-weight: 500;
}

.cookie-banner-text a:hover {
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cookie-btn-accept {
    background: #000000;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cookie-btn-accept:hover {
    background: #333333;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.cookie-btn-decline {
    background: transparent;
    color: var(--neutral-slate);
    border: 2px solid #e0e0e0;
}

.cookie-btn-decline:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.cookie-btn-settings {
    background: transparent;
    color: #0404FF;
    border: 2px solid #0404FF;
}

.cookie-btn-settings:hover {
    background: #0404FF;
    color: white;
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 15000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cookie-modal.show .cookie-modal-content {
    transform: scale(1);
}

.cookie-modal h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    color: #000;
}

.cookie-modal p {
    margin-bottom: 1.5rem;
    color: var(--neutral-slate);
    line-height: 1.6;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fc;
    border-radius: 12px;
}

.cookie-category h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-toggle {
    position: relative;
    width: 50px;
    height: 26px;
    background: #ddd;
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.3s;
}

.cookie-toggle.enabled {
    background: #0404FF;
}

.cookie-toggle.disabled {
    background: #ddd;
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-toggle.enabled.disabled {
    background: #0404FF;
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.cookie-toggle.enabled::after {
    transform: translateX(24px);
}

.cookie-category p {
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
    color: #666;
}

.cookie-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1rem;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .cookie-banner-actions {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-modal {
        padding: 1rem;
    }
    
    .cookie-modal-content {
        padding: 1.5rem;
    }
    
    .cookie-modal-actions {
        flex-direction: column;
    }
}



/* --- Features: Tabbed layout (moved from inline <style> in index.html) --- */
.app-tabbar { user-select: none; }
.app-tabbar .search-expand {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
    overflow: hidden;
}
.app-tabbar .search-expand .placeholder { opacity: 0; max-width: 0; }

.features-tabbed-layout {
    display: grid;
    grid-template-columns: minmax(360px, 520px) 1fr;
    gap: 3rem;
    align-items: center; /* vertically center tabs relative to phone */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.features-tabs { display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
.features-tab { cursor: pointer; text-align: left; display: flex; align-items: center; gap: 10px; padding: 1.25rem 1.75rem; min-height: 84px; border-radius: 24px; box-shadow: none; font-weight: 600; font-size: 1.4rem; line-height: 1.1; color: rgba(0,0,0,0.35); justify-content: flex-start; }
.features-tab strong { display: block; font-weight: 700; margin-bottom: 2px; }
.features-tab.active { color: var(--primary-blue); font-weight: 700; }
.features-panes { width: 100%; }
.features-panes .feature-pane { display: none; }
.features-panes .feature-pane.active { display: block; }

@media (max-width: 992px) {
    .features-tabbed-layout { grid-template-columns: 1fr; }
    .features-tabs { position: static; }
}

/* Visual glass base and backdrops */
.features-tab { --thickness: 4px; position: relative; background: hsl(0deg 0% 100% / 0.95); border: none; outline: none; -webkit-tap-highlight-color: transparent; }
.features-tab > .tab-backdrop,
.features-tab > .tab-backdrop-edge { display: none; }
.features-tab .tab-content { position: relative; z-index: 1; font-size: inherit; }
.features-tabs .features-tab div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.features-tab:focus, .features-tab:focus-visible, .features-tab:active { outline: none; }
.features-tab::-moz-focus-inner { border: 0; }

@supports (backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px)) {
  .features-tab { background: transparent; }
  .features-tab > .tab-backdrop {
    display: block; position: absolute; inset: 0; border-radius: inherit;
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    background: transparent; pointer-events: none; box-shadow: none;
    border: 1px solid hsl(0deg 0% 100% / 0.5);
  }
  .features-tab > .tab-backdrop-edge {
    display: block; position: absolute; left: 0; right: 0; bottom: 0; height: var(--thickness);
    background: hsl(0deg 0% 100% / 0.1);
    -webkit-backdrop-filter: blur(12px) brightness(0.96);
    backdrop-filter: blur(12px) brightness(0.96);
    transform: translateY(100%);
    border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; pointer-events: none;
  }
  .features-tab.active > .tab-backdrop {
    background: -webkit-linear-gradient(top, hsl(0deg 0% 100%), transparent 50%);
    background: linear-gradient(to bottom, hsl(0deg 0% 100%), transparent 50%);
    border: 0; box-shadow: 0 0 0 1px rgba(112, 122, 244, 0.5);
  }
  .features-tab.active > .tab-backdrop-edge { display: none; }
}

@supports (mask-image: none) or (-webkit-mask-image: none) {
  .features-tab > .tab-backdrop { height: 200%; -webkit-mask-image: linear-gradient(to bottom, black 0% 50%, transparent 50% 100%); mask-image: linear-gradient(to bottom, black 0% 50%, transparent 50% 100%); }
  .features-tab > .tab-backdrop-edge { height: 100%; inset: 0; -webkit-mask-image: linear-gradient(to bottom, black 0, black var(--thickness), transparent var(--thickness)); mask-image: linear-gradient(to bottom, black 0, black var(--thickness), transparent var(--thickness)); }
}

/* Phone shell in tab pane */
#features-pane .phone-shell {
  width: 393px; height: 852px; background: white; border-radius: 30px; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.1);
  overflow: hidden; transform: scale(0.7); transform-origin: top center; margin-top: -30px;
}
#features-pane .phone-shell .phone-content { position: relative; height: 100%; }

/* Add breathing room on the left of the phone column */
#features-pane { display: flex; justify-content: flex-start; padding-left: 32px; }

@media (max-width: 992px) {
  #features-pane { padding-left: 0; }
  .features-tabs { justify-content: flex-start; }
}

/* Utility to hide template grids cloned by JS */
.is-template { display: none !important; }

/* Workflow: match current inline look */
.workflow {
    padding: 8rem 0 5rem 0;
    background: white;
    text-align: center;
    position: relative;
    background-image: -webkit-linear-gradient(rgba(0, 0, 255, 0.03) 1px, transparent 1px),
                      -webkit-linear-gradient(left, rgba(0, 0, 255, 0.03) 1px, transparent 1px);
    background-image: linear-gradient(rgba(0, 0, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 0, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 0 0;
}
.workflow h2 {
    color: #000;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: none;
    -webkit-text-fill-color: initial;
}

/* Join Beta section */
.join-beta {
    background: #ffffff;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* First gradient ellipse - orange/yellow linear gradient with blur */
.join-beta::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 10%;
    width: 80vw;
    height: 80vw;
    background: -webkit-gradient(linear, left top, right bottom, from(rgba(255, 231, 186, 0.6)), to(rgba(255, 231, 186, 1)));
    background: -webkit-linear-gradient(
        125deg,
        rgba(255, 231, 186, 0.6) 0%,
        rgba(255, 231, 186, 1) 100%
    );
    background: linear-gradient(
        125deg,
        rgba(255, 231, 186, 0.6) 0%,
        rgba(255, 231, 186, 1) 100%
    );
    border-radius: 50%;
    -webkit-filter: blur(104px);
    filter: blur(104px);
    opacity: 0.9;
    -webkit-transform: rotate(-38deg);
    transform: rotate(-38deg);
    z-index: 0;
}

/* Second gradient ellipse - blue radial gradient with blur */
.join-beta::after {
    content: '';
    position: absolute;
    top: -60%;
    right: -20%;
    width: 80vw;
    height: 80vw;
    background: -webkit-radial-gradient(
        circle at center,
        rgba(0, 0, 255, 1) 0%,
        rgba(104, 152, 255, 1) 45.2%,
        rgba(104, 152, 255, 0) 100%
    );
    background: radial-gradient(
        circle at center,
        rgba(0, 0, 255, 1) 0%,
        rgba(104, 152, 255, 1) 45.2%,
        rgba(104, 152, 255, 0) 100%
    );
    border-radius: 50%;
    -webkit-filter: blur(164px);
    filter: blur(164px);
    opacity: 0.5;
    -webkit-transform: rotate(-38deg);
    transform: rotate(-38deg);
    z-index: 1;
}

.join-beta > * {
    position: relative;
    z-index: 10;
}
.join-beta .section-inner { max-width: 600px; margin: 0 auto; }

/* Remove any grid pattern from join-beta if it was inherited */
.join-beta {
    background-image: none !important;
}

/* Footer layout to replace inline styles */
.footer { 
    /* Use exact same gradient as Features section */
    background: -webkit-linear-gradient(180deg, #0b0b0b 0%, #000000 100%);
    background: linear-gradient(180deg, #0b0b0b 0%, #000000 100%);
    color: white; 
    padding: 4rem 2rem 6rem 2rem; 
    margin-top: auto; 
    position: relative;
    overflow: hidden;
}

/* Subtle grid overlay over dark background */
.footer > .features-bg-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        -webkit-linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        -webkit-linear-gradient(left, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 0 0;
}

/* Decorative blurred ellipses over the black gradient */
.footer-gradient-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.footer-gradient-bg .blur-ellipse {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.6;
}

.footer-gradient-bg .blur-ellipse-1 {
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: -webkit-radial-gradient(center center, rgba(104, 152, 255, 0.65), rgba(104, 152, 255, 0) 70%);
    background: radial-gradient(circle at center, rgba(104, 152, 255, 0.65), rgba(104, 152, 255, 0) 70%);
}

.footer-gradient-bg .blur-ellipse-2 {
    top: -30%;
    right: -15%;
    width: 700px;
    height: 700px;
    background: -webkit-radial-gradient(center center, rgba(255, 231, 186, 0.5), rgba(255, 231, 186, 0) 70%);
    background: radial-gradient(circle at center, rgba(255, 231, 186, 0.5), rgba(255, 231, 186, 0) 70%);
}

.footer-gradient-bg .blur-ellipse-3 {
    bottom: -25%;
    left: 25%;
    width: 900px;
    height: 900px;
    background: -webkit-radial-gradient(center center, rgba(60, 60, 60, 0.8), rgba(0, 0, 0, 0) 70%);
    background: radial-gradient(circle at center, rgba(60, 60, 60, 0.8), rgba(0, 0, 0, 0) 70%);
}

/* Ensure content sits above the background glows */
.footer > * { position: relative; z-index: 1; }
.footer .transparency-overlay { position: absolute; inset: 0; pointer-events: none; }
.footer-content {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4rem;
    align-items: start; position: relative; z-index: 2;
}
.footer-content > div, .footer-content nav { text-align: left; }
.footer-links, .footer-legal { display: flex; flex-direction: column; gap: 1rem; text-align: left; }
.footer a { color: white; text-decoration: none; transition: color 0.3s; }
.footer a:hover { color: #cccccc; }
.footer .copyright { text-align: center; color: #cccccc; }

/* Footer responsive design */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center !important;
    }
    
    .footer-content > div,
    .footer-content nav {
        text-align: center !important;
    }
    
    .footer-links,
    .footer-legal {
        text-align: center !important;
    }
    
    .footer {
        padding: 3rem 1rem 4rem 1rem !important;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 2rem 1rem 3rem 1rem !important;
    }
    
    .footer-content {
        gap: 1.5rem !important;
    }
    
    .footer-links,
    .footer-legal {
        gap: 0.8rem !important;
    }
}

/* Generic page layout utilities for content pages */
.main-content { padding: 8rem 2rem 4rem; max-width: 800px; margin: 0 auto; line-height: 1.6; }
.page-title { font-size: 2.5rem; margin-bottom: 2rem; color: #000; font-weight: 700; }
.page-subtitle { color: #666; margin-bottom: 3rem; font-size: 1.1rem; }
.page-section { margin-bottom: 3rem; }
.link-primary { color: #0404FF; text-decoration: none; }
.link-primary:hover { text-decoration: underline; }

/* Join Beta Modal Styles */
.join-beta-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.join-beta-modal.show {
    opacity: 1;
    visibility: visible;
}

.join-beta-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.join-beta-modal-content {
    position: relative;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    margin: 5vh auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    padding-top: 3rem;
}

.join-beta-modal.show .join-beta-modal-content {
    transform: scale(1);
}

.join-beta-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.join-beta-modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.join-beta-modal-close svg {
    color: #333;
}

.join-beta-modal-body {
    padding: 2rem 2.5rem 2.5rem 2.5rem;
    overflow-y: auto;
    max-height: calc(90vh - 6rem);
}

.join-beta-modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.join-beta-modal-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.join-beta-modal-header p {
    font-size: 1.1rem;
    color: #000;
    line-height: 1.6;
    margin-bottom: 0;
}

.join-beta-form-container {
    background: #f8f9fc;
    border-radius: 16px;
    padding: 1rem;
    margin-top: 1rem;
}

.join-beta-form-container iframe {
    border-radius: 12px;
    background: white;
}

/* Custom Beta Form Styling */
.join-beta-form-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1rem;
    box-shadow: none;
}

.custom-beta-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Floating Label Input Fields */
.input-field {
    position: relative;
    margin: 20px 0;
    padding: 0;
    overflow: visible;
}

.input-field::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #000;
    transition: all 0.3s ease;
}

.input-field:focus-within::after {
    background: linear-gradient(135deg, #6580FE 0%, #0404FF 100%);
}

.input-field label {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    color: #666;
    font-size: 1rem;
    pointer-events: none;
    transition: 0.3s ease;
    font-family: 'Maven Pro', sans-serif;
    font-weight: 500;
}

.input-field input {
    width: 100%;
    height: 50px;
    background: white;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #000;
    font-family: 'Maven Pro', sans-serif;
    padding: 10px 0 0 0;
    margin: 0;
    box-sizing: border-box;
    display: block;
    text-align: left;
    direction: ltr;
}

.input-field input:focus ~ label,
.input-field input:valid ~ label {
    font-size: 0.8rem;
    top: 5px;
    left: 0;
    transform: translateY(-50%);
    color: #6580FE;
}

.input-field input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.input-field input:disabled ~ label {
    opacity: 0.6;
    color: #999;
}


.required {
    color: #e74c3c;
    font-weight: 700;
}

/* SVG Drawing Checkbox Styling */
.checkbox-wrapper-43 {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
}

.checkbox-wrapper-43 input[type="checkbox"] {
    display: none;
    visibility: hidden;
}

.checkbox-wrapper-43 label {
    display: inline-block;
}

.checkbox-wrapper-43 .check {
    cursor: pointer;
    position: relative;
    margin: 0;
    width: 18px;
    height: 18px;
    -webkit-tap-highlight-color: transparent;
    transform: translate3d(0, 0, 0);
    flex-shrink: 0;
}

.checkbox-wrapper-43 .check:before {
    content: "";
    position: absolute;
    top: -15px;
    left: -15px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(101, 128, 254, 0.1);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.checkbox-wrapper-43 .check svg {
    position: relative;
    z-index: 1;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke: #c8ccd4;
    stroke-width: 1.5;
    transform: translate3d(0, 0, 0);
    transition: all 0.2s ease;
}

.checkbox-wrapper-43 .check svg path {
    stroke-dasharray: 60;
    stroke-dashoffset: 0;
}

.checkbox-wrapper-43 .check svg polyline {
    stroke-dasharray: 22;
    stroke-dashoffset: 66;
}

.checkbox-wrapper-43 .check:hover:before {
    opacity: 1;
}

.checkbox-wrapper-43 .check:hover svg {
    stroke: #6580FE;
}

.checkbox-wrapper-43 input[type="checkbox"]:checked + .check svg {
    stroke: #6580FE;
}

.checkbox-wrapper-43 input[type="checkbox"]:checked + .check svg path {
    stroke-dashoffset: 60;
    transition: all 0.3s linear;
}

.checkbox-wrapper-43 input[type="checkbox"]:checked + .check svg polyline {
    stroke-dashoffset: 42;
    transition: all 0.2s linear;
    transition-delay: 0.15s;
}

.checkbox-wrapper-43 .checkbox-text {
    color: #000;
    font-family: 'Maven Pro', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
}

.checkbox-wrapper-43 input[type="checkbox"]:disabled + .check {
    opacity: 0.6;
    cursor: not-allowed;
}

.checkbox-wrapper-43 input[type="checkbox"]:disabled + .check svg {
    stroke: #ccc;
}

.checkbox-wrapper-43 input[type="checkbox"]:disabled ~ .checkbox-text {
    opacity: 0.6;
    cursor: not-allowed;
    color: #999;
}

/* Custom Validation Tooltips */
.input-field {
    position: relative;
}

.validation-tooltip {
    padding: 10px 15px;
    position: absolute;
    width: auto;
    white-space: nowrap;
    word-wrap: no-wrap;
    box-shadow: 0 4px 20px rgba(211, 4, 35, 0.3);
    border-radius: 8px;
    background-color: #fff;
    color: #D30423;
    top: 55px;
    left: 0;
    transform: translateY(0);
    transform-style: preserve-3d;
    z-index: 1000;
    font-size: 0.9em;
    font-family: 'Maven Pro', sans-serif;
    font-weight: 500;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(211, 4, 35, 0.2);
}

.validation-tooltip.show {
    display: block;
    opacity: 1;
    transform: translateY(5px);
}

.validation-tooltip:after {
    content: '';
    position: absolute;
    display: block;
    width: 12px;
    height: 12px;
    transform-origin: 50% 50%;
    transform: rotate(45deg);
    background-color: #fff;
    left: 20px;
    top: -6px;
    z-index: 1001;
    border-top: 1px solid rgba(211, 4, 35, 0.2);
    border-left: 1px solid rgba(211, 4, 35, 0.2);
}

.validation-tooltip:before {
    content: '';
    display: block;
    position: absolute;
    width: 12px;
    height: 12px;
    transform-origin: 50% 50%;
    transform: rotate(45deg);
    background-color: #fff;
    left: 20px;
    top: -5px;
    z-index: 999;
    box-shadow: -2px -2px 10px rgba(211, 4, 35, 0.15);
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.submit-btn {
    background: #000000;
    color: white;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Maven Pro', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    width: auto;
    min-width: 150px;
}

.submit-btn:hover {
    background: #333333;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.submit-btn:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.submit-btn:disabled:hover {
    background: #ccc;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


/* Form Message */
.form-message {
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    margin: 1rem 0;
}

/* Submitted Details */
.submitted-details {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.submitted-data {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.data-item {
    color: #000;
    font-family: 'Maven Pro', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

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

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Mobile responsiveness for Join Beta Modal */
@media (max-width: 768px) {
    .join-beta-modal-content {
        width: 95%;
        margin: 2.5vh auto;
        max-height: 95vh;
    }

    .join-beta-modal-body {
        padding: 2rem 1.5rem 1.5rem 1.5rem;
    }

    .join-beta-modal-header h2 {
        font-size: 1.5rem;
    }

    .join-beta-modal-header p {
        font-size: 1rem;
    }

    .join-beta-form-container {
        padding: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .join-beta-modal-content {
        width: 98%;
        margin: 1vh auto;
        max-height: 98vh;
    }

    .join-beta-modal-body {
        padding: 1.5rem 1rem 1rem 1rem;
    }

    .join-beta-form-container {
        padding: 1rem;
    }
    
    .submit-btn,
    .clear-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}
