:root {
    --bg-color: #02A9EA;
    --secondary: #FFFEFF;
    --tertiary: #1F1F1F;
    --accent: #FAFF00;
    --accent-2: #FB3640;

    --font-main: 'Inter', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: auto;
    /* Ensure hover effects still work */
}

/* Base Fixes */
html {
    scroll-behavior: auto !important;
    height: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--secondary);
    color: var(--tertiary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none !important;
    /* Hide default for custom cursor */
}

/* Noise Overlay */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    z-index: 10000;
    pointer-events: none;
    color: white;
    /* Base white for difference mode */
    mix-blend-mode: difference;
    transform: translate(-5px, -5px) scaleX(-1);
    transition: transform 0.1s ease-out, opacity 0.3s ease;
}

.custom-cursor svg {
    width: 100%;
    height: 100%;
    fill: none;
}

@media (max-width: 1024px) {
    body {
        cursor: auto;
    }

    .custom-cursor {
        display: none;
    }
}

/* Typography */
h1,
h2,
h3,
h4 {
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -0.04em;
}

h1 {
    font-size: clamp(3.5rem, 9vw, 8rem);
    /* Slightly larger */
}

h2 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: var(--spacing-sm);
}

p {
    font-size: 1.25rem;
    /* Larger */
    font-weight: 400;
    opacity: 0.8;
}

/* SplitType Fixes */
.char {
    display: inline-block;
    overflow: visible !important;
    vertical-align: bottom;
}

.word {
    padding-right: 0.1em;
}

/* Navbar Enhancements */
.navbar {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 65%;
    max-width: 900px;
    padding: 0.6rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.logo {
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: -0.05em;
    cursor: none;
    text-decoration: none;
    color: inherit;
}


.navbar nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.navbar nav ul a {
    text-decoration: none;
    color: var(--tertiary);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding: 0.5rem 0;
}

.navbar nav ul a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1.5px;
    background-color: var(--tertiary);
    transition: width 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.navbar nav ul a:hover::after {
    width: 100%;
}

/* Specific button size for navbar to keep it thin */
.navbar .btn-primary {
    padding: 0.6rem 1.4rem;
    font-size: 0.85rem;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 3rem;
    /* Pill shape */
    text-decoration: none;
    font-weight: 600;
    /* Made thinner */
    font-size: 0.85rem;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background-color: var(--tertiary);
    color: var(--secondary);
    border: 1.5px solid var(--tertiary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--tertiary);
    /* When on light bg */
}

/* Specific override for Hero buttons if needed */
.hero .btn-primary:hover {
    color: var(--secondary);
    background-color: transparent;
    border-color: var(--secondary);
}

.btn-secondary {
    background-color: transparent;
    color: var(--tertiary);
    border: 2px solid var(--tertiary);
}

.btn-secondary:hover {
    background-color: var(--tertiary);
    color: var(--secondary);
}

/* Global cursor fix */
* {
    cursor: none !important;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    /* Fixed height to match viewport exactly */
    background-color: var(--bg-color) !important;
    /* Force solid color */
    color: var(--secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* Move content up */
    padding: 15vh var(--spacing-md);
    position: relative;
    overflow: hidden;
    /* Prevent content from pushing page height */
    text-align: center;
    opacity: 1 !important;
    /* Prevent any fading */
}

.hero-content {
    max-width: 80%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 1 !important;
    background: transparent !important;
}

.hero-visual,
.showcase-overlay {
    /* Ensure no overlays are dimming the view unexpectedly */
    background: transparent !important;
}

.hero h1 {
    color: var(--tertiary);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.hero .highlight {
    color: var(--tertiary);
}

.subtitle {
    color: var(--tertiary);
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 1.5rem;
    /* Reduced space before image */
    opacity: 0.9;
    text-align: center;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    /* Increased size */
    margin-top: 1rem;
    margin-bottom: 2rem;
    opacity: 1;
    /* Keep it solid once animated in */
}

#phone-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* About Section */
.about-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--secondary);
    color: var(--tertiary);
}

.large-text {
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 600;
    line-height: 1.05;
    text-align: left;
    max-width: 1100px;
}

.accent-text {
    color: var(--bg-color);
    font-style: italic;
}

/* Features Section Enhanced */
.features-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--tertiary);
    color: var(--secondary);
}

.section-badge {
    background-color: var(--tertiary);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-md);
    color: var(--accent);
    display: inline-block;
}

