@font-face {
  font-family: "IranYekanX";
  src: url("./fonts/IRANYekanX-Medium.woff2") format("woff2");
  /* font-weight: 100; */
}

@font-face {
  font-family: "IranYekanXRegular";
  src: url("./fonts/IRANYekanX-Regular.woff2") format("woff2");
  /* font-weight: 100; */
}
@font-face {
  font-family: "IranYekanXLight";
  src: url("./fonts/IRANYekanX-Light.woff2") format("woff2");
  /* font-weight: 100; */
}

/* ============================================
   CSS VARIABLES & ROOT STYLES
   Defines color schemes for light and dark modes
============================================= */
:root {
    /* Primary Brand Colors */
    --primary: #1ABC4A;
    --primary-light: #2ED85C;
    --primary-dark: #15923A;
    --primary-gradient: linear-gradient(135deg, #1ABC4A 0%, #0D9B3C 100%);

    /* Light Theme Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAF9;
    --bg-tertiary: #F0F4F2;
    --bg-card: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.8);

    --text-primary: #1A1D1B;
    --text-secondary: #dddddd;
    --text-tertiary: #8A9A90;
    --text-inverse: #FFFFFF;

    --border-color: #E4EBE7;
    --border-light: #EDF2EF;

    --shadow-sm: 0 2px 8px rgba(26, 29, 27, 0.06);
    --shadow-md: 0 4px 20px rgba(26, 29, 27, 0.08);
    --shadow-lg: 0 8px 40px rgba(26, 29, 27, 0.12);
    --shadow-xl: 0 20px 60px rgba(26, 29, 27, 0.15);
    --shadow-glow: 0 0 40px rgba(26, 188, 74, 0.3);

    /* Blob Colors for Light Mode */
    --blob-1: rgba(26, 188, 74, 0.15);
    --blob-2: rgba(46, 216, 92, 0.12);
    --blob-3: rgba(26, 188, 74, 0.08);
    --blob-4: rgba(13, 155, 60, 0.1);
    --blob-5: rgba(26, 188, 74, 0.06);

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Typography */
    /* --font-family: 'Vazirmatn', 'Tahoma', sans-serif; */
    --font-family: 'IranYekanX', 'Tahoma', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3.5rem;
    --font-size-6xl: 4.5rem;

    /* Z-Index Scale */
    --z-background: -1;
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-tooltip: 500;
}

/* ============================================
   DARK THEME VARIABLES
============================================= */
[data-theme="dark"] {
    --bg-primary: #0D1210;
    --bg-secondary: #141A17;
    --bg-tertiary: #1A221E;
    --bg-card: #1A221E;
    --bg-glass: rgba(13, 18, 16, 0.85);

    --text-primary: #F0F4F2;
    --text-secondary: #cdcfce;
    --text-tertiary: #6B7A70;

    --border-color: #2A3530;
    --border-light: #232D28;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 60px rgba(26, 188, 74, 0.25);

    --blob-1: rgba(26, 188, 74, 0.08);
    --blob-2: rgba(46, 216, 92, 0.06);
    --blob-3: rgba(26, 188, 74, 0.04);
    --blob-4: rgba(13, 155, 60, 0.05);
    --blob-5: rgba(26, 188, 74, 0.03);
}

/* ============================================
   CSS RESET & BASE STYLES
============================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    transition: background-color var(--transition-slow), color var(--transition-slow);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}




.page-loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    transition: opacity .35s ease, visibility .35s;
    opacity: 1;
    visibility: visible;
    direction: rtl;
}

[data-theme="dark"] .page-loader {
    background: rgba(8, 10, 12, 0.8);
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-inner {
    text-align: center;
    font-family: 'IranYekanX', sans-serif;
    color: #2b2b2b;
}

[data-theme="dark"] .loader-inner {
    color: #e6e6e6;
}

.loader-spinner {
    width: 58px;
    height: 58px;
    margin: 0 auto 8px;
    display: block;
    animation: loader-rotate 1s linear infinite;
}

.loader-text {
    display: block;
    font-size: 0.95rem;
    opacity: .9;
}

@keyframes loader-rotate {
    to {
        transform: rotate(360deg);
    }
}


/* Selection Color */
::selection {
    background-color: var(--primary);
    color: var(--text-inverse);
}

::-moz-selection {
    background-color: var(--primary);
    color: var(--text-inverse);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}


img[src$=".svg"] {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}




.svg-inline,
svg {
    display: inline-block;
    width: 100%;
    height: auto;
    max-width: 100%;
    shape-rendering: geometricPrecision;
    image-rendering: optimizeQuality;
    -ms-interpolation-mode: bicubic;
    fill: currentColor;
    /* let CSS color cascade to the SVG */
}

/* Preserve intended icon sizes but keep them responsive (use em-based sizing) */
.btn svg,
.feature-icon svg,
.download-icon svg,
.float-icon svg,
.logo-icon svg,
.social-link svg {
    width: 1em;
    height: 1em;
    max-width: none;
    max-height: none;
    vector-effect: non-scaling-stroke;
    /* optional: keeps stroke widths consistent for inline SVG icons */
}

/* small-screen tweak: limit huge SVGs on very narrow devices */
@media (max-width: 420px) {
    .svg-responsive {
        max-width: 360px;
        margin: 0 auto;
    }
}

/* Lists */
ul,
ol {
    list-style: none;
}

/* Buttons */
button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ============================================
   CONTAINER
============================================= */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-xl);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--spacing-2xl);
    }
}

