/* Apple-style Design System for Veo3 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Apple Color Palette */
:root {
    /* Primary Colors */
    --apple-blue: #007AFF;
    --apple-purple: #5856D6;
    --apple-pink: #FF2D55;
    --apple-orange: #FF9500;
    --apple-yellow: #FFCC00;
    --apple-green: #34C759;
    --apple-teal: #5AC8FA;
    --apple-indigo: #5856D6;
    
    /* Gray Scale */
    --gray-50: #F2F2F7;
    --gray-100: #E5E5EA;
    --gray-200: #D1D1D6;
    --gray-300: #C7C7CC;
    --gray-400: #AEAEB2;
    --gray-500: #8E8E93;
    --gray-600: #636366;
    --gray-700: #48484A;
    --gray-800: #3A3A3C;
    --gray-900: #1C1C1E;
    
    /* Semantic Colors */
    --text-primary: #000000;
    --text-secondary: rgba(0, 0, 0, 0.85);
    --text-tertiary: rgba(0, 0, 0, 0.55);
    --text-quaternary: rgba(0, 0, 0, 0.25);
    
    /* Backgrounds */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F2F2F7;
    --bg-tertiary: rgba(242, 242, 247, 0.8);
    --bg-elevated: #FFFFFF;
    
    /* Effects */
    --blur-background: saturate(180%) blur(20px);
    --shadow-small: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-large: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.12);
    
    /* Transitions */
    --transition-default: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-small: 6px;
    --radius-medium: 12px;
    --radius-large: 18px;
    --radius-xl: 24px;
}

/* Typography System */
@font-face {
    font-family: 'SF Pro Display';
    src: url('https://developer.apple.com/fonts/sf-pro-display/SF-Pro-Display-Regular.otf') format('opentype');
    font-weight: 400;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('https://developer.apple.com/fonts/sf-pro-display/SF-Pro-Display-Medium.otf') format('opentype');
    font-weight: 500;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('https://developer.apple.com/fonts/sf-pro-display/SF-Pro-Display-Semibold.otf') format('opentype');
    font-weight: 600;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings */
.hero-headline {
    font-size: 56px;
    line-height: 1.0714285714;
    font-weight: 600;
    letter-spacing: -0.005em;
}

h1 {
    font-size: 48px;
    line-height: 1.0833333333;
    font-weight: 600;
    letter-spacing: -0.003em;
}

h2 {
    font-size: 40px;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: 0;
}

h3 {
    font-size: 32px;
    line-height: 1.125;
    font-weight: 600;
    letter-spacing: 0.004em;
}

h4 {
    font-size: 24px;
    line-height: 1.16667;
    font-weight: 600;
    letter-spacing: 0.009em;
}

h5 {
    font-size: 21px;
    line-height: 1.19048;
    font-weight: 600;
    letter-spacing: 0.011em;
}

h6 {
    font-size: 19px;
    line-height: 1.21053;
    font-weight: 600;
    letter-spacing: 0.012em;
}

.body-text {
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
}

.caption {
    font-size: 15px;
    line-height: 1.26667;
    font-weight: 400;
    letter-spacing: -0.021em;
}

/* Apple-style Buttons */
.btn-apple {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-size: 17px;
    line-height: 1.17648;
    font-weight: 400;
    letter-spacing: -0.022em;
    border-radius: 980px;
    border: none;
    cursor: pointer;
    transition: var(--transition-default);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-apple-primary {
    background: var(--apple-blue);
    color: white;
}

.btn-apple-primary:hover {
    background: #0056D6;
    transform: scale(1.015);
    box-shadow: var(--shadow-hover);
}

.btn-apple-secondary {
    background: transparent;
    color: var(--apple-blue);
    border: 1px solid var(--apple-blue);
}

.btn-apple-secondary:hover {
    background: var(--apple-blue);
    color: white;
}

.btn-apple-ghost {
    background: transparent;
    color: var(--text-primary);
    padding: 8px 20px;
}

.btn-apple-ghost:hover {
    background: var(--gray-100);
}

/* Navigation Bar - Apple Style */
.apple-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: var(--blur-background);
    -webkit-backdrop-filter: var(--blur-background);
    z-index: 9999;
    border-bottom: 1px solid var(--gray-200);
}

.apple-nav-content {
    max-width: 1024px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
}

.apple-nav-list {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
    height: 100%;
}

.apple-nav-item {
    height: 100%;
    display: flex;
    align-items: center;
}

.apple-nav-link {
    font-size: 14px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: -0.016em;
    color: var(--text-primary);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.apple-nav-link:hover {
    opacity: 1;
}

.apple-nav-link.active {
    opacity: 1;
}

/* Hero Section - Apple Style */
.apple-hero {
    padding-top: 48px;
    text-align: center;
    background: var(--bg-primary);
}

.apple-hero-content {
    padding: 80px 0;
    max-width: 980px;
    margin: 0 auto;
}

.apple-hero-label {
    font-size: 17px;
    line-height: 1.23536;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: var(--apple-orange);
    margin-bottom: 10px;
}

.apple-hero-headline {
    font-size: 80px;
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #333 0%, #111 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.apple-hero-subheadline {
    font-size: 28px;
    line-height: 1.14286;
    font-weight: 400;
    letter-spacing: 0.007em;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.apple-hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Cards - Apple Style */
.apple-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-large);
    padding: 40px;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-default);
    position: relative;
    overflow: hidden;
}

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

