/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --apple-black: #1d1d1f;
    --apple-white: #f5f5f7;
    --apple-gray: #86868b;
    --apple-blue: #0071e3;
    --apple-light-gray: #e8e8ed;
    --apple-dark-gray: #424245;
    --apple-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --font-main: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--apple-black);
    background: #fff;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
}

.nav-logo {
    font-size: 24px;
    color: var(--apple-black);
    text-decoration: none;
    font-weight: 300;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    color: var(--apple-black);
    text-decoration: none;
    font-size: 12px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
}

.nav-buy {
    background: var(--apple-blue);
    color: white !important;
    padding: 6px 16px;
    border-radius: 980px;
    opacity: 1 !important;
}

.nav-buy:hover {
    background: #0077ed;
}

.nav-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-menu span {
    width: 18px;
    height: 1px;
    background: var(--apple-black);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px 40px;
    background: linear-gradient(to bottom, #fff 0%, var(--apple-white) 100%);
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin-bottom: 40px;
}

.hero-eyebrow {
    font-size: 14px;
    color: var(--apple-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    font-weight: 600;
}

.hero-title {
    font-size: 80px;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #1d1d1f 0%, #424245 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 28px;
    font-weight: 400;
    color: var(--apple-gray);
    margin-bottom: 20px;
}

.hero-price {
    font-size: 18px;
    color: var(--apple-gray);
    margin-bottom: 30px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-primary {
    background: var(--apple-blue);
    color: white;
    padding: 12px 28px;
    border-radius: 980px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    background: #0077ed;
    transform: scale(1.02);
}

.btn-secondary {
    color: var(--apple-blue);
    padding: 12px 28px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
}

.btn-secondary:hover {
    text-decoration: underline;
}

.btn-large {
    padding: 16px 40px;
    font-size: 20px;
}

/* iPhone Mockup */
.iphone-mockup {
    position: relative;
    width: 280px;
    height: 570px;
}

.iphone-frame {
    width: 100%;
    height: 100%;
    background: var(--apple-black);
    border-radius: 50px;
    padding: 12px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
    position: relative;
}

.iphone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 40px;
    overflow: hidden;
    position: relative;
}

.screen-content {
    padding: 20px;
    color: white;
}

.screen-time {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-top: 40px;
}

.screen-widgets {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 40px;
}

.widget {
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--apple-gray);
    border-bottom: 2px solid var(--apple-gray);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Sections */
.section {
    padding: 100px 20px;
    text-align: center;
}

.section-content {
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 24px;
    color: var(--apple-gray);
    max-width: 700px;
    margin: 0 auto 40px;
}

.section-titanium {
    background: #fafafa;
}

.section-camera {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
}

.section-camera .section-desc {
    color: rgba(255, 255, 255, 0.7);
}

.section-chip {
    background: var(--apple-white);
}

.section-usb {
    background: #fafafa;
}

/* Titanium Colors */
.titanium-colors {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.color-option {
    cursor: pointer;
    text-align: center;
    transition: transform 0.3s;
}

.color-option:hover {
    transform: scale(1.05);
}

.color-option.active .color-circle {
    border: 2px solid var(--apple-blue);
}

.color-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 auto 8px;
    border: 2px solid transparent;
    transition: border 0.3s;
}

.color-option span {
    font-size: 12px;
    color: var(--apple-gray);
}

/* Camera Grid */
.camera-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.camera-feature {
    text-align: center;
}

.camera-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.camera-feature h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.camera-feature p {
    color: rgba(255, 255, 255, 0.7);
}

/* Chip Highlights */
.chip-highlights {
    display: flex;
    gap: 60px;
    justify-content: center;
    margin-top: 60px;
}

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

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: var(--apple-blue);
}

.stat-label {
    font-size: 16px;
    color: var(--apple-gray);
}

/* Page Header */
.page-header {
    padding: 120px 20px 60px;
    text-align: center;
    background: var(--apple-white);
}

.page-header h1 {
    font-size: 64px;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 24px;
    color: var(--apple-gray);
}

/* Feature Sections */
.feature-section {
    padding: 100px 20px;
}

.feature-section:nth-child(even) {
    background: var(--apple-white);
}

.feature-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-reverse .feature-content {
    direction: rtl;
}

.feature-reverse .feature-content > * {
    direction: ltr;
}

.feature-text h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
}

.feature-text p {
    font-size: 18px;
    color: var(--apple-gray);
    margin-bottom: 30px;
    line-height: 1.6;
}

.feature-badge {
    display: inline-block;
    background: var(--apple-blue);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--apple-gray);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--apple-blue);
    font-weight: 700;
}

/* Visual Elements */
.chip-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.chip-body {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    position: relative;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.chip-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 8px;
}

.camera-visual {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 40px;
    background: var(--apple-black);
    border-radius: 30px;
}

.camera-lens {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
    border-radius: 50%;
    border: 3px solid #333;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.display-visual {
    display: flex;
    justify-content: center;
}

.display-screen {
    width: 300px;
    height: 600px;
    background: var(--apple-black);
    border-radius: 40px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.display-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background: var(--apple-black);
    border-radius: 20px;
}

.battery-visual {
    display: flex;
    justify-content: center;
}

.battery-icon {
    width: 200px;
    height: 80px;
    border: 4px solid var(--apple-black);
    border-radius: 12px;
    position: relative;
    padding: 4px;
}

.battery-icon::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 20px;
    background: var(--apple-black);
    border-radius: 0 4px 4px 0;
}

