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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - Enhanced with more Apple-like blur and transitions */
        /* Apple-style Header */
      /* Apple-style Header */
        header {
            position: fixed;
            top: 0;
            width: 100%;
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(20px) saturate(1.8);
            -webkit-backdrop-filter: blur(20px) saturate(1.8);
            z-index: 1000;
            border-bottom: 0.5px solid rgba(0, 0, 0, 0.05);
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            transform: translateY(0);
            will-change: transform, background;
        }

        header.scrolled {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(30px) saturate(2);
            -webkit-backdrop-filter: blur(30px) saturate(2);
            box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 
                        0 1px 6px rgba(0, 0, 0, 0.05),
                        0 8px 32px rgba(0, 0, 0, 0.02);
            border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
        }

        header.hidden {
            transform: translateY(-100%);
        }


/* Mobile Menu Toggle - More refined */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.25s ease;
    z-index: 1002;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle:hover {
    background: rgba(90, 62, 190, 0.06);
    transform: scale(1.02);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: #1d1d1f;
    margin: 2.5px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1.5px;
    transform-origin: center;
}

/* Hamburger Animation - Smoother */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0.2);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu - Enhanced blur and animations */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(40px) saturate(1.8);
    -webkit-backdrop-filter: blur(40px) saturate(1.8);
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.32, 0.72, 0, 1);
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-content {
    padding: 100px 20px 40px;
    max-width: 400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.mobile-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-nav-links li {
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mobile-nav-links li:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav-links li:nth-child(2) { animation-delay: 0.15s; }
.mobile-nav-links li:nth-child(3) { animation-delay: 0.2s; }
.mobile-nav-links li:nth-child(4) { animation-delay: 0.25s; }

.mobile-nav-links a {
    display: block;
    padding: 24px 0;
    text-decoration: none;
    color: #1d1d1f;
    font-size: 1.6rem;
    font-weight: 500;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
}

.mobile-nav-links a:hover {
    color: #5A3EBE;
    background: rgba(90, 62, 190, 0.03);
    transform: translateX(8px);
}

.mobile-nav-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(135deg, #5A3EBE 0%, #6E55D2 100%);
    transform: scaleY(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: bottom;
}

.mobile-nav-links a:hover::before {
    transform: scaleY(1);
}

/* Enhanced Animation Keyframes */
@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.menu-open {
    overflow: hidden;
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 600;
    color: #5A3EBE;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    letter-spacing: -0.02em;
}

.logo:hover {
    transform: translateY(-1px);
}

.logo-icon {
    width: 60px;
    height: 60px;
    margin-right: 12px;
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: scale(1.05) rotate(-2deg);
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

      .nav-links {
            display: flex;
            list-style: none;
            gap: 8px;
            align-items: center;
        }

     .nav-link {
            color: #1d1d1f;
            text-decoration: none;
            font-size: 17px;
            font-weight: 400;
            padding: 8px 16px;
            border-radius: 20px;
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            position: relative;
            letter-spacing: -0.01em;
        }

        .nav-link::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.06);
            border-radius: 20px;
            opacity: 0;
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            transform: scale(0.8);
        }

        .nav-link:hover::before {
            opacity: 1;
            transform: scale(1);
        }

        .nav-link:hover {
            color: #000;
            transform: translateY(-1px);
        }

        .nav-link:active {
            transform: translateY(0);
            transition-duration: 0.1s;
        }

.page-header {
    text-align: center;
    margin-bottom: 80px;
    padding: 80px 0;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 50%, #fafafa 100%);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1.5" fill="rgba(90,62,190,0.08)"/><circle cx="80" cy="40" r="1" fill="rgba(110,85,210,0.06)"/><circle cx="40" cy="80" r="1.2" fill="rgba(90,62,190,0.05)"/></svg>') 0 0;
    background-size: 200px 200px;
    animation: float 40s infinite linear;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #5A3EBE 0%, #6E55D2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    letter-spacing: -0.02em;
}

.page-header p {
    font-size: 1.5rem;
    color: #86868b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.4;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s both;
    letter-spacing: -0.01em;
    font-weight: 400;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1d1d1f;
    letter-spacing: -0.02em;
}

.app-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

        /* Apple-style Footer */
        footer {
            background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
            color: #f5f5f7;
            padding: 60px 0 20px;
            border-top: 0.5px solid rgba(255, 255, 255, 0.08);
            position: relative;
            overflow: hidden;
        }

        footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        }

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

        .footer-section {
            opacity: 0;
            animation: fadeInUp 0.6s ease-out forwards;
        }

        .footer-section:nth-child(1) { animation-delay: 0.1s; }
        .footer-section:nth-child(2) { animation-delay: 0.2s; }
        .footer-section:nth-child(3) { animation-delay: 0.3s; }
        .footer-section:nth-child(4) { animation-delay: 0.4s; }

        .footer-section h3 {
            font-size: 16px;
            font-weight: 600;
            color: #f5f5f7;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 20px;
            opacity: 0.9;
        }

        .footer-section.brand h3 {
            font-size: 32px;
            font-weight: 700;
            text-transform: none;
            letter-spacing: -0.5px;
            margin-bottom: 12px;
            background: linear-gradient(135deg, #f5f5f7 0%, #a1a1a6 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .footer-section.brand p {
            font-size: 18px;
            color: #86868b;
            line-height: 1.5;
            font-weight: 400;
            letter-spacing: -0.01em;
        }

        .footer-section a {
            color: #86868b;
            text-decoration: none;
            display: block;
            margin-bottom: 12px;
            font-size: 16px;
            font-weight: 400;
            letter-spacing: -0.01em;
            line-height: 1.4;
            transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            position: relative;
            padding: 4px 0;
        }

        .footer-section a:hover {
            color: #f5f5f7;
            transform: translateY(-1px);
        }

        .footer-section a:active {
            transform: translateY(0);
            transition-duration: 0.1s;
        }

        /* Email links with subtle icon */
        .footer-section a[href^="mailto:"]:before {
            content: '';
            display: inline-block;
            width: 3px;
            height: 3px;
            background: #86868b;
            border-radius: 50%;
            margin-right: 8px;
            vertical-align: middle;
            transition: all 0.25s ease;
        }

        .footer-section a[href^="mailto:"]:hover:before {
            background: #f5f5f7;
            transform: scale(1.2);
        }

        .footer-bottom {
            text-align: center;
            padding-top: 20px;
            border-top: 0.5px solid rgba(255, 255, 255, 0.08);
            position: relative;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .footer-bottom::before {
            content: '';
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        }

        .footer-bottom p {
            font-size: 14px;
            color: #86868b;
            font-weight: 400;
            letter-spacing: 0.1px;
            opacity: 0;
            animation: fadeIn 0.8s ease-out 0.8s forwards;
        }

        /* Language Toggle */
        /* Language Toggle - Simple and Clean */
        .lang-toggle {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 16px;
            padding: 8px 16px;
            color: #f5f5f7;
            text-decoration: none; /* no underline */
            font-size: 14px;
            font-weight: 400;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: inherit;
            opacity: 0;
            animation: fadeIn 0.8s ease-out 1s forwards;
        }

        .lang-toggle:hover {
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(255, 255, 255, 0.25);
            transform: translateY(-1px);
        }

        .lang-toggle:active {
            transform: translateY(0);
            transition-duration: 0.1s;
        }

        .lang-text {
            letter-spacing: 0.2px;
        }
        


/* Enhanced Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Enhanced Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

               /* Accessibility enhancements */
        @media (prefers-reduced-motion: reduce) {
            .footer-section {
                animation: none;
                opacity: 1;
            }
            
            .footer-bottom p,
            .language-toggle {
                animation: none;
                opacity: 1;
            }

            .footer-section a,
            .language-toggle {
                transition: none;
            }
        }

@keyframes float {
    from {
        transform: translateX(-200px);
    }
    to {
        transform: translateX(calc(100vw + 200px));
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

.pulse {
    animation: pulse 3s infinite ease-in-out;
}

/* Enhanced Card Components */
.step-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 0.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(90, 62, 190, 0.02) 0%, rgba(110, 85, 210, 0.04) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.step-card:hover::before {
    opacity: 1;
}

.step-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(90, 62, 190, 0.08);
    border-color: rgba(90, 62, 190, 0.1);
}

.step-number {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: linear-gradient(135deg, #5A3EBE 0%, #6E55D2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0 auto 24px;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(90, 62, 190, 0.2);
}

.step-card:hover .step-number {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(90, 62, 190, 0.35);
}

.step-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: #1d1d1f;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.step-card:hover h3 {
    color: #5A3EBE;
}

.step-card p {
    color: #86868b;
    line-height: 1.5;
    position: relative;
    z-index: 1;
    font-size: 17px;
    letter-spacing: -0.01em;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(90, 62, 190, 0.02) 0%, rgba(110, 85, 210, 0.04) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #5A3EBE 0%, #6E55D2 100%);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 1;
    box-shadow: 0 6px 24px rgba(90, 62, 190, 0.2);
}

.feature-card:hover .feature-icon {
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 12px 30px rgba(90, 62, 190, 0.3);
}

.feature-icon svg {
    width: 44px;
    height: 44px;
    color: white;
    stroke-width: 1.5;
}

.feature-card h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
    color: #1d1d1f;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.feature-card:hover h3 {
    color: #5A3EBE;
}

.feature-card p {
    color: #86868b;
    line-height: 1.5;
    position: relative;
    z-index: 1;
    font-size: 17px;
    letter-spacing: -0.01em;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .logo-icon {
        width: 48px;
        height: 48px;
        margin-right: 8px;
    }
    
    nav {
        padding: 14px 0;
    }
    
    .page-header {
        padding: 60px 0;
        margin-bottom: 60px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    .page-header p {
        font-size: 1.2rem;
        padding: 0 20px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .step-card, .feature-card {
        padding: 40px 24px;
    }

           footer {
                padding: 40px 0 20px;
            }

            .footer-content {
                grid-template-columns: 1fr;
                gap: 32px;
                text-align: center;
            }

            .footer-section.brand {
                order: -1;
            }

            .footer-section h3 {
                font-size: 13px;
                margin-bottom: 12px;
            }

            .footer-section.brand h3 {
                font-size: 28px;
            }

            .footer-section.brand p {
                font-size: 16px;
            }

            .footer-section a {
                font-size: 14px;
                margin-bottom: 12px;
            }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    nav {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .page-header {
        border-radius: 16px;
        padding: 50px 0;
    }
    
    .mobile-nav-links a {
        font-size: 1.4rem;
        padding: 20px 0;
    }

            .footer-content {
                gap: 24px;
            }
}

/* --- Layout tokens --- */
:root{
  --header-h-desktop: 56px;
  --header-h-mobile: 56px;
  --screen-pad: clamp(16px, 3.5vw, 28px);
}

/* Keep content from hiding under fixed header */
main{ padding-top: var(--header-h-desktop); }
@media (max-width: 768px){
  main{ padding-top: var(--header-h-mobile); }
}

/* Fluid type & spacing for hero/sections */
.hero h1{
  font-size: clamp(2rem, 4.5vw + 1rem, 4rem);
}
.hero p,
.section-subtitle{
  font-size: clamp(1rem, 1.2vw + .8rem, 1.3rem);
}

/* Official badges scale cleanly on small screens */
.index-app-buttons img.download-badge{
  height: clamp(44px, 9vw, 70px);
  width: auto;
  max-width: 100%;
}

/* Features grid – fit on narrow phones (was min 320px) */
.features-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 4vw, 40px);
}

/* Steps grid – same treatment */
.steps-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 4vw, 40px);
}

/* Cards – reduce inner padding on small screens without shrinking content too much */
.feature-card,
.step-card{
  padding: clamp(20px, 5vw, 40px) clamp(16px, 4vw, 30px);
}

/* Screenshots: replace fixed width/height with aspect-ratio so they don't overflow */
.screenshot-container-wrapper{
  gap: clamp(16px, 4vw, 30px);
}
.screenshot-container{
  width: min(42vw, 340px);
  aspect-ratio: 9 / 19.5;          /* Tall phone frame feel */
  height: auto;                     /* Remove fixed 700px */
  border-radius: 24px;
}
.screenshot-container img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* On touch devices, tone down hover lifting to avoid jumpiness */
@media (hover: none){
  .screenshot-container:hover{ transform:none; box-shadow:0 8px 25px rgba(0,0,0,.15); }
  .download-badge:hover{ transform:none; filter: drop-shadow(0 4px 12px rgba(0,0,0,.15)); }
}

/* Safety section: ensure clean single-column and comfortable spacing on phones */
@media (max-width: 768px){
  .safety-content{
    grid-template-columns: 1fr;
    gap: clamp(20px, 5vw, 40px);
  }
  .safety-visual{
    height: auto;
    min-height: 360px;
    padding: 24px;
  }
  .verification-img{ width: clamp(140px, 40vw, 220px); }
}

/* CTA: keep typography readable and centered */
.index-cta-section h2{
  font-size: clamp(1.6rem, 3.5vw + 1rem, 2.5rem);
}
.index-cta-section p{
  font-size: clamp(1rem, 1.2vw + .8rem, 1.2rem);
  padding: 0 var(--screen-pad);
}

/* Performance: lower backdrop blur on small screens (mobile Safari perf) */
@media (max-width: 480px){
  header{
    backdrop-filter: blur(10px) saturate(1.2);
    -webkit-backdrop-filter: blur(10px) saturate(1.2);
  }
  .mobile-menu{
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
  }
}

/* Mobile menu safe area padding */
.mobile-menu-content{
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

/* Ensure images never overflow container width */
img{ max-width: 100%; height: auto; }