.apple-card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--radius-medium);
    font-size: 32px;
}

.apple-card-title {
    font-size: 24px;
    line-height: 1.16667;
    font-weight: 600;
    letter-spacing: 0.009em;
    margin-bottom: 12px;
}

.apple-card-description {
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: var(--text-secondary);
}

/* Grid System */
.apple-grid {
    display: grid;
    gap: 20px;
    margin: 0 auto;
    max-width: 1024px;
    padding: 0 22px;
}

.apple-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.apple-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.apple-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Section Styles */
.apple-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.apple-section-alt {
    background: var(--bg-secondary);
}

.apple-section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
}

.apple-section-title {
    font-size: 48px;
    line-height: 1.0833333333;
    font-weight: 600;
    letter-spacing: -0.003em;
    margin-bottom: 20px;
}

.apple-section-subtitle {
    font-size: 21px;
    line-height: 1.381;
    font-weight: 400;
    letter-spacing: 0.011em;
    color: var(--text-secondary);
}

/* Footer - Apple Style */
.apple-footer {
    background: var(--bg-secondary);
    padding: 40px 0;
    border-top: 1px solid var(--gray-200);
}

.apple-footer-content {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 22px;
}

.apple-footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.apple-footer-column h4 {
    font-size: 14px;
    line-height: 1.42859;
    font-weight: 600;
    letter-spacing: -0.016em;
    margin-bottom: 15px;
}

.apple-footer-links {
    list-style: none;
}

.apple-footer-links li {
    margin-bottom: 10px;
}

.apple-footer-links a {
    font-size: 14px;
    line-height: 1.42859;
    font-weight: 400;
    letter-spacing: -0.016em;
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.apple-footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.apple-footer-copyright {
    font-size: 14px;
    line-height: 1.42859;
    font-weight: 400;
    letter-spacing: -0.016em;
    color: var(--text-tertiary);
}

/* Responsive Design */
@media (max-width: 1068px) {
    .apple-hero-headline {
        font-size: 64px;
    }
    
    .apple-section-title {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .apple-nav-list {
        display: none;
    }
    
    .apple-hero-headline {
        font-size: 48px;
    }
    
    .apple-hero-subheadline {
        font-size: 21px;
    }
    
    .apple-grid-2,
    .apple-grid-3,
    .apple-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .apple-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .apple-card {
        padding: 30px;
    }
    
    .apple-section {
        padding: 60px 0;
    }
}

@media (max-width: 428px) {
    .apple-hero-headline {
        font-size: 32px;
    }
    
    .apple-hero-subheadline {
        font-size: 19px;
    }
    
    .apple-footer-grid {
        grid-template-columns: 1fr;
    }
}

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

.animate-in {
    animation: fadeInUp 0.7s ease-out forwards;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 40px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 40px; }

.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }
.p-5 { padding: 40px; }

/* Special Effects */
.glow {
    box-shadow: 0 0 40px rgba(0, 122, 255, 0.15);
}

.gradient-text {
    background: linear-gradient(180deg, #333 0%, #111 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blur-bg {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: var(--blur-background);
    -webkit-backdrop-filter: var(--blur-background);
}