/* Artifact-style Split Layout with Phone Mockup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #fafafa;
    --bg-secondary: #f0f0f0;
    --text-primary: #1a1a1a;
    --text-secondary: #6e6e6e;
    --border: #e5e5e5;
    --phone-bg: #2d2d2d;
    --accent: #4a90e2;
    
    /* iOS App Colors - Light Mode */
    --app-bg: #FFFFFF;
    --app-card-bg: #FFFFFF;
    --app-primary: #3662E3;
    --app-text-primary: #000000;
    --app-text-secondary: #333333;
    --app-inactive: #848488;
    --app-separator: #F0F1EC;
    --app-tag-bg: #E8EAFE;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100vh;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    height: 100%;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    background: var(--bg-primary);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* Main Layout - Vertical Stacking */
.page-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Content Side - Full Width, Text on Top */
.content-side {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    width: 100%;
    padding: 4rem 2rem;
    margin: 0 auto;
}

/* Phone Side - Below Text */
.phone-side {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: auto;
    margin-top: -1rem;
    padding: 0;
    flex-shrink: 1;
    min-height: 0;
}

/* Sections */
.section {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    overflow: hidden;
}

.hero-section {
    padding: 2rem 1rem;
    justify-content: flex-start;
    padding-top: 8rem;
    min-height: 108vh;
    height: 108vh;
    padding-bottom: 0;
    overflow: hidden;
}

.hero-section .phone-side {
    margin-top: 5rem;
}

.hero-section .phone-container {
    transform: scale(0.9) translateY(70px);
    overflow: visible;
}

.hero-section .phone-frame {
    overflow: visible;
}

.hero-section .phone-screen {
    overflow: hidden;
}

.content-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    padding: 0 1rem;
    flex-shrink: 0;
}

.content-container.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section fade effects */
.section {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.section.active {
    opacity: 1;
}

/* Typography */
.main-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.dynamic-text {
    color: var(--accent);
    display: inline-block;
    position: relative;
    transition: opacity 0.5s ease, transform 0.5s ease;
    width: 6em;
    text-align: center;
    vertical-align: bottom;
}

.dynamic-text.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

.dynamic-text.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.main-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.5;
}

.mobile-break {
    display: inline;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Buttons */
.download-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 0rem;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
}

.btn-appstore, .btn-playstore {
    border-color: var(--text-primary);
}

.btn:active {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    transform: scale(0.98);
}

.btn {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn:hover {
    background: #333;
    transform: translateY(-2px);
}

/* Category Tags */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.tag, .tag-more {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.tag:hover {
    background: var(--border);
    color: var(--text-primary);
}

/* Phone Mockup - Realistic iPhone Style */
.phone-container {
    position: relative;
    width: 340px;
    height: 690px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    opacity: 1;
    transform: scale(0.75);
    transform-origin: center center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.phone-container.animate {
    animation: phoneShift 0.5s ease;
}

@keyframes phoneShift {
    0% {
        transform: scale(0.75) translateX(0) translateY(0) rotate(0deg);
    }
    50% {
        transform: scale(0.75) translateX(0) translateY(-15px) rotate(-2deg);
    }
    100% {
        transform: scale(0.75) translateX(0) translateY(0) rotate(0deg);
    }
}

/* Hero section specific animation */
.hero-section .phone-container.animate {
    animation: phoneShiftHero 0.5s ease;
}

@keyframes phoneShiftHero {
    0% {
        transform: scale(0.9) translateX(0) translateY(70px) rotate(0deg);
    }
    50% {
        transform: scale(0.9) translateX(0) translateY(55px) rotate(-2deg);
    }
    100% {
        transform: scale(0.9) translateX(0) translateY(70px) rotate(0deg);
    }
}

.phone-frame {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #3a3a3a 0%, #1a1a1a 100%);
    border-radius: 48px;
    padding: 8px;
    position: relative;
    box-shadow: 
        inset 0 0 0 2px rgba(255, 255, 255, 0.1),
        inset 0 0 0 3px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 0, 0, 0.5);
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 48px;
    background: linear-gradient(165deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 40%, 
        transparent 60%, 
        rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

.phone-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 32px;
    background: #000000;
    border-radius: 0 0 20px 20px;
    z-index: 10;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.5);
}

.phone-notch::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: #1a1a1a;
    border-radius: 3px;
}

.phone-notch::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #1a3a5a 0%, #0a1a2a 100%);
    border-radius: 50%;
    box-shadow: inset 0 1px 2px rgba(100, 150, 200, 0.3);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--app-bg);
    border-radius: 42px;
    overflow: hidden;
    position: relative;
    box-shadow: 
        inset 0 0 0 1px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Second section phone gradient */
