/* =====================================================
   DamatexPay — Global Stylesheet
   ===================================================== */

:root {
    --deep-blue: #0A1E3C;
    --deep-blue-2: #1E3A5F;
    --deep-blue-3: #142A4A;
    --gold: #D4AF37;
    --gold-light: #E8C766;
    --gold-soft: rgba(212, 175, 55, 0.12);
    --black: #0D0D0D;
    --white: #FFFFFF;
    --red: #E53935;
    --gray-light: #F5F6F8;
    --gray-100: #EEF1F5;
    --gray-300: #CBD2DC;
    --gray-500: #6B7280;
    --text: #1A1A2E;

    --shadow-sm: 0 4px 16px rgba(10, 30, 60, 0.06);
    --shadow: 0 10px 40px rgba(10, 30, 60, 0.08);
    --shadow-lg: 0 24px 64px rgba(10, 30, 60, 0.16);

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --container: 1200px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: 'Poppins', sans-serif;
    color: var(--deep-blue);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { color: var(--gray-500); }
a { color: var(--deep-blue); text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============ Preloader ============ */
#preloader {
    position: fixed; inset: 0;
    background: var(--deep-blue);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-logo img { width: 70px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.12); opacity: 0.7; }
}

/* ============ Header ============ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: var(--transition);
    background: transparent;
}
.site-header.scrolled {
    background: rgba(10, 30, 60, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 12px 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
}
.brand {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700; font-size: 1.25rem;
    color: var(--white);
}
.brand-logo { width: 36px; height: 36px; object-fit: contain; }
.brand-name { letter-spacing: -0.01em; }

.main-nav ul {
    display: flex; align-items: center; gap: 36px;
}
.main-nav a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}
.main-nav a::after {
    content: ''; position: absolute;
    bottom: -6px; left: 0;
    width: 0; height: 2px;
    background: var(--gold);
    transition: width var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--white); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.nav-cta { display: flex; gap: 12px; margin-left: 32px; }

.menu-toggle {
    display: none;
    flex-direction: column; gap: 5px;
    padding: 8px;
}
.menu-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Buttons ============ */
.btn {
    display: inline-flex;
    align-items: center; justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius);
    transition: var(--transition);
    white-space: nowrap;
    border: 2px solid transparent;
}
.btn-primary {
    background: var(--gold);
    color: var(--black);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
}
.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.45);
}
.btn-secondary {
    background: var(--deep-blue);
    color: var(--white);
}
.btn-secondary:hover { background: var(--deep-blue-2); transform: translateY(-2px); }
.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.35);
}
.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(212, 175, 55, 0.06);
}
.btn-outline-dark {
    color: var(--deep-blue);
    border-color: var(--deep-blue);
}
.btn-outline-dark:hover {
    background: var(--deep-blue);
    color: var(--white);
}
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.btn-lg { padding: 17px 38px; font-size: 1.05rem; }

/* ============ Hero ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    background:
        radial-gradient(1000px 700px at 82% 20%, rgba(212, 175, 55, 0.14), transparent 60%),
        radial-gradient(700px 700px at 10% 90%, rgba(30, 58, 95, 0.9), transparent 65%),
        linear-gradient(140deg, var(--deep-blue) 0%, var(--deep-blue-3) 55%, #071527 100%);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 80%);
    pointer-events: none;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 100px;
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.hero-eyebrow .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    animation: dotPulse 2s infinite;
}
@keyframes dotPulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.hero h1 {
    color: var(--white);
    margin-bottom: 20px;
}
.hero h1 .grad {
    background: linear-gradient(120deg, var(--gold) 0%, var(--gold-light) 60%, #fff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 32px;
    max-width: 540px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }

.hero-trust {
    display: flex; gap: 24px; flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.trust-item {
    display: flex; align-items: center; gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
}
.trust-item .tick {
    color: var(--gold);
    display: flex;
}

/* Hero visual */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 520px;
}
.hero-blob {
    position: absolute;
    width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.28) 0%, transparent 65%);
    border-radius: 50%;
    filter: blur(30px);
    animation: float 8s ease-in-out infinite;
}
.hero-visual img {
    position: relative;
    z-index: 2;
    max-height: 560px;
    width: auto;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.4));
    animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}
