/* Apple Liquid Glass UI Design System */

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

/* CSS Custom Properties - Liquid Glass Aesthetic */
:root {
    /* Vibrant gradient colors for glass effects */
    --primary-color: #007aff;
    --primary-dark: #0051d5;
    --primary-light: #4da2ff;
    --accent-color: #5e5ce6;
    --accent-purple: #bf5af2;
    --accent-pink: #ff375f;
    --accent-orange: #ff9500;

    /* Text colors */
    --text-primary: rgba(0, 0, 0, 0.85);
    --text-secondary: rgba(0, 0, 0, 0.6);
    --text-tertiary: rgba(0, 0, 0, 0.4);
    --text-on-glass: rgba(255, 255, 255, 0.95);

    /* Glass backgrounds */
    --bg-primary: #f5f5f7;
    --bg-secondary: #fafafa;
    --glass-white: rgba(255, 255, 255, 0.7);
    --glass-light: rgba(255, 255, 255, 0.5);
    --glass-medium: rgba(255, 255, 255, 0.3);

    /* Vibrant glass overlays */
    --glass-blue: rgba(0, 122, 255, 0.15);
    --glass-purple: rgba(94, 92, 230, 0.15);
    --glass-pink: rgba(255, 55, 95, 0.15);

    /* Border colors */
    --border-glass: rgba(255, 255, 255, 0.5);
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-medium: rgba(0, 0, 0, 0.12);

    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', sans-serif;
    --font-size-base: 17px;
    --line-height-base: 1.47059;
    --letter-spacing-tight: -0.022em;
    --letter-spacing-base: -0.011em;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    --spacing-xxl: 7rem;

    /* Container */
    --container-max-width: 980px;

    /* Animations - Fluid and natural */
    --transition-fast: 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-base: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Shadows - Soft, layered depth */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.14), 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.16), 0 8px 24px rgba(0, 0, 0, 0.12);

    /* Glass shadows with color tint */
    --shadow-glass-blue: 0 8px 32px rgba(0, 122, 255, 0.2), 0 2px 12px rgba(0, 122, 255, 0.15);
    --shadow-glass-purple: 0 8px 32px rgba(94, 92, 230, 0.2), 0 2px 12px rgba(94, 92, 230, 0.15);
}

/* Base Typography */
body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-primary);
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf3 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: var(--letter-spacing-tight);
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    line-height: 1.05;
    background: linear-gradient(135deg, #000000 0%, #007aff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
    line-height: 1.15;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    margin-bottom: 0.875rem;
}

p {
    margin-bottom: 1.25rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-size: 1.0625rem;
}

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

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 max(var(--spacing-md), env(safe-area-inset-left));
}

/* Navigation - Frosted Glass */
.navbar {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: saturate(200%) blur(60px);
    -webkit-backdrop-filter: saturate(200%) blur(60px);
    border-bottom: 1px solid var(--border-glass);
    padding: 1.125rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 8px 32px rgba(0, 0, 0, 0.06);
}

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

.nav-brand a {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: var(--letter-spacing-base);
    transition: opacity var(--transition-fast);
    background: linear-gradient(135deg, #5e5ce6 0%, #007aff 50%, #bf5af2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-brand a:hover {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-menu a {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
    padding: 0.8rem 1rem;
    border-radius: 12px;
}

.nav-menu a:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.04);
}

.nav-menu a.active {
    color: var(--primary-color);
    background: rgba(0, 122, 255, 0.1);
}

.nav-menu a.active::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1), rgba(94, 92, 230, 0.1));
    border-radius: 12px;
    z-index: -1;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 2.5px 0;
    transition: var(--transition-base);
    border-radius: 2px;
}

/* Buttons - Liquid Glass Style */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 24px;
    font-size: 1.0625rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #007aff 0%, #5e5ce6 100%);
    color: var(--text-on-glass);
    box-shadow: var(--shadow-glass-blue);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
    border-radius: 24px;
}

