/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    --ink-900:  #080C14;
    --ink-800:  #0D1321;
    --ink-700:  #111827;
    --ink-600:  #1C2639;
    --ink-500:  #253044;

    --indigo-600: #4F46E5;
    --indigo-500: #6366F1;
    --indigo-400: #818CF8;
    --indigo-300: #A5B4FC;
    --indigo-glow: rgba(99, 102, 241, 0.18);

    --teal-500:  #14B8A6;
    --teal-400:  #2DD4BF;
    --teal-glow: rgba(20, 184, 166, 0.15);

    --amber-400: #FBBF24;
    --amber-300: #FCD34D;

    --surface-1: #111827;
    --surface-2: #161E2E;
    --surface-3: #1C2639;
    --surface-card: rgba(28, 38, 57, 0.7);

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.16);

    --text-primary:  #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted:    #64748B;
    --text-accent:   var(--indigo-400);

    --white: #FFFFFF;
    --black: #000000;

    --r-xs: 6px;
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 32px;
    --r-full: 9999px;

    --shadow-glow-indigo: 0 0 40px rgba(99, 102, 241, 0.22), 0 0 80px rgba(99, 102, 241, 0.08);
    --shadow-glow-teal:   0 0 30px rgba(20, 184, 166, 0.2);
    --shadow-card:  0 1px 2px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.25);
    --shadow-lift:  0 8px 32px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3);

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --t-fast: 150ms;
    --t-base: 250ms;
    --t-slow: 400ms;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Cairo', 'Segoe UI', system-ui, sans-serif;
    background-color: var(--ink-800);
    color: var(--text-primary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Amiri', 'Cairo', serif;
    line-height: 1.25;
    color: var(--text-primary);
}

img { max-width: 100%; display: block; }
ul  { list-style: none; }
a   { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================================
   NOISE TEXTURE OVERLAY (subtle depth)
   ============================================================ */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 19, 33, 0.82);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--t-base) var(--ease),
                border-color var(--t-base) var(--ease);
}

.nav-inner {
    height: 68px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-box {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--indigo-500), var(--indigo-600));
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    font-weight: 900;
    box-shadow: 0 0 0 1px rgba(99,102,241,0.4), var(--shadow-glow-indigo);
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.logo-text--light {
    color: var(--teal-400);
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 6px 14px;
    border-radius: var(--r-full);
    transition: color var(--t-fast) var(--ease),
                background var(--t-fast) var(--ease);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--border-subtle);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.lang-switcher {
    display: flex;
    gap: 2px;
    background: var(--surface-3);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-full);
    padding: 3px;
}

.btn-lang {
    padding: 4px 12px;
    border-radius: var(--r-full);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: all var(--t-fast) var(--ease);
}

.btn-lang:hover {
    color: var(--text-secondary);
}

.btn-lang.active {
    background: var(--indigo-600);
    color: var(--white);
    box-shadow: 0 1px 4px rgba(79,70,229,0.4);
}

.btn-nav-download {
    background: var(--teal-500);
    color: var(--white);
    padding: 8px 20px;
    border-radius: var(--r-full);
    font-weight: 700;
    font-size: 0.875rem;
    transition: all var(--t-base) var(--ease);
    white-space: nowrap;
    box-shadow: 0 0 0 1px rgba(20,184,166,0.3);
}

.btn-nav-download:hover {
    background: var(--teal-400);
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow-teal);
}

.nav-toggle {
    display: none;
    background: var(--surface-3);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-sm);
    padding: 8px 11px;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: all var(--t-fast) var(--ease);
}

.nav-toggle:hover {
    border-color: var(--border-medium);
    color: var(--text-primary);
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--ink-800);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.25rem 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 999;
    transform: translateY(-108%);
    opacity: 0;
    transition: transform 0.32s var(--ease), opacity 0.28s var(--ease);
    box-shadow: 0 24px 40px rgba(0,0,0,0.5);
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu .nav-link {
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--r-sm);
    border-bottom: none;
}

.lang-mobile {
    display: flex;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    margin-top: 0.5rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: 68px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--ink-900);
}

.hero-bg-orb {
    position: absolute;
    border-radius: var(--r-full);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.hero-bg-orb--1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(99,102,241,0.22) 0%, transparent 70%);
    top: -200px;
    right: -150px;
}

