/* SENDBLUE DESIGN SYSTEM - Modern SaaS Aesthetic */

/* Using iOS native system fonts - no imports needed */

/* CSS Variables for Design System */
:root {
    /* Sendblue Colors */
    --primary-blue: #0077FF;
    --dark-blue: #1F2937;
    --navy: #0F172A;
    --light-blue: #E0F2FE;
    --success-green: #10B981;
    --white: #FFFFFF;
    --light-gray: #F8FAFC;
    --medium-gray: #64748B;
    --border-gray: #E2E8F0;
    
    /* Gradients */
    --gradient-blue: linear-gradient(135deg, #0077FF 0%, #0066CC 100%);
    --gradient-bg: linear-gradient(135deg, #F8FAFC 0%, #E0F2FE 100%);
    
    /* Typography - iOS Native System Fonts */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* iOS Typography Scale */
    --text-xs: 11px;      /* iOS footnote */
    --text-sm: 13px;      /* iOS caption1 */
    --text-base: 16px;    /* iOS body */
    --text-lg: 18px;      /* iOS callout */
    --text-xl: 20px;      /* iOS title3 */
    --text-2xl: 24px;     /* iOS title2 */
    --text-3xl: 28px;     /* iOS title1 */
    --text-4xl: 34px;     /* iOS largeTitle */
    
    /* iOS Text Colors */
    --text-primary: #000000;      /* iOS label */
    --text-secondary: #8E8E93;    /* iOS secondaryLabel */
    --text-tertiary: #C7C7CC;     /* iOS tertiaryLabel */
    --text-quaternary: #D1D1D6;   /* iOS quaternaryLabel */
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-2xl: 64px;
    --spacing-3xl: 80px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
    --shadow-blue: 0 4px 14px rgba(0, 119, 255, 0.25);
    --shadow-blue-lg: 0 8px 25px rgba(0, 119, 255, 0.35);
    
    /* Message Bubble System */
    --bubble-padding: 8px 14px;
    --bubble-border-radius: 18px;
    --bubble-font-size: 16px;
    --bubble-line-height: 1.3;
    --bubble-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --bubble-received-bg: #f0f0f3;
    --bubble-received-color: #000000;
    --bubble-sent-bg: #007aff;
    --bubble-sent-color: white;
    --bubble-max-width: 320px;
}

/* Universal CSS reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Disable image saving and context menus */
img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
    -webkit-touch-callout: none;
}

/* Re-enable pointer events for interactive images */
.platform-icon img,
.persona-image,
.friend-preview-avatar-image {
    pointer-events: auto;
}

/* Additional image protection */
img::selection {
    background: transparent;
}

img::-moz-selection {
    background: transparent;
}

/* Disable print styles for images */
@media print {
    img {
        display: none !important;
    }
}

body {
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--white);
    margin: 0;
    padding: 0;
    padding-top: 80px; /* Account for fixed header */
    font-size: var(--text-base);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===============================================
   UNIFIED MESSAGE BUBBLE SYSTEM
   =============================================== */
.message-bubble-base {
    padding: var(--bubble-padding);
    border-radius: var(--bubble-border-radius);
    font-size: var(--bubble-font-size);
    line-height: var(--bubble-line-height);
    font-family: var(--bubble-font-family);
    display: inline-block;
    max-width: var(--bubble-max-width);
    word-wrap: break-word;
    text-align: left;
}

.message-bubble-received {
    background: var(--bubble-received-bg);
    color: var(--bubble-received-color);
}

.message-bubble-sent {
    background: var(--bubble-sent-bg);
    color: var(--bubble-sent-color);
}

/* Header - Sendblue Style */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-gray);
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 1rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-brand h1 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    font-family: var(--font-family);
}

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

.nav-links a:not(.cta-button) {
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
}

.nav-links a:not(.cta-button):hover {
    color: var(--primary-blue);
}

.cta-button {
    background: var(--primary-blue);
    color: var(--white);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-blue);
    text-decoration: none;
}

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

/* Remove duplicate padding rule - already defined above */

/* Main Section - Normal Section Style */
.main-section {
    background: var(--white);
    padding: var(--spacing-3xl) 2rem;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.main-text {
    transform: translateY(-40px);
}

.main-text h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    letter-spacing: -0.02em;
    font-family: var(--font-family);
}

.tagline-emphasis {
    font-weight: 700;
    font-size: 1.1em;
    color: var(--text-primary);
    white-space: nowrap;
}

.main-text h2 {
    font-size: clamp(1.875rem, 4vw, 40px);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    margin-top: var(--spacing-xl);
    color: var(--dark-blue);
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.main-text p {
    font-size: clamp(var(--text-base), 2.5vw, var(--text-lg));
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.5;
    font-weight: 400;
    font-family: var(--font-family);
}

.main-text .integration-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

.main-text .integration-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--dark-blue);
    line-height: 1.4;
}

