*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background:
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(175, 145, 110, 0.03) 2px, rgba(175, 145, 110, 0.03) 4px),
        repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(175, 145, 110, 0.03) 2px, rgba(175, 145, 110, 0.03) 4px),
        #EEF0F4;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ===== Animations ===== */
@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeSlideRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* ===== Page layout ===== */
.page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* ===== Header ===== */
.header {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    background: #fff;
    border: 1px solid #e1e5f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
    margin: 32px auto 0;
    width: 80%;
    justify-content: space-between;
    animation: fadeSlideDown 0.6s ease-out both;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.header-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0D35A0;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 9999px;
    transition: background 0.2s;
}

.header-btn:hover {
    background: #0a2a80;
}

.header-btn-secondary {
    background: #fff;
    color: #252525;
    border: 1px solid #d1d5db;
}

.header-btn-secondary:hover {
    background: #f5f5f7;
}

.header-logo {
    height: 35px;
    width: auto;
}

/* ===== Main ===== */
.main {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 24px 0;
    overflow: hidden;
    width: 80%;
    margin: 0 auto;
    gap: 48px;
    transition: padding 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
                width 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
                gap 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ===== Back link ===== */
.back-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    margin-bottom: 24px;
    transition: color 0.2s;
    animation: fadeSlideLeft 0.6s ease-out 0.2s both;
}

.back-link:hover {
    color: #0D35A0;
}

/* ===== Hero text ===== */
.hero-text {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-self: flex-start;
		margin-top: 8vh;
}

.hero-content { 
	margin-top: 10vh;
}

.hero-title-top,
.hero-title-bottom {
	font-size: 50px;
	font-weight: 700;
	color: #0D35A0;
	letter-spacing: -1px;
	line-height: 1.15;
	background: #fff;
	padding: 12px 20px;
	width: fit-content;
}

.hero-title-top {
    border-radius: 12px 12px 0 0;
    animation: fadeSlideLeft 0.6s ease-out 0.3s both;
}

.hero-title-bottom {
    border-radius: 0 12px 12px 12px;
    animation: fadeSlideLeft 0.6s ease-out 0.45s both;
}

.accent {
    color: #e6007e;
}

.hero-usps {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 40px;
    animation: fadeSlideLeft 0.6s ease-out 0.9s both;
}

.usp {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 400;
    color: #6b7280;
}

.hero-description {
    font-size: 17px;
    color: #666666;
    margin-top: 20px;
    line-height: 1.6;
    animation: fadeSlideLeft 0.6s ease-out 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    animation: fadeSlideUp 0.6s ease-out 0.75s both;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0D35A0;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: 12px;
    transition: background 0.2s;
    align-self: flex-start;
}

.hero-btn:hover {
    background: #0a2a80;
}

.hero-btn-secondary {
    background: #fff;
    color: #252525;
    border: 1px solid #e1e5f0;
}

.hero-btn-secondary:hover {
    background: #f5f5f7;
}

