/* ================================
   BETTY AI - INNERBLOOM INSPIRED DESIGN
   Grainy Gradients & Vibrant Colors
   ================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Vibrant Color Palette */
    --color-coral: #FF6B6B;
    --color-peach: #FFB088;
    --color-lavender: #B8A4FF;
    --color-mint: #70E4C8;
    --color-sky: #6DB8FF;
    --color-pink: #FF85C0;
    --color-yellow: #FFD93D;
    --color-purple: #9B72FF;
    --color-teal: #4ECDC4;
    --color-rose: #FF6B9D;
    --color-sage: #A8D5BA;
    --color-lilac: #D4B5FF;
    
    /* Backgrounds */
    --bg-primary: #FEFBF7;
    --bg-secondary: #FFF9F3;
    --bg-dark: #2A2438;
    --bg-cream: #FFF5EB;
    --bg-lavender: #F5F3FF;
    
    /* Text */
    --text-primary: #2A2438;
    --text-secondary: #5C5470;
    --text-light: #8B7E9B;
    --text-white: #FEFBF7;
    
    /* Gradients */
    --gradient-sunset: linear-gradient(135deg, #FF6B6B 0%, #FFB088 50%, #FFD93D 100%);
    --gradient-ocean: linear-gradient(135deg, #6DB8FF 0%, #4ECDC4 50%, #70E4C8 100%);
    --gradient-dream: linear-gradient(135deg, #B8A4FF 0%, #9B72FF 50%, #FF85C0 100%);
    --gradient-aurora: linear-gradient(135deg, #70E4C8 0%, #B8A4FF 33%, #FF85C0 66%, #FFB088 100%);
    --gradient-peach: linear-gradient(135deg, #FFB088 0%, #FF85C0 100%);
    --gradient-mint: linear-gradient(135deg, #70E4C8 0%, #A8D5BA 100%);
    --gradient-cosmic: linear-gradient(135deg, #2A2438 0%, #5C5470 100%);
    --gradient-tropical: linear-gradient(135deg, #FFD93D 0%, #4ECDC4 50%, #B8A4FF 100%);
    
    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Inter', sans-serif;
    
    /* Shadows */
    --shadow-soft: 0 8px 32px rgba(42, 36, 56, 0.08);
    --shadow-medium: 0 12px 48px rgba(42, 36, 56, 0.12);
    --shadow-strong: 0 20px 64px rgba(42, 36, 56, 0.16);
    --shadow-color: 0 16px 48px rgba(255, 107, 107, 0.2);
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ================================
   BASE STYLES
   ================================ */

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

html {
    scroll-behavior: smooth;
}

/* Grain Texture Overlay */
@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    width: 200%;
    height: 200vh;
    background: transparent url('data:image/svg+xml,%3Csvg viewBox="0 0 400 400" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="3.5" numOctaves="4" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E') repeat;
    background-size: 200px 200px;
    opacity: 0.06;
    z-index: 9999;
    pointer-events: none;
    animation: grain 8s steps(10) infinite;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.3;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Gradient Text Utility */
.gradient-text {
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-dream);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-aurora);
}

/* ================================
   NAVIGATION
   ================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-smooth);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(254, 251, 247, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-soft);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 28px;
    text-decoration: none;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--gradient-dream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
    box-shadow: var(--shadow-medium);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-dream);
    transition: var(--transition-smooth);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.cta-button {
    padding: 14px 32px;
    border-radius: 50px;
    background: var(--gradient-dream);
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition-smooth);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* ================================
   HERO SECTION
   ================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #fff5f5 0%, #f0f7ff 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 900px;
    height: 900px;
    background: var(--gradient-sunset);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    z-index: 0;
    animation: pulse 10s ease-in-out infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 700px;
    height: 700px;
    background: var(--gradient-ocean);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    z-index: 0;
    animation: pulse 12s ease-in-out infinite alternate-reverse;
}

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

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-content h1 {
    font-size: 84px;
    margin-bottom: 32px;
    line-height: 0.95;
    font-weight: 800;
}

.hero-content h1 .gradient-text {
    display: block;
    margin-top: 8px;
}

.hero-content p {
    font-size: 22px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 560px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 18px 42px;
    border-radius: 50px;
    background: var(--gradient-dream);
    color: white;
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-medium);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

.btn-secondary {
    padding: 18px 42px;
    border-radius: 50px;
    background: white;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
    border: 2px solid var(--text-primary);
}

.btn-secondary:hover {
    transform: translateY(-4px);
    background: var(--text-primary);
    color: white;
}

/* Floating Animation for Phone */
.phone-mockup {
    position: relative;
    width: 340px;
    height: 700px;
    background: white;
    border-radius: 48px;
    padding: 16px;
    box-shadow: 0 40px 100px rgba(42, 36, 56, 0.2);
    z-index: 2;
    animation: floatPhone 6s ease-in-out infinite;
}

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

/* Pulse Animation for CTA Button */
.cta-section .btn-primary {
    background: var(--gradient-dream);
    color: white;
    box-shadow: var(--shadow-medium);
    animation: pulseBtn 2s infinite;
}

@keyframes pulseBtn {
    0% { box-shadow: 0 0 0 0 rgba(184, 164, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(184, 164, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(184, 164, 255, 0); }
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--gradient-tropical);
    border-radius: 36px;
    padding: 32px 24px;
    position: relative;
    overflow: hidden;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 28px;
    background: white;
    border-radius: 0 0 20px 20px;
}

.chat-preview {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
}

.chat-bubble {
    padding: 16px 20px;
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow-soft);
    max-width: 80%;
    animation: floatUp 0.6s ease-out;
    font-size: 14px;
    line-height: 1.5;
}

.chat-bubble.user {
    background: var(--gradient-dream);
    color: white;
    align-self: flex-end;
    margin-left: auto;
}

@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 120px;
    height: 120px;
    background: var(--gradient-peach);
    top: 10%;
    left: -10%;
    animation-delay: 0s;
    filter: blur(40px);
    opacity: 0.7;
}

.shape-2 {
    width: 80px;
    height: 80px;
    background: var(--gradient-mint);
    bottom: 20%;
    right: -5%;
    animation-delay: 2s;
    filter: blur(30px);
    opacity: 0.7;
}

.shape-3 {
    width: 60px;
    height: 60px;
    background: var(--gradient-ocean);
    top: 60%;
    left: -5%;
    animation-delay: 4s;
    filter: blur(25px);
    opacity: 0.7;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, -20px) rotate(90deg);
    }
    50% {
        transform: translate(0, -40px) rotate(180deg);
    }
    75% {
        transform: translate(-20px, -20px) rotate(270deg);
    }
}

/* ================================
   FEATURES SECTION
   ================================ */

.features {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-label {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    background: var(--gradient-peach);
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 64px;
    margin-bottom: 24px;
}

.section-header p {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 48px 40px;
    border-radius: 32px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-aurora);
    transition: height 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
    background: white;
}

.feature-card:hover::before {
    height: 100%;
    opacity: 0.05;
}

.feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: var(--gradient-dream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-medium);
    position: relative;
    z-index: 1;
}

.feature-card:nth-child(2) .feature-icon {
    background: var(--gradient-sunset);
}

.feature-card:nth-child(3) .feature-icon {
    background: var(--gradient-ocean);
}

.feature-card:nth-child(4) .feature-icon {
    background: var(--gradient-mint);
}

.feature-card:nth-child(5) .feature-icon {
    background: var(--gradient-peach);
}

.feature-card:nth-child(6) .feature-icon {
    background: var(--gradient-tropical);
}

.feature-card h3 {
    font-size: 28px;
    margin-bottom: 16px;
    font-family: var(--font-display);
}

.feature-card p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ================================
   HOW IT WORKS SECTION
   ================================ */

.how-it-works {
    padding: 120px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -10%;
    width: 700px;
    height: 700px;
    background: var(--gradient-mint);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.how-it-works::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--gradient-peach);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-top: 80px;
    position: relative;
    z-index: 1;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-sunset);
    color: white;
    font-size: 36px;
    font-weight: 800;
    font-family: var(--font-display);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    box-shadow: var(--shadow-color);
}