.hero-bg-orb--2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(20,184,166,0.14) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
}

.hero-bg-orb--3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(251,191,36,0.07) 0%, transparent 70%);
    top: 30%;
    left: 40%;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 5rem 0;
}

.hero-copy {
    display: flex;
    flex-direction: column;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--r-full);
    padding: 6px 16px 6px 8px;
    margin-bottom: 2rem;
    width: fit-content;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--teal-400);
    border-radius: var(--r-full);
    box-shadow: 0 0 8px var(--teal-400);
    animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

.hero-badge-text {
    color: var(--indigo-300);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: 3.6rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-title em {
    font-style: normal;
    color: transparent;
    background: linear-gradient(135deg, var(--indigo-400), var(--teal-400));
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 2.5rem;
    max-width: 460px;
}

.hero-actions {
    display: flex;
    gap: 0.875rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--indigo-600), var(--indigo-500));
    color: var(--white);
    padding: 13px 30px;
    border-radius: var(--r-full);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all var(--t-base) var(--ease);
    box-shadow: 0 0 0 1px rgba(99,102,241,0.35), var(--shadow-glow-indigo);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--indigo-500), var(--indigo-600));
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(99,102,241,0.5), 0 8px 30px rgba(99,102,241,0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-strong);
    color: var(--text-secondary);
    padding: 13px 30px;
    border-radius: var(--r-full);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all var(--t-base) var(--ease);
    background: transparent;
}

.btn-secondary:hover {
    border-color: var(--indigo-400);
    color: var(--text-primary);
    background: var(--indigo-glow);
    transform: translateY(-2px);
}

.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 2rem;
}

.hero-avatars {
    display: flex;
}

.hero-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--r-full);
    background: linear-gradient(135deg, var(--indigo-600), var(--teal-500));
    border: 2px solid var(--ink-900);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--white);
    margin-right: -8px;
}

.hero-avatar:last-child { margin-right: 0; }

.hero-social-text {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.hero-social-text strong {
    color: var(--teal-400);
    font-weight: 700;
}

/* ============================================================
   PHONE MOCKUP
   ============================================================ */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, transparent 65%);
    border-radius: var(--r-full);
    filter: blur(40px);
    z-index: -1;
}

.phone-mockup {
    width: 290px;
    background: var(--surface-2);
    border-radius: 40px;
    overflow: hidden;
    border: 1px solid var(--border-medium);
    box-shadow: var(--shadow-lift), 0 0 0 1px var(--border-subtle);
    transition: transform var(--t-slow) var(--ease);
}

.phone-mockup:hover {
    transform: translateY(-8px) rotate(-1deg);
}

.phone-header {
    background: linear-gradient(145deg, var(--ink-900), var(--ink-600));
    padding: 22px 22px 18px;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
}

.phone-notch {
    width: 64px;
    height: 5px;
    background: rgba(255,255,255,0.12);
    border-radius: var(--r-full);
    margin: 0 auto 14px;
}

.phone-app-title {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.phone-content {
    padding: 18px;
}

.phone-card {
    background: var(--surface-3);
    border-radius: var(--r-md);
    padding: 14px;
    margin-bottom: 14px;
    border: 1px solid var(--border-subtle);
}

.phone-card-meta {
    font-size: 0.68rem;
    color: var(--teal-400);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 5px;
}

.phone-card-title {
    font-size: 0.88rem;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.35;
}

.phone-progress {
    height: 5px;
    background: var(--ink-500);
    border-radius: var(--r-full);
    margin-top: 10px;
    overflow: hidden;
}

.phone-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--indigo-500), var(--teal-400));
    border-radius: var(--r-full);
}

.phone-progress-bar--demo {
    width: 68%;
}

.phone-stats {
    display: flex;
    gap: 10px;
}

.phone-stat-box {
    background: var(--ink-900);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-md);
    padding: 12px;
    flex: 1;
    text-align: center;
}

.phone-stat-val {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--teal-400);
    display: block;
    line-height: 1;
    margin-bottom: 4px;
}

.phone-stat-lbl {
    font-size: 0.65rem;
    color: var(--text-muted);
    display: block;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
    background: var(--surface-1);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
    border-right: 1px solid var(--border-subtle);
}