/* ============================================
   ANIMATED BACKGROUND
   Floating gradient blobs with blur effect
============================================= */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-background);
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.8;
    animation: float 20s ease-in-out infinite;
    will-change: transform;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--blob-1);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
    animation-duration: 25s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--blob-2);
    top: 50%;
    left: -150px;
    animation-delay: -5s;
    animation-duration: 30s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: var(--blob-3);
    bottom: -100px;
    right: 20%;
    animation-delay: -10s;
    animation-duration: 22s;
}

.blob-4 {
    width: 350px;
    height: 350px;
    background: var(--blob-4);
    top: 30%;
    right: 30%;
    animation-delay: -7s;
    animation-duration: 28s;
}

.blob-5 {
    width: 450px;
    height: 450px;
    background: var(--blob-5);
    bottom: 20%;
    left: 20%;
    animation-delay: -12s;
    animation-duration: 35s;
}

/* Blob Animation Keyframes */
@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    25% {
        transform: translate(50px, -80px) rotate(90deg) scale(1.1);
    }

    50% {
        transform: translate(-30px, 60px) rotate(180deg) scale(0.95);
    }

    75% {
        transform: translate(70px, 40px) rotate(270deg) scale(1.05);
    }
}

/* ============================================
   NAVIGATION BAR
============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    padding: var(--spacing-md) 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--primary);
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--primary);
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    background: #2dc099;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

/* Navigation Links */
.nav-links {
    display: none;
    align-items: center;
    gap: var(--spacing-xs);
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    position: relative;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary);
    background: var(--bg-tertiary);
}

.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: var(--radius-full);
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Theme Toggle Button */
.theme-toggle {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    transition: all var(--transition-base);
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--primary);
    color: var(--text-inverse);
    transform: rotate(15deg);
}

.theme-toggle svg {
    width: 22px;
    height: 22px;
    position: absolute;
    transition: all var(--transition-base);
}

.theme-toggle .sun-icon {
    opacity: 0;
    transform: translateY(20px) rotate(-90deg);
}

.theme-toggle .moon-icon {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

[data-theme="dark"] .theme-toggle .sun-icon {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

[data-theme="dark"] .theme-toggle .moon-icon {
    opacity: 0;
    transform: translateY(-20px) rotate(90deg);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    background: var(--bg-tertiary);
    transition: background var(--transition-fast);
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn:hover {
    background: var(--border-color);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Menu */
.nav-links.mobile-active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: var(--spacing-md);
    right: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    animation: slideDown 0.3s ease;
    z-index: var(--z-modal);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-links.mobile-active .nav-link {
    padding: var(--spacing-md);
    text-align: center;
    border-radius: var(--radius-md);
}

.nav-links.mobile-active .nav-link.active::after {
    display: none;
}

/* ============================================
   BUTTONS
============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-base);
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--text-inverse);
    box-shadow: var(--shadow-md), 0 4px 15px rgba(26, 188, 74, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 8px 25px rgba(26, 188, 74, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   HERO SECTION
============================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(80px + var(--spacing-3xl)) 0 var(--spacing-3xl);
    /* overflow: hidden; */
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

/* @media (min-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr 1fr;
    }
} */

/* Hero Content */
.hero-content {
    text-align: center;
}

/* @media (min-width: 1024px) {
    .hero-content {
        text-align: right;
    }
} */

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 0.6s ease;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Hero Title */
.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.6s ease 0.1s both;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: var(--font-size-5xl);
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: var(--font-size-6xl);
    }
}

.hero-title .highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
}
/* 
.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    right: 0;
    left: 0;
    height: 12px;
    background: var(--primary);
    opacity: 0.2;
    border-radius: var(--radius-sm);
    z-index: -1; */
/* } */

.hero-title .subtitle {
    display: block;
    font-size: 0.5em;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: var(--spacing-sm);
}

/* Hero Description */
.hero-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto var(--spacing-xl);
    animation: fadeInUp 0.6s ease 0.2s both;
}

@media (min-width: 1024px) {
    .hero-description {
        margin: 0 0 var(--spacing-xl);
    }
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-2xl);
    animation: fadeInUp 0.6s ease 0.3s both;
}

@media (min-width: 1024px) {
    .hero-buttons {
        justify-content: flex-start;
    }
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    animation: fadeInUp 0.6s ease 0.4s both;
}

@media (min-width: 1024px) {
    .hero-stats {
        justify-content: flex-start;
    }
}

.stat-item {
    text-align: center;
}

@media (min-width: 1024px) {
    .stat-item {
        text-align: right;
    }
}

.stat-number {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Hero Image Section */
.hero-image {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    /* space between grid items */
    place-items: center;
    /* center content horizontally & vertically inside each cell */
    justify-content: center;
    /* center the whole grid inside its container */
    justify-items: center;
    /* center each grid item horizontally */
    align-items: center;
    width: 100%;
    max-width: 1200px;
    /* limit width on large screens so grid can be centered */
    margin: 0 auto;
    /* center block inside parent container */
    animation: fadeIn 1s ease 0.5s both;
}

@media (min-width: 1024px) {
    .hero-image {
        grid-template-columns: repeat(4, minmax(220px, 1fr));
        /* show 4 items per row on desktop */
        gap: var(--spacing-3xl);
        max-width: 1400px;
        /* allow wider grid on large screens */
        justify-items: center;
        align-items: center;
    }

    /* keep the phone-front group centered if it uses absolute positioning */
    .hero-image .phone-front {
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
    }
}

/* Small screens: single column, tighter gaps */
@media (max-width: 767px) {
    .hero-image {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 6px;
        width: 100%;
        max-width: none;
        margin: 0;
    }
}

/* Phone Container */
/* .phone-container {
    position: relative;
    width: 100%;
  
    height: auto; */

/* } */


.phone-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* min-height: 560px;  */
    gap: 32px;
}