@keyframes float {
    0%, 100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(20px,-20px) scale(1.05); }
}

/* Floating cards */
.float-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.97);
    border-radius: var(--radius);
    padding: 14px 18px;
    box-shadow: var(--shadow-lg);
    z-index: 3;
    display: flex; align-items: center; gap: 12px;
    animation: floatY 5s ease-in-out infinite;
}
.float-card.fc-1 { top: 8%; left: -6%; animation-delay: -1s; }
.float-card.fc-2 { bottom: 12%; right: -4%; animation-delay: -2.5s; }
.float-card .fc-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: var(--gold-soft);
    color: var(--gold);
}
.float-card .fc-label { font-size: 0.7rem; color: var(--gray-500); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.float-card .fc-value { font-size: 0.95rem; font-weight: 700; color: var(--deep-blue); }

/* ============ Sections ============ */
section { padding: 100px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-head .eyebrow {
    display: inline-block;
    color: var(--gold);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.section-head h2 { margin-bottom: 16px; }
.section-head p { font-size: 1.05rem; }

/* ============ Feature Cards ============ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 34px 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--deep-blue), var(--deep-blue-2));
    color: var(--gold);
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(10, 30, 60, 0.2);
}
.feature-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.feature-card p { font-size: 0.95rem; }

/* ============ How It Works ============ */
.how-it-works { background: var(--gray-light); }
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 28px;
    position: relative;
}
.step {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 26px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step-number {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--black);
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.9rem; }

/* ============ Showcase (App Screens) ============ */
.showcase { background: var(--deep-blue); color: var(--white); overflow: hidden; }
.showcase .section-head h2 { color: var(--white); }
.showcase .section-head p { color: rgba(255, 255, 255, 0.7); }
.showcase .section-head .eyebrow { color: var(--gold); }

.screens-scroller {
    display: flex;
    gap: 26px;
    padding: 20px 0 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.screens-scroller::-webkit-scrollbar { display: none; }

.screen-card {
    flex: 0 0 auto;
    width: 260px;
    scroll-snap-align: center;
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.screen-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(212, 175, 55, 0.5);
    background: linear-gradient(160deg, rgba(212, 175, 55, 0.1), rgba(255,255,255,0.03));
}
.screen-card img {
    width: 100%;
    border-radius: var(--radius);
    filter: drop-shadow(0 14px 30px rgba(0,0,0,0.4));
}

/* ============ Stats ============ */
.stats { background: var(--white); }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
}
.stat {
    text-align: center;
    padding: 34px 20px;
    border-radius: var(--radius-lg);
    background: var(--gray-light);
    transition: var(--transition);
}
.stat:hover { background: linear-gradient(135deg, var(--deep-blue), var(--deep-blue-2)); }
.stat:hover .stat-value,
.stat:hover .stat-label { color: var(--white); }
.stat:hover .stat-value { color: var(--gold); }
.stat-value {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--deep-blue);
    line-height: 1;
    margin-bottom: 8px;
    transition: var(--transition);
}
.stat-label {
    font-size: 0.9rem;
    color: var(--gray-500);
    font-weight: 500;
    transition: var(--transition);
}

/* ============ Testimonials ============ */
.testimonials { background: var(--gray-light); }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 26px;
}
.testimonial {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}
.testimonial:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.testimonial .quote {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}
.testimonial-user { display: flex; align-items: center; gap: 14px; }
.testimonial-user img {
    width: 54px; height: 54px;
    border-radius: 50%;
    object-fit: contain;
    background: var(--gold-soft);
    padding: 4px;
}
.testimonial-user .name { font-weight: 700; color: var(--deep-blue); font-size: 0.95rem; }
.testimonial-user .role { font-size: 0.8rem; color: var(--gray-500); }
.stars { color: var(--gold); margin-bottom: 14px; font-size: 1rem; letter-spacing: 2px; }