.main-text .feature-check {
    color: var(--success-green);
    font-weight: 600;
    font-size: 1.2rem;
}

.main-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin: var(--spacing-lg) 0;
}

.main-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.main-feature .feature-check {
    color: var(--success-green);
    font-weight: 600;
    font-size: 1.1rem;
}

.main-feature span:last-child {
    color: var(--medium-gray);
    font-size: 0.95rem;
}

.main-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    align-items: flex-start;
    margin-top: var(--spacing-md);
    justify-content: flex-start;
}

.mobile-buttons {
    display: none; /* Hide mobile buttons by default */
}

.mobile-only {
    display: none; /* Hide by default */
}

.desktop-only {
    display: block; /* Show by default on desktop */
}

.phone-button-overlay {
    position: absolute;
    bottom: 6%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    z-index: 10;
}

.mobile-header {
    display: none; /* Hide mobile header by default */
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xs) var(--spacing-md); /* Minimal top/bottom padding */
    gap: var(--spacing-sm);
    background: var(--white);
    border-bottom: 1px solid var(--border-gray);
    margin-top: 0; /* Remove any top margin */
}

.mobile-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.mobile-brand {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    font-family: var(--font-family);
}

.primary-button {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-size: var(--text-lg);
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-blue);
    white-space: nowrap;
    min-width: 140px;
    text-align: center;
    letter-spacing: -0.01em;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue-lg);
}

.secondary-button {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: calc(var(--spacing-sm) - 2px) calc(var(--spacing-lg) - 2px);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 140px;
    text-align: center;
}

.secondary-button:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
}

/* Phone Mockup - Enhanced Sendblue Style */
.phone-mockup {
    max-width: 350px;
    margin: 0 auto;
    background: #1a1a1a;
    border-radius: var(--radius-xl);
    padding: 10px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

/* iPhone mockup container for main demo */
.phone-mockup-container {
    position: relative;
    max-width: 350px;
    margin: 0 auto;
}

.phone-mockup-image {
    width: 100%;
    height: auto;
    display: block;
}

.chat-header-overlay {
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    z-index: 10;
    padding: 8px 20px 6px 20px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(50px) saturate(180%);
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.contact-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: none;
    outline: none;
    box-shadow: none;
}

.contact-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    outline: none;
    box-shadow: none;
}

.phone-mockup-container .contact-name {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #8e8e93 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    text-align: center !important;
    margin-top: -2px !important;
}

.chat-messages-overlay {
    position: absolute;
    top: 19%;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: 73%;
    padding: 20px 20px 20px 20px;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.chat-messages-overlay::-webkit-scrollbar {
    display: none;
}

/* Background messages that show through glassmorphism */
.background-messages {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    padding: 20px;
    z-index: 5;
}

.background-message {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
}

.background-message.received {
    align-items: flex-start;
}

.background-message.sent {
    align-items: flex-end;
}

.background-message .message-bubble {
    padding: var(--bubble-padding);
    border-radius: var(--bubble-border-radius);
    font-size: var(--bubble-font-size);
    line-height: var(--bubble-line-height);
    font-family: var(--bubble-font-family);
    max-width: 80%;
    word-wrap: break-word;
}

.background-message.received .message-bubble {
    background: var(--bubble-received-bg);
    color: var(--bubble-received-color);
}

.background-message.sent .message-bubble {
    background: var(--bubble-sent-bg);
    color: var(--bubble-sent-color);
}

/* iOS message pop animation */
@keyframes messageAppear {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) translateY(-2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.message-appear {
    animation: messageAppear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.phone-header {
    background: white;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem 0.5rem;
    background: #f8f9fa;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.chat-header {
    padding: 1rem 1.5rem;
    background: white;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 45px;
    height: 45px;
    background: var(--ios-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.contact-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.25rem;
}

.status {
    font-size: 0.9rem;
    color: var(--medium-gray);
}

.chat-messages {
    background: #f8f9fa;
    padding: 1.5rem;
    height: 400px;
    overflow-y: auto;
    border-radius: 0 0 20px 20px;
}

.chat-messages-overlay .message {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem !important;
    animation: fadeInUp 0.4s ease;
}

.chat-messages-overlay .message.consecutive {
    margin-bottom: 0.2rem !important;
}

.chat-messages-overlay .message.garry-followup {
    margin-top: -0.7rem !important;
}

.message.received {
    align-items: flex-start;
}

.message.sent {
    align-items: flex-end;
}

.message-bubble {
    padding: var(--bubble-padding);
    border-radius: var(--bubble-border-radius);
    font-size: var(--bubble-font-size);
    line-height: var(--bubble-line-height);
    font-family: var(--bubble-font-family);
    max-width: 80%;
    word-wrap: break-word;
    position: relative;
}

.message.received .message-bubble {
    background: var(--bubble-received-bg);
    color: var(--bubble-received-color);
}

.message.sent .message-bubble {
    background: var(--bubble-sent-bg);
    color: var(--bubble-sent-color);
}

.chat-messages-overlay .message-time {
    font-size: 10px !important;
    color: #8e8e93 !important;
    margin-top: 2px !important;
    padding: 0 8px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    opacity: 1 !important;
}

.typing-indicator {
    display: flex;
    align-items: flex-start;
    animation: fadeInUp 0.4s ease;
}

.typing-bubble {
    background: #f0f0f3;
    padding: 12px 16px;
    border-radius: 18px;
    animation: pulse 2s infinite;
}

.typing-dots {
    display: flex;
    gap: 0.25rem;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--medium-gray);
    border-radius: 50%;
    animation: bounce 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Native Integration Section - Sendblue Style */
.native-integration {
    padding: var(--spacing-3xl) 2rem;
    background: var(--white);
}

.integration-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.integration-text h2 {
    font-size: clamp(1.875rem, 4vw, 40px);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--dark-blue);
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.integration-text p {
    font-size: clamp(var(--text-base), 2vw, var(--text-lg));
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.5;
    font-family: var(--font-family);
    font-weight: 400;
}

.integration-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.integration-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--dark-blue);
    line-height: 1.4;
}

.feature-check {
    color: var(--success-green);
    font-weight: 600;
    font-size: 1.2rem;
}

/* iOS Mockup */
.ios-mockup {
    max-width: 350px;
    margin: 0 auto;
}

.ios-frame {
    background: #1a1a1a;
    border-radius: 30px;
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.ios-screen {
    background: white;
    border-radius: 22px;
    overflow: hidden;
    height: 600px;
    position: relative;
}

.ios-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 25px;
    background: #1a1a1a;
    border-radius: 0 0 15px 15px;
    z-index: 10;
}

.ios-statusbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.5rem;
    background: #f8f9fa;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-top: 25px;
}

.messages-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background: white;
    text-align: center;
}