/* @media (min-width: 768px) {
    .phone-container {
        height: 600px;
    }
} */

/* Phone Mockup */
/* .phone-mockup {
    position: absolute;
    transition: transform var(--transition-slow);
} */


/* .phone-mockup {
    position: relative;
    display: inline-block;
} */


.phone-mockup {
    position: relative;
    width: 360px;
    height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-front {
    right: 0;
    top: 0;
    z-index: 2;
    animation: floatPhone 6s ease-in-out infinite;
}

.phone-back {
    right: 100px;
    top: 60px;
    z-index: 1;
    opacity: 0.7;
    transform: scale(0.9) rotate(-5deg);
    animation: floatPhoneBack 6s ease-in-out infinite;
}

@media (max-width: 767px) {
    .phone-back {
        display: none;
    }
}

@keyframes floatPhone {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes floatPhoneBack {

    0%,
    100% {
        transform: scale(0.9) rotate(-5deg) translateY(0);
    }

    50% {
        transform: scale(0.9) rotate(-5deg) translateY(-10px);
    }
}

/* .phone-frame {
    position: relative;
    width: 200px;
    height: 400px;
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 10px;

    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
} */

.phone-frame {
    /* width: clamp(220px, 28vw, 320px); */
    height: auto;
    /* allow natural height */
    max-height: none;
    /* remove 60vh cropping */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    /* ensure SVG isn't clipped */
    box-sizing: border-box;
    background: transparent;
    transition: transform .35s ease, box-shadow .35s ease;
    border-radius: 20px;
}


.phone-frame--offset {
    /* margin: 40px 100px 0 0; keeps your original offset; adjust as needed */
    z-index: 2;
    transform: translateY(-10px);
    /* subtle lift so frames don't overlap awkwardly */
}



/* .phone-front .phone-frame:nth-of-type(1){
    position: absolute;
    right: 59%;
    top: 6%;
    transform: scale(1) rotate(0deg);
    z-index: 3;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
.phone-front .phone-frame:nth-of-type(2){
    position: absolute;
    right: 94%;
    top: 14%;
    transform: scale(.97) rotate(-3deg);
    z-index: 2;
    filter: brightness(.98);
} */



/* remove/override fixed nth-of-type rules and use JS-driven layout */
.phone-front .phone-frame {
    position: absolute;
    right: 50%;
    top: 10%;
    transform-origin: center center;
    transition: transform .35s ease, right .35s ease, top .35s ease, filter .35s ease;
    will-change: transform, right, top;
    pointer-events: auto;
}

/* ensure images inside frames remain visible */
.phone-front .phone-frame img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* mobile: stack frames (JS will also toggle this) */
@media (max-width: 767px) {
    .phone-front .phone-frame {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        width: 80%;
        max-width: 360px;
        margin: 0 auto 12px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }
}


.phone-glow {
    position: absolute;
    right: 10px;
    top: 70px;
    width: 420px;
    height: 420px;
    pointer-events: none;
    filter: blur(40px);
    opacity: .45;
    z-index: 1;
}


/* .phone-frame img{
 display: block;
    width: auto;
    max-width: 100%;
  
    height: auto;
    border-radius: 10px;
} */

.phone-frame img {
    width: 100%;
    height: auto;
    /* preserve aspect ratio */
    max-height: none;
    object-fit: contain;
    /* show whole SVG instead of cropping */
    display: block;
}



/* [data-theme="dark"] .phone-frame {
    background: linear-gradient(145deg, #3a3a3a 0%, #2a2a2a 100%);
} */

.phone-notch {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* App Placeholder UI */
.app-placeholder {
    position: absolute;
    inset: 0;
    padding: var(--spacing-lg);
    padding-top: 50px;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: var(--spacing-md);
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
}

.chat-info {
    flex: 1;
}

.chat-name {
    height: 12px;
    width: 80px;
    background: var(--text-primary);
    border-radius: var(--radius-sm);
    opacity: 0.2;
    margin-bottom: 6px;
}

.chat-status {
    height: 8px;
    width: 50px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    opacity: 0.5;
}

.chat-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    overflow: hidden;
}

.message {
    display: flex;
}

.message.received {
    justify-content: flex-end;
}

.message.sent {
    justify-content: flex-start;
}

.message-bubble {
    height: 35px;
    width: 150px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
}

.message.sent .message-bubble {
    background: var(--primary);
    opacity: 0.8;
}

.message-bubble.short {
    width: 80px;
}

.chat-input {
    height: 45px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    margin-top: auto;
}

/* List View Placeholder */
.app-placeholder.list-view {
    gap: var(--spacing-sm);
}

.list-header {
    height: 50px;
    background: var(--primary);
    border-radius: var(--radius-lg);
    opacity: 0.8;
    margin-bottom: var(--spacing-md);
}

.list-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
}

.list-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    flex-shrink: 0;
}

.list-content {
    flex: 1;
}

.list-name {
    height: 10px;
    width: 100px;
    background: var(--text-primary);
    border-radius: var(--radius-sm);
    opacity: 0.2;
    margin-bottom: 8px;
}

