/* Hero Section Styles */
.hero {
    padding: 8rem 2rem 8rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center top, rgba(91, 91, 255, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.01) 2px,
        rgba(0, 0, 0, 0.01) 4px
    );
    animation: subtlePattern 20s linear infinite;
    pointer-events: none;
}

.hero-container {
    max-width: 1450px;
    margin: 1rem auto 0;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    text-align: left;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 500px;
    padding: 0 2rem;
    overflow-x: visible;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 2rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(200%) blur(20px);
    -webkit-backdrop-filter: saturate(200%) blur(20px);
    border-radius: 32px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 2.5rem;
    transition: all 0.4s var(--ease-premium);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.4);
    will-change: transform;
    letter-spacing: -0.01em;
}

.hero-tag:hover {
    transform: translateY(-3px) scale(1.02);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hero-tag span {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

.hero-tag-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.hero h1 {
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 2.5rem;
    position: relative;
}

.hero-gradient {
    background: linear-gradient(135deg, var(--black) 0%, var(--gray-700) 60%, var(--gray-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-feature-settings: "ss01" 1, "ss02" 1;
}

.hero-subtitle {
    font-size: 1.375rem;
    color: var(--gray-600);
    max-width: 650px;
    margin: 0 auto 3.5rem;
    line-height: 1.45;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* Waitlist Counter */
.waitlist-counter {
    margin-top: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.waitlist-number {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--black);
    font-family: var(--font-mono);
    letter-spacing: -0.02em;
}

.waitlist-text {
    color: var(--gray-600);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* Floating Mockup Styles */
.mockup-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 500px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    contain: layout style;
}

/* Modern iPhone 15+ Mockup */
.iphone-mockup-modern {
    position: relative;
    width: 350px;
    height: 730px;
    margin: 0 auto;
    z-index: 2;
    animation: phoneSlideIn 0.8s ease-out;
}

.iphone-frame-modern {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2D2D30 0%, #1C1C1E 50%, #0F0F12 100%);
    border-radius: 54px;
    padding: 10px;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.12),
        0 0 0 3px rgba(0, 0, 0, 0.3),
        0 32px 80px rgba(0, 0, 0, 0.35),
        0 64px 120px rgba(0, 0, 0, 0.25),
        inset 0 2px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-premium);
}

/* Dynamic Island */
.dynamic-island {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 126px;
    height: 37px;
    background: #000000;
    border-radius: 19px;
    z-index: 15;
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: dynamicIslandGlow 3s ease-in-out infinite;
}

/* Side Buttons */
.side-buttons {
    position: absolute;
}

.volume-up {
    position: absolute;
    left: -4px;
    top: 120px;
    width: 4px;
    height: 32px;
    background: linear-gradient(90deg, #333 0%, #222 100%);
    border-radius: 0 2px 2px 0;
}

.volume-down {
    position: absolute;
    left: -4px;
    top: 160px;
    width: 4px;
    height: 32px;
    background: linear-gradient(90deg, #333 0%, #222 100%);
    border-radius: 0 2px 2px 0;
}

.power-button {
    position: absolute;
    right: -4px;
    top: 180px;
    width: 4px;
    height: 60px;
    background: linear-gradient(270deg, #333 0%, #222 100%);
    border-radius: 2px 0 0 2px;
}

/* Modern iOS Status Bar */
.ios-status-bar-modern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 30px 12px;
    color: white;
    z-index: 10;
    background: transparent;
}

.status-time {
    font-size: 17px;
    font-weight: 600;
    width: 60px;
    letter-spacing: -0.5px;
}

.status-icons {
    display: flex;
    gap: 6px;
    align-items: center;
    width: 80px;
    justify-content: flex-end;
}

.status-icons svg {
    height: 13px;
    width: auto;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* App Screen */
.iphone-screen-modern {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 42px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.app-header-modern {
    padding: 80px 24px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
    border-bottom: 1px solid #e8e8e8;
}

.app-logo {
    display: flex;
    align-items: center;
    height: 32px;
}

.app-logo-image {
    height: 28px;
    width: auto;
    object-fit: contain;
    filter: none;
}

.app-status {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #10b981;
    font-size: 13px;
    font-weight: 500;
}

.listening-indicator {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

/* Voice Conversation */
.voice-conversation {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    background: #fafafa;
}

.message {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

.ai-message {
    align-items: flex-start;
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.message-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.4;
}

.user-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    align-self: flex-end;
}

.ai-bubble {
    background: #f3f4f6;
    color: var(--gray-800);
}

.message-time {
    font-size: 11px;
    color: var(--gray-500);
    padding: 0 8px;
}

.ai-avatar-small {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--black) 0%, var(--gray-600) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 4px;
    padding: 6px;
}

.avatar-favicon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.message-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Voice Indicator Inside Phone */
.voice-indicator {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
}

.voice-waves {
    display: flex;
    gap: 2px;
    align-items: center;
}

.voice-waves.active .wave-bar {
    animation: waveAnimation 1.5s ease-in-out infinite;
}

.wave-bar {
    width: 2px;
    height: 12px;
    background: white;
    border-radius: 1px;
    opacity: 0.8;
}

.wave-bar:nth-child(1) { animation-delay: 0s; }
.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }

/* Processing Animation Inside Phone */
.processing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.processing-dots {
    display: flex;
    gap: 3px;
}

.dot {
    width: 4px;
    height: 4px;
    background: var(--gray-600);
    border-radius: 50%;
    animation: dotPulse 1.4s ease-in-out infinite;
}

/* Voice Input Bar */
.voice-input-bar {
    padding: 16px 20px 32px;
    background: white;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: center;
}

.voice-input-button {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.voice-input-button:hover {
    transform: scale(1.05);
}

.voice-button-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    opacity: 0.3;
    animation: voicePulse 2s ease-in-out infinite;
}

/* Home Indicator */
.home-indicator-modern {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 134px;
    height: 5px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 100px;
}

/* Reposition floating cards for better layout */

/* Floating Results Card */
.floating-results {
    position: absolute;
    top: 15%;
    left: 20px;
    z-index: 3;
    animation: slideInLeft 1.2s ease-out 0.8s forwards;
    opacity: 0;
    transform: translateX(-100%);
    will-change: transform, opacity;
}

.results-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    animation: float 4s ease-in-out infinite;
    animation-delay: 1s;
    will-change: transform;
    width: 220px;
    font-size: 0.875rem;
    transition: all 0.3s var(--ease-premium);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.status-icon {
    font-size: 1.25rem;
}

.status-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
}

.results-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--black);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
    margin-top: 0.25rem;
}

/* Email Card Styles */
.email-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recipient-info {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
}

.recipient-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
}

.recipient-name {
    font-size: 0.85rem;
    color: var(--gray-800);
    font-weight: 600;
}

.email-preview {
    padding: 0.5rem;
    background: var(--gray-50);
    border-radius: 6px;
}

.preview-subject {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.preview-text {
    font-size: 0.75rem;
    color: var(--gray-600);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.email-status {
    display: flex;
    justify-content: flex-end;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    color: #10b981;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Floating Calendar Card */
.floating-calendar {
    position: absolute;
    bottom: 15%;
    right: 20px;
    z-index: 3;
    animation: slideInRight 1.2s ease-out 1.2s forwards;
    opacity: 0;
    transform: translateX(100%);
    will-change: transform, opacity;
}

.calendar-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    animation: float 3.5s ease-in-out infinite;
    animation-delay: 1.5s;
    will-change: transform;
    width: 210px;
    font-size: 0.875rem;
    transition: all 0.3s var(--ease-premium);
}

.calendar-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.calendar-icon {
    font-size: 1.1rem;
}

.calendar-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
}

.calendar-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.meeting-info {
    flex: 1;
}

.meeting-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--black);
    line-height: 1.2;
}

.meeting-time {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
    font-weight: 500;
}

.meeting-location {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.15rem;
}

.meeting-status {
    font-size: 1rem;
}

/* Animations */
@keyframes subtlePattern {
    0% {
        transform: translateX(0) translateY(0);
    }
    100% {
        transform: translateX(4px) translateY(4px);
    }
}

@keyframes phoneSlideIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

@keyframes voicePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.1;
    }
}