.stat-item:last-child { border-right: none; }

[dir="ltr"] .stat-item {
    border-right: none;
    border-left: 1px solid var(--border-subtle);
}

[dir="ltr"] .stat-item:last-child { border-left: none; }

.stat-item-num {
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: transparent;
    background: linear-gradient(135deg, var(--indigo-400), var(--teal-400));
    -webkit-background-clip: text;
    background-clip: text;
}

.stat-item-lbl {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ============================================================
   SECTIONS — SHARED
   ============================================================ */
.section {
    padding: 7rem 0;
    background: var(--ink-800);
    position: relative;
}

.section--alt {
    background: var(--surface-1);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--teal-400);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 1rem;
}

.section-eyebrow::before,
.section-eyebrow::after {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--teal-400);
    opacity: 0.5;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.8;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5px;
    background: var(--border-subtle);
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.feat-card {
    background: var(--surface-2);
    padding: 2.5rem;
    transition: background var(--t-base) var(--ease);
    position: relative;
    overflow: hidden;
}

.feat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 0% 0%, var(--indigo-glow) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--t-base) var(--ease);
}

.feat-card:hover {
    background: var(--surface-3);
}

.feat-card:hover::after {
    opacity: 1;
}

.feat-icon {
    width: 52px;
    height: 52px;
    background: var(--indigo-glow);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.feat-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    position: relative;
    z-index: 1;
}

.feat-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.75;
    position: relative;
    z-index: 1;
}

/* ============================================================
   STEPS
   ============================================================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 33px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-medium), transparent);
    z-index: 0;
}

.step-card {
    text-align: center;
    padding: 1.5rem 1rem;
    position: relative;
    z-index: 1;
}

.step-number-ring {
    width: 66px;
    height: 66px;
    background: var(--surface-2);
    border: 1px solid var(--border-medium);
    border-radius: var(--r-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--text-secondary);
    margin: 0 auto 1.5rem;
    transition: all var(--t-base) var(--ease);
    position: relative;
}

.step-number-ring::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: var(--r-full);
    background: conic-gradient(from 0deg, var(--indigo-500), var(--teal-400), transparent 60%);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--t-base) var(--ease);
}

.step-card:hover .step-number-ring {
    background: var(--indigo-glow);
    border-color: var(--indigo-400);
    color: var(--indigo-300);
    box-shadow: var(--shadow-glow-indigo);
}

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

.step-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.step-card-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.testi-card {
    background: var(--surface-card);
    border-radius: var(--r-lg);
    padding: 2rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    transition: all var(--t-base) var(--ease);
    backdrop-filter: blur(8px);
}

.testi-card:hover {
    border-color: var(--border-medium);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
}

.testi-stars-wrapper {
    color: var(--amber-400);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

.testi-body-text {
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.85;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testi-profile {
    display: flex;
    gap: 12px;
    align-items: center;
}

.testi-avatar-placeholder {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--indigo-600), var(--teal-500));
    color: var(--white);
    border-radius: var(--r-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px var(--border-medium);
}

.testi-name {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.testi-meta-role {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: block;
}

/* ============================================================
   DOWNLOAD CTA
   ============================================================ */
.cta-download-block {
    position: relative;
    text-align: center;
    padding: 7rem 0;
    background: var(--ink-900);
    overflow: hidden;
}

.cta-download-block::before {
    content: '';
    position: absolute;
    width: 900px;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(99,102,241,0.18) 0%, rgba(20,184,166,0.06) 40%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: blur(20px);
}

.cta-download-block .container {
    position: relative;
    z-index: 1;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.22);
    border-radius: var(--r-full);
    padding: 5px 14px;
    margin-bottom: 1.5rem;
    color: var(--teal-400);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cta-icon-wrapper {
    font-size: 3.25rem;
    margin-bottom: 1.25rem;
    display: block;
    filter: drop-shadow(0 0 20px rgba(99,102,241,0.4));
}

.cta-title-text {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cta-desc-text {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 2.75rem;
    font-size: 1rem;
    line-height: 1.85;
}

.store-buttons-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.store-badge-link {
    background: var(--surface-2);
    border: 1px solid var(--border-medium);
    border-radius: var(--r-md);
    padding: 14px 28px;
    display: inline-flex;
    gap: 14px;
    align-items: center;
    color: var(--text-primary);
    transition: all var(--t-base) var(--ease);
    min-width: 175px;
    justify-content: center;
}

.store-badge-link:hover {
    background: var(--surface-3);
    border-color: var(--indigo-400);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-indigo);
}