.list-message {
    height: 8px;
    width: 140px;
    background: var(--text-tertiary);
    border-radius: var(--radius-sm);
    opacity: 0.3;
}

/* Phone Glow Effect */
.phone-glow {
    position: absolute;
    inset: -50px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.15;
    z-index: -1;
    filter: blur(40px);
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.15;
        transform: scale(1);
    }

    50% {
        opacity: 0.25;
        transform: scale(1.1);
    }
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.float-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    color: var(--primary);
    animation: floatIcon 5s ease-in-out infinite;
}

.float-icon svg {
    width: 24px;
    height: 24px;
}

.float-1 {
    top: 10%;
    left: -20px;
    animation-delay: 0s;
}

.float-2 {
    top: 50%;
    left: -40px;
    animation-delay: -1.5s;
}

.float-3 {
    bottom: 20%;
    right: -30px;
    animation-delay: -3s;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(10deg);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-tertiary);
    font-size: var(--font-size-sm);
    animation: fadeIn 1s ease 1s both;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-tertiary);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: var(--radius-full);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {

    0%,
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 0.3;
        transform: translateX(-50%) translateY(12px);
    }
}

/* Fade In Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   FEATURES SECTION
============================================= */
.features {
    /* padding: var(--spacing-4xl) 0; */
    position: relative;
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto ;
}

.section-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-lg);
    background: rgba(26, 188, 74, 0.1);
    color: var(--primary);
    font-size: var(--font-size-lg);
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .section-title {
        font-size: var(--font-size-2xl);
    }
}

.section-description {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-family: 'IranYekanXLight';
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    /* .features-grid {
        grid-template-columns: repeat(4, 1fr);
    } */
}

/* Feature Card */
.feature-card {
    position: relative;
    padding: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-base);
    filter: blur(40px);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    opacity: 0.15;
}

.feature-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 188, 74, 0.1);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
    color: var(--primary);
    transition: all var(--transition-base);
    font-size: 22px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: var(--text-inverse);
    transform: scale(1.1) rotate(-5deg);
}

.feature-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.feature-description {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: var(--spacing-md);
    text-align:center ;
    font-family: 'IranYekanXRegular';
    font-weight: 500;
}

.feature-highlight {
    display: inline-block;
}

.feature-highlight span {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--primary);
    background: rgba(26, 188, 74, 0.1);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
}

/* Extra Features List */
.features-extra {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-3xl);
    padding: var(--spacing-2xl) 0;

    border-top: 1px solid var(--border-light);
}

.extra-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.extra-item:hover {
    background: rgba(26, 188, 74, 0.1);
    color: var(--primary);
}

.extra-item svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

/* ============================================
   DOWNLOAD SECTION
============================================= */
.download {
    padding: 10px 0;
    background: var(--bg-secondary);
    position: relative;
}

.download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.3;
}

.download-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-3xl);
    align-items: start;
}

@media (min-width: 1024px) {
    .download-content {
        display: flex;
        justify-content: center;
    }
}

/* Download Cards */
.download-cards {
    display: grid;
    grid-template-columns: 1fr;
    /* gap: var(--spacing-lg); */
}

