/*
 * BetterLife Vercel & Premium iOS App Unified Professional Stylesheet.
 * Recreates the magnificent deep indigo‑violet ambient dark mode design system
 * with premium floating animations, glowing gradients, and ultra‑slick geometry.
 */

:root {
    --bg-primary: #0F0A2A;
    --bg-secondary: #08041B;
    --surface: rgba(26, 21, 72, 0.45);
    --surface-hover: rgba(26, 21, 72, 0.7);
    --border-color: rgba(155, 93, 229, 0.25);
    
    --violet: #7B2FBE;
    --violet-light: #9B5DE5;
    --gold: #F5A623;
    --gold-light: #FFD166;
    --teal: #06D6A0;
    --coral: #EF476F;
    
    --text-primary: #F0EBF8;
    --text-secondary: #A89EC5;
    --text-tertiary: #6B5F8A;

    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --vp-radius: 12px;
}

body {
    background-color: var(--bg-primary) !important;
    background-image: radial-gradient(circle at 10% 20%, rgba(123, 47, 190, 0.18) 0%, transparent 45%),
                      radial-gradient(circle at 90% 80%, rgba(6, 214, 160, 0.12) 0%, transparent 50%) !important;
    background-attachment: fixed !important;
    color: var(--text-primary) !important;
    font-family: var(--font-body) !important;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display) !important;
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 0;
}

p {
    color: var(--text-secondary) !important;
}

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

/* Layout Utilities */
.vp-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.vp-section {
    padding: 7rem 0;
    border-bottom: 1px solid rgba(155, 93, 229, 0.15);
}

.vp-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: center;
}

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

@media (max-width: 768px) {
    .vp-grid-2, .vp-grid-3 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .vp-section {
        padding: 5rem 0;
    }
}

/* Premium Buttons */
.vp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1.8rem;
    border-radius: 99px;
    transition: var(--transition-smooth);
    cursor: pointer;
    box-sizing: border-box;
}

.vp-btn-primary {
    background: linear-gradient(135deg, var(--violet), var(--violet-light));
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(123, 47, 190, 0.4);
}

.vp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 47, 190, 0.6);
    color: #ffffff;
}

.vp-btn-secondary {
    background: rgba(26, 21, 72, 0.4);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.vp-btn-secondary:hover {
    background: rgba(26, 21, 72, 0.7);
    border-color: var(--violet-light);
}

/* Glassmorphic Cards */
.vp-card {
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--vp-radius);
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.vp-card:hover {
    border-color: var(--violet-light);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(123, 47, 190, 0.25);
    background-color: var(--surface-hover);
}

/* Geo Widget Badge */
.vp-geo-widget {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(123, 47, 190, 0.15);
    border: 1px solid var(--violet-light);
    padding: 0.5rem 1.2rem;
    border-radius: 99px;
    font-size: 0.8125rem;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--violet-light);
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.vp-geo-widget:hover {
    box-shadow: 0 0 15px rgba(155, 93, 229, 0.4);
}

.vp-geo-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--teal);
    box-shadow: 0 0 8px var(--teal);
    display: inline-block;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* Hero Title Gradient */
.vp-title-gradient {
    background: linear-gradient(135deg, var(--violet-light) 30%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Mockup Showcase Floating Animation */
.phone-container {
    width: 280px;
    height: 560px;
    background: var(--bg-secondary);
    border: 8px solid rgba(155, 93, 229, 0.3);
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(123, 47, 190, 0.5);
    overflow: hidden;
    position: relative;
    animation: floatPhone 6s ease-in-out infinite;
}

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

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

/* Custom Navigation */
.vp-header {
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(15, 10, 42, 0.7);
    backdrop-filter: blur(15px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
}

.vp-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vp-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.vp-logo-img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(123, 47, 190, 0.5);
}

.vp-logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

/* Social link buttons */
.vp-social-links {
    display: flex;
    gap: 1rem;
}

.vp-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: rgba(26, 21, 72, 0.3);
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.vp-social-icon:hover {
    border-color: var(--violet-light);
    color: #ffffff;
    transform: translateY(-2px);
    background-color: rgba(123, 47, 190, 0.2);
}

.vp-social-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}
