/* ═══════════════════════════════════════
   DataAnalytics - Public Website Styles
   Light Theme with Dark Footer
   ═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ─── CSS VARIABLES ─── */
:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #38bdf8;
    --accent: #6366f1;
    --accent-dark: #4f46e5;
    --bg-body: #ffffff;
    --bg-section: #f8fafc;
    --bg-section-alt: #f1f5f9;
    --bg-card: #ffffff;
    --bg-footer: #0B1221;
    --bg-footer-2: #111827;
    --text-dark: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-muted-2: #94a3b8;
    --text-white: #ffffff;
    --card-border: #e2e8f0;
    --card-border-hover: #cbd5e1;
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--accent));
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 12px 32px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px rgba(14, 165, 233, 0.1);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET & BASE ─── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-body);
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── NAVBAR ─── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    border-bottom-color: var(--card-border);
    padding: 10px 0;
}

.navbar .container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: var(--header-logo-gap, 20px);
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img {
    display: block;
    height: 56px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-logo-text {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: var(--header-item-gap, 22px);
    justify-self: var(--header-nav-align, start);
}

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

.nav-links > li {
    flex: 0 0 auto;
}

.nav-links a {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1.2;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-dark);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateY(10px);
    background: #fff;
    min-width: var(--header-dropdown-min, 240px);
    max-width: min(92vw, 360px);
    max-height: 60vh;
    overflow-y: auto;
    padding: 8px 0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-dropdown:hover .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-submenu li {
    list-style: none;
    width: 100%;
}

.nav-submenu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-submenu a::after {
    display: none;
}

.nav-submenu a:hover {
    background: var(--bg-body);
    color: var(--primary);
    padding-left: 24px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-social {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 16px;
    transition: var(--transition);
}

.nav-social a:hover {
    color: var(--primary);
    background: rgba(14, 165, 233, 0.08);
}

.lang-switch {
    display: flex;
    background: var(--bg-section-alt);
    border-radius: 50px;
    padding: 3px;
    font-size: 12px;
    font-weight: 600;
}

.lang-switch a {
    padding: 4px 12px;
    border-radius: 50px;
    color: var(--text-muted);
}

.lang-switch a.active {
    background: var(--gradient-primary);
    color: var(--text-white);
}

.nav-cta {
    background: var(--gradient-primary) !important;
    color: #fff !important;
    padding: 10px 24px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 24px;
    cursor: pointer;
    flex-direction: column;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    margin: 5px 0;
    transition: var(--transition);
}

/* ─── HERO SECTION ─── */
.hero {
    min-height: 70vh;
    max-height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    overflow: hidden;
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hero-overlay-color, rgba(240, 249, 255, 0.7));
    opacity: var(--hero-overlay-opacity, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 24px;
}

.hero h1 {
    font-size: clamp(28px, 4.5vw, 48px);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 16px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 28px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-primary);
    color: #fff;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(14, 165, 233, 0.3);
}

/* ─── SECTION LAYOUT ─── */
.section {
    padding: 100px 0;
    position: relative;
}

.section-alt {
    background: var(--bg-section-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .badge-label {
    display: inline-block;
    background: rgba(14, 165, 233, 0.08);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(14, 165, 233, 0.15);
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.section-header p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ─── ABOUT SECTION ─── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--card-border);
}

.about-image img {
    width: 100%;
    display: block;
}

.about-content h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.about-content .subtitle {
    font-size: 18px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 15px;
}

.about-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.about-card {
    background: var(--bg-section-alt);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 20px;
}

.about-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.about-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* ─── METRICS ─── */
.metrics {
    background: var(--gradient-primary);
    padding: 64px 0;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.metric-item .metric-value {
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.metric-item .metric-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 8px;
    font-weight: 500;
}

/* ─── SERVICES GRID ─── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--card-border-hover);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: rgba(14, 165, 233, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: var(--primary);
}

.service-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ─── SECURITY ─── */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.security-card {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    transition: var(--transition);
}

.security-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.security-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--primary);
    font-size: 20px;
}

.security-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.security-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ─── PROCESS STEPS ─── */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary), var(--accent), transparent);
    opacity: 0.2;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-number {
    font-size: 48px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.5;
}

.process-step h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.process-step p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ─── PARTNERSHIPS ─── */
.partnership-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.partnership-card {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
}

.partnership-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.partnership-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.partnership-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ─── DEMO SECTION ─── */
.demo-section {
    background: var(--bg-section-alt);
}

.demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.demo-content h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.demo-content p {
    color: var(--text-muted);
    font-size: 16px;
}

.demo-form {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-card);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-section-alt);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    color: var(--text-dark);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    background: #fff;
}