.store-badge-link small {
    display: block;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.store-badge-link strong {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--ink-900);
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border-subtle);
}

.footer-grid-layout {
    display: grid;
    grid-template-columns: 1.75fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 2rem;
}

.footer-brand .logo {
    margin-bottom: 1.25rem;
    display: inline-flex;
}

.footer-branding-p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.75;
    max-width: 270px;
}

.footer-column-nav h4 {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 1.25rem;
    font-family: 'Cairo', sans-serif;
}

.footer-column-nav ul li {
    margin-bottom: 0.7rem;
}

.footer-column-nav a {
    color: var(--text-muted);
    font-size: 0.88rem;
    transition: color var(--t-fast) var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-column-nav a::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: var(--r-full);
    background: var(--indigo-500);
    opacity: 0;
    transition: opacity var(--t-fast) var(--ease);
    flex-shrink: 0;
}

.footer-column-nav a:hover {
    color: var(--text-primary);
}

.footer-column-nav a:hover::before {
    opacity: 1;
}

[dir="ltr"] .footer-column-nav a::before {
    order: 0;
}

[dir="rtl"] .footer-column-nav a::before {
    order: 1;
}

.footer-copyright-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-copyright-bar a {
    color: var(--text-muted);
    transition: color var(--t-fast) var(--ease);
}

.footer-copyright-bar a:hover {
    color: var(--text-secondary);
}

/* ============================================================
   RESPONSIVE — TABLET ≤ 1024px
   ============================================================ */
@media (max-width: 1024px) {
    .nav-links      { display: none; }
    .nav-toggle     { display: block; }
    .btn-nav-download { display: none; }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        padding: 4rem 0 3.5rem;
    }

    .hero-title   { font-size: 3rem; }
    .hero-desc    { margin: 0 auto 2.5rem; }
    .hero-badge   { margin: 0 auto 2rem; }
    .hero-actions { justify-content: center; }
    .hero-social-proof { justify-content: center; }
    .hero-visual  { order: -1; }

    .features-grid    { grid-template-columns: repeat(2, 1fr); }
    .testi-grid       { grid-template-columns: repeat(2, 1fr); }
    .steps-grid       { grid-template-columns: repeat(2, 1fr); }
    .stats-grid       { grid-template-columns: repeat(2, 1fr); }
    .footer-grid-layout { grid-template-columns: repeat(2, 1fr); }

    .steps-grid::before { display: none; }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
    }

    .stat-item:nth-child(odd) {
        border-right: 1px solid var(--border-subtle);
    }
}

/* ============================================================
   RESPONSIVE — MOBILE ≤ 640px
   ============================================================ */
@media (max-width: 640px) {
    .container   { padding: 0 1.25rem; }
    .section     { padding: 4.5rem 0; }

    .hero-title  { font-size: 2.25rem; }
    .section-title { font-size: 1.9rem; }
    .cta-title-text { font-size: 1.85rem; }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary { justify-content: center; }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .testi-grid,
    .steps-grid,
    .footer-grid-layout { grid-template-columns: 1fr; }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(odd) {
        border-right: 1px solid var(--border-subtle);
    }

    .stat-item:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .phone-mockup  { width: 255px; }

    .store-buttons-container { flex-direction: column; align-items: center; }
    .store-badge-link        { width: 100%; max-width: 280px; }

    .footer-copyright-bar {
        flex-direction: column;
        text-align: center;
    }

    .footer-grid-layout {
        grid-template-columns: 1fr;
    }

    [dir="ltr"] .stat-item { border-left: none; }
    [dir="ltr"] .stat-item:nth-child(odd) { border-left: 1px solid var(--border-subtle); }
}

/* ============================================================
   HERO IMAGE (replaces phone mockup when set)
   ============================================================ */
.hero-image-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrap::before {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(99,102,241,0.22) 0%, transparent 65%);
    border-radius: var(--r-full);
    filter: blur(40px);
    z-index: 0;
}