.messages-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.conversation-list {
    padding: 1rem;
    background: #f8f9fa;
    height: 450px;
    overflow-y: auto;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.conversation-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.conversation-item.active {
    background: var(--ios-blue);
    color: white;
}

.contact-avatar {
    width: 45px;
    height: 45px;
    background: transparent; /* Remove blue background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
}

.conversation-item.active .contact-avatar {
    background: rgba(255, 255, 255, 0.2);
}

.conversation-info {
    flex: 1;
}

.contact-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.last-message {
    font-size: 0.9rem;
    opacity: 0.8;
}

.conversation-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.message-time {
    font-size: 0.8rem;
    opacity: 0.7;
}

.unread-badge {
    background: #FF3B30;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Apps Section */
.apps-section {
    padding: 80px 2rem;
    background: white;
}

.apps-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.apps-text {
    order: 1;
}

.apps-gallery {
    order: 2;
}

.apps-text h2 {
    font-size: clamp(1.875rem, 4vw, 40px);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--dark-blue);
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.apps-text .apps-subtitle {
    font-size: clamp(1rem, 2vw, 20px);
    color: var(--medium-gray);
    margin-bottom: 0;
    text-align: left;
    line-height: 1.5;
}

.apps-demo {
    max-width: 500px;
    margin: 0;
}

.demo-container {
    position: relative;
}

.platform-indicators {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.platform-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: 2px solid transparent;
    position: relative;
}

.platform-icon:hover {
    background: rgba(0, 119, 255, 0.1);
    border-color: var(--primary-blue);
    opacity: 0.8;
}

.platform-icon.active {
    background: rgba(0, 119, 255, 0.1);
    border-color: var(--primary-blue);
    transform: scale(1.05);
}

.current-platform {
    text-align: center;
    margin-bottom: 2rem;
}

.platform-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--medium-gray);
}

.phone-gallery {
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.platform-demo {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    width: auto;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.platform-demo.active {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    pointer-events: auto;
}


/* Personas Section */
.personas {
    padding: 80px 2rem;
    background: white;
}

.personas-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.personas-visual {
    order: 1;
}

.personas-text {
    order: 2;
}

.personas-text h2 {
    font-size: clamp(1.875rem, 4vw, 40px);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    letter-spacing: -0.015em;
    line-height: 1.2;
    font-family: var(--font-family);
}

.personas-text p {
    font-size: clamp(var(--text-base), 2vw, var(--text-lg));
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.4;
    font-family: var(--font-family);
}

.personas-cta {
    background: var(--gradient-blue);
    color: var(--white);
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-blue);
}

.personas-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue-lg);
}

