:root {
    /* Color Palette - Light Mode Premium */
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-text-main: #111827;
    --color-text-muted: #4b5563;
    --color-text-light: #9ca3af;

    --color-primary: #0f172a;
    /* Midnight Blue */
    --color-primary-hover: #1e293b;
    --color-accent: #6366f1;
    /* Electric Indigo */
    --color-accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);

    --color-border: #e5e7eb;
    --color-white: #ffffff;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --blur-strength: 12px;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease-in-out;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

/* Animated Liquid Background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: #ffffff;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, #e0e7ff 0%, rgba(224, 231, 255, 0) 70%);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, #f3e8ff 0%, rgba(243, 232, 255, 0) 70%);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, #ffe4e6 0%, rgba(255, 228, 230, 0) 70%);
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Glassmorphic Section Overrides */
.section,
.hero {
    background: rgba(255, 255, 255, 0.4);
    /* Semi-transparent */
    backdrop-filter: blur(20px);
    /* Frosted glass effect */
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.hero {
    background: transparent;
    /* Let blobs show clearly in hero */
    backdrop-filter: none;
    border: none;
}

/* Remove solid backgrounds from specific sections to let glass effect work */
.walkthrough,
.pricing,
.import-section {
    background-color: rgba(248, 249, 250, 0.5);
    /* Translucent grey */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xl) 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-text-main);
    background-color: var(--color-bg-alt);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-strength));
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

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

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--color-text-muted);
}

.nav-links a:not(.btn):hover {
    color: var(--color-text-main);
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: calc(var(--spacing-xl) + 60px);
    /* Account for fixed nav */
    padding-bottom: var(--spacing-xl);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.hero-visual {
    position: relative;
    height: 700px;
    /* Increased height for phones */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* iPhone Frame */
.iphone-frame {
    position: relative;
    background: #000;
    border-radius: 48px;
    box-shadow:
        0 0 0 11px #333,
        /* Bezel */
        0 0 0 13px #1a1a1a,
        /* Outer Ring */
        0 30px 60px rgba(0, 0, 0, 0.25);
    /* Drop Shadow */
    overflow: hidden;
    width: 280px;
    /* Default width */
    aspect-ratio: 9/19.5;
    margin: auto;
    z-index: 1;
}

.iphone-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 38px;
    /* Matches frame radius minus bezel */
    display: block;
    background: #fff;
    /* Fallback */
}

/* Dynamic Island */
/* Dynamic Island removed */

.app-card {
    position: absolute;
    transition: transform 0.1s ease-out;
    /* For parallax js */
}

.card-1 {
    z-index: 2;
    transform: rotate(-5deg) translateX(-40px);
}

.card-2 {
    z-index: 1;
    right: 0;
    top: 5%;
    transform: rotate(5deg) translateX(40px);
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Walkthrough Section */
.walkthrough {
    background-color: var(--color-bg-alt);
    text-align: center;
}

.section-header {
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
}

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

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    background: #000;
    aspect-ratio: 16/9;
    position: relative;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    background: linear-gradient(45deg, #111, #222);
}

.play-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    cursor: pointer;
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.play-button:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.play-button svg {
    color: #fff;
    margin-left: 4px;
    /* Optical adjustment */
}

/* Features Section */
.features {
    padding-bottom: 0;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.feature-text p {
    color: var(--color-text-muted);
    font-size: 1.125rem;
}

.feature-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    padding: 20px;
    /* Space for shadows */
}

.feature-img {
    max-width: none;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

/* Import Section */
.import-section {
    background-color: var(--color-bg-alt);
    text-align: center;
}

.import-visuals {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
}

.import-card {
    background: var(--color-white);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 300px;
    transition: transform var(--transition-normal);
}

.import-card:hover {
    transform: translateY(-5px);
}

.import-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: top;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-sm);
    border: 1px solid var(--color-border);
}

.import-label {
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Pricing Section */
.pricing {
    background-color: var(--color-bg-alt);
    text-align: center;
}

.pricing-card {
    background: var(--color-white);
    max-width: 400px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.price-header {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: var(--spacing-xs);
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    margin-right: 4px;
}

.amount {
    font-size: 4rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--color-text-main);
    line-height: 1;
}

.period {
    color: var(--color-text-muted);
    font-weight: 500;
}

.price-sub {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
}

.price-features {
    text-align: left;
    margin-bottom: var(--spacing-md);
}

.price-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    color: var(--color-text-muted);
}

.price-features li::before {
    content: "✓";
    color: var(--color-accent);
    font-weight: bold;
    margin-right: 10px;
}

.guarantee {
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
    display: flex;
    gap: 10px;
    text-align: left;
}

.guarantee p {
    font-size: 0.8rem;
    color: #166534;
    line-height: 1.4;
}

/* Community Section */
/* Community Section */
.community {
    padding-bottom: var(--spacing-xl);
}

.community-img {
    width: 100%;
    max-width: 450px;
    /* Smaller image as requested */
    border-radius: var(--radius-md);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--color-border);
    transition: transform var(--transition-normal);
    /* Rotate slightly for style */
    transform: rotate(2deg);
}

.community-img:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Beta Sign-up */
.beta-signup {
    text-align: center;
}

.beta-container {
    max-width: 800px;
}

.beta-content {
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.beta-content h2 {
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
}

.beta-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-md);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        height: 500px;
        margin-top: var(--spacing-md);
        transform: scale(0.8);
        /* Scale down phones on mobile */
    }

    .card-1 {
        transform: rotate(-5deg) translateX(-20px);
    }

    .card-2 {
        transform: rotate(5deg) translateX(20px);
    }

    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
        text-align: center;
    }

    .signup-form {
        flex-direction: column;
    }

    .iphone-frame {
        width: 240px;
        /* Smaller on mobile */
    }
}