:root {
    --primary: #ec4899;
    --primary-light: #fbcfe8;
    --secondary: #8b5cf6;
    --accent: #d946ef;
    --background: #FFFFFF;
    --text: #1e1b4b;
    --text-muted: #475569;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow: 0 20px 50px rgba(236, 72, 153, 0.1);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --container-max: 1400px;
}

[data-theme="dark"] {
    --background: #0F172A;
    --text: #F3F4F6;
    --text-muted: #94A3B8;
    --glass: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding-right: 0.05em; /* Fix 'E' cut off */
    padding-bottom: 0.05em; /* Fix 'G' cut off */
    margin-right: -0.05em; /* Compansate layout */
    margin-bottom: -0.05em;
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

header.scrolled {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.7rem 0;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Button */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.4);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 10rem;
    padding-bottom: 0rem;
    overflow: hidden;
    background: radial-gradient(circle at 100% 0%, rgba(236, 72, 153, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 0% 100%, rgba(139, 92, 246, 0.05) 0%, transparent 40%);
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    background: rgba(124, 58, 237, 0.08);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(124, 58, 237, 0.15);
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    font-size: 5.5rem;
    line-height: 1;
    margin-bottom: 2rem;
    letter-spacing: -0.04em;
    max-width: 900px;
}

.hero-content p {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.app-store-badge img {
    height: 50px;
}

/* iPhone Mockup Overlay */
.hero-visual {
    margin-top: 4rem;
    width: 100%;
    max-width: 1000px;
    perspective: 1000px;
}

.iphone-mockup-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.hand-mockup {
    width: 600px;
    height: auto;
    position: relative;
    user-select: none;
    pointer-events: none;
    border-radius: 40px; /* Matching the phone's curvature */
}

.screen-overlay {
    position: absolute;
    top: 50.5%;
    left: 49.8%;
    transform: translate(-50%, -50%) rotate(-7deg); /* Adjust based on generated image tilt if any */
    width: 258px;
    height: 558px;
    border-radius: 36px;
    overflow: hidden;
    z-index: 2;
}

/* Adjusting for the specific generated image */
.screen-overlay {
    top: 44.5%;
    left: 49.3%;
    width: 260px;
    height: 563px;
    transform: translate(-50%, -50%) rotate(-1deg);
    border-radius: 40px;
}

.screen-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg-blur {
    display: none; /* Let's use radial gradients instead */
}

/* Floating Elements */
.floating-icons .icon-node.circular {
    position: absolute;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    z-index: 10;
    cursor: default;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.icon-inner i {
    width: 28px;
    height: 28px;
    stroke-width: 2.5px;
}

.icon-label {
    position: absolute;
    background: white;
    color: var(--text);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    pointer-events: none;
    z-index: 11;
}

/* Positioning Tooltips */
.node-1 .icon-label, .node-3 .icon-label { left: 80px; }
.node-2 .icon-label, .node-4 .icon-label { right: 80px; transform: translateX(-10px); }

.icon-node.circular:hover {
    transform: scale(1.1) !important;
    background: white;
    box-shadow: 0 20px 45px rgba(124, 58, 237, 0.2);
}

.icon-node.circular:hover .icon-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.node-1 { top: 20%; left: 0%; animation: float 6s ease-in-out infinite; }
.node-2 { top: 35%; right: 0%; animation: float 8s ease-in-out infinite; }
.node-3 { bottom: 40%; left: -10%; animation: float 7s ease-in-out infinite; }
.node-4 { bottom: 25%; right: -5%; animation: float 9s ease-in-out infinite; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Section Styling */
section {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.features-section {
    background-color: #FBFBFF;
}

/* Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.feature-card {
    background: #FFFFFF;
    padding: 3rem 2.5rem;
    border-radius: 40px;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 10px 40px rgba(0,0,0,0.02);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.feature-card:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: translateZ(20px) scale(1.1);
}

.feature-icon i {
    width: 28px;
    height: 28px;
    stroke-width: 2.5px;
}

/* Pastel Backgrounds */
.bg-purple { background-color: #fce7f3; color: #db2777; }
.bg-blue   { background-color: #f3e8ff; color: #7c3aed; }
.bg-indigo { background-color: #fdf2f8; color: #ec4899; }
.bg-pink   { background-color: #ede9fe; color: #8b5cf6; }
.bg-cyan   { background-color: #fae8ff; color: #c026d3; }
.bg-green  { background-color: #f0fdf4; color: #16a34a; }

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    color: #000;
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.5;
    color: #475569;
}

/* AI Section */
.ai-section {
    background: linear-gradient(to bottom, transparent, rgba(124, 58, 237, 0.05));
}

.ai-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 6rem;
}

.iphone-mockup-alt {
    width: 320px;
    height: 650px;
    background: #000;
    border-radius: 40px;
    padding: 10px;
    border: 6px solid #1f1f1f;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.15);
    margin: 0 auto;
    overflow: hidden; /* Ensure screen content doesn't bleed out */
}

.iphone-screen-alt {
    width: 100%;
    display: block;
    border-radius: 30px; /* Slightly smaller than parent to fit inside padding */
}

.ai-features {
    list-style: none;
    margin-top: 2rem;
}

.ai-features li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.ai-features li::before {
    content: '✨';
    position: absolute;
    left: 0;
    top: 0;
}

/* Marquee */
.language-marquee {
    overflow: hidden;
    padding: 3rem 0;
    white-space: nowrap;
    position: relative;
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.marquee-content span {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 3rem;
    color: var(--text-muted);
    opacity: 0.3;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* CTA */
.cta-box {
    text-align: center;
    padding: 6rem 3rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    position: relative;
    overflow: hidden;
    color: white;
    box-shadow: 0 40px 100px rgba(236, 72, 153, 0.3);
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.cta-box h2 {
    font-size: 4.5rem;
    margin-bottom: 2rem;
    color: white;
    letter-spacing: -0.04em;
}

.cta-box p {
    font-size: 1.4rem;
    margin-bottom: 4rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.white-app-store-btn {
    display: inline-flex;
    align-items: center;
    background: white;
    padding: 1.25rem 2.5rem;
    border-radius: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.white-app-store-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.white-app-store-btn svg {
    width: 2rem;
    height: 2rem;
    fill: currentColor;
    color: var(--primary); /* Indigo-600 like or Primary */
    margin-right: 0.5rem;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.small-text {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 0.1em;
    opacity: 0.6;
    margin-bottom: 2px;
    color: var(--primary);
}

.large-text {
    font-size: 1.25rem; /* 20px */
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--primary); /* Match the indigo-600 from snippet */
}

/* Reveal Effects */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    padding: 6rem 0 3rem;
    background: #F8FAFC;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-links-group h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links-group ul {
    list-style: none;
}

.footer-links-group ul li {
    margin-bottom: 0.8rem;
}

.footer-links-group a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.3s;
}

.footer-links-group a:hover {
    color: var(--primary);
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-container, .ai-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .hero-content p {
        margin: 0 auto 2.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .iphone-frame {
        width: 260px;
        height: 520px;
    }
}