.alternatives-list {
    margin: var(--spacing-xl) 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.alternative {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 4px 0;
}

.alternative.crossed-out .text {
    text-decoration: line-through;
    opacity: 0.6;
    color: var(--medium-gray);
}

.alternative.solution .text {
    font-weight: 600;
    color: var(--dark-blue);
}

.cross {
    color: #dc2626;
    font-weight: 600;
    font-size: 1.1rem;
}

.tick {
    color: var(--success-green);
    font-weight: 600;
    font-size: 1.1rem;
}

.scenarios-minimal {
    margin: var(--spacing-xl) 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.scenario-item {
    color: var(--dark-blue);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    padding: var(--spacing-sm);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.scenario-item:hover {
    background: rgba(0, 119, 255, 0.05);
}

.persona-preview {
    max-width: 400px;
    margin: 0 auto;
}

/* Customization Section */
.customization {
    padding: 80px 2rem;
    background: var(--light-gray);
}

.customization-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: flex-start;
}

.customization-demo {
    display: flex;
    align-items: flex-start;
}

.customization-text h2 {
    font-size: clamp(1.875rem, 4vw, 40px);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    letter-spacing: -0.015em;
    line-height: 1.2;
    font-family: var(--font-family);
}

.customization-text p {
    font-size: clamp(var(--text-base), 2vw, var(--text-lg));
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.5;
    font-family: var(--font-family);
    font-weight: 400;
}

.persona-examples {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    max-width: 800px; /* Maximum width for content */
}

.persona-card {
    background: var(--white);
    padding: var(--spacing-sm) var(--spacing-xs); /* Minimal internal padding for maximum content space */
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 0; /* Allow cards to shrink below content width */
    overflow: hidden; /* Prevent content overflow */
}

.persona-chat {
    display: flex;
    flex-direction: column;
    gap: 0; /* No gap between profile and chat bubble */
    text-align: left;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm); /* Reduce gap for more compact layout */
}

.persona-info {
    flex: 1;
}

.ios-message-container {
    margin-left: var(--spacing-md); /* Increase left margin for better visual separation */
    margin-right: var(--spacing-md); /* Add right margin for balanced spacing */
    text-align: left;
}

.ios-message {
    display: flex;
    margin-bottom: 8px;
    text-align: left;
}

.ios-message.received {
    justify-content: flex-start;
}

.ios-bubble {
    background: var(--bubble-sent-bg);
    color: var(--bubble-sent-color);
    padding: var(--bubble-padding);
    border-radius: var(--bubble-border-radius);
    font-size: var(--bubble-font-size);
    line-height: var(--bubble-line-height);
    font-family: var(--bubble-font-family);
    display: inline-block;
    max-width: 400px; /* Larger max-width for persona bubbles */
    word-wrap: break-word;
    text-align: left;
}

.persona-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.persona-avatar-large {
    width: 50px; /* Smaller avatar for maximum content space */
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 119, 255, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.persona-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Dating persona toggle styles */
.persona-card[data-persona="dating"] .persona-image {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.persona-card[data-persona="dating"] .persona-image.active-persona {
    opacity: 1;
}

.persona-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    margin-left: -8px;
    justify-content: flex-start;
}

.persona-name {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 6px;
    position: relative;
    font-family: var(--font-family);
}

.persona-name.active {
    color: var(--text-primary);
}

.persona-name:hover {
    color: var(--primary-blue);
}

.persona-name:not(.active):hover {
    transform: translateY(-1px);
}

.toggle-separator {
    color: var(--medium-gray);
    font-weight: 300;
}

.ios-message.gigi-message,
.ios-message.dean-message {
    display: none;
}

.ios-message.active-message {
    display: block;
}

.persona-card h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-family: var(--font-family);
}

.persona-card p {
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-family: var(--font-family);
    font-weight: 400;
}

.persona-sample {
    font-size: var(--text-sm);
    color: var(--primary-blue);
    font-style: italic;
    background: rgba(0, 119, 255, 0.05);
    padding: 0.5rem;
    border-radius: 8px;
    margin-top: 0.5rem;
    font-family: var(--font-family);
    font-weight: 400;
}

.customization-cta {
    background: var(--gradient-blue);
    color: var(--white);
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-blue);
}

.customization-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue-lg);
}

.friend-creator {
    background: var(--white);
    border-radius: 20px;
    padding: var(--spacing-xl);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: flex-start;
    width: 100%;
    min-height: 400px;
    margin-top: 0; /* Remove top margin to align with Gigi container */
}

/* iPhone mockup for custom friend demo */
.friend-preview-bubble {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
}

.friend-preview-avatar {
    width: 40px;
    height: 40px;
    background: var(--ios-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 2px;
    flex-shrink: 0;
}

.friend-preview-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.creator-form {
    width: 100%;
    max-width: 500px;
    margin-bottom: 2px; /* Almost no whitespace above friend preview */
    align-self: center;
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-family);
}

.friend-name-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    font-size: 16px;
    background: #F8F8F8;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #000;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.friend-name-input:focus {
    outline: none;
    border-color: rgba(0, 122, 255, 0.3);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.friend-name-input::placeholder {
    color: #8E8E93;
    font-weight: 400;
}