.feature-section[data-screen="personalized"] .phone-screen {
    background: linear-gradient(180deg, #D8DEE9 0%, #E5E9F0 8%, #FFFFFF 20%);
}

/* Third section phone gradient */
.feature-section[data-screen="voice"] .phone-screen {
    background: linear-gradient(180deg, #D8DEE9 0%, #E5E9F0 8%, #FFFFFF 20%);
}

/* Screen Content */
.screen-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    padding: 2.5rem 0 3.5rem 0;
    display: flex;
    flex-direction: column;
}

.screen-content.active {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* App Header */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem 0.75rem 1rem;
    flex-shrink: 0;
}

.app-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--app-text-primary);
}

.app-header .search-icon {
    font-family: 'Material Icons';
    font-size: 1.75rem;
    color: var(--app-text-primary);
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
}

.live-badge {
    font-size: 0.75rem;
    color: #ff0000;
}

/* Category Chips */
.chips-container {
    display: flex;
    gap: 0.5rem;
    padding: 0 1rem 1rem 1rem;
    overflow-x: auto;
    scrollbar-width: none;
    flex-shrink: 0;
}

.chips-container::-webkit-scrollbar {
    display: none;
}

.chip {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    border: 2px solid var(--app-separator);
    background: var(--app-card-bg);
    color: var(--app-text-primary);
}

.chip.selected {
    background: var(--app-primary);
    color: #FFFFFF;
    border-color: var(--app-primary);
}

/* Story List */
.story-list {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex: 1;
    padding: 0 1rem;
}

.story-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 2px solid var(--app-separator);
}

.story-card.featured {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 0 1.25rem 0;
}

.story-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.story-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.story-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.story-category {
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    background: var(--app-tag-bg);
    color: #3662E3;
    font-size: 0.75rem;
    font-weight: 600;
}

.story-time {
    font-size: 0.85rem;
    color: var(--app-inactive);
}

.bookmark-icon {
    font-family: 'Material Icons';
    font-size: 1.75rem;
    color: var(--app-inactive);
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
}

.story-title {
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--app-text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--app-card-bg);
}

.story-image-featured {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--app-card-bg);
}

/* Tab Bar */
.app-tab-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0 0.75rem 0;
    background: var(--app-bg);
    border-top: 1px solid var(--app-separator);
}

.tab-icon {
    font-size: 1.5rem;
    color: var(--app-inactive);
    transition: color 0.2s;
}

.tab-icon.active {
    color: var(--app-primary);
}

/* Reporter Screen */
.reporter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem 0.75rem 1rem;
    flex-shrink: 0;
}

.reporter-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--app-text-primary);
}

.back-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.back-btn .material-icons {
    font-size: 1.25rem;
    color: var(--app-text-primary);
}

.reporter-icons {
    display: flex;
    gap: 0.5rem;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: background 0.2s ease;
}

.icon-btn.bookmarked {
    background: var(--app-text-primary);
}

.icon-btn.bookmarked .material-icons {
    color: white;
}

.icon-btn .material-icons,
.reporter-icons .material-icons {
    font-size: 1.25rem;
    color: var(--app-text-primary);
    transition: color 0.2s ease;
}

/* Story Detail */
.story-detail {
    padding: 0 1rem;
    overflow-y: scroll;
    flex: 1;
    padding-bottom: 10rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.story-detail::-webkit-scrollbar {
    display: none;
}

.story-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: #FFEBEE;
    color: #D32F2F;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.story-badge.badge-technology {
    background: #E3F2FD;
    color: #1976D2;
}

.story-detail-date {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--app-text-secondary);
    margin-bottom: 0.75rem;
}

.story-detail-title {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--app-text-primary);
    margin-bottom: 1rem;
}

.story-detail-image {
    width: 100%;
    height: 180px;
    border-radius: 16px;
    object-fit: cover;
    margin-bottom: 0rem;
}

.story-summary {
    margin-top: 0.5rem;
    padding: 0 0 10rem 0;
}

.story-summary p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--app-text-secondary);
    margin: 0;
}

.story-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.25rem;
    margin-bottom: 1rem;
}

.story-actions .action-btn:nth-child(4) {
    margin-left: auto;
}

.action-btn {
    background: rgba(54, 98, 227, 0.08);
    border: 1px solid rgba(54, 98, 227, 0.12);
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    width: 42px;
    height: 42px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: rgba(54, 98, 227, 0.12);
    border-color: rgba(54, 98, 227, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(54, 98, 227, 0.15);
}

.action-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(54, 98, 227, 0.1);
}

.action-btn svg {
    width: 20px;
    height: 20px;
    color: var(--app-primary);
    stroke-width: 2;
}

.action-btn .material-icons {
    font-size: 24px;
    color: var(--app-primary);
    transform: scaleX(-1);
    font-weight: 700;
}