@media (min-width: 640px) {
    .download-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.download-card {
    /* background: var(--bg-card); */
    /* border: 1px solid var(--border-light); */
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all var(--transition-base);
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.download-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
    transition: transform var(--transition-base);
}


.hero-content-hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.download-card:hover .download-icon {
    transform: scale(1.1);
}

.download-icon svg {
    width: 36px;
    height: 36px;
}

.download-icon img {
    border-radius: 10px;
}

.download-icon.android {
    background: linear-gradient(135deg, #3DDC84 0%, #2DA65C 100%);
    color: white;
}

.download-icon.ios {
    background: linear-gradient(135deg, #555555 0%, #1a1a1a 100%);
    color: white;
}

.download-icon.web {
    background: var(--primary-gradient);
    color: white;
}

.download-card h3 {
    /* font-size: var(--font-size-xl); */
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.download-card p {
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
    margin-bottom: var(--spacing-lg);
}

.download-card .btn {
    width: 100%;
    /* margin-bottom: var(--spacing-md); */
    padding: 10px;
}

.store-link {
    display: inline-block;
    font-size: var(--font-size-sm);
    color: var(--primary);
    transition: all var(--transition-fast);
}

.store-link:hover {
    text-decoration: underline;
}

/* QR Code Section */
.qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xl);
}

.qr-container {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
    width: 100%;
    max-width: 280px;
}

.qr-code {
    width: 180px;
    height: 180px;
    margin: 0 auto var(--spacing-lg);
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-placeholder {
    position: absolute;
    inset: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.qr-placeholder svg {
    width: 100%;
    height: 100%;
}

.qr-info h4 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.qr-info p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* Small Device Mockup */
.device-mockup-small {
    display: none;
}

@media (min-width: 1024px) {
    .device-mockup-small {
        display: block;
    }
}

.mockup-phone {
    width: 120px;
    height: 240px;
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 24px;
    padding: 8px;
    box-shadow: var(--shadow-lg);
    transform: rotate(-10deg);
}

.mockup-screen {
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 18px;
    opacity: 0.8;
}

/* ============================================
   FOOTER
============================================= */
.footer {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 10px  0;
    font-size: var(--font-size-md);
}

.footer .container {
    display: flex;
    /* flex-direction: column; */
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    font-size: 14px;
    justify-content: center;
}

/* Footer main area: brand + links */
.footer-content {
    display: flex;
    gap: var(--spacing-3xl);
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Brand column */
.footer-brand {
    /* flex: 1 1 320px; */
    max-width: 420px;
}

/* Footer logo image */
.footer-logo .logo-icon img,
.footer .logo-icon img {
    width: 48px;
    height: auto;
    display: inline-block;
}

/* Links columns */
.footer-links {
    display: flex;
    gap: var(--spacing-lg);
    /* flex: 1 1 320px; */
    justify-content: flex-end;
}

.footer-column {
    min-width: 140px;
}

.footer-column h4 {
    margin: 0 0 var(--spacing-sm) 0;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: calc(var(--spacing-sm) / 2);
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color .15s;
}

.footer-column a:hover {
    color: var(--primary);
}

/* Footer bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-md);
    font-size: var(--font-size-sm);
}

/* Mobile: stack and center everything */
@media (max-width: 767px) {
    .footer .container {
        padding: 0 var(--spacing-md);
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--spacing-md);
        width: 100%;
    }

    .footer-column {
        width: 100%;
        max-width: 320px;
    }

    .footer-column ul {
        display: flex;
        flex-direction: column;
        gap: 6px;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px;
        padding-top: var(--spacing-sm);
    }

    .footer-logo .logo-icon img,
    .footer .logo-icon img {
        width: 40px;
    }
}

/* ============================================
   BACK TO TOP BUTTON
============================================= */
.back-to-top {
    position: fixed;
    bottom: var(--spacing-xl);
    left: var(--spacing-xl);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: var(--text-inverse);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 4px 15px rgba(26, 188, 74, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: var(--z-fixed);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl), 0 8px 25px rgba(26, 188, 74, 0.5);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   UTILITY CLASSES
============================================= */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   REDUCED MOTION
   Respects user preference for reduced motion
============================================= */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .blob {
        animation: none;
    }

    .phone-mockup {
        animation: none;
    }

    .float-icon {
        animation: none;
    }
}

/* ============================================
   PRINT STYLES
============================================= */
@media print {

    .animated-background,
    .navbar,
    .theme-toggle,
    .back-to-top,
    .scroll-indicator {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
}

@media (max-width: 767px) {
    .phone-container {
        min-height: auto;
        padding: 18px 12px;
    }

    .phone-mockup {
        position: static;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .phone-frame {
        position: relative;
        width: 80%;
        max-width: 360px;
        margin: 0 auto 12px;
        transform: none;
        max-height: none;
    }

    .phone-frame img {
        object-fit: contain;
        height: auto;
        max-height: none;
    }

    .phone-front .phone-frame {
        position: relative;
        width: 80%;
        max-width: 360px;
        height: auto;
        align-self: center;
        margin: 0 0 12px 0;
        transform: none;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
        max-height: none;
        /* allow natural height on mobile */
    }

    .phone-front .phone-frame:nth-of-type(odd) {
        align-self: flex-start;
        margin-left: 16%;
    }

    .phone-front .phone-frame:nth-of-type(even) {
        align-self: center;
        margin-left: 0;
    }

    .phone-frame img {
        width: 100%;
        height: auto;
        max-height: none;
    }

    .phone-glow {
        display: none;
    }
}

/* Floating icons: centered group and responsive sizing */
.hero,
.hero .container {
    /* allow icons to overflow outside normal content box */
    position: relative;
    overflow: visible;
}

.floating-elements {
    position: absolute;
    left: 50%;
    top: 8%;
    transform: translateX(-50%);
    width: min(820px, 92%);
    max-width: 820px;
    display: flex;
    justify-content: space-between;
    /* spread icons across the group */
    align-items: center;
    gap: 12px;
    pointer-events: none;
    /* so buttons under them remain clickable */
    z-index: 20;
}

/* individual icons */
.float-icon {
    width: clamp(36px, 5.2vw, 64px);
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground, rgba(0, 0, 0, 0.6));
    /* falls back if no CSS var */
    transform-origin: center;
    pointer-events: none;
}

/* svg inside icons */
.float-icon svg {
    width: 100%;
    height: auto;
    display: block;
    shape-rendering: geometricPrecision;
    image-rendering: optimizeQuality;
    fill: currentColor;
}

/* small adjustments for very narrow screens */
@media (max-width: 420px) {
    .floating-elements {
        top: 6%;
        width: min(360px, 92%);
        gap: 8px;
    }

    .float-icon {
        width: clamp(28px, 8vw, 44px);
    }
}

/* If you want subtle motion */
.float-icon {
    transition: transform .35s ease, opacity .35s ease;
}

.float-icon:hover {
    transform: translateY(-4px);
    pointer-events: auto;
}

/* Override legacy absolute float-* rules, place icons in the centered .floating-elements flex group,
   and force SVG color to brand green (#2ED85C via --primary-light) */
.floating-elements .float-icon,
.floating-elements .float-icon * {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
}

/* Use brand green for the icon SVGs; keep existing background/appearance */
.floating-elements .float-icon {
    color: var(--primary-light);
    /* #2ED85C */
    background: var(--bg-card);
    box-shadow: var(--shadow-lg);
}

/* Ensure SVG uses currentColor (and override any other fill rules) */
.floating-elements .float-icon svg {
    fill: currentColor !important;
    color: inherit;
    width: 100%;
    height: auto;
    display: block;
}

/* Slight per-icon tweaks inside the flex layout if you want small offsets */
.floating-elements .float-1 {
    transform: translateY(-6px);
}

.floating-elements .float-2 {
    transform: translateY(0px);
}

.floating-elements .float-3 {
    transform: translateY(6px);
}

/* Maintain responsive sizing */
.floating-elements {
    gap: 12px;
}

.floating-elements .float-icon {
    width: clamp(36px, 5.2vw, 64px);
}

@media (max-width: 420px) {
    .floating-elements {
        top: 6%;
        width: min(360px, 92%);
    }

    .floating-elements .float-icon {
        width: clamp(28px, 8vw, 44px);
    }
}

/* Phone mockup responsive rules */
.phone-container {
    overflow: visible;
    position: relative;
}

.phone-front {
    position: relative;
    width: 100%;
    transform-origin: center top;
    will-change: transform;
}

/* Each frame keeps absolute positioning for overlap; images stay contained */
.phone-front .phone-frame {
    position: absolute;
    right: 50%;
    top: 10%;
    transform-origin: center center;
    transition: transform .35s ease, right .35s ease, top .35s ease, filter .35s ease;
    width: clamp(160px, 26vw, 320px);
    max-width: 40%;
    pointer-events: auto;
    overflow: visible;
    box-sizing: border-box;
}

/* small visual offset helper */
.phone-frame--offset {

    display: flex;
    justify-content: center;
    align-items: center;
}

/* Ensure SVGs scale and are never cropped */
.phone-front .phone-frame img,
.svg-responsive,
img[src$=".svg"] {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: calc(100vh - 120px);
}

/* Minor per-frame defaults (will be overridden by JS but provides fallback) */
.phone-front .phone-frame:nth-of-type(1) {
    right: 62%;
    top: 6%;
    z-index: 6;
    transform: translateZ(0) scale(1) rotate(0deg);
}

.phone-front .phone-frame:nth-of-type(2) {
    right: 48%;
    top: 10%;
    z-index: 5;
    transform: translateZ(0) scale(.98) rotate(-3deg);
}

.phone-front .phone-frame:nth-of-type(3) {
    right: 34%;
    top: 14%;
    z-index: 4;
    transform: translateZ(0) scale(.96) rotate(-6deg);
}

.phone-front .phone-frame:nth-of-type(4) {
    right: 20%;
    top: 18%;
    z-index: 3;
    transform: translateZ(0) scale(.94) rotate(-9deg);
}

/* Keep group visible on very narrow screens (no forced stacking) */
@media (max-width: 420px) {
    .phone-front .phone-frame {
        width: clamp(140px, 34vw, 260px);
    }

    .phone-front .phone-frame img {
        max-height: calc(100vh - 100px);
    }
}

/* Prevent horizontal overflow on small devices */
html,
body {
    width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

/* Make images & inline SVGs always responsive */
img,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* NAV: hide full link list on mobile, show mobile menu button */
.mobile-menu-btn {
    display: none;
}

/* default hidden on desktop */

@media (max-width: 767px) {

    /* hide desktop nav links on mobile */
    .nav-links {
        display: none !important;
    }

    /* show mobile menu button */
    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 0;
        padding: 8px;
        margin-inline-start: 8px;
        cursor: pointer;
    }

    /* compact header spacing */
    .navbar .container {
        padding-inline: 12px;
        gap: 8px;
    }

    /* HERO: stack content vertically (keep mocked phones overlapped via JS or CSS scaling) */
    .hero-content {
        display: flex;
        flex-direction: column-reverse;
        /* phone preview first, text below */
        align-items: center;
        gap: 1rem;
        text-align: center;
    }

    /* reduce title size on small screens */
    .hero-title {
        font-size: clamp(1.25rem, 5.5vw, 2rem);
        line-height: 1.15;
    }

    .hero-description {
        margin-inline: auto;
        font-size: .95rem;
    }

    /* Hero image container — allow overflow (so overlapped phones remain visible) */
    .hero-image,
    .phone-container {
        width: 100%;
        max-width: 100%;
        overflow: visible;
        /* display: flex; */
        /* justify-content: center; */
        /* align-items: center; */
        padding: 0 6px;
    }

    /* phone mockup group: scale to fit and center */
    .phone-mockup.phone-front {
        position: relative;
        transform-origin: center top;
        width: min(420px, 86%);
        max-width: 86%;
        margin: 0 auto;
    }

    /* each frame keeps overlap but is smaller */
    .phone-front .phone-frame {
        width: clamp(140px, 32vw, 260px);
        max-width: 40%;
        overflow: visible;
    }

    /* ensure svg inside frames is never cropped */
    .phone-front .phone-frame img,
    .phone-front .phone-frame svg,
    .svg-responsive {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
        max-height: calc(100vh - 110px);
    }

    /* floating icons: reduce size or hide if they overlap too much */
    .floating-elements {
        top: 6%;
        width: min(320px, 86%);
        gap: 8px;
        left: 50%;
        transform: translateX(-50%);
    }

    .float-icon {
        width: clamp(28px, 9vw, 44px);
    }

    /* reduce large paddings/margins that can push content off-screen */
    .container {
        padding-inline: 12px;
    }

    .hero {
        padding-block: 20px 28px;
    }
}

/* ---------- Better mobile layout: improved spacing, partial overlap (not full stacking),
   hide floating icons that interfere, keep SVGs contained and visible ---------- */
@media (max-width: 767px) {

    /* general page */
    html,
    body {
        font-size: 15px;
        overflow-x: hidden;
    }

    /* header */
    .navbar .container {
        padding-inline: 12px;
        gap: 8px;
    }

    .nav-links {
        display: none !important;
    }

    /* hide desktop links */
    .mobile-menu-btn {
        display: inline-flex;
    }

    /* hero layout */
    .hero {
        padding: calc(64px + 1.5rem) 12px 2rem;
        min-height: auto;
    }

    .hero .container {
        display: block;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
    }

    /* hero image / phone area */
    .hero-image {
        width: 100%;
        padding: 0;
    }

    .phone-container {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
        overflow: visible;
    }

    /* make mockup narrower and allow partial overlap using negative margins */
    .phone-mockup {
        position: relative;
        width: min(360px, 86%);
        max-width: 360px;
        height: auto;
        display: block;
    }

    .phone-front {
        position: relative;
        width: 100%;
        transform: none;
        transform-origin: center top;
        display: block;
    }

    /* each frame: relative stacking with small negative margin to create overlap but keep full visibility */
    .phone-front .phone-frame {
        position: relative !important;
        width: 82% !important;
        max-width: 320px;
        margin: -36px auto 12px !important;
        /* negative margin creates gentle overlap */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        border-radius: 16px;
        overflow: visible;
        transform: none !important;
    }

    /* nudge odd/even frames slightly to left/right to mimic stagger without absolute positioning */
    .phone-front .phone-frame:nth-of-type(odd) {
        transform: translateX(-7%) scale(0.99);
    }

    .phone-front .phone-frame:nth-of-type(even) {
        transform: translateX(7%) scale(0.98);
    }

    /* ensure SVGs are contained and never cropped */
    .phone-front .phone-frame img,
    .phone-front .phone-frame svg,
    .svg-responsive,
    img[src$=".svg"] {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
        max-height: 62vh !important;
        /* prevents extremely tall images */
    }

    /* hide extras that can overlap or push content off-screen */
    .floating-elements {
        display: none !important;
    }

    .phone-glow {
        display: none !important;
    }

    /* reduce title and description size */
    .hero-title {
        font-size: clamp(1.25rem, 6.5vw, 1.9rem);
        line-height: 1.15;
    }

    .hero-description {
        font-size: .95rem;
        margin-inline: auto;
    }

    /* small tweaks to containers */
    .container {
        padding-inline: 12px;
    }

    .phone-frame--offset {
        margin: 0;
    }

    /* avoid double offsets on mobile */
}

/* Mobile: keep overlapped phone frames visible and prevent clipping */
@media (max-width: 767px) {

    /* allow group to overflow so overlapping phones remain visible */
    .hero,
    .hero .container,
    .hero-image,
    .phone-container {
        overflow: visible !important;
    }

    .phone-mockup,
    .phone-front {
        position: relative;
        width: min(360px, 88%);
        margin: 0 auto;
        transform: none;
        transform-origin: center top;
        display: block;
    }

    /* Stack with gentle overlap (relative positioning avoids cropping) */
    .phone-front .phone-frame {
        position: relative !important;
        width: 86% !important;
        max-width: 340px;
        margin: -36px auto 12px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        border-radius: 14px;
        overflow: visible !important;
        transform: none !important;
    }

    .phone-front .phone-frame:nth-of-type(odd) {
        transform: translateX(-6%) scale(0.99);
    }

    .phone-front .phone-frame:nth-of-type(even) {
        transform: translateX(6%) scale(0.98);
    }

    /* Ensure SVG images always fit inside frames */
    .phone-front .phone-frame img,
    .svg-responsive,
    img[src$=".svg"] {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
        max-height: 62vh !important;
        /* keep them from growing too tall */
    }

    /* Hide distracting extras on narrow screens */
    .floating-elements,
    .phone-glow {
        display: none !important;
    }
}

/* Strong mobile override: ensure all .phone-frame items are visible (stacked) */
@media (max-width: 767px) {

    /* make sure parents do not clip */
    .hero,
    .hero .container,
    .hero-image,
    .phone-container,
    .phone-mockup {
        overflow: visible !important;
    }

    /* Force frames to be normal flow elements (no absolute overlap) */
    .phone-front .phone-frame {
        position: relative !important;
        display: block !important;
        width: 88% !important;
        max-width: 360px !important;
        margin: 12px auto !important;
        /* space between each frame */
        transform: none !important;
        z-index: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08) !important;
        border-radius: 14px !important;
    }

    /* Remove any negative margins that were causing overlap */
    .phone-frame--offset {
        margin: 0 !important;
    }

    /* Images: ensure they always fit and never get clipped */
    .phone-front .phone-frame img,
    .phone-front .phone-frame svg,
    .svg-responsive,
    img[src$=".svg"] {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        object-fit: contain !important;
        max-height: 62vh !important;
    }

    /* hide extras that might cover frames */
    .floating-elements,
    .phone-glow {
        display: none !important;
    }
}

/* Tablet / iPad: make hero two-column and phone mockups responsive */

/* Tablet / iPad: make hero two-column and phone mockups responsive */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero .container {
        display: grid;
        /* grid-template-columns: 1fr 1fr; text + preview */
        gap: var(--spacing-3xl);
        align-items: center;
        justify-items: center;
        /* center content within each grid cell */
    }

    /* .hero-content { */
    /* text-align: right;   keep text on the right side (rtl) */
    /* padding-inline-end: var(--spacing-lg); */
    /* justify-self: start;  keep text aligned to start of its cell */
    /* max-width: 560px; */
    /* } */

    /* center the hero-image cell */
    .hero-image {
        display: grid;
        grid-template-columns: repeat(4, minmax(160px, 1fr));
        /* 2 per column on tablet */
        gap: var(--spacing-md);
        justify-items: center;
        align-items: center;
        width: 100%;
        max-width: 720px;
        margin: 0 auto;
        padding: 0;
        justify-self: center;
        /* ensure the whole image block is centered in its column */
    }

    /* avoid absolute overlapping on tablets — stack / grid flow instead */
    .phone-front .phone-frame {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        width: clamp(160px, 36vw, 300px);
        max-width: 100%;
        margin: 0 auto;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    }

    /* ensure images scale correctly inside frames */
    .phone-front .phone-frame img,
    .phone-front .phone-frame svg {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
        max-height: calc(60vh);
    }

    /* center hero text/CTA vertically with preview */
    .hero-buttons {
        justify-content: flex-start;
    }

    /* hide/adjust floating elements that might overlap on tablet */
    .floating-elements {
        display: none;
    }

    .phone-glow {
        display: none;
    }
}


@media (max-width: 767px) {
    .hero-image {
        display: grid;
        grid-template-columns: repeat(2, minmax(220px, 1fr));
        gap: 0.75rem;
        justify-items: center;
        align-items: center;
        width: 100%;
        margin: 0 auto;
        padding: 0 0.5rem;
        overflow: visible;
        gap: 0;
    }

    /* hide all frames by default on mobile */
    .hero-image>.phone-frame--offset {
        display: none !important;
    }

    /* show the first frame */
    .hero-image>.phone-frame--offset:first-child {
        display: flex !important;
    }

    /* show the last frame before the .phone-glow element
       (nth-last-child(2) targets the element immediately before the last child) */
    .hero-image>.phone-frame--offset:nth-last-child(2) {
        display: flex !important;
    }

    /* ensure images fill their grid cell */
    .hero-image .phone-frame img {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }

    /* hide decorative glow on small screens */
    .hero-image .phone-glow {
        display: none;
    }
}



    /* Hide icon image on small screens and make cards smaller */
    .download-cards {
        display: flex;
        flex-wrap: wrap;
        /* gap: 16px; */
        justify-content: center;
    }

    .download-card {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        border-radius: 10px;
        /* background: #fff; */
        /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); */
        transition: transform .12s;
    }

    .download-icon img {
        width: 56px;
        height: 56px;
        object-fit: cover;
        /* border-radius: 8px; */
    }

    /* Mobile: remove image, compact cards */
    @media (max-width:600px) {
        .download-icon {
            display: none !important;
        }

        /* remove icon image on mobile */
        .download-card {
            width: 48%;
            /* two compact columns */
            max-width: 170px;
            padding: 8px;
            gap: 6px;
            flex-direction: column;
            /* stack content */
            align-items: center;
        }

        .download-card .btn {
            padding: 6px 10px;
            font-size: 13px;
            width: 100%;
            justify-content: center;
        }
    }

    /* Very small phones: single column */
    @media (max-width:420px) {
        .download-card {
            width: 100%;
            max-width: 320px;
        }

        .download-icon img {
            width: 40px;
            height: 40px;
        }
    }



@media screen and (max-width: 410px) {
  /* force phone mockup image to be 70% of its container on very small screens */
  .hero-image .phone-frame img,
  .phone-front .phone-frame img {
    width: 70% !important;
    max-width: 70% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
  }
}



@media screen and (max-width: 410px) {
  /* force phone mockup image to be 70% of its container on very small screens */
  .hero-image .phone-frame img,
  .phone-front .phone-frame img {
    width: 70% !important;
    max-width: 70% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
  }
}


/* Features Section Responsive Styles */
.feature-card {
    /* padding: 2rem; */
    text-align: center;
    transition: all 0.3s ease;
}

.feature-icon {
    margin-bottom: 1rem;
}

.feature-title {
    margin-bottom: 0.5rem;
}

.feature-description {
    color: #666;
    line-height: 1.6;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .feature-description {
        display: none;
    }
    
    .feature-card {
        /* padding: 1.5rem 1rem; */
    }
    
    .feature-title {
        margin-bottom: 0;
        font-size: 11px;
    }
    
    .feature-icon i {
        font-size: 2rem;
    }
    
    /* Make grid more compact on mobile */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}











.features-extra {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem 2rem;
    margin-top: var(--spacing-3xl);
    padding: var(--spacing-2xl) 1rem;
    border-top: 1px solid var(--border-light);
}

.extra-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    /* background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%); */
    border: 1px solid var(--border-light);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.extra-item:hover {
    /* background: linear-gradient(135deg, #e8f5e9 0%, #ffffff 100%); */
    /* border-color: #4caf50; */
    transform: translateY(-2px);
    /* box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15); */
}

.extra-item svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
    color: #4caf50;
    fill: #4caf50;
}

.extra-item span {
    color: var(--text-primary);
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .features-extra {
        gap: 0.875rem 1.5rem;
    }
    
    .extra-item {
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .features-extra {
        gap: 0.75rem;
        padding: var(--spacing-xl) 0.5rem;
        margin-top: var(--spacing-2xl);
    }
    
    .extra-item {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        border-radius: 25px;
    }
    
    .extra-item svg {
        width: 18px;
        height: 18px;
        min-width: 18px;
    }
}

@media (max-width: 480px) {
    .features-extra {
        flex-direction: column;
        align-items: stretch;
        gap: 0.625rem;
    }
    
    .extra-item {
        justify-content: center;
        padding: 0.75rem 1rem;
        border-radius: 12px;
        white-space: normal;
        text-align: center;
    }
}