.btn-primary:hover {
    color: #ffffff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 48px rgba(0, 122, 255, 0.35), 0 4px 16px rgba(0, 122, 255, 0.25);
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Sections */
section {
    padding: var(--spacing-xl) 0;
}

/* Hero Section - Liquid Glass Effect */
.hero {
    background: linear-gradient(135deg,
        rgba(0, 122, 255, 0.05) 0%,
        rgba(94, 92, 230, 0.08) 50%,
        rgba(255, 55, 95, 0.05) 100%);
    text-align: center;
    padding: calc(var(--spacing-xxl) + 8rem) 0 var(--spacing-xxl);
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(ellipse at center,
        rgba(0, 122, 255, 0.15) 0%,
        rgba(94, 92, 230, 0.1) 40%,
        transparent 70%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center,
        rgba(255, 55, 95, 0.12) 0%,
        transparent 60%);
    animation: float 25s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(5deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px rgba(0, 122, 255, 0.1);
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.4;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

/* Intro Section */
.intro {
    background-color: transparent;
    text-align: center;
    position: relative;
}

.intro h2 {
    margin-bottom: 1.5rem;
}

.intro p {
    font-size: 1.1875rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* Featured Product Section - Glass Card */
.featured-product {
    background-color: transparent;
    position: relative;
    margin-top: -4em;
}

.product-card {
    max-width: 720px;
    margin: 0 auto;
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: saturate(180%) blur(40px);
    -webkit-backdrop-filter: saturate(180%) blur(40px);
    border-radius: 32px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-glass);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent);
}

.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(0, 122, 255, 0.03) 0%,
        rgba(94, 92, 230, 0.05) 50%,
        rgba(255, 55, 95, 0.03) 100%);
    opacity: 0;
    transition: opacity var(--transition-slow);
    border-radius: 32px;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 96px rgba(0, 0, 0, 0.18), 0 12px 32px rgba(0, 122, 255, 0.15);
}

.product-card:hover::after {
    opacity: 1;
}

.product-card > * {
    position: relative;
    z-index: 1;
}

.product-card h2 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.product-tagline {
    font-size: clamp(1.25rem, 2vw, 1.375rem);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.product-card > p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.feature-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding: 0;
}

.feature-highlights li {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid var(--border-glass);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-highlights li::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(0, 122, 255, 0.1) 0%,
        rgba(94, 92, 230, 0.1) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.feature-highlights li:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-glass-blue);
    border-color: rgba(0, 122, 255, 0.3);
}

.feature-highlights li:hover::before {
    opacity: 1;
}

.product-card .btn {
    margin-top: 1rem;
}

/* Footer - Frosted Glass */
footer {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: saturate(180%) blur(40px);
    -webkit-backdrop-filter: saturate(180%) blur(40px);
    border-top: 1px solid var(--border-glass);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.footer-section p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-section a {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    display: inline-block;
}

.footer-section a:hover {
    color: var(--primary-color);
    background: rgba(0, 122, 255, 0.08);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-subtle);
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    :root {
        --font-size-base: 16px;
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
        --spacing-xxl: 4rem;
    }

    .navbar {
        padding: 1rem 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 255);
        backdrop-filter: saturate(200%) blur(60px);
        -webkit-backdrop-filter: saturate(200%) blur(60px);
        flex-direction: column;
        padding: var(--spacing-md);
        border-bottom: 1px solid var(--border-glass);
        gap: 0;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        border: none;
        margin: 0.25em 0;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 2rem;
        font-size: 1.0625rem;
    }

    .nav-menu a.active {
        background: none;
    }

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

    .hero {
        padding: calc(var(--spacing-xl) + 3rem) 0 var(--spacing-xl);
    }

    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-cta .btn {
        width: 90%;
        margin: 0.8em 5% 0 5%;
    }

    .product-card {
        padding: var(--spacing-lg);
        border-radius: 24px;
    }

    .feature-highlights {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .product-card {
        padding: var(--spacing-md);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