/* Split Sections */
.split-section {
    padding: 10rem 0;
    background-color: var(--tertiary);
    color: var(--secondary);
    overflow: hidden;
}

.split-section.secondary-bg {
    background-color: var(--secondary);
    color: var(--tertiary);
}

.split-container {
    display: flex;
    align-items: center;
    gap: 8rem;
}

.split-text {
    flex: 1;
    text-align: left;
}

.split-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.feature-phone-img {
    width: 100%;
    max-width: 450px;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.3));
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.split-section.secondary-bg .feature-phone-img {
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.1));
}

.split-text h2 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    margin: 1.5rem 0;
    line-height: 1;
}

.split-text p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.7;
    max-width: 500px;
}

/* Split Section Button Inversion */
.split-section .btn-primary {
    background-color: var(--secondary);
    color: var(--tertiary);
    border-color: var(--secondary);
}

.split-section .btn-primary:hover {
    background-color: transparent;
    color: var(--secondary);
    border-color: var(--secondary);
}

/* Background Utility Classes */
.tertiary-bg {
    background-color: var(--tertiary) !important;
    color: var(--secondary) !important;
}


@media (max-width: 1024px) {
    .split-container {
        flex-direction: column !important;
        gap: 4rem;
        text-align: center;
    }

    .split-text {
        order: 2;
        text-align: center;
    }

    .split-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .split-image {
        order: 1;
    }
}

.feature-svg {
    width: 100%;
    height: 100%;
}

.feature-info .num {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    color: var(--accent);
}

.feature-info h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.feature-info p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.features-cta {
    margin-top: 5rem;
    text-align: center;
}

.btn-primary.large {
    padding: 1.5rem 4rem;
    font-size: 1.25rem;
    background-color: var(--bg-color);
    border-color: var(--bg-color);
    color: var(--tertiary);
    /* Black text on blue pill */
}

.btn-primary.large:hover {
    background-color: transparent;
    color: var(--secondary);
    border-color: var(--secondary);
}

@media (max-width: 900px) {
    .feature-grid-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-card-premium {
        padding: 2rem;
    }
}

/* Privacy Section */
.privacy-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--secondary);
    color: var(--tertiary);
}

.privacy-content {
    max-width: 900px;
}

.privacy-content h2 {
    margin: var(--spacing-md) 0;
}

.privacy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-md);
}

.privacy-item .icon {
    width: 64px;
    height: 64px;
    background-color: rgba(2, 169, 234, 0.1);
    color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    margin-bottom: var(--spacing-sm);
}

.privacy-item h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.privacy-item p {
    font-size: 1.05rem;
    opacity: 0.7;
}

/* Showcase Section */
.showcase-section {
    position: relative;
    height: 80vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--tertiary);
    /* Ensure black base */
}

.parallax-bg {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    opacity: 0.6;
    /* Slight transparency for mood but not full black */
}

.showcase-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--secondary);
}

.showcase-overlay h2 {
    font-size: clamp(3rem, 10vw, 8rem);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Footer Polish */
.main-footer {
    padding: 10rem 0 4rem;
    background-color: var(--secondary);
    color: var(--tertiary);
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr;
    gap: 6rem;
    margin-bottom: 8rem;
}

.footer-col .logo {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.footer-col h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    opacity: 0.5;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-col ul a {
    text-decoration: none;
    color: var(--tertiary);
    opacity: 0.6;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    font-size: 1.1rem;
    display: inline-block;
    padding: 0.2rem 0;
}

.footer-col ul a:hover {
    transform: translateX(10px);
    opacity: 1;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    opacity: 0.5;
}

/* Removed CTA group styling as requested deletion of buttons */

/* Responsiveness */
@media (max-width: 1024px) {
    .navbar {
        width: 80%;
    }

    .feature-row {
        gap: var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    .navbar {
        width: 90%;
        padding: 0.5rem 1.2rem;
    }

    .navbar nav {
        display: none;
        /* Hide nav links on mobile for simplicity or replace with burger */
    }

    .hero {
        padding: 12vh var(--spacing-sm);
    }

    .hero-content {
        max-width: 95%;
    }

    .feature-row,
    .privacy-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .large-text {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .navbar .logo {
        font-size: 1.2rem;
    }

    .navbar {
        top: 1rem;
    }

    .showcase-section {
        height: 60vh;
    }
}