/* ===== Simulator viewport ===== */
.simulator-viewport {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    gap: 16px;
    animation: scaleIn 0.8s ease-out 0.4s both;
    transition: margin 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================
   iPhone 16 Pro — Space Black
   ========================================================== */

.iphone {
    position: relative;
    width: auto;
    height: calc(100vh - 200px);
    max-height: 852px;
    aspect-ratio: 407 / 852;
    background: #2c2c2e;
    border-radius: 55px;
    box-shadow:
        inset 0 0 0 1.5px #48484a,
        inset 0 1px 0 0 rgba(255,255,255,0.06),
        0 50px 100px -20px rgba(0,0,0,0.35),
        0 30px 60px -30px rgba(0,0,0,0.25);
}

.iphone::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 55px;
    background: linear-gradient(165deg, rgba(255,255,255,0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ===== Hardware buttons ===== */
.iphone-btn-silent {
    position: absolute;
    left: -3.5px;
    top: 150px;
    width: 3.5px;
    height: 28px;
    background: #48484a;
    border-radius: 2px 0 0 2px;
}

.iphone-btn-vol-up,
.iphone-btn-vol-down {
    position: absolute;
    left: -3.5px;
    width: 3.5px;
    height: 50px;
    background: #48484a;
    border-radius: 2px 0 0 2px;
}
.iphone-btn-vol-up  { top: 200px; }
.iphone-btn-vol-down { top: 264px; }

.iphone-btn-power {
    position: absolute;
    right: -3.5px;
    top: 220px;
    width: 3.5px;
    height: 76px;
    background: #48484a;
    border-radius: 0 2px 2px 0;
}

/* ===== Screen ===== */
.iphone-screen {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background: #000;
    border-radius: 47px;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

/* ===== Top safe area (59px) ===== */
.safe-area-top {
    height: 59px;
    background: #0D35A0;
    position: relative;
    flex-shrink: 0;
}

/* ===== Dynamic Island ===== */
.dynamic-island {
    position: absolute;
    top: 11px;
    left: 50%;
    transform: translateX(-50%);
    width: 126px;
    height: 37.5px;
    background: #000;
    border-radius: 20px;
    z-index: 30;
    box-shadow:
        0 0 0 0.5px rgba(0,0,0,0.8),
        0 1px 3px rgba(0,0,0,0.3);
}

.di-camera {
    position: absolute;
    width: 12px;
    height: 12px;
    top: 50%;
    right: 22px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: radial-gradient(circle at 38% 38%, #1e1e3e 0%, #0c0c18 60%, #060610 100%);
    border: 1.5px solid #111;
    box-shadow: inset 0 0.5px 1px rgba(60,60,140,0.25);
}

.di-camera::after {
    content: '';
    position: absolute;
    width: 3.5px;
    height: 3.5px;
    top: 2.5px;
    left: 3px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(140,160,255,0.35), transparent);
}

/* ===== Status bar ===== */
.status-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    pointer-events: none;
}

.sb-time {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    font-feature-settings: 'tnum';
}

.sb-right {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sb-right svg {
    filter: drop-shadow(0 0.5px 0.5px rgba(0,0,0,0.3));
}

/* Battery */
.sb-battery {
    display: flex;
    align-items: center;
    gap: 1px;
}

.sb-battery-body {
    width: 25px;
    height: 12px;
    border: 1.5px solid rgba(255,255,255,0.85);
    border-radius: 3.5px;
    padding: 2px;
}

.sb-battery-fill {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 1px;
}

.sb-battery-cap {
    width: 2px;
    height: 5px;
    background: rgba(255,255,255,0.5);
    border-radius: 0 2px 2px 0;
}

/* ===== App content ===== */
.iphone-content {
    flex: 1;
    overflow: hidden;
}

.iphone-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
}

/* ===== Bottom safe area (34px) ===== */
.safe-area-bottom {
    height: 34px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.home-bar {
    width: 140px;
    height: 5px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 100px;
}

/* ===== Demo toggle button ===== */
.demo-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    background: #2c2c2e;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    animation: fadeSlideUp 0.6s ease-out 0.9s both;
}

.demo-toggle:hover {
    background: #48484a;
    transform: scale(1.03);
}

/* ===== Demo mode ===== */

/*
 * TERUG naar normaal (verkleinen):
 * Fase 1: iPhone krimpt + ruimte komt terug (0–0.7s)
 * Fase 2: Header & hero faden rustig in (0.5s delay, 0.5s duur)
 */
.iphone {
    transition: height 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
                max-height 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.header {
    max-height: 80px;
    overflow: hidden;
    transition: opacity 0.5s ease 0.5s,
                transform 0.5s ease 0.5s,
                max-height 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
                margin 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
                padding 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
                border-color 0.5s ease 0.5s;
}

.hero-text {
    overflow: hidden;
    transition: opacity 0.5s ease 0.5s,
                transform 0.5s ease 0.5s,
                flex 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
                width 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/*
 * NAAR demo mode (vergroten):
 * Fase 1: fade-out header & hero (0–0.35s), geen layout-wijzigingen
 * Fase 2: ruimte inklappen + iPhone groeit (0.35s delay)
 */
.demo-mode .header {
    opacity: 0;
    pointer-events: none;
    max-height: 0;
    margin: 0;
    padding: 0;
    border-color: transparent;
    overflow: hidden;
    transition: none;
}

.demo-mode .hero-text {
    opacity: 0;
    transform: translateX(-40px);
    pointer-events: none;
    flex: 0 0 0px;
    width: 0;
    overflow: hidden;
    transition: opacity 0.35s ease,
                transform 0.35s ease,
                flex 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.35s,
                width 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.35s;
}

.demo-mode .iphone {
    height: calc(100vh - 90px);
    max-height: none;
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.35s,
                max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.35s;
}

.demo-mode .main {
    justify-content: center;
    align-items: center;
    padding: 16px;
    width: 100%;
    gap: 0;
}

.demo-mode .simulator-viewport {
    margin: 0 auto;
}

/* ===== Availability section ===== */
.availability-section {
    background: #fff;
    padding: 80px 0;
    text-align: center;
}

.availability-section .availability-title,
.availability-section .availability-text,
.availability-section .store-badges {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.availability-section.visible .availability-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
}

.availability-section.visible .availability-text {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s;
}

.availability-section.visible .store-badges {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.availability-title {
    font-size: 32px;
    font-weight: 700;
    color: #0D35A0;
    margin-bottom: 20px;
}

.availability-text {
    font-size: 22px;
    color: #6b7280;
    line-height: 1.7;
}

.store-badges {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
}

.store-badge-img {
    height: 48px;
    width: auto;
    transition: transform 0.2s;
}

.store-badge-img:hover {
    transform: scale(1.03);
}

/* ===== Mobile simulator button & fullscreen ===== */
.mobile-open-btn {
    display: none;
}

.mobile-close-btn {
    display: none;
}

/* ===== Responsive / Mobile ===== */
@media (max-width: 1100px) {
    body {
        height: auto;
        min-height: 100vh;
        overflow: auto;
    }

    .page {
        height: auto;
        min-height: 100vh;
        overflow: auto;
    }

    .main {
        flex: none;
        flex-direction: column;
        align-items: center;
        padding: 5vh 0 24px;
        gap: 32px;
    }

    .iphone {
        height: 628px;
        width: 300px;
        aspect-ratio: auto;
    }

    .hero-text {
        margin-top: 0;
        align-items: center;
        text-align: center;
    }

    .hero-title-top,
    .hero-title-bottom {
        font-size: 36px;
    }

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

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

    .hero-usps {
        align-items: center;
    }

    .simulator-viewport {
        margin: 0;
    }
}

@media (max-width: 768px) {
    .simulator-viewport {
        display: none;
    }

    .mobile-open-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-top: 32px;
        background: #0D35A0;
        color: #fff;
        font-family: 'Montserrat', sans-serif;
        font-size: 16px;
        font-weight: 700;
        padding: 16px 32px;
        border: none;
        border-radius: 12px;
        cursor: pointer;
        animation: fadeSlideUp 0.6s ease-out 0.75s both;
    }

    .mobile-sim-open .simulator-viewport {
        display: flex;
        position: fixed;
        inset: 0;
        z-index: 200;
        background: #000;
        margin: 0;
        gap: 0;
        padding: 0;
    }

    .mobile-sim-open .simulator-viewport .iphone {
        width: 100%;
        height: 100%;
        border-radius: 0;
        box-shadow: none;
    }

    .mobile-sim-open .simulator-viewport .iphone::before {
        display: none;
    }

    .mobile-sim-open .simulator-viewport .iphone-screen {
        border-radius: 0;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    .mobile-sim-open .simulator-viewport .iphone-btn-silent,
    .mobile-sim-open .simulator-viewport .iphone-btn-vol-up,
    .mobile-sim-open .simulator-viewport .iphone-btn-vol-down,
    .mobile-sim-open .simulator-viewport .iphone-btn-power {
        display: none;
    }

    .mobile-sim-open .simulator-viewport .demo-toggle {
        display: none;
    }

    .mobile-sim-open .mobile-close-btn {
        display: flex;
        position: fixed;
        top: 12px;
        right: 12px;
        z-index: 300;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(10px);
        color: #fff;
        border: none;
        border-radius: 50%;
        cursor: pointer;
    }

    .header {
        width: 92%;
        margin: 16px auto 0;
        padding: 10px 16px;
    }

    .header-logo {
        height: 28px;
    }

    .header-btn {
        font-size: 11px;
        padding: 6px 14px;
    }

    .header-btn svg {
        display: none;
    }

    .main {
        width: 92%;
        padding: 4vh 0 16px;
        gap: 24px;
    }

    .hero-title-top,
    .hero-title-bottom {
        font-size: 28px;
        padding: 10px 16px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-btn {
        font-size: 14px;
        padding: 12px 18px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .usp {
        font-size: 12px;
    }

    .iphone {
        width: 300px;
        height: 628px;
        aspect-ratio: auto;
        border-radius: 42px;
    }

    .iphone-screen {
        border-radius: 36px;
    }

    .safe-area-top {
        height: 44px;
    }

    .dynamic-island {
        width: 94px;
        height: 28px;
        border-radius: 15px;
        top: 8px;
    }

    .di-camera {
        width: 9px;
        height: 9px;
        right: 16px;
    }

    .safe-area-bottom {
        height: 26px;
    }

    .home-bar {
        width: 100px;
        height: 4px;
    }

    .status-bar {
        height: 16px;
        padding: 0 20px;
    }

    .sb-time {
        font-size: 12px;
    }

    .demo-mode .iphone {
        height: 80vh;
        width: calc(80vh * 0.478);
    }

    .availability-title {
        font-size: 24px;
    }

    .availability-text {
        font-size: 16px;
        padding: 0 20px;
    }

    .availability-section {
        padding: 48px 0;
    }

    .store-badges {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}

@media (max-width: 400px) {
    .hero-title-top,
    .hero-title-bottom {
        font-size: 24px;
    }

    .iphone {
        width: 260px;
        height: 545px;
        aspect-ratio: auto;
        border-radius: 36px;
    }

    .iphone-screen {
        border-radius: 30px;
    }
}