.form-input::placeholder {
    color: var(--text-muted-2);
}

textarea.form-input {
    min-height: 100px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ─── PACKAGES ─── */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.package-card {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 36px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}

.package-card.popular {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

.package-card.popular::before {
    content: attr(data-popular-text);
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: #fff;
    padding: 4px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

.package-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.package-card.popular:hover {
    transform: scale(1.05) translateY(-4px);
}

.package-card h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.package-price {
    font-size: 28px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.package-price-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
    padding: 6px 16px;
    background: rgba(14, 165, 233, 0.08);
    border-radius: 50px;
    display: inline-block;
}

.package-target {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--card-border);
}

.package-card p {
    font-size: 14px;
    color: var(--text-muted);
    flex: 1;
    margin-bottom: 24px;
}

.btn-package {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    border: 1px solid var(--primary);
    color: var(--primary);
    transition: var(--transition);
}

.btn-package:hover,
.package-card.popular .btn-package {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
}

/* ─── CONTACT ─── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: rgba(14, 165, 233, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 14px;
    color: var(--text-muted);
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-card);
}

/* ═══════ FOOTER (DARK) ═══════ */
.footer {
    background: var(--bg-footer);
    color: #94a3b8;
    padding: 64px 0 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.footer-brand h3 {
    font-size: 22px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #94a3b8;
}

.footer-contact-item i,
.footer-contact-item svg {
    color: var(--primary-light);
    flex-shrink: 0;
    margin-top: 2px;
    width: 16px;
    height: 16px;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 14px;
    color: #94a3b8;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 13px;
    color: #64748b;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: #64748b;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--primary-light);
}

/* ─── WHATSAPP BUTTON ─── */
.whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: var(--transition);
    isolation: isolate;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-icon {
    width: 30px;
    height: 30px;
    display: block;
}

.whatsapp-badge {
    position: absolute;
    top: 6px;
    right: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25);
    animation: whatsapp-badge-blink 1.4s infinite;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45), 0 4px 20px rgba(37, 211, 102, 0.3);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0), 0 6px 24px rgba(37, 211, 102, 0.35);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 4px 20px rgba(37, 211, 102, 0.3);
    }
}

@keyframes whatsapp-badge-blink {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.78); opacity: 0.75; }
}

/* ─── ANIMATIONS ─── */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-children>* {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.stagger-children.visible>*:nth-child(1) {
    transition-delay: 0.1s;
}

.stagger-children.visible>*:nth-child(2) {
    transition-delay: 0.2s;
}

.stagger-children.visible>*:nth-child(3) {
    transition-delay: 0.3s;
}

.stagger-children.visible>*:nth-child(4) {
    transition-delay: 0.4s;
}

.stagger-children.visible>* {
    opacity: 1;
    transform: translateY(0);
}

/* ─── ALERTS ─── */
.alert-message {
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 20px;
}

.alert-message.success {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #16a34a;
}

.alert-message.error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

/* ─── PAGE HERO ─── */
.page-hero {
    padding: 160px 0 80px;
    text-align: center;
    background: var(--bg-section-alt);
}

.page-hero h1 {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    padding: 80px 0;
}

.page-content .content-area {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    color: var(--text-body);
    line-height: 1.8;
}

.page-content .content-area h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 32px 0 16px;
}

.page-content .content-area p {
    margin-bottom: 16px;
}

/* ─── PLACEHOLDER IMAGE ─── */
.placeholder-img {
    width: 100%;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 50%, #e0f2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
    color: var(--primary);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 991px) {
    .navbar .container {
        grid-template-columns: 1fr auto;
    }

    .nav-center {
        display: none;
    }

    .nav-right .nav-social {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-center.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 300px;
        background: #fff;
        padding: 80px 32px 32px;
        gap: 0;
        z-index: 1001;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-center.active .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .about-grid,
    .demo-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        gap: 32px;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .process-grid::before {
        display: none;
    }

    .partnership-grid {
        grid-template-columns: 1fr;
    }

    .packages-grid {
        grid-template-columns: 1fr;
    }

    .package-card.popular {
        transform: none;
    }

    .package-card.popular:hover {
        transform: translateY(-4px);
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .nav-logo img {
        height: 52px;
    }

    .nav-logo-text {
        font-size: 24px;
    }

    .hero {
        min-height: auto;
        max-height: none;
        padding: 100px 0 40px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .metric-item .metric-value {
        font-size: 36px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .security-grid {
        grid-template-columns: 1fr;
    }

    .about-cards {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 16px;
    }

    .section {
        padding: 64px 0;
    }
}

@media (max-width: 1280px) {
    .nav-logo-text {
        font-size: 20px;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .nav-right .nav-social {
        display: none;
    }
}