@keyframes dynamicIslandGlow {
    0%, 100% {
        box-shadow: 
            0 2px 10px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }
    50% {
        box-shadow: 
            0 2px 15px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.08),
            0 0 20px rgba(0, 0, 0, 0.1);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-120%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(120%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes waveAnimation {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(2);
    }
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    .floating-interaction,
    .floating-results,
    .floating-calendar {
        animation: none;
    }
    
    .voice-bubble,
    .results-card,
    .calendar-card {
        animation: none;
    }
    
    .wave-bar,
    .dot {
        animation: none;
    }
}

/* Mobile Hero */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .waitlist-counter {
        flex-direction: column;
        gap: 0.5rem;
    }

    .mockup-container {
        height: auto;
        min-height: 500px;
        margin-top: 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 1rem;
    }
    
    .iphone-mockup-modern {
        width: 280px;
        height: 580px;
        margin: 0 auto;
    }
    
    /* Mobile: Stack cards below iPhone */
    .floating-results,
    .floating-calendar {
        position: static;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        opacity: 1;
        transform: none;
        animation: none;
    }
    
    .results-card,
    .calendar-card {
        padding: 1rem;
        width: 100%;
        font-size: 0.85rem;
    }
    
    .results-stats {
        gap: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.1rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    /* Mobile Typography Adjustments */
    .email-details {
        gap: 0.5rem;
    }
    
    .preview-subject {
        font-size: 0.75rem;
    }
    
    .preview-text {
        font-size: 0.7rem;
    }
    
    .meeting-title {
        font-size: 0.85rem;
    }
    
    .meeting-time {
        font-size: 0.75rem;
    }
    
    .meeting-location {
        font-size: 0.7rem;
    }
}

/* Tablet Optimization (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .mockup-container {
        max-width: 600px;
        margin: 2rem auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 1.5rem;
        align-items: start;
    }
    
    .iphone-mockup-modern {
        grid-column: 1 / -1;
        grid-row: 1;
        width: 320px;
        height: 660px;
        margin: 0 auto;
    }
    
    .floating-results {
        grid-column: 1;
        grid-row: 2;
    }
    
    .floating-calendar {
        grid-column: 2;
        grid-row: 2;
    }
    
    .floating-results,
    .floating-calendar {
        position: static;
        margin: 0;
        opacity: 1;
        transform: none;
        animation: none;
    }
}


@media (min-width: 368px) and (max-width: 768px) {
    .hero-container {
        display: inline-block !important;
    }
    .card-header{
        display: block !important;
    }
}