.step:nth-child(2) .step-number {
    background: var(--gradient-ocean);
}

.step:nth-child(3) .step-number {
    background: var(--gradient-dream);
}

.step h3 {
    font-size: 32px;
    margin-bottom: 16px;
    font-family: var(--font-display);
}

.step p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 340px;
    margin: 0 auto;
}

/* ================================
   CTA SECTION
   ================================ */

.cta-section {
    padding: 120px 0;
    background: var(--gradient-aurora);
    position: relative;
    overflow: hidden;
    color: white;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 72px;
    margin-bottom: 32px;
    line-height: 1.1;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 2;
}

.cta-content p {
    font-size: 24px;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 48px;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.cta-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    z-index: 0;
    pointer-events: none;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.cta-section .btn-primary {
    background: var(--gradient-dream);
    color: white;
    box-shadow: var(--shadow-medium);
}

.cta-section .btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
    background: var(--gradient-dream);
    color: white;
    animation: none;
}

.cta-section .btn-secondary {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background: transparent;
}

.cta-section .btn-secondary:hover {
    background: var(--text-primary);
    color: white;
}

/* ================================
   FOOTER
   ================================ */

.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 32px;
    margin-bottom: 16px;
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background: var(--gradient-dream);
    transform: translateY(-4px);
}

.footer-links h4 {
    font-family: var(--font-display);
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: white;
    padding-left: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
    text-align: center;
    color: var(--text-light);
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .hero-content h1 {
        font-size: 64px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .section-header h2 {
        font-size: 48px;
    }
    
    .cta-content h2 {
        font-size: 56px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 48px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .phone-mockup {
        width: 280px;
        height: 580px;
    }
    
    .section-header h2 {
        font-size: 40px;
    }
    
    .cta-content h2 {
        font-size: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 16px 32px;
        font-size: 16px;
    }
}

/* ================================
   UTILITY ANIMATIONS
   ================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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