.photo-upload {
    margin-top: var(--spacing-xs);
}

.upload-area {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-placeholder {
    width: 100%;
    height: 100px;
    border: 1px dashed rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #F8F8F8;
    transition: all 0.2s ease;
}

.upload-placeholder:hover {
    border-color: rgba(0, 122, 255, 0.4);
    background: #FFFFFF;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.08);
}

.upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.upload-area:hover .upload-overlay {
    opacity: 1;
}

.upload-icon {
    font-size: 1.2rem;
    opacity: 0.6;
    color: #8E8E93;
}

.upload-placeholder span {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    font-weight: 400;
    font-family: var(--font-family);
}

.style-description {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    font-size: 16px;
    background: #F8F8F8;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #000;
    resize: vertical;
    min-height: 100px;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    line-height: 1.4;
}

.style-description:focus {
    outline: none;
    border-color: rgba(0, 122, 255, 0.3);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.style-description::placeholder {
    color: #8E8E93;
    font-weight: 400;
}

.friend-preview {
    display: flex;
    justify-content: flex-start;
    margin-bottom: var(--spacing-lg);
}


.preview-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.friend-preview-message {
    flex: 1;
}

.friend-preview-text {
    background: var(--bubble-sent-bg);
    color: var(--bubble-sent-color);
    padding: var(--bubble-padding);
    border-radius: var(--bubble-border-radius);
    font-size: var(--bubble-font-size);
    line-height: var(--bubble-line-height);
    font-family: var(--bubble-font-family);
    display: inline-block;
    max-width: var(--bubble-max-width);
    word-wrap: break-word;
    margin-bottom: 0.5rem;
    min-height: 40px;
}

.default-avatar {
    font-size: 1.5rem;
    color: var(--medium-gray);
    font-weight: 300;
}

.friend-preview-meta {
    font-size: 0.75rem;
    color: var(--medium-gray);
    font-weight: 400;
    text-align: left;
}










/* Typing indicator for custom friend preview */
.typing-indicator-preview {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    opacity: 1;
    /* No animation - appears instantly */
}

.typing-bubble-preview {
    background: #f0f0f3;
    padding: 8px 12px; /* Reduced padding to better fit typing dots */
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content; /* Ensure bubble only takes needed space */
    /* No pulse animation - static bubble */
}

.typing-dots-preview {
    display: flex;
    gap: 0.25rem;
    justify-content: flex-start;
}

.typing-dots-preview span {
    width: 6px;
    height: 6px;
    background: var(--medium-gray);
    border-radius: 50%;
    animation: bounce 1.4s infinite;
}

/* White typing dots for blue chat bubbles */
.friend-preview-text .typing-dots-preview span {
    background: rgba(255, 255, 255, 0.8);
}

.typing-dots-preview span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots-preview span:nth-child(3) {
    animation-delay: 0.4s;
}

/* User typing indicator styling - blue for user messages */
.typing-indicator.user {
    justify-content: flex-end;
}

.typing-indicator.user .typing-bubble {
    background: #007aff;
}

.typing-indicator.user .typing-dots span {
    background: rgba(255, 255, 255, 0.8);
}

.persona-bubble {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left; /* Ensure bubble container is left-aligned */
}

.persona-avatar {
    width: 40px;
    height: 40px;
    background: var(--ios-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 2px;
    flex-shrink: 0;
}

.persona-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.persona-message {
    flex: 1;
    text-align: left; /* Ensure container is left-aligned */
}

.message-text {
    background: var(--bubble-sent-bg);
    color: var(--bubble-sent-color);
    padding: var(--bubble-padding);
    border-radius: var(--bubble-border-radius);
    font-size: var(--bubble-font-size);
    line-height: var(--bubble-line-height);
    font-family: var(--bubble-font-family);
    display: inline-block;
    max-width: var(--bubble-max-width);
    word-wrap: break-word;
    text-align: left;
    margin-bottom: 0.5rem;
}

.message-meta {
    font-size: 0.75rem;
    color: var(--medium-gray);
    font-weight: 400;
}

/* Pricing Section - Sendblue Style */
.pricing {
    padding: var(--spacing-3xl) 2rem;
    background: var(--light-gray);
}

.pricing h2 {
    text-align: center;
    font-size: clamp(1.875rem, 4vw, 40px);
    font-weight: 600;
    margin-bottom: var(--spacing-2xl);
    color: var(--text-primary);
    line-height: 1.2;
    font-family: var(--font-family);
    letter-spacing: -0.015em;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-gray);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.pro {
    border-color: var(--primary-blue);
    position: relative;
}

.pro-badge {
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    font-weight: 600;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    display: none; /* Hide pro badges */
}

.pricing-card h3 {
    font-size: var(--text-2xl);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-family: var(--font-family);
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 2rem;
}

.currency {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--text-secondary);
    font-family: var(--font-family);
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0 0.25rem;
    font-family: var(--font-family);
}

.period {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    font-family: var(--font-family);
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
}

.features-list li {
    padding: 0.5rem 0;
    color: var(--text-primary);
    font-size: var(--text-lg);
    line-height: 1.4;
    font-family: var(--font-family);
    font-weight: 400;
}

.features-list li.included-plan {
    color: var(--text-secondary);
    opacity: 0.8;
    font-weight: 400;
}

.pricing-button {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-blue);
    font-family: var(--font-family);
    font-size: var(--text-base);
}

.pricing-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue-lg);
}