.hero-img {
    position: relative;
    z-index: 1;
    max-width: 320px;
    width: 100%;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lift), 0 0 0 1px var(--border-subtle);
    transition: transform var(--t-slow) var(--ease);
    object-fit: cover;
}

.hero-img:hover {
    transform: translateY(-8px) rotate(-1deg);
}

@media (max-width: 1024px) {
    .hero-img { max-width: 280px; }
}

@media (max-width: 640px) {
    .hero-img { max-width: 240px; }
}

/* ============================================================
   INNER PAGES (legal, contact, delete-account)
   ============================================================ */
.inner-page {
    padding-top: 68px;
    min-height: 100vh;
    background: var(--ink-800);
}

.inner-page .container {
    padding-top: 4rem;
    padding-bottom: 5rem;
}

.inner-page__header {
    text-align: center;
    margin-bottom: 3.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-subtle);
}

.inner-page__header--danger {
    padding: 2.5rem;
    background: rgba(239, 68, 68, 0.04);
    border: 1px solid rgba(239, 68, 68, 0.12);
    border-radius: var(--r-lg);
    margin-bottom: 2.5rem;
}

.inner-page__title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.inner-page__subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.75;
}

.inner-page__date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.inner-page__footer-actions {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.delete-icon-wrap {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.alert-danger {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--r-md);
    padding: 1rem 1.25rem;
    margin-top: 1.25rem;
    text-align: start;
    color: #FCA5A5;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ---- Legal pages ---- */
.legal-content {
    max-width: 760px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.legal-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.legal-section ul {
    padding-right: 1.25rem;
    margin-top: 0.5rem;
}

[dir="ltr"] .legal-section ul {
    padding-right: 0;
    padding-left: 1.25rem;
}

.legal-section ul li {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.75;
    margin-bottom: 0.4rem;
    list-style: disc;
}

.legal-section a {
    color: var(--indigo-400);
    transition: color var(--t-fast) var(--ease);
}

.legal-section a:hover {
    color: var(--teal-400);
}

.legal-agreement {
    max-width: 760px;
    margin: 2.5rem auto 0;
    padding: 1.25rem 1.5rem;
    background: var(--indigo-glow);
    border: 1px solid rgba(99,102,241,0.18);
    border-radius: var(--r-md);
    color: var(--indigo-300);
    font-size: 0.9rem;
    text-align: center;
}

/* ---- Contact page ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 2.5rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.info-card {
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-lg);
    padding: 1.5rem;
    transition: border-color var(--t-base) var(--ease);
}

.info-card:hover {
    border-color: var(--border-medium);
}

.info-card__icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.info-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.info-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.25rem;
}

.info-card p a {
    color: var(--indigo-400);
    transition: color var(--t-fast) var(--ease);
}

.info-card p a:hover { color: var(--teal-400); }

.info-card__note {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    display: block;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.social-link {
    background: var(--surface-3);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-full);
    padding: 4px 14px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all var(--t-fast) var(--ease);
}

.social-link:hover {
    border-color: var(--indigo-400);
    color: var(--indigo-300);
}

.contact-form-wrap {
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-lg);
    padding: 2rem;
}

.contact-form-wrap__heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.75rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    background: var(--surface-3);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-sm);
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.5;
    transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:focus {
    border-color: var(--indigo-500);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ---- Delete account page ---- */
.delete-content {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.content-box {
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-lg);
    padding: 1.75rem 2rem;
}

.content-box--highlight {
    border-color: rgba(99,102,241,0.22);
    background: rgba(99,102,241,0.05);
}

.content-box__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.content-box p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.content-box p a {
    color: var(--indigo-400);
}

.content-box__note {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-style: italic;
}

.check-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
}

.check-list li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: var(--r-sm);
    background: var(--surface-3);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.check-list--danger li::before {
    content: '✕';
    color: #F87171;
    font-weight: 700;
    flex-shrink: 0;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 12px 16px;
    background: var(--surface-3);
    border-radius: var(--r-md);
    border: 1px solid var(--border-subtle);
}

.step-item__num {
    width: 32px;
    height: 32px;
    border-radius: var(--r-full);
    background: linear-gradient(135deg, var(--indigo-600), var(--indigo-500));
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-item__text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ---- Responsive inner pages ---- */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .inner-page__title { font-size: 1.9rem; }
}

@media (max-width: 640px) {
    .inner-page .container {
        padding-top: 2.5rem;
        padding-bottom: 3.5rem;
    }

    .contact-form-wrap {
        padding: 1.5rem;
    }

    .content-box {
        padding: 1.25rem;
    }
}

/* ============================================================
   SCREENSHOTS SECTION
   ============================================================ */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
}

.screenshot-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: transform var(--t-base) var(--ease);
}