.battery-level {
    height: 100%;
    width: 75%;
    background: linear-gradient(90deg, #43e97b, #38f9d7);
    border-radius: 6px;
}

.ios-visual {
    padding: 40px;
}

.ios-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.ios-widget {
    height: 100px;
    background: var(--apple-light-gray);
    border-radius: 16px;
}

/* Specs */
.specs-overview {
    padding: 60px 20px 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.spec-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.spec-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.spec-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.spec-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.spec-details p {
    font-size: 14px;
    color: var(--apple-gray);
    padding: 6px 0;
    border-bottom: 1px solid var(--apple-light-gray);
}

.spec-details p:last-child {
    border-bottom: none;
}

/* Comparison Table */
.specs-comparison {
    padding: 100px 20px;
    background: var(--apple-white);
}

.specs-comparison h2 {
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 40px;
}

.comparison-table {
    overflow-x: auto;
    max-width: 1000px;
    margin: 0 auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

thead {
    background: var(--apple-black);
    color: white;
}

th, td {
    padding: 16px 20px;
    text-align: left;
    font-size: 14px;
}

th {
    font-weight: 600;
}

tbody tr {
    border-bottom: 1px solid var(--apple-light-gray);
}

tbody tr:last-child {
    border-bottom: none;
}

tbody tr:hover {
    background: var(--apple-white);
}

/* Gallery */
.gallery-filter {
    padding: 40px 20px;
    text-align: center;
    background: var(--apple-white);
}

.filter-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 1px solid var(--apple-light-gray);
    padding: 8px 20px;
    border-radius: 980px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--apple-black);
    color: white;
    border-color: var(--apple-black);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 20px 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, opacity 0.3s;
}

.gallery-item.hidden {
    display: none;
}

.gallery-item:hover {
    transform: translateY(-4px);
}

.gallery-image {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.phone-mockup-small {
    width: 100px;
    height: 200px;
}

.phone-frame-small {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.camera-demo, .night-mode-demo, .lifestyle-icon {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.lens-demo {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.moon-icon {
    font-size: 60px;
}

.lifestyle-icon {
    font-size: 60px;
}

.gallery-item h3 {
    padding: 20px 20px 8px;
    font-size: 18px;
    font-weight: 600;
}

.gallery-item p {
    padding: 0 20px 20px;
    font-size: 14px;
    color: var(--apple-gray);
}

/* Video Section */
.video-section {
    padding: 100px 20px;
    text-align: center;
    background: var(--apple-white);
}

.video-section h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 40px;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
}

.video-placeholder {
    aspect-ratio: 16/9;
    background: var(--apple-black);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: transform 0.3s;
}

.video-placeholder:hover {
    transform: scale(1.02);
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 20px;
}

/* Buy Page */
.buy-section {
    padding: 60px 20px 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.buy-step {
    margin-bottom: 60px;
}

.buy-step h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
}

.model-selector, .color-selector, .storage-selector, .payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.model-card, .color-card, .storage-card, .payment-card {
    background: white;
    border: 2px solid var(--apple-light-gray);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.model-card:hover, .color-card:hover, .storage-card:hover, .payment-card:hover {
    border-color: var(--apple-blue);
    transform: translateY(-2px);
}

.model-card.selected, .color-card.selected, .storage-card.selected, .payment-card.selected {
    border-color: var(--apple-blue);
    background: rgba(0, 113, 227, 0.05);
}

.model-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.model-price, .storage-price, .payment-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--apple-black);
    margin: 8px 0;
}

.model-desc, .storage-desc, .payment-desc {
    font-size: 14px;
    color: var(--apple-gray);
}

.color-sample {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 12px;
    border: 2px solid var(--apple-light-gray);
}

/* Buy Summary */
.buy-summary {
    background: var(--apple-white);
    border-radius: 20px;
    padding: 40px;
    margin-top: 40px;
}

.buy-summary h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
}

.summary-details {
    margin-bottom: 30px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--apple-light-gray);
    font-size: 16px;
}

.summary-total {
    border-bottom: none;
    font-weight: 700;
    font-size: 20px;
    padding-top: 20px;
}

.shipping-info {
    text-align: center;
    font-size: 14px;
    color: var(--apple-gray);
    margin-top: 16px;
}

/* Trade In Banner */
.trade-in-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.trade-in-content h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.trade-in-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.trade-in-content .btn-secondary {
    color: white;
    border: 2px solid white;
    padding: 12px 28px;
    border-radius: 980px;
    text-decoration: none;
    display: inline-block;
}

/* CTA Section */
.cta-section {
    padding: 100px 20px;
    text-align: center;
    background: var(--apple-white);
}

.cta-section h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 20px;
    color: var(--apple-gray);
    margin-bottom: 30px;
}

/* Footer */
.footer {
    background: var(--apple-white);
    padding: 40px 20px 20px;
    border-top: 1px solid var(--apple-light-gray);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

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

.footer-col h4 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: var(--apple-black);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: var(--apple-gray);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--apple-black);
}

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

.footer-bottom p {
    font-size: 12px;
    color: var(--apple-gray);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--apple-gray);
    text-decoration: none;
    font-size: 12px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-menu {
        display: flex;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .section-desc {
        font-size: 18px;
    }
    
    .camera-grid {
        grid-template-columns: 1fr;
    }
    
    .chip-highlights {
        flex-direction: column;
        gap: 30px;
    }
    
    .feature-content {
        grid-template-columns: 1fr;
    }
    
    .feature-reverse .feature-content {
        direction: ltr;
    }
    
    .page-header h1 {
        font-size: 40px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .titanium-colors {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .model-selector, .color-selector, .storage-selector, .payment-options {
        grid-template-columns: 1fr;
    }
}