/* ============ CTA Section ============ */
.cta-section {
    position: relative;
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--deep-blue-3) 100%);
    color: var(--white);
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2), transparent 70%);
    top: -150px; right: -100px;
    border-radius: 50%;
}
.cta-section::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12), transparent 70%);
    bottom: -150px; left: -100px;
    border-radius: 50%;
}
.cta-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.cta-inner h2 { color: var(--white); margin-bottom: 12px; }
.cta-inner p { color: rgba(255, 255, 255, 0.75); font-size: 1.05rem; max-width: 560px; }
.cta-inner .btn-primary { flex-shrink: 0; }

/* ============ Page Hero (inner pages) ============ */
.page-hero {
    padding: 170px 0 90px;
    background:
        radial-gradient(800px 500px at 80% 30%, rgba(212, 175, 55, 0.14), transparent 60%),
        linear-gradient(140deg, var(--deep-blue) 0%, var(--deep-blue-3) 100%);
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at 50% 50%, black, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black, transparent 75%);
}
.page-hero h1 { color: var(--white); margin-bottom: 14px; position: relative; }
.page-hero p { color: rgba(255, 255, 255, 0.75); font-size: 1.05rem; max-width: 640px; margin: 0 auto; position: relative; }
.page-hero .breadcrumb { margin-top: 22px; position: relative; font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.page-hero .breadcrumb a { color: var(--gold); }

/* ============ Content pages ============ */
.content-page { padding: 80px 0; }
.content-page .container { max-width: 860px; }
.content-page h2 { margin: 40px 0 16px; font-size: 1.6rem; }
.content-page h2:first-child { margin-top: 0; }
.content-page h3 { margin: 28px 0 12px; font-size: 1.2rem; color: var(--deep-blue); }
.content-page p { margin-bottom: 16px; color: var(--gray-500); }
.content-page ul { margin: 14px 0 22px 0; padding-left: 6px; }
.content-page ul li {
    padding-left: 26px;
    position: relative;
    margin-bottom: 10px;
    color: var(--gray-500);
}
.content-page ul li::before {
    content: '';
    position: absolute;
    left: 0; top: 10px;
    width: 8px; height: 8px;
    background: var(--gold);
    border-radius: 50%;
}
.content-page strong { color: var(--deep-blue); }

/* ============ About page ============ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-grid.reverse { direction: rtl; }
.about-grid.reverse > * { direction: ltr; }
.about-grid img {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    filter: drop-shadow(0 24px 50px rgba(10, 30, 60, 0.18));
}
.about-grid .eyebrow {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 14px;
    display: block;
}
.about-grid h2 { margin-bottom: 18px; }
.about-grid p { margin-bottom: 16px; }
.about-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 22px;
    margin-top: 40px;
}
.value-item {
    padding: 24px 22px;
    background: var(--gray-light);
    border-radius: var(--radius);
    border-left: 3px solid var(--gold);
}
.value-item h4 { font-family: 'Poppins', sans-serif; color: var(--deep-blue); margin-bottom: 6px; font-size: 1rem; }
.value-item p { font-size: 0.88rem; margin: 0; }

/* ============ Contact page ============ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
}
.contact-info { padding-right: 20px; }
.contact-info h2 { margin-bottom: 16px; }
.contact-info > p { margin-bottom: 32px; }
.contact-item {
    display: flex; gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}
.contact-item .ci-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--gold-soft);
    color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.contact-item .ci-text { font-size: 0.95rem; color: var(--text); }
.contact-item .ci-label {
    font-weight: 600;
    color: var(--deep-blue);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 3px;
}
.contact-item a { color: var(--text); }
.contact-item a:hover { color: var(--gold); }

.contact-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--deep-blue);
    margin-bottom: 8px;
}
.form-control {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--gray-100);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text);
    transition: var(--transition);
    font-size: 0.95rem;
}
.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
}
textarea.form-control { resize: vertical; min-height: 130px; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 0.92rem;
    border-left: 4px solid;
}
.alert-success { background: #E8F7EE; color: #1B5E20; border-color: #1B5E20; }
.alert-error { background: #FEEAEA; color: #B71C1C; border-color: var(--red); }

/* ============ Footer ============ */
.site-footer {
    background: #05101F;
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px;
    position: relative;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand .brand { color: var(--white); margin-bottom: 18px; }
.footer-desc { font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); max-width: 340px; margin-bottom: 22px; }
.social-links { display: flex; gap: 12px; }
.social-links a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255, 255, 255, 0.75);
    transition: var(--transition);
}
.social-links a:hover {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-3px);
}
.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    transition: var(--transition);
}
.footer-col ul a:hover { color: var(--gold); padding-left: 4px; }
.footer-col ul li { color: rgba(255, 255, 255, 0.65); font-size: 0.9rem; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}
.footer-legal a { color: rgba(255, 255, 255, 0.65); }
.footer-legal a:hover { color: var(--gold); }

/* Back to top */
.back-to-top {
    position: fixed;
    right: 26px;
    bottom: 26px;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--black);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.45);
    opacity: 0; visibility: hidden;
    transition: var(--transition);
    z-index: 900;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-4px); background: var(--gold-light); }

/* ============ Reveal animation ============ */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 50px; text-align: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .hero-trust { justify-content: center; }
    .hero-visual { min-height: 420px; }
    .hero-visual img { max-height: 460px; }
    .float-card.fc-1 { left: 0; }
    .float-card.fc-2 { right: 0; }

    .cta-inner { grid-template-columns: 1fr; text-align: center; }
    .cta-inner .btn-primary { justify-self: center; }
    .contact-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .about-grid img { margin: 0 auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    section { padding: 70px 0; }
    .hero { padding: 120px 0 60px; min-height: auto; }
    .hero-visual { min-height: 360px; }
    .hero-visual img { max-height: 380px; }
    .float-card { display: none; }

    .menu-toggle { display: flex; }
    .main-nav {
        position: fixed;
        top: 0; right: -100%;
        width: 80%; max-width: 340px;
        height: 100vh;
        background: var(--deep-blue);
        padding: 100px 32px 32px;
        flex-direction: column;
        align-items: flex-start;
        transition: right 0.4s ease;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
        z-index: 999;
        display: flex;
    }
    .main-nav.open { right: 0; }
    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
        width: 100%;
    }
    .main-nav a { font-size: 1.05rem; }
    .nav-cta {
        flex-direction: column;
        width: 100%;
        margin: 32px 0 0;
        gap: 12px;
    }
    .nav-cta .btn { width: 100%; }

    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .screen-card { width: 220px; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 28px; }
}

@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .btn { padding: 12px 22px; font-size: 0.9rem; }
    .btn-lg { padding: 15px 28px; font-size: 0.95rem; }
    .hero h1 { font-size: 1.85rem; }
    .screen-card { width: 190px; }
    .step { padding: 26px 20px; }
}

/* ============ App Store Buttons ============ */
.store-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    background: #000;
    color: #fff !important;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: var(--transition);
    line-height: 1;
    min-width: 172px;
}
.store-btn:hover {
    transform: translateY(-2px);
    background: #111;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
    border-color: var(--gold);
}
.store-btn svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    color: #fff;
}
.store-btn .store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}
.store-btn .store-top {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.85;
}
.store-btn .store-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 2px;
}

/* Light variant used on dark backgrounds keeps contrast but adds gold hover */
.hero .store-btn,
.cta-section .store-btn,
.site-footer .store-btn {
    background: #0d0d0d;
}

/* Compact version for the header */
.store-btn.store-btn-sm {
    padding: 8px 12px;
    min-width: auto;
    border-radius: 10px;
    gap: 8px;
}
.store-btn.store-btn-sm svg { width: 20px; height: 20px; }
.store-btn.store-btn-sm .store-top { display: none; }
.store-btn.store-btn-sm .store-name { font-size: 0.78rem; margin-top: 0; }

/* Compact row for the footer */
.footer-downloads {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    flex-wrap: wrap;
}
.footer-downloads .store-btn {
    padding: 9px 14px;
    min-width: auto;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}
.footer-downloads .store-btn:hover { background: rgba(212, 175, 55, 0.12); }
.footer-downloads .store-btn .store-top { font-size: 0.6rem; }
.footer-downloads .store-btn .store-name { font-size: 0.82rem; }

/* Responsive tweaks */
@media (max-width: 480px) {
    .store-buttons { width: 100%; }
    .store-btn { flex: 1 1 auto; justify-content: flex-start; min-width: 0; }
}