:root { /* Apple-inspired timing */ --duration-instant: 120ms; --duration-fast: 250ms; --duration-normal: 350ms; --duration-slow: 500ms; /* Premium easing curves */ --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1); --ease-out: cubic-bezier(0, 0, 0.2, 1); --ease-spring: cubic-bezier(0.34, 1.35, 0.64, 1); /* Light mode palette */ --surface: #ffffff; --surface-elevated: #ffffff; --surface-2: #f5f5f7; --surface-3: #e8e8ed; --text: #1d1d1f; --text-secondary: #6e6e73; --text-tertiary: #86868b; --border: rgba(0, 0, 0, 0.06); --border-elevated: rgba(0, 0, 0, 0.04); --separator: rgba(0, 0, 0, 0.1); /* Premium shadows */ --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04); --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04); --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.06); --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08); --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(0, 0, 0, 0.1); /* Blur effects */ --blur-sm: blur(8px) saturate(180%); --blur-md: blur(12px) saturate(180%); --blur-lg: blur(20px) saturate(200%); } @media (prefers-color-scheme: dark) { :root { --surface: #000000; --surface-elevated: #1d1d1f; --surface-2: #161617; --surface-3: #2c2c2e; --text: #f5f5f7; --text-secondary: #98989d; --text-tertiary: #6e6e73; --border: rgba(255, 255, 255, 0.08); --border-elevated: rgba(255, 255, 255, 0.12); --separator: rgba(255, 255, 255, 0.15); --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3); --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4), 0 1px 4px rgba(0, 0, 0, 0.3); --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.4); --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6), 0 4px 16px rgba(0, 0, 0, 0.5); --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.7), 0 8px 24px rgba(0, 0, 0, 0.6); } } /* Base wrapper with premium finish */ .ios-app-wrapper { width: 100%; position: relative; background: var(--surface); min-height: 100vh; } /* Apple-style scrollbar */ .ios-app-wrapper::-webkit-scrollbar { width: 10px; } .ios-app-wrapper::-webkit-scrollbar-track { background: transparent; } .ios-app-wrapper::-webkit-scrollbar-thumb { background: var(--text-tertiary); border-radius: 5px; border: 2px solid var(--surface); transition: background var(--duration-fast) var(--ease-smooth); } .ios-app-wrapper::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); } /* Premium banner with depth */ .ios-app-banner { padding: 5rem 0 4rem; position: relative; overflow: hidden; isolation: isolate; } .ios-app-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.08) 100%), radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, 0.1) 0%, transparent 50%); z-index: -1; } .ios-app-banner::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100% ); } @media (prefers-color-scheme: dark) { .ios-app-banner::before { background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%), radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, 0.05) 0%, transparent 50%); } } /* Refined back link */ .back-link { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 2.5rem; color: currentColor; opacity: 0.85; font-weight: 500; font-size: 0.875rem; padding: 0.5rem 1rem 0.5rem 0.875rem; border-radius: 10px; background: rgba(255, 255, 255, 0.08); backdrop-filter: var(--blur-sm); -webkit-backdrop-filter: var(--blur-sm); border: 0.5px solid rgba(255, 255, 255, 0.12); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1); transition: all var(--duration-fast) var(--ease-smooth); position: absolute; top: 8px; left: 8px; } [dir="rtl"] .back-link { left: auto; right: 8px; } .back-link:hover { background: rgba(255, 255, 255, 0.12); opacity: 1; transform: translateX(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15); } .back-link svg { transition: transform var(--duration-fast) var(--ease-smooth); } .back-link:hover svg { transform: translateX(-2px); } [dir="rtl"] .back-link { padding: 0.5rem 0.875rem 0.5rem 1rem; } [dir="rtl"] .back-link:hover { transform: translateX(2px); } [dir="rtl"] .back-link:hover svg { transform: translateX(2px); } @media (prefers-color-scheme: dark) { .back-link { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.08); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05); } .back-link:hover { background: rgba(255, 255, 255, 0.1); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08); } } /* Apple-style header layout */ .ios-app-header { display: flex; align-items: center; gap: 3rem; max-width: 980px; margin: 0 auto; } .ios-header-container { display: flex; justify-content: center; padding: var(--sp-8) 2rem 0; } /* Premium app icon with material finish */ .ios-app-icon { width: 140px; height: 140px; border-radius: 32px; overflow: hidden; position: relative; box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 0.5px rgba(255, 255, 255, 0.1), inset 0 0 0 0.5px rgba(255, 255, 255, 0.05); transition: all var(--duration-normal) var(--ease-out); flex-shrink: 0; } .ios-app-icon::before { content: ''; position: absolute; inset: 0; background: linear-gradient( 135deg, rgba(255, 255, 255, 0.25) 0%, transparent 50%, rgba(0, 0, 0, 0.1) 100% ); opacity: 0.6; transition: opacity var(--duration-normal) var(--ease-smooth); z-index: 1; pointer-events: none; } .ios-app-icon:hover { transform: translateY(-3px) scale(1.015); box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25), 0 6px 16px rgba(0, 0, 0, 0.18), 0 0 0 0.5px rgba(255, 255, 255, 0.15), inset 0 0 0 0.5px rgba(255, 255, 255, 0.08); } .ios-app-icon:hover::before { opacity: 0.8; } .ios-app-icon img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-slow) var(--ease-out); } .ios-app-icon:hover img { transform: scale(1.04); } @media (prefers-color-scheme: dark) { .ios-app-icon { box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 0 0.5px rgba(255, 255, 255, 0.08), inset 0 0 0 0.5px rgba(255, 255, 255, 0.03); } .ios-app-icon:hover { box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 6px 16px rgba(0, 0, 0, 0.5), 0 0 0 0.5px rgba(255, 255, 255, 0.12), inset 0 0 0 0.5px rgba(255, 255, 255, 0.05); } } /* Apple Pro typography */ .ios-app-info { flex: 1; } .ios-app-title { font-size: clamp(2.5rem, 4.5vw, 3.5rem); margin-bottom: 0.75rem; line-height: 1.05; font-weight: 700; letter-spacing: -0.022em; color: currentColor; } .ios-app-description { font-size: clamp(1.0625rem, 2vw, 1.1875rem); margin-bottom: 1.75rem; line-height: 1.5; color: currentColor; opacity: 0.85; max-width: 560px; letter-spacing: -0.003em; text-wrap: pretty; } /* Premium App Store button */ .ios-app-actions { display: flex; align-items: center; gap: 1rem; } .app-store-btn { display: block; width: 150px; height: auto; transition: all var(--duration-normal) var(--ease-out); filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15)); } .app-store-btn:hover { transform: translateY(-2px) scale(1.01); filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.2)); } .app-store-btn img { width: 100%; height: 100%; object-fit: contain; } .app-store-btn:active img { transform: scale(0.98); transition: transform var(--duration-instant) ease; } @media (prefers-color-scheme: dark) { .app-store-btn { filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4)) brightness(0.95); } .app-store-btn:hover { filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5)) brightness(1); } } /* Premium preview section */ .ios-app-preview { padding: 6rem 0; background: var(--surface-2); position: relative; } .ios-app-preview::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent 0%, var(--separator) 50%, transparent 100% ); } .ios-app-preview .container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; display: flex; justify-content: center; align-items: center; } /* Apple official device bezel */ .preview-container { position: relative; width: 100%; max-width: 390px; height: auto; filter: drop-shadow(0 24px 64px rgba(0, 0, 0, 0.25)) drop-shadow(0 8px 24px rgba(0, 0, 0, 0.18)); transition: all var(--duration-slow) var(--ease-out); margin: 0 auto; } .preview-container:hover { transform: translateY(-6px); filter: drop-shadow(0 32px 80px rgba(0, 0, 0, 0.3)) drop-shadow(0 12px 32px rgba(0, 0, 0, 0.22)); } @media (prefers-color-scheme: dark) { .preview-container { filter: drop-shadow(0 24px 64px rgba(0, 0, 0, 0.5)) drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4)); } .preview-container:hover { filter: drop-shadow(0 32px 80px rgba(0, 0, 0, 0.6)) drop-shadow(0 12px 32px rgba(0, 0, 0, 0.5)); } } /* Device bezel image */ .device-bezel { width: 100%; height: auto; display: block; position: relative; z-index: 2; pointer-events: none; user-select: none; } /* Screen content area - adjust percentages based on your bezel (1350x2760px) */ .device-screen { position: absolute; left: 5.3%; right: 5%; bottom: 2.5%; overflow: hidden; border-radius: 2.96%; background: #000; z-index: 1; border-radius: 30px; } /* Video content */ .app-preview-video { width: 100%; height: 100%; object-fit: cover; display: block; } /* Iframe content */ .app-preview-iframe { width: 100%; height: 100%; border: none; display: block; } /* Apple Pro features section */ .ios-app-features { padding: 6rem 0; background: var(--surface); position: relative; } .ios-app-features::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent 0%, var(--separator) 50%, transparent 100% ); } .ios-app-features h2 { text-align: center; margin: 0 0 4rem; font-size: 2.75rem; font-weight: 700; color: var(--text); letter-spacing: -0.022em; } .features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; max-width: 1080px; margin: 0 auto 2rem; } /* Premium feature cards */ .feature-card { background: var(--surface-elevated); border-radius: 18px; padding: 2.5rem; border: 0.5px solid var(--border-elevated); box-shadow: var(--shadow-sm); transition: all var(--duration-normal) var(--ease-out); height: 100%; display: flex; flex-direction: column; position: relative; overflow: hidden; } .feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent 0%, currentColor 50%, transparent 100% ); opacity: 0; transform: scaleX(0); transform-origin: center; transition: all var(--duration-normal) var(--ease-out); } .feature-card::after { content: ''; position: absolute; inset: 0; border-radius: 18px; background: radial-gradient( 600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 40% ); opacity: 0; transition: opacity var(--duration-normal) var(--ease-smooth); } .feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--separator); } .feature-card:hover::before { opacity: 0.15; transform: scaleX(1); } .feature-card:hover::after { opacity: 1; } .feature-icon { font-size: 2.75rem; margin-bottom: 1.25rem; display: inline-block; line-height: 1; transition: transform var(--duration-normal) var(--ease-spring); } .feature-card:hover .feature-icon { transform: scale(1.08) rotate(3deg); } .feature-title { font-size: 1.5rem; margin-bottom: 0.875rem; font-weight: 600; color: var(--text); line-height: 1.25; letter-spacing: -0.015em; } .feature-description { color: var(--text-secondary); flex: 1; line-height: 1.55; font-size: 1rem; letter-spacing: -0.003em; } /* Apple-style CTA section */ .ios-app-cta-section { padding: 6rem 0; text-align: center; position: relative; isolation: isolate; } .ios-app-cta-section::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.15) 100%), radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, 0.08) 0%, transparent 60%); z-index: -1; } .ios-app-cta-section::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100% ); } @media (prefers-color-scheme: dark) { .ios-app-cta-section::before { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%), radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, 0.04) 0%, transparent 60%); } } .ios-app-cta-section h2 { font-size: 2.75rem; margin-bottom: 1rem; font-weight: 700; letter-spacing: -0.022em; color: currentColor; } .ios-app-cta-section p { font-size: 1.1875rem; color: currentColor; opacity: 0.85; margin-bottom: 2.5rem; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.5; letter-spacing: -0.003em; } /* Premium glass button */ .ios-app-cta-section .btn-primary { background: rgba(255, 255, 255, 0.12); backdrop-filter: var(--blur-md); -webkit-backdrop-filter: var(--blur-md); color: currentColor; padding: 1rem 2.75rem; border-radius: 14px; font-weight: 600; font-size: 1.0625rem; display: inline-flex; align-items: center; gap: 0.5rem; border: 0.5px solid rgba(255, 255, 255, 0.18); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1); transition: all var(--duration-normal) var(--ease-out); letter-spacing: -0.01em; } .ios-app-cta-section .btn-primary:hover { background: rgba(255, 255, 255, 0.18); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.25); } @media (prefers-color-scheme: dark) { .ios-app-cta-section .btn-primary { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.12); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05); } .ios-app-cta-section .btn-primary:hover { background: rgba(255, 255, 255, 0.15); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); } } /* Index page */ .ios-apps-container { padding: calc(var(--header-height, 80px) + 3rem) 0 5rem; background: var(--surface-2); } .ios-apps-title { font-size: clamp(2.5rem, 5vw, 3.5rem); text-align: center; margin-bottom: 1rem; font-weight: 700; color: var(--text); letter-spacing: -0.022em; } .ios-apps-description { text-align: center; max-width: 680px; margin: 0 auto 4rem; font-size: 1.1875rem; color: var(--text-secondary); line-height: 1.5; letter-spacing: -0.003em; } .ios-apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; max-width: 1080px; margin: 0 auto; } /* Premium app cards */ .ios-app-card { background: var(--surface-elevated); border-radius: 18px; border: 0.5px solid var(--border-elevated); box-shadow: var(--shadow-sm); transition: all var(--duration-normal) var(--ease-out); display: flex; flex-direction: column; overflow: hidden; } .ios-app-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--separator); } .ios-app-card-content { padding: 2.5rem; display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1; } .ios-app-card-icon { width: 88px; height: 88px; border-radius: 20px; overflow: hidden; margin-bottom: 1.75rem; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 0 0 0.5px rgba(0, 0, 0, 0.04); transition: all var(--duration-normal) var(--ease-out); } .ios-app-card:hover .ios-app-card-icon { transform: scale(1.06); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.06); } .ios-app-card-icon img { width: 100%; height: 100%; object-fit: cover; } .ios-app-card-title { font-size: 1.5rem; margin-bottom: 0.875rem; font-weight: 600; color: var(--text); letter-spacing: -0.015em; } .ios-app-card-description { color: var(--text-secondary); margin-bottom: 1.75rem; flex: 1; line-height: 1.55; font-size: 0.9375rem; letter-spacing: -0.003em; } .ios-app-card-actions { display: flex; gap: 0.75rem; width: 100%; justify-content: center; } .ios-app-card-link, .ios-app-card-store { padding: 0.75rem 1.5rem; border-radius: 10px; transition: all var(--duration-fast) var(--ease-smooth); font-weight: 500; font-size: 0.9375rem; letter-spacing: -0.01em; } .ios-app-card-link { background: var(--surface-2); color: var(--text); border: 0.5px solid var(--border); } .ios-app-card-link:hover { background: var(--text); color: var(--surface); border-color: var(--text); transform: translateY(-1px); box-shadow: var(--shadow-xs); } .ios-app-card-store { background: var(--text); color: var(--surface); border: 0.5px solid transparent; } .ios-app-card-store:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); } .ios-apps-footer { margin-top: 5rem; display: flex; justify-content: center; } /* Refined focus states */ .back-link:focus-visible, .app-store-btn:focus-visible, .ios-app-cta-section .btn-primary:focus-visible, .ios-app-card-link:focus-visible, .ios-app-card-store:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; opacity: 1; } /* Responsive refinements */ @media (max-width: 768px) { .ios-app-header { flex-direction: column-reverse; text-align: center; gap: 1rem; } .app-store-btn { margin: 0 auto; } .ios-app-description { max-width: 100%; } .features-grid, .ios-apps-grid { grid-template-columns: 1fr; gap: 1.5rem; } } @media (max-width: 640px) { .ios-app-banner { padding: 3.5rem 0 2.5rem; } .ios-app-icon { width: 110px; height: 110px; border-radius: 25px; } .ios-app-features, .ios-app-cta-section { padding: 4rem 0; } } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } }
