/* ==========================================================================
   Pebble Zen Design System & Global Visuals
   ========================================================================== */

:root {
    /* Exact Pebble SwiftUI Zen Palette */
    --pebble-bg: #EAE5D9;
    --pebble-glow: #F9F7F2;
    --pebble-white: #FFFFFF;
    
    /* Branding Core Accents */
    --pebble-sage: #95A79A;
    --pebble-sage-light: #A3B8A8;
    --pebble-rose: #D4A5A5;
    --pebble-rose-light: #E2B9B9;
    --pebble-slate: #5A6A7D;
    --pebble-slate-light: #7A8A99;
    --pebble-sand: #BC9E82;
    --pebble-sand-light: #E5C9B4;
    
    /* Zen Muted Tones */
    --pebble-teal: #8BA096;
    --pebble-terracotta: #C5978C;
    --pebble-mint-pastel: #C5D9CB;
    --pebble-blue-pastel: #A9C5D3;
    
    /* Text Hierarchy */
    --pebble-text-main: #353635;
    --pebble-text-mid: #574D45;
    --pebble-text-sub: #7D6E63;
    
    /* System & Shadows */
    --shadow-sm: 0 4px 10px rgba(87, 77, 69, 0.04);
    --shadow-md: 0 10px 30px rgba(87, 77, 69, 0.08);
    --shadow-lg: 0 20px 50px rgba(87, 77, 69, 0.12);
    --shadow-premium: 0 30px 70px rgba(90, 106, 125, 0.18);
    
    /* Animation Timings */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--pebble-bg);
    color: var(--pebble-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Typography Hierarchy
   ========================================================================== */

h1, h2, h3, h4 {
    color: var(--pebble-text-main);
    font-weight: 700;
    line-height: 1.25;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

p {
    font-size: 1.1rem;
    color: var(--pebble-text-mid);
    font-weight: 500;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s var(--ease-out);
}

/* ==========================================================================
   Button and Badge Styles
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    border: none;
}

.btn-primary {
    background-color: var(--pebble-sage);
    color: var(--pebble-white);
    box-shadow: 0 8px 24px rgba(149, 167, 154, 0.3);
}

.btn-primary:hover {
    background-color: var(--pebble-sage-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(149, 167, 154, 0.45);
}

.btn-secondary {
    background-color: rgba(53, 54, 53, 0.08);
    color: var(--pebble-text-main);
}

.btn-secondary:hover {
    background-color: rgba(53, 54, 53, 0.15);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--pebble-slate);
    transition: color 0.3s var(--ease-out);
}

.btn-text:hover {
    color: var(--pebble-slate-light);
}

.btn-text i {
    font-size: 1.25rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--pebble-white);
    color: var(--pebble-slate);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.badge.bg-sage {
    background-color: rgba(149, 167, 154, 0.12);
    color: var(--pebble-sage);
    box-shadow: none;
}

.store-badge img {
    height: 48px;
    width: auto;
    transition: transform 0.3s var(--ease-out);
}

.store-badge:hover img {
    transform: translateY(-2px) scale(1.02);
}

/* ==========================================================================
   Header & Mobile Navigation
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 100;
    background-color: rgba(234, 229, 217, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(87, 77, 69, 0.05);
    transition: all 0.3s var(--ease-out);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--pebble-text-main);
}

.logo-svg {
    width: 38px;
    height: 38px;
    filter: drop-shadow(0 4px 8px rgba(90, 106, 125, 0.15));
}

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

.nav a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--pebble-text-mid);
}

.nav a:hover {
    color: var(--pebble-sage);
}

.nav-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.header-actions-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Premium Language Selector Dropdown */
.lang-selector {
    position: relative;
    display: inline-block;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(87, 77, 69, 0.08);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--pebble-text-main);
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s var(--ease-out);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(149, 167, 154, 0.3);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 120px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    padding: 6px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(8px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s var(--ease-out);
    z-index: 120;
}

/* Invisible bridge to prevent hover loss over the 8px gap */
.lang-dropdown::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
}

.lang-selector:hover .lang-dropdown,
.lang-selector:focus-within .lang-dropdown {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.lang-option {
    display: block;
    width: 100%;
    border: none;
    background: none;
    padding: 8px 12px;
    border-radius: 9px;
    text-align: left;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pebble-text-mid);
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
}

.lang-option:hover {
    background-color: rgba(53, 54, 53, 0.05);
    color: var(--pebble-text-main);
}

.lang-option.active {
    background-color: var(--pebble-sage);
    color: var(--pebble-white);
}

/* Mobile Language Selector inside Drawer */
.mobile-lang-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(87, 77, 69, 0.08);
}

.mobile-lang-selector span {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--pebble-text-sub);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mobile-lang-options {
    display: flex;
    gap: 10px;
}

.mobile-lang-option {
    flex: 1;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(87, 77, 69, 0.1);
    background: rgba(255, 255, 255, 0.5);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--pebble-text-mid);
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
}

.mobile-lang-option.active {
    background-color: var(--pebble-sage);
    color: var(--pebble-white);
    border-color: var(--pebble-sage);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--pebble-text-main);
    cursor: pointer;
}

/* Mobile Navigation Drawer */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: 300px;
    background-color: var(--pebble-glow);
    z-index: 200;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow: -10px 0 40px rgba(87, 77, 69, 0.1);
    transition: right 0.4s var(--ease-out);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--pebble-text-main);
    cursor: pointer;
    margin-bottom: 20px;
}

.mobile-link {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--pebble-text-main);
}

.mobile-link:hover {
    color: var(--pebble-sage);
}

.mobile-btn {
    margin-top: auto;
    width: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    position: relative;
    padding-top: 150px;
    padding-bottom: 120px;
    background: radial-gradient(circle at top right, rgba(249, 247, 242, 0.8), transparent 60%);
    overflow: hidden;
}

/* Zen Atmosphere Layer */
.hero-zen-atmosphere {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

/* Make sure container is above atmosphere background */
.hero-container {
    position: relative;
    z-index: 2;
}

/* Zen Mist Clouds */
.zen-clouds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.zen-cloud {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(40px);
    opacity: 0.6;
    pointer-events: none;
}

.zen-cloud.cloud-1 {
    width: 450px;
    height: 250px;
    top: 10%;
    left: -100px;
    animation: zen-cloud-drift 45s infinite alternate ease-in-out;
}

.zen-cloud.cloud-2 {
    width: 600px;
    height: 300px;
    top: 25%;
    right: -150px;
    animation: zen-cloud-drift-reverse 60s infinite alternate ease-in-out;
}

@keyframes zen-cloud-drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(150px, 30px) scale(1.15); }
}

@keyframes zen-cloud-drift-reverse {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-200px, -40px) scale(0.9); }
}

/* Living River Particles */
.zen-particles-container {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    z-index: 1;
}

.zen-particle {
    position: absolute;
    border-radius: 50%;
    background-color: var(--pebble-mint-pastel);
    opacity: 0;
    pointer-events: none;
    transform: translateY(100vh);
    filter: blur(1px);
    box-shadow: 0 0 10px rgba(197, 217, 203, 0.4);
}

/* Zen Flocking Birds (3D Flapping & sine flight glide path) */
.zen-flock-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

.web-bird {
    position: absolute;
    width: 26px;
    height: 20px;
    pointer-events: none;
    opacity: 0;
    /* Hardware accelerated flight glide across path */
    animation: fly-across-path 16s infinite linear;
}

.bird-svg {
    width: 100%;
    height: 100%;
    fill: var(--pebble-slate);
    filter: drop-shadow(0 2px 4px rgba(87, 77, 69, 0.15));
}

.wing {
    transform-origin: 10px 10px;
}

.wing-left {
    animation: flap-wing-left 0.6s infinite alternate ease-in-out;
}

.wing-right {
    animation: flap-wing-right 0.6s infinite alternate ease-in-out;
}

/* 3D Flapping Wing Rotations */
@keyframes flap-wing-left {
    0% { transform: rotate(25deg) skewY(10deg); }
    100% { transform: rotate(-35deg) skewY(-15deg); }
}

@keyframes flap-wing-right {
    0% { transform: rotate(-25deg) skewY(-10deg); }
    100% { transform: rotate(35deg) skewY(15deg); }
}

/* Smooth organic flock path flight curve */
@keyframes fly-across-path {
    0% {
        transform: translate(110vw, 85vh) scale(0.65);
        opacity: 0;
    }
    5% {
        opacity: 0.75;
    }
    45% {
        transform: translate(55vw, 40vh) scale(0.85);
        opacity: 0.9;
    }
    90% {
        opacity: 0.65;
    }
    100% {
        transform: translate(-10vw, -10vh) scale(1.15);
        opacity: 0;
    }
}

@keyframes float-particle {
    0% {
        transform: translateY(105vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-5vh) translateX(60px);
        opacity: 0;
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 span {
    color: var(--pebble-sage);
    position: relative;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--pebble-text-sub);
    margin-top: 24px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item strong {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--pebble-slate);
}

.stat-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pebble-text-sub);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(87, 77, 69, 0.15);
}

/* Premium Phone Mockup Styling */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-mockup-wrapper {
    position: relative;
    width: 320px;
    z-index: 2;
}

.glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(249, 247, 242, 0.9) 0%, rgba(149, 167, 154, 0.15) 50%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
    animation: slow-pulse 8s infinite ease-in-out;
}

@keyframes slow-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.phone-mockup {
    position: relative;
    width: 100%;
    aspect-ratio: 9/19.5;
    background-color: #2D2D2D;
    border: 11px solid #1E1E1E;
    border-radius: 46px;
    box-shadow: var(--shadow-premium), 0 0 0 2px rgba(255,255,255,0.05);
    overflow: hidden;
}

.phone-speaker {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 24px;
    background-color: #1E1E1E;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 5;
}

.phone-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--pebble-bg);
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Wave Divider SVG */
.wave-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    width: 100%;
    line-height: 0;
    z-index: 3;
}

.wave-divider svg {
    width: 100%;
    height: 80px;
}

/* ==========================================================================
   Features Section
   ========================================================================== */

.features {
    background-color: #F4EFE6;
    padding: 100px 0;
    position: relative;
}

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

.section-header p {
    font-size: 1.15rem;
    color: var(--pebble-text-sub);
}

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

.feature-card {
    background-color: var(--pebble-white);
    padding: 40px 30px;
    border-radius: 28px;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s var(--ease-out);
    border: 1px solid rgba(87, 77, 69, 0.02);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(149, 167, 154, 0.15);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.feature-icon.bg-sage {
    background-color: rgba(149, 167, 154, 0.12);
    color: var(--pebble-sage);
}

.feature-icon.bg-slate {
    background-color: rgba(90, 106, 125, 0.12);
    color: var(--pebble-slate);
}

.feature-icon.bg-rose {
    background-color: rgba(212, 165, 165, 0.12);
    color: var(--pebble-rose);
}

.feature-icon.bg-sand {
    background-color: rgba(188, 158, 130, 0.12);
    color: var(--pebble-sand);
}

.feature-icon.bg-teal {
    background-color: rgba(139, 160, 150, 0.12);
    color: var(--pebble-teal);
}

.feature-icon.bg-mint {
    background-color: rgba(197, 217, 203, 0.15);
    color: var(--pebble-sage);
}

.feature-card h3 {
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--pebble-text-sub);
}

/* Premium Flag Badges Grid inside Language Feature Card */
.lang-flags-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.lang-flag-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(53, 54, 53, 0.04);
    border: 1px solid rgba(87, 77, 69, 0.06);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--pebble-text-mid);
    transition: all 0.3s var(--ease-out);
}

.lang-flag-badge:hover {
    background-color: var(--pebble-white);
    border-color: var(--pebble-sage-light);
    color: var(--pebble-text-main);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.lang-flag-badge span {
    font-size: 0.8rem;
}

/* ==========================================================================
   Languages Banner Section (Horizontal Intermediate Break)
   ========================================================================== */
.languages-banner {
    background: linear-gradient(180deg, #F4EFE6 0%, #FFFFFF 50%, #F4EFE6 100%);
    padding: 100px 0;
    border-top: 1px solid rgba(87, 77, 69, 0.05);
    border-bottom: 1px solid rgba(87, 77, 69, 0.05);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.languages-banner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(circle, rgba(149, 167, 154, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.languages-banner-container {
    position: relative;
    z-index: 2;
}

.languages-banner-content {
    max-width: 800px;
    margin: 0 auto;
}

.languages-banner-content h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--pebble-text-main);
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.languages-banner-content p {
    font-size: 1.1rem;
    color: var(--pebble-text-sub);
    line-height: 1.75;
    max-width: 680px;
    margin: 0 auto 40px auto;
}

.languages-horizontal-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 35px;
}

/* Enhancing flag badges for the horizontal banner */
.languages-banner .lang-flag-badge {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(87, 77, 69, 0.08);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--pebble-text-mid);
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.35s var(--ease-out);
    cursor: default;
}

.languages-banner .lang-flag-badge:hover {
    background-color: var(--pebble-white);
    border-color: var(--pebble-sage-light);
    color: var(--pebble-text-main);
    transform: translateY(-5px) scale(1.04);
    box-shadow: var(--shadow-md);
}

.languages-banner .lang-flag-badge span {
    font-size: 0.95rem;
    font-weight: 600;
}

/* ==========================================================================
   Trust & Privacy Section (Rotating Shield & iOS Onboarding Mockup)
   ========================================================================== */

.privacy-trust {
    background-color: #F4EFE6;
    padding: 100px 0;
    border-top: 1px solid rgba(87, 77, 69, 0.05);
    position: relative;
    overflow: hidden;
}

.privacy-trust-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 70px;
    align-items: center;
}

.privacy-trust-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Staggered rotating shield visuals to mimic iOS app */
.shield-orb-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.shield-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(149, 167, 154, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
    animation: slow-pulse 6s infinite ease-in-out;
}

.shield-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed var(--pebble-sage);
}

.shield-circle.circle-outer {
    width: 240px;
    height: 240px;
    opacity: 0.35;
    animation: rotate-clockwise 25s infinite linear;
}

.shield-circle.circle-inner {
    width: 180px;
    height: 180px;
    opacity: 0.55;
    border-style: dotted;
    border-color: var(--pebble-slate);
    animation: rotate-counter-clockwise 15s infinite linear;
}

.shield-icon-box {
    position: absolute;
    width: 90px;
    height: 90px;
    background-color: var(--pebble-white);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--pebble-sage);
    border: 1px solid rgba(87, 77, 69, 0.04);
    animation: float-badge-subtle 4s infinite ease-in-out;
}

@keyframes rotate-clockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rotate-counter-clockwise {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes float-badge-subtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Privacy Content and Staggered Bullets */
.privacy-main-desc {
    font-size: 1.2rem;
    color: var(--pebble-text-mid);
    margin-top: 16px;
    margin-bottom: 30px;
}

.privacy-bullets {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.privacy-bullet-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 16px 24px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s var(--ease-out);
}

.privacy-bullet-item:hover {
    transform: translateX(6px);
    background: var(--pebble-white);
    border-color: rgba(149, 167, 154, 0.15);
    box-shadow: var(--shadow-md);
}

.bullet-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: rgba(149, 167, 154, 0.12);
    color: var(--pebble-sage);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.privacy-bullet-item p {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--pebble-text-main);
    margin-bottom: 0;
}

/* Media Query Adaptation for Trust Section */
@media (max-width: 900px) {
    .privacy-trust-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .privacy-trust-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .privacy-bullets {
        width: 100%;
        max-width: 500px;
    }
}

/* ==========================================================================
   Showcase Gallery Section (Interactive Carousel)
   ========================================================================== */

.showcase {
    padding: 100px 0;
    background-color: var(--pebble-bg);
}

.showcase-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.showcase-slider {
    width: 280px;
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    transition: transform 0.5s var(--ease-out);
}

.slide {
    min-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.5s var(--ease-out);
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.slider-phone-frame {
    width: 250px;
    aspect-ratio: 9/19.5;
    background-color: #2D2D2D;
    border: 9px solid #1E1E1E;
    border-radius: 38px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 24px;
}

.slider-phone-screen {
    width: 100%;
    height: 100%;
    background-color: var(--pebble-bg);
}

.slider-phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    text-align: center;
    max-width: 320px;
}

.slide-caption h3 {
    font-size: 1.25rem;
    margin-bottom: 6px;
    color: var(--pebble-text-main);
}

.slide-caption p {
    font-size: 0.9rem;
    color: var(--pebble-text-sub);
}

.slider-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--pebble-white);
    color: var(--pebble-text-main);
    border: none;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    z-index: 10;
}

.slider-arrow:hover {
    background-color: var(--pebble-sage);
    color: var(--pebble-white);
    transform: scale(1.05);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(87, 77, 69, 0.2);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.dot.active {
    width: 24px;
    border-radius: 4px;
    background-color: var(--pebble-sage);
}

/* ==========================================================================
   Tutorials & Video Section
   ========================================================================== */

.tutorials {
    background-color: #F4EFE6;
    padding: 100px 0;
}

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

.video-card {
    background-color: var(--pebble-white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.35s var(--ease-out);
    border: 1px solid rgba(87, 77, 69, 0.02);
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background-color: #2D2D2D;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s var(--ease-out);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--pebble-slate);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.3s var(--ease-out);
}

.video-card:hover .play-overlay {
    background-color: var(--pebble-sage);
    color: var(--pebble-white);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--pebble-white);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.video-info {
    padding: 24px;
}

.video-info h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--pebble-text-main);
}

.video-info p {
    font-size: 0.9rem;
    color: var(--pebble-text-sub);
}

/* ==========================================================================
   FAQ Section (Accordion Panels)
   ========================================================================== */

.faq {
    padding: 100px 0;
    background-color: var(--pebble-bg);
}

.faq-list {
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--pebble-white);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s var(--ease-out);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 24px 30px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pebble-text-main);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.faq-question i {
    font-size: 1rem;
    color: var(--pebble-text-sub);
    transition: transform 0.3s var(--ease-out);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-in-out);
    padding: 0 30px;
}

.faq-answer p {
    padding-bottom: 24px;
    font-size: 0.95rem;
    color: var(--pebble-text-sub);
}

/* Active FAQ states */
.faq-item.active {
    box-shadow: var(--shadow-md);
    border-color: rgba(149, 167, 154, 0.1);
}

.faq-item.active .faq-question {
    color: var(--pebble-sage);
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
    color: var(--pebble-sage);
}

/* ==========================================================================
   Support & Contact Section (Glassmorphism design)
   ========================================================================== */

.contact {
    background-color: #F4EFE6;
    padding: 100px 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 70px;
    align-items: center;
}

.contact-info h2 {
    margin-top: 16px;
    margin-bottom: 24px;
}

.contact-info p {
    color: var(--pebble-text-sub);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--pebble-white);
    color: var(--pebble-slate);
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
}

.contact-detail-item h4 {
    font-size: 1rem;
    font-weight: 700;
}

.contact-detail-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Form Styles */
.contact-form-wrapper {
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 32px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.contact-form h3 {
    margin-bottom: 24px;
    font-size: 1.4rem;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--pebble-text-sub);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 20px;
    border-radius: 14px;
    border: 1px solid rgba(87, 77, 69, 0.1);
    background-color: rgba(255, 255, 255, 0.8);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--pebble-text-main);
    transition: all 0.3s var(--ease-out);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--pebble-sage);
    background-color: var(--pebble-white);
    box-shadow: 0 0 0 4px rgba(149, 167, 154, 0.15);
}

/* Form success overlay */
.form-success-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--pebble-white);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    z-index: 10;
}

.form-success-card.active {
    display: flex;
}

.form-success-card i {
    font-size: 4rem;
    color: var(--pebble-sage);
    margin-bottom: 24px;
}

.form-success-card h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.form-success-card p {
    font-size: 0.95rem;
    color: var(--pebble-text-sub);
    max-width: 280px;
    margin-bottom: 30px;
}

/* ==========================================================================
   App Store CTA Section
   ========================================================================== */

.cta {
    position: relative;
    padding: 100px 0;
    background-color: var(--pebble-slate);
    color: var(--pebble-white);
    text-align: center;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(149, 167, 154, 0.25) 0%, transparent 60%);
    pointer-events: none;
}

.cta-container h2 {
    color: var(--pebble-white);
    margin-bottom: 16px;
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.cta-container p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.cta-actions {
    margin-bottom: 24px;
}

.cta-version {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cta-version span {
    margin: 0 8px;
}

/* ==========================================================================
   Footer & Legal Sections
   ========================================================================== */

.footer {
    background-color: #F4EFE6;
    padding: 80px 0 30px 0;
    border-top: 1px solid rgba(87, 77, 69, 0.08);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 0.95rem;
    color: var(--pebble-text-sub);
    max-width: 320px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--pebble-text-sub);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--pebble-text-mid);
}

.footer-links a:hover {
    color: var(--pebble-sage);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(87, 77, 69, 0.08);
}

.footer-bottom-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--pebble-text-sub);
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--pebble-white);
    color: var(--pebble-text-mid);
    box-shadow: var(--shadow-sm);
    font-size: 1rem;
}

.social-icons a:hover {
    background-color: var(--pebble-sage);
    color: var(--pebble-white);
    transform: translateY(-2px);
}

/* ==========================================================================
   Modals & Lightboxes (Popups)
   ========================================================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(87, 77, 69, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: -1;
}

.modal-content {
    background-color: var(--pebble-white);
    border-radius: 28px;
    box-shadow: var(--shadow-premium);
    position: relative;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.4s var(--ease-out);
    z-index: 10;
}

.modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--pebble-text-sub);
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--pebble-text-main);
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
    padding-right: 30px;
    border-bottom: 1px solid rgba(87, 77, 69, 0.08);
    padding-bottom: 14px;
}

/* Video Modal Aspect Constraints */
.video-modal-content {
    max-width: 850px;
    padding: 30px;
}

.video-iframe-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.video-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Legal Modals Styling */
.legal-modal-content {
    max-width: 700px;
}

.legal-text {
    line-height: 1.7;
    color: var(--pebble-text-mid);
}

.legal-text p {
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.legal-text h4 {
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 1.15rem;
    color: var(--pebble-text-main);
}

.legal-text ul {
    margin-left: 20px;
    margin-bottom: 16px;
}

.legal-text li {
    font-size: 0.95rem;
    margin-bottom: 6px;
}

/* ==========================================================================
   Responsive Adaptation (Media Queries)
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-container {
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .header-container {
        padding: 0 24px;
    }
    
    .nav,
    .nav-btn,
    .header-actions-group {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .contact-info {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .contact-details {
        align-items: center;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 600px) {
    .showcase-slider-wrapper {
        gap: 10px;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }
    
    .showcase-slider {
        width: 220px;
    }
    
    .slider-phone-frame {
        width: 200px;
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }
    
    .modal-content {
        padding: 24px;
    }
}