/* Audio Player Bottom */
.audio-player-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--app-bg);
    border-top: 1px solid #E0E0E0;
    padding: 0.75rem 1rem;
    padding-bottom: 4.5rem;
}

/* Dialogue section blurred background for personalized screen */
.feature-section[data-screen="personalized"] .audio-player-bottom {
    bottom: 0.5rem;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 0.5px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.75rem;
}

/* Audio player blurred background for voice screen */
.feature-section[data-screen="voice"] .audio-player-bottom {
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 0.5px solid rgba(255, 255, 255, 0.3);
}

/* Drag Handle */
.drag-handle-container {
    display: flex;
    justify-content: center;
    padding: 0 0 0.25rem 0;
    cursor: grab;
}

.drag-handle-container:active {
    cursor: grabbing;
}

.drag-handle-bar {
    width: 2.5rem;
    height: 0.25rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.125rem;
    transition: background 0.2s ease;
}

.drag-handle-container:hover .drag-handle-bar {
    background: rgba(0, 0, 0, 0.35);
}

/* Dialogue Container */
.dialogue-container {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-top: 0.5rem;
}

.dialogue-line {
    padding: 0.6rem 0.85rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    line-height: 1.4;
    max-width: 85%;
}

.dialogue-line.user {
    align-self: flex-end;
    background: var(--app-primary);
    color: white;
    border-bottom-right-radius: 0.25rem;
}

.dialogue-line.assistant {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.9);
    color: var(--app-text-primary);
    border-bottom-left-radius: 0.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.audio-player-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.audio-player-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--app-text-primary);
    line-height: 1.3;
    flex: 1;
    padding-right: 0.5rem;
}

.audio-close-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.audio-close-btn .material-icons {
    font-size: 1.2rem;
    color: var(--app-text-primary);
}

.audio-player-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.audio-progress-full {
    height: 4px;
    background: #D8D8D8;
    border-radius: 2px;
    position: relative;
}

.audio-progress-filled {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 12.5%;
    background: var(--app-text-primary);
    border-radius: 2px;
}

.audio-progress-handle {
    position: absolute;
    left: 12.5%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--app-text-primary);
    border-radius: 50%;
}

.audio-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.audio-play-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.audio-play-btn .material-icons {
    font-size: 1.75rem;
    color: var(--app-text-primary);
}

.audio-time {
    font-size: 0.7rem;
    color: var(--app-text-secondary);
}

/* Chat Input */
.chat-input-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem 1rem 0.75rem 1rem;
    background: transparent;
    z-index: 10;
}

.chat-input-box {
    display: flex;
    align-items: center;
    background: var(--app-bg);
    border: 1px solid #E0E0E0;
    border-radius: 25px;
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
}

.chat-input-box input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--app-text-primary);
    font-size: 0.85rem;
    outline: none;
}

.chat-input-box input::placeholder {
    color: #999;
}

.send-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-btn .material-icons {
    color: var(--app-primary);
    font-size: 1.5rem;
}

.two-button-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1rem;
}

.voice-action-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: background 0.2s ease;
}

.voice-action-btn:hover {
    background: rgba(255, 255, 255, 1);
}

.voice-action-btn .material-icons {
    color: var(--app-text-primary);
    font-size: 1.5rem;
}

.voice-action-btn.mic-off {
    background: #333;
}

.voice-action-btn.mic-off .material-icons {
    color: #FFFFFF;
}

/* Siri-like Orb Animation */
.siri-orb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 48px;
    padding: 0 10px;
}