.screenshot-card:hover {
    transform: translateY(-6px);
}

.screenshot-frame {
    border-radius: var(--r-xl);
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lift);
    aspect-ratio: 9 / 19;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.screenshot-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--indigo-500), var(--teal-400));
    z-index: 1;
}

.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.screenshot-placeholder {
    font-size: 4rem;
    opacity: 0.2;
}

.screenshot-meta {
    text-align: center;
    padding: 0 0.5rem;
}

.screenshot-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.screenshot-caption {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .screenshots-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

@media (max-width: 640px) {
    .screenshots-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.875rem;
    }
    .screenshot-frame { border-radius: var(--r-lg); }
}

/* ============================================================
   CUSTOM SECTIONS
   ============================================================ */
.custom-section {
    padding: 6rem 0;
}

.custom-section--dark    { background: var(--ink-800); }
.custom-section--darker  { background: var(--ink-900); }
.custom-section--alt     { background: var(--surface-1); }
.custom-section--gradient {
    background: linear-gradient(135deg, var(--ink-900) 0%, var(--indigo-600) 60%, var(--teal-500) 100%);
}
.custom-section--teal {
    background: linear-gradient(135deg, var(--ink-900) 0%, rgba(20,184,166,0.25) 100%);
}

.custom-section__inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.custom-section--layout-left .custom-section__inner {
    text-align: start;
    align-items: flex-start;
    margin: 0;
}

.custom-section--layout-right .custom-section__inner {
    text-align: end;
    align-items: flex-end;
    margin: 0 0 0 auto;
}

.custom-section__title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.custom-section__subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 560px;
}

.custom-section__body {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.85;
    max-width: 600px;
}

.custom-section__html {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.85;
    width: 100%;
}

.custom-section__html a { color: var(--indigo-400); }
.custom-section__html strong { color: var(--text-primary); }

.custom-section__img-centered {
    border-radius: var(--r-xl);
    max-width: 480px;
    width: 100%;
    box-shadow: var(--shadow-lift);
    border: 1px solid var(--border-subtle);
    margin-top: 0.5rem;
}

.custom-section__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 32px;
    border-radius: var(--r-full);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all var(--t-base) var(--ease);
    margin-top: 0.5rem;
}

.custom-section__btn--primary {
    background: linear-gradient(135deg, var(--indigo-600), var(--indigo-500));
    color: var(--white);
    box-shadow: var(--shadow-glow-indigo);
}

.custom-section__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99,102,241,0.4);
}

.custom-section__btn--teal {
    background: var(--teal-500);
    color: var(--white);
    box-shadow: var(--shadow-glow-teal);
}

.custom-section__btn--teal:hover {
    background: var(--teal-400);
    transform: translateY(-2px);
}

.custom-section__btn--outline {
    border: 1.5px solid var(--border-strong);
    color: var(--text-primary);
    background: transparent;
}

.custom-section__btn--outline:hover {
    border-color: var(--indigo-400);
    color: var(--indigo-300);
    background: var(--indigo-glow);
}

.custom-section__btn--ghost {
    color: var(--text-secondary);
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
}

.custom-section__btn--ghost:hover {
    color: var(--text-primary);
    border-color: var(--border-medium);
    transform: translateY(-2px);
}

.custom-section__split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.custom-section--layout-image_left .custom-section__split {
    direction: rtl;
}

[dir="ltr"] .custom-section--layout-image_left .custom-section__split {
    direction: ltr;
}

.custom-section__copy {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.custom-section__image img {
    border-radius: var(--r-xl);
    width: 100%;
    box-shadow: var(--shadow-lift);
    border: 1px solid var(--border-subtle);
}

@media (max-width: 900px) {
    .custom-section__split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .custom-section__copy {
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .custom-section { padding: 4rem 0; }
    .custom-section__title { font-size: 1.75rem; }
}