/* Features Section - Sendblue Style */
.features {
    padding: var(--spacing-3xl) 2rem;
    background: var(--white);
}

.features h2 {
    text-align: center;
    font-size: clamp(1.875rem, 4vw, 40px);
    font-weight: 600;
    margin-bottom: var(--spacing-2xl);
    color: var(--text-primary);
    line-height: 1.2;
    font-family: var(--font-family);
    letter-spacing: -0.015em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 280px); /* Consistent heights on desktop */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: visible;
    height: 100%; /* Fill grid cell height on desktop */
}

/* Specific feature card colors - only for selected cards */
.feature-card.custom-friends {
    background: rgba(175, 82, 222, 0.06) !important; /* iOS Purple - faded */
    border-color: rgba(175, 82, 222, 0.12);
}

.feature-card.group-chats {
    background: rgba(255, 204, 0, 0.06) !important; /* iOS Yellow - faded */
    border-color: rgba(255, 204, 0, 0.12);
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Row 1: Large Ultrarealistic Texting + Never Look Lonely + Practice Scenarios */
.feature-card.ultrarealistic {
    grid-column: span 3;
    grid-row: span 1;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.feature-card.never-lonely {
    grid-column: span 1;
    grid-row: span 1;
    background: linear-gradient(135deg, #ebf5ff 0%, #e0efff 100%);
}

.feature-card.practice {
    grid-column: span 1;
    grid-row: span 1;
    background: linear-gradient(135deg, #fdf5fa 0%, #fbebf4 100%);
}

/* Row 2: Custom Friends + Memory Bank + Privacy First */
.feature-card.custom-friends {
    grid-column: span 1;
    grid-row: span 1;
    background: linear-gradient(135deg, #fffef0 0%, #fefce8 100%);
}

.feature-card.memory {
    grid-column: span 1;
    grid-row: span 1;
    background: linear-gradient(135deg, #f0fcf4 0%, #e6f9ed 100%);
}

.feature-card.privacy-first {
    grid-column: span 1;
    grid-row: span 1;
    background: linear-gradient(135deg, #f5f7fa 0%, #eef2f6 100%);
}

.feature-card.real-reactions {
    grid-column: span 1;
    grid-row: span 1;
    background: linear-gradient(135deg, #fff9f0 0%, #ffeed4 100%);
}

.feature-card.group-chats {
    grid-column: span 1;
    grid-row: span 1;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
}

/* Row 3: Voice Notes */
.feature-card.voice-notes {
    grid-column: span 2;
    grid-row: span 1;
    background: linear-gradient(135deg, #faf9f7 0%, #f5f5f4 100%);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.feature-card h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.3;
    font-family: var(--font-family);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.4;
    font-size: var(--text-lg);
    font-weight: 400;
    font-family: var(--font-family);
    flex: 1;
}

/* Extra large card styling */
.feature-card.xlarge h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card.xlarge p {
    font-size: var(--text-sm);
    line-height: 1.4;
    color: var(--text-secondary);
    font-weight: 400;
    font-family: var(--font-family);
}

.feature-card.xlarge .feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

/* Privacy first card content */
.feature-card.privacy-first .feature-content {
    flex: 1;
}

.feature-card.privacy-first .feature-visual {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

/* iOS notification style pro badges */
.feature-card.pro-feature {
    position: relative;
}

.feature-card.pro-feature .pro-badge {
    position: absolute !important;
    top: -6px !important;
    right: -6px !important;
    left: auto !important;
    bottom: auto !important;
    width: auto;
    height: 18px;
    padding: 0 8px;
    background: #ff3b30;
    border-radius: 12px;
    display: none !important; /* Hide pro badges */
    box-shadow: none;
    z-index: 10;
    margin: 0 !important;
    transform: none !important;
    color: white;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* CTA Section - Sendblue Style */
.cta {
    padding: var(--spacing-3xl) 2rem;
    background: var(--gradient-bg);
    text-align: center;
}

.cta h2 {
    font-size: clamp(1.875rem, 4vw, 40px);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
    font-family: var(--font-family);
    letter-spacing: -0.015em;
}

.cta p {
    font-size: clamp(1rem, 2vw, 20px);
    color: var(--medium-gray);
    margin-bottom: var(--spacing-xl);
    line-height: 1.5;
}

.cta-button-large {
    background: var(--primary-blue);
    color: var(--white);
    padding: 18px var(--spacing-xl);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--text-base);
    text-decoration: none;
    display: inline-block;
    box-shadow: var(--shadow-blue);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
}

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

/* Footer */
.footer {
    background: var(--white);
    color: var(--dark-blue);
    padding: var(--spacing-xl) 2rem;
    border-top: 1px solid var(--border-gray);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.footer-brand h3 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
    font-family: var(--font-family);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.5rem;
    margin-top: 2px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-green 2s infinite;
}

.status-text {
    font-size: var(--text-base);
    font-family: var(--font-family);
    color: var(--text-secondary);
    font-weight: 400;
}

@keyframes pulse-green {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--text-base);
    font-weight: 500;
    line-height: 1.2;
    transition: color 0.3s ease;
    text-align: center;
    font-family: var(--font-family);
}

.footer-links a:hover {
    color: var(--primary-blue);
}

.scroll-to-top {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-weight: 500;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s ease;
    font-size: var(--text-base);
    font-family: var(--font-family);
    line-height: 1.2;
    text-align: center;
}

.scroll-to-top:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    text-align: center;
    margin-top: var(--spacing-md);
}

.footer-bottom p {
    color: var(--medium-gray);
    font-size: 0.8rem;
    margin: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes bounce {
    0%, 80%, 100% {
        opacity: 0.3;
    }
    40% {
        opacity: 1;
    }
}

/* ===============================================
   RESPONSIVE DESIGN SYSTEM - SIMPLIFIED
   =============================================== */

/* Two-breakpoint system: Desktop (default) and Mobile (768px and below) */

/* ===============================================
   MOBILE (1024px and below) - Switch to mobile layout sooner
   =============================================== */
@media (max-width: 1024px) {
    /* Universal CSS reset for mobile whitespace issues */
    body {
        padding-top: 0 !important;
        margin: 0 !important;
    }
    
    html, body {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .container {
        padding: 0 var(--spacing-md);
        max-width: 100%;
    }
    
    /* Hide desktop header, show mobile header */
    .header {
        display: none;
    }
    
    .mobile-header {
        display: flex !important;
    }
    
    /* Main section layout */
    .main-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0; /* No gap between "Just text" and main demo mockup */
    }
    
    .main-text {
        order: 1;
    }
    
    .main-demo {
        order: 2;
        justify-self: center;
        text-align: left !important; /* Override center alignment for chat area */
    }
    
    .main-text h1 {
        font-size: clamp(2.5rem, 10vw, 3rem);
        line-height: 1.05;
    }
    
    .main-text p {
        font-size: var(--text-base);
    }
    
    /* Main features styling */
    .main-features {
        gap: var(--spacing-xs);
        align-items: center;
        text-align: center;
    }
    
    .main-feature {
        font-size: 0.9rem;
        justify-content: center;
    }
    
    /* Keep alternatives left-aligned on mobile */
    .alternatives-list {
        text-align: left;
    }
    
    .alternative {
        justify-content: flex-start;
        text-align: left;
    }
    
    /* Button management */
    .main-buttons {
        display: none;
    }
    
    .mobile-buttons {
        display: none !important; /* Hide old mobile buttons */
    }
    
    .mobile-only {
        display: block !important; /* Show mobile-only elements */
    }
    
    .desktop-only {
        display: none !important; /* Hide desktop-only elements */
    }
    
    .phone-button-overlay .primary-button {
        width: 100%;
        padding: 10px 16px;
        font-size: 17px;
        border-radius: var(--radius-md);
        background: #007AFF;
        border: none;
        box-shadow: 0 4px 20px rgba(0, 122, 255, 0.4), 0 2px 8px rgba(0, 0, 0, 0.1);
        color: white;
        font-weight: 500;
        letter-spacing: -0.01em;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }
    
    .phone-button-overlay .primary-button:hover {
        background: #0056CC;
        box-shadow: 0 6px 24px rgba(0, 122, 255, 0.5), 0 3px 12px rgba(0, 0, 0, 0.15);
        transform: none;
    }
    
    .phone-button-overlay .primary-button:active {
        background: #004499;
        box-shadow: 0 2px 12px rgba(0, 122, 255, 0.3), 0 1px 4px rgba(0, 0, 0, 0.1);
        transform: scale(0.98);
    }
    
    .primary-button {
        width: 100%;
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 1rem;
        max-width: 280px;
    }
    
    /* iPhone mockup */
    .phone-mockup-container {
        max-width: 280px;
        margin: 0 auto;
    }
    
    /* Chat overlay fixes */
    .chat-messages-overlay {
        text-align: left !important;
        top: 25%;
        height: 58%;
        padding: 6px;
    }
    
    .chat-messages-overlay .message.received {
        align-items: flex-start !important;
    }
    
    .chat-messages-overlay .message.sent {
        align-items: flex-end !important;
    }
    
    .message-bubble {
        padding: 5px 8px;
        font-size: 0.75rem;
        max-width: 150px;
    }
    
    .chat-header-overlay {
        padding: 8px 12px;
    }
    
    .contact-name {
        font-size: 0.8rem !important;
    }
    
    .contact-avatar-image {
        width: 28px !important;
        height: 28px !important;
    }
    
    /* Personas section */
    .personas-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-xl);
    }
    
    .persona-examples {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        justify-content: center;
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
        padding: 0 var(--spacing-xs); /* Minimal left/right margins for maximum content space */
    }
    
    .persona-card {
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
    }
    
    .persona-chat {
        padding: var(--spacing-sm);
    }
    
    .persona-info h3 {
        font-size: 1.1rem;
    }
    
    .persona-info p {
        font-size: var(--text-base);
    }
    
    .ios-bubble {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    /* Customization section */
    .customization-content {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: var(--spacing-lg);
    }
    
    .customization-text {
        order: 1;
    }
    
    .customization-demo {
        order: 2;
        justify-self: center;
        max-width: 100%;
    }
    
    /* Friend creator */
    .friend-creator {
        flex-direction: column;
        gap: var(--spacing-md);
        max-width: 100%;
        width: 100%;
        padding: var(--spacing-lg) var(--spacing-md) 0 var(--spacing-md); /* Increase inner left/right margins */
        margin-top: var(--spacing-sm); /* Greatly reduced space above Name field */
    }
    
    .creator-form,
    .friend-preview {
        width: 100%;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .friend-name-input,
    .style-description {
        font-size: 16px;
        padding: 14px 16px;
        border-radius: 18px;
    }
    
    .style-description {
        min-height: 90px;
    }
    
    .upload-area {
        height: 100px;
    }
    
    .upload-placeholder {
        border-radius: 18px;
        height: 90px;
    }
    
    .upload-placeholder span {
        font-size: 0.7rem;
    }
    
    .upload-icon {
        font-size: 1.1rem;
    }
    
    .friend-preview-text {
        font-size: 0.85rem;
        text-align: left !important;
    }
    
    .friend-preview-meta {
        text-align: left !important;
    }
    
    /* Features grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .feature-card {
        min-height: auto;
        padding: var(--spacing-md);
        text-align: center;
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
    
    .feature-card h3 {
        font-size: var(--text-lg);
        margin-bottom: var(--spacing-xs);
    }
    
    .feature-card p {
        font-size: var(--text-base);
        line-height: 1.4;
    }
    
    .pro-badge {
        display: none !important;
    }
    
    /* Pricing cards */
    .pricing-cards {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .pricing-card {
        padding: var(--spacing-lg);
        text-align: center;
    }
    
    .pricing-card h3 {
        font-size: var(--text-xl);
        font-family: var(--font-family);
        color: var(--text-primary);
    }
    
    .amount {
        font-size: 2.5rem;
        font-family: var(--font-family);
        color: var(--primary-blue);
        font-weight: 700;
    }
    
    .features-list li {
        padding: 6px 0;
        font-size: var(--text-base);
        font-family: var(--font-family);
        color: var(--text-primary);
        font-weight: 400;
    }
    
    .pricing-button {
        width: 100%;
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--text-base);
    }
    
    /* CTA section */
    .cta {
        text-align: center;
        padding: var(--spacing-2xl) 0;
    }
    
    .cta h2 {
        font-size: clamp(1.875rem, 4vw, 40px);
        margin-bottom: var(--spacing-lg);
        font-family: var(--font-family);
        color: var(--text-primary);
        line-height: 1.2;
        letter-spacing: -0.015em;
    }
    
    .cta-button-large {
        width: 100%;
        max-width: 300px;
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: var(--text-base);
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-xl) 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-lg);
    }
    
    .footer-brand {
        align-items: center;
    }
    
    .footer-brand h3 {
        font-size: var(--text-lg);
        font-family: var(--font-family);
        color: var(--text-primary);
        line-height: 1.2;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--spacing-md);
    }
    
    /* Section spacing */
    section {
        padding: var(--spacing-xl) 0;
    }
    
    h2 {
        font-size: 1.75rem;
        margin-bottom: var(--spacing-md);
        text-align: center;
    }
    
    /* Touch-friendly buttons */
    button,
    .cta-button,
    .primary-button,
    .secondary-button,
    .pricing-button {
        min-height: 44px;
        padding: 12px 20px;
        font-size: var(--text-base);
        border-radius: var(--radius-md);
    }
    
    /* Performance optimizations */
    .message-appear {
        animation-duration: 0.2s;
    }
    
    .typing-dots span {
        animation-duration: 1s;
    }
    
    .chat-header-overlay {
        backdrop-filter: blur(10px) saturate(180%);
    }
}