.orb-bar {
    width: 3px;
    background: linear-gradient(180deg, #4A90E2 0%, #357ABD 100%);
    border-radius: 10px;
    animation: orbPulse 1.2s ease-in-out infinite;
    transform-origin: center;
}

.orb-bar:nth-child(1) {
    height: 12px;
    animation-delay: 0s;
}

.orb-bar:nth-child(2) {
    height: 20px;
    animation-delay: 0.1s;
}

.orb-bar:nth-child(3) {
    height: 28px;
    animation-delay: 0.2s;
}

.orb-bar:nth-child(4) {
    height: 20px;
    animation-delay: 0.3s;
}

.orb-bar:nth-child(5) {
    height: 12px;
    animation-delay: 0.4s;
}

@keyframes orbPulse {
    0%, 100% {
        transform: scaleY(0.5);
        opacity: 0.6;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.siri-orb.listening .orb-bar {
    animation: orbListening 0.6s ease-in-out infinite;
}

@keyframes orbListening {
    0%, 100% {
        transform: scaleY(0.3);
    }
    50% {
        transform: scaleY(1.2);
    }
}

.siri-orb.speaking .orb-bar {
    animation: orbSpeaking 0.4s ease-in-out infinite;
}

@keyframes orbSpeaking {
    0%, 100% {
        transform: scaleY(0.6);
    }
    25% {
        transform: scaleY(1.1);
    }
    75% {
        transform: scaleY(0.8);
    }
}

/* Footer */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    position: relative;
    z-index: 10;
    margin-top: 2rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

/* Responsive Design */
@media (min-width: 1400px) {
    .phone-container {
        transform: scale(0.85);
    }
    
    .hero-section .phone-container {
        transform: scale(1.0) translateY(70px);
    }
    
    @keyframes phoneShift {
        0% {
            transform: scale(0.85) translateX(0) translateY(0) rotate(0deg);
        }
        50% {
            transform: scale(0.85) translateX(0) translateY(-15px) rotate(-2deg);
        }
        100% {
            transform: scale(0.85) translateX(0) translateY(0) rotate(0deg);
        }
    }
    
    @keyframes phoneShiftHero {
        0% {
            transform: scale(1.0) translateX(0) translateY(70px) rotate(0deg);
        }
        50% {
            transform: scale(1.0) translateX(0) translateY(55px) rotate(-2deg);
        }
        100% {
            transform: scale(1.0) translateX(0) translateY(70px) rotate(0deg);
        }
    }
    
    .main-title {
        font-size: 4rem;
    }
    
    .main-subtitle {
        font-size: 1.4rem;
    }
}

@media (max-width: 1400px) {
    .phone-container {
        transform: scale(0.75);
    }
}

@media (max-width: 1024px) {
    .phone-side {
        margin-top: 1rem;
    }
    
    .hero-section .phone-side {
        margin-top: 3rem;
    }
    
    .phone-container {
        transform: scale(0.65);
    }
    
    .hero-section .phone-container {
        transform: scale(0.8) translateY(50px);
    }
    
    @keyframes phoneShift {
        0% {
            transform: scale(0.65) translateX(0) translateY(0) rotate(0deg);
        }
        50% {
            transform: scale(0.65) translateX(0) translateY(-15px) rotate(-2deg);
        }
        100% {
            transform: scale(0.65) translateX(0) translateY(0) rotate(0deg);
        }
    }
    
    @keyframes phoneShiftHero {
        0% {
            transform: scale(0.8) translateX(0) translateY(50px) rotate(0deg);
        }
        50% {
            transform: scale(0.8) translateX(0) translateY(35px) rotate(-2deg);
        }
        100% {
            transform: scale(0.8) translateX(0) translateY(50px) rotate(0deg);
        }
    }

    .section {
        padding: 2rem 1rem;
    }

    .main-title {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    html {
        scroll-snap-type: none;
        height: auto;
    }

    body {
        height: auto;
    }

    .navbar {
        padding: 0.75rem 1rem;
        background: rgba(250, 250, 250, 0.95);
        backdrop-filter: blur(10px);
    }

    .nav-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }
    
    .logo-image {
        height: 32px;
    }
    
    .nav-links {
        gap: 0.75rem;
        justify-content: flex-end;
        width: auto;
        padding-top: 0;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
    
    .section {
        height: auto;
        min-height: auto;
        padding: 4rem 1.5rem;
        overflow: visible;
    }
    
    .hero-section {
        padding-top: 6rem;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .main-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .main-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .mobile-break {
        display: block;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-text {
        font-size: 1.1rem;
    }

    .download-buttons {
        flex-direction: row;
        gap: 0.75rem;
        margin-bottom: 0;
        padding: 0;
        justify-content: center;
    }

    .btn {
        width: auto;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .phone-side {
        margin-top: 0;
        transform: none;
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        overflow: visible;
    }

    .phone-container {
        transform: scale(0.65);
        margin: -4rem 0 -10rem 0;
    }
    
    .hero-section .phone-side {
        margin-top: 0;
    }
    
    .hero-section .phone-container {
        transform: scale(0.65);
        margin-top: -4rem;
        margin-bottom: -6rem;
    }
    
    @keyframes phoneShift {
        0% {
            transform: scale(0.65) translateX(0) translateY(0) rotate(0deg);
        }
        50% {
            transform: scale(0.65) translateX(0) translateY(-10px) rotate(-1deg);
        }
        100% {
            transform: scale(0.65) translateX(0) translateY(0) rotate(0deg);
        }
    }
    
    @keyframes phoneShiftHero {
        0% {
            transform: scale(0.65) translateX(0) translateY(0) rotate(0deg);
        }
        50% {
            transform: scale(0.65) translateX(0) translateY(15px) rotate(-1deg);
        }
        100% {
            transform: scale(0.65) translateX(0) translateY(0) rotate(0deg);
        }
    }

    .footer {
        height: auto;
        min-height: auto;
        padding: 0 1rem 3rem 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
    }
}
