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

:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --text-secondary: #9ca3af;
    --primary-color: #ffffff;
    --primary-glow: rgba(255, 255, 255, 0.08);
    --secondary-glow: rgba(255, 255, 255, 0.04);
    --accent-color: #06b6d4;
    --font-family: 'Inter', 'Outfit', sans-serif;
    --border-glass: rgba(255, 255, 255, 0.08);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.07);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

/* Header Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff 30%, rgba(255, 255, 255, 0) 75%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo .dot {
    color: #ffffff;
    opacity: 0.5;
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #ffffff;
}

.btn-header {
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-header:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

.btn-header .arrow {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.btn-header:hover .arrow {
    transform: translateX(3px);
}

/* Background Glowing Orbs */
.bg-glow {
    position: absolute;
    width: 80vw;
    height: 80vw;
    max-width: 1000px;
    max-height: 1000px;
    border-radius: 50%;
    filter: blur(130px);
    pointer-events: none;
    z-index: -2;
    opacity: 0.35;
}

.bg-glow-primary {
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    top: -10%;
    left: -10%;
}

.bg-glow-secondary {
    background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
}

/* Hero Section */
.hero-section {
    width: 100%;
    max-width: 1200px;
    padding: 140px 24px 80px; /* Offset for fixed header */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.hero-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 36px;
}

/* Hero Content (Text) */
.hero-content {
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-family: var(--font-family);
    font-size: clamp(3.2rem, 7.8vw, 7.2rem);
    font-weight: 600; /* Decreased font weight */
    line-height: 0.92;
    letter-spacing: -0.05em;
    color: var(--text-color);
    position: relative;
    z-index: 1;
    background: linear-gradient(to bottom, #ffffff 40%, rgba(255, 255, 255, 0.75) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn-primary {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.25);
}

/* Mockup Showcase */
.mockup-showcase {
    position: relative;
    width: 100%;
    max-width: 760px; /* Scaled up to match hand size exactly */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    z-index: 10;
    margin-top: -11vw; /* Pulls mockup up to overlap the background text */
}

/* Background glow behind phone */
.mockup-showcase::before {
    content: '';
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    height: 85%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 65%);
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
}

.phone-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1648 / 2440;
    display: block;
    transform: translateX(14.8%); /* Shifts hand mockup right to center phone viewport exactly */
    -webkit-mask-image: linear-gradient(to bottom, #000000 62%, transparent 92%);
    mask-image: linear-gradient(to bottom, #000000 62%, transparent 92%);
}

.phone-img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
    z-index: 2;
    position: relative;
}

/* Phone Screen Viewport (Using exact scanned coordinates) */
.phone-viewport {
    position: absolute;
    left: 13.05%;
    top: 1.76%;
    width: 44.36%;
    height: 64.75%;
    overflow: hidden;
    border-radius: 4% / 3%; /* Matches phone screen roundness */
    background: #000;
    z-index: 1;
}

/* Camera Notch (Dynamic Island) Overlay */
.dynamic-island {
    position: absolute;
    top: 2.2%;
    left: 50%;
    transform: translateX(-50%);
    width: 28%;
    height: 2.3%;
    background: #000000;
    border-radius: 100px;
    z-index: 10;
}

/* Screen slides */
.screen-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%); /* Slides in from right by default */
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.8s ease,
                visibility 0.8s ease;
    overflow: hidden;
}

.screen-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 1;
}

.screen-slide.prev-slide {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-100%); /* Slides out to the left */
    z-index: 0;
    /* Speed up transition for sliding out so it matches native feel */
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.8s ease,
                visibility 0.8s ease;
}

.no-transition {
    transition: none !important;
}

/* Website screenshot inside the screen */
.screenshot-img {
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    will-change: transform;
    /* Auto scrolling animation */
    animation: scroll-screenshot 18s cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite;
}

/* Switcher Buttons (Glassmorphic Pill) */
.switcher-container {
    display: flex;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 6px;
    border-radius: 100px;
    gap: 4px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.switcher-btn {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-secondary);
    padding: 10px 22px;
    border-radius: 100px;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.switcher-btn .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
}

.switcher-btn:hover {
    color: #ffffff;
    background: var(--bg-glass-hover);
}

.switcher-btn.active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.switcher-btn.active .dot {
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

/* Animations */
@keyframes scroll-screenshot {
    0% {
        transform: translateY(0);
    }
    8% {
        transform: translateY(0);
    }
    45% {
        transform: translateY(calc(-100% + 100%));
    }
    55% {
        transform: translateY(calc(-100% + 100%));
    }
    92% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header {
        height: 70px;
    }
    .header-container {
        padding: 0 16px;
    }
    .nav-menu {
        display: none; /* Hide header navigation links on mobile */
    }
    .hero-section {
        padding: 100px 16px 50px;
    }
    .hero-container {
        gap: 24px;
    }
    .hero-title {
        font-size: clamp(2.3rem, 9vw, 3.8rem);
        line-height: 0.95;
        letter-spacing: -0.04em;
    }
    .mockup-showcase {
        margin-top: -15vw;
        max-width: 90%;
    }
    .switcher-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}
