/* CSS Variables for consistent theming and dark/light mode ease */
:root {
    --primary: #FF2E93; /* Vibrant warm pink */
    --primary-gradient: linear-gradient(135deg, #FF8A00, #E52E71); /* Instagram-style warm gradient */
    --secondary: #121212;
    --text-main: #1A1A1A;
    --text-muted: #666666;
    --bg-light: #F9FAFB;
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    
    /* Chat Bubble Colors */
    --chat-user: #007AFF; /* iMessage Blue */
    --chat-trent: #E9E9EB; /* Light grey */
    
    /* Shapes */
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Gradient Mesh Animation */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 15% 50%, rgba(255, 138, 0, 0.12), transparent 25%),
                radial-gradient(circle at 85% 30%, rgba(229, 46, 113, 0.12), transparent 25%),
                radial-gradient(circle at 50% 80%, rgba(0, 122, 255, 0.08), transparent 25%);
    background-color: #FAFAFA;
    filter: blur(60px);
    animation: pulse 15s infinite alternate;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(229, 46, 113, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 46, 113, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--text-main);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

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

.btn-outline:hover {
    background: var(--text-main);
    color: white;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.w-100 {
    width: 100%;
}

/* Glassmorphism Utilities */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.1);
}

/* Header */
header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: rgba(249, 250, 251, 0.7);
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

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

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

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

.badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(229, 46, 113, 0.1);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Phone Mockup */
.hero-mockup {
    display: flex;
    justify-content: center;
    perspective: 1200px;
}

.phone {
    width: 320px;
    height: 650px;
    background: white;
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), inset 0 0 0 8px #121212;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transform: rotateY(-8deg) rotateX(4deg);
    transition: var(--transition);
}

.phone:hover {
    transform: rotateY(0) rotateX(0) translateY(-10px);
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.3), inset 0 0 0 8px #121212;
}

.phone-header {
    background: rgba(250, 250, 250, 0.9);
    backdrop-filter: blur(10px);
    padding: 40px 20px 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: center;
    z-index: 10;
}

.phone-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #121212, #333333);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.phone-contact span {
    font-size: 0.8rem;
    font-weight: 600;
}

.phone-body {
    flex: 1;
    background: #F2F2F7;
    padding: 20px 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.phone-body::-webkit-scrollbar {
    width: 4px;
}
.phone-body::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.15);
    border-radius: 4px;
}

/* Chat Messages */
.msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.4;
    animation: slideUp 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    opacity: 0;
    transform: translateY(15px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}

.msg.user {
    align-self: flex-end;
    background: var(--chat-user);
    color: white;
    border-bottom-right-radius: 4px;
}

.msg.trent {
    align-self: flex-start;
    background: var(--chat-trent);
    color: black;
    border-bottom-left-radius: 4px;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 12px 16px;
    background: var(--chat-trent);
    border-radius: 18px;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    align-items: center;
    height: 40px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #8E8E93;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.phone-footer {
    padding: 15px;
    background: rgba(250, 250, 250, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.fake-input {
    background: white;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 0.85rem;
    color: #8E8E93;
}

/* General Section Spacing */
section {
    padding: 7rem 0;
}

/* How It Works Section */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Use Cases Section */
.use-cases {
    background: white;
    position: relative;
}

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

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem 2rem;
}

.use-case-item {
    text-align: center;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.use-case-item:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: rgba(229, 46, 113, 0.05);
}

.use-case-item h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.use-case-item p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    position: relative;
    display: flex;
    flex-direction: column;
}

.glass-card-solid {
    background: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.pricing-card.pro {
    border: 2px solid var(--primary);
    transform: scale(1.02);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gradient);
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(229, 46, 113, 0.3);
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 1rem 0 2rem;
    color: var(--text-main);
}

.pro .price {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.features {
    list-style: none;
    margin-bottom: 2.5rem;
    flex: 1;
}

.features li {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.features li::before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
    background: rgba(229, 46, 113, 0.1);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Footer Section */
footer {
    background: #111;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-content .logo {
    -webkit-text-fill-color: white;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.footer-links a:hover {
    color: white;
}

.disclaimer {
    text-align: center;
    color: #666;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero {
        padding: 4rem 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content {
        order: 1;
    }
    
    .badges, .hero-buttons {
        justify-content: center;
    }

    .hero-mockup {
        order: 2;
    }
    
    .phone {
        transform: none;
    }
    
    .phone:hover {
        transform: translateY(-10px);
    }
    
    .pricing-card.pro {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}
