/* ═══════════════════════════════════════════════════════════
   MEDNAATH — AIONPHONE
   Premium Global Stylesheet — v5.0
   Black/Charcoal premium theme — clean, enterprise-grade
   ═══════════════════════════════════════════════════════════ */

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

:root {
    /* Primary — rich black / charcoal */
    --blue:         #111111;
    --blue-dark:    #000000;
    --blue-mid:     #1a1a1a;
    --blue-light:   #F0F0F0;
    --blue-pale:    #F7F7F7;
    --blue-accent:  #444444;

    /* Text */
    --text-dark:    #0A0A0A;
    --text-mid:     #1C1C1C;
    --text-body:    #3D3D3D;
    --text-light:   #666666;
    --text-muted:   #999999;

    /* Borders & Backgrounds */
    --border:       #E4E4E4;
    --border-mid:   #CCCCCC;
    --bg-light:     #F9F9F9;
    --bg-section:   #F4F4F4;
    --white:        #FFFFFF;

    /* Status */
    --green:        #16A34A;
    --green-light:  #DCFCE7;

    /* Radius */
    --radius-sm:    6px;
    --radius:       10px;
    --radius-lg:    16px;
    --radius-xl:    24px;

    /* Shadows */
    --shadow-sm:    0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
    --shadow:       0 4px 12px rgba(0,0,0,0.09), 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md:    0 8px 24px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
    --shadow-lg:    0 20px 48px rgba(0,0,0,0.13), 0 4px 12px rgba(0,0,0,0.07);
    --shadow-blue:  0 8px 24px rgba(0,0,0,0.28);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

p { color: var(--text-body); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ═══════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════ */
#main-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: box-shadow 0.3s ease;
}
#main-header.scrolled {
    box-shadow: 0 2px 24px rgba(0,0,0,0.10);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

/* Logo */
.logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
}
.logo-wrap img {
    height: 36px;
    width: 36px;
    border-radius: 8px;
    object-fit: cover;
}
.logo-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

/* Nav */
nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-body);
    padding: 8px 13px;
    border-radius: var(--radius-sm);
    transition: color 0.15s, background 0.15s;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.nav-link:hover { color: var(--text-dark); background: var(--blue-light); }
.nav-link.active { color: var(--text-dark); font-weight: 600; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > .nav-link .chevron {
    font-size: 0.6rem;
    transition: transform 0.25s ease;
    color: var(--text-muted);
}
.nav-dropdown:hover > .nav-link .chevron { transform: rotate(180deg); }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: -12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 8px;
}
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 14px;
    border-radius: var(--radius);
    transition: background 0.15s;
    cursor: pointer;
}
.dropdown-item:hover { background: var(--blue-pale); }

.dropdown-item-icon {
    width: 34px; height: 34px;
    background: var(--blue-light);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-dark);
    font-size: 0.82rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.dropdown-item-text strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}
.dropdown-item-text span {
    font-size: 0.775rem;
    color: var(--text-light);
    line-height: 1.4;
}

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

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
}
.hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 24px;
    z-index: 999;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.10);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
}
.mobile-nav.open { display: flex; }

.mobile-nav a {
    padding: 11px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-body);
    border-radius: 8px;
    transition: all 0.15s;
    display: block;
}
.mobile-nav a:hover { background: var(--blue-light); color: var(--text-dark); }

.mobile-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 14px 14px 4px;
}
.mobile-divider { height: 1px; background: var(--border); margin: 8px 0; }
.mobile-nav-actions {
    display: flex;
    gap: 8px;
    padding: 10px 14px 0;
}
.mobile-nav-actions .btn { flex: 1; justify-content: center; }

/* ═══════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 11px 22px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.btn-primary {
    background: var(--text-dark);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.22);
}
.btn-primary:hover {
    background: #2a2a2a;
    box-shadow: 0 6px 20px rgba(0,0,0,0.28);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 1.5px solid var(--border-mid);
}
.btn-outline:hover {
    border-color: var(--text-dark);
    background: var(--blue-light);
    color: var(--text-dark);
}

.btn-white {
    background: var(--white);
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.btn-white:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.16);
    transform: translateY(-1px);
}

.btn-ghost {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.28);
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); }

.btn-sm  { padding: 8px 16px; font-size: 0.8rem; border-radius: 7px; }
.btn-lg  { padding: 14px 28px; font-size: 0.95rem; border-radius: 11px; }
.btn-xl  { padding: 16px 36px; font-size: 1rem; border-radius: 11px; }

/* ═══════════════════════════════════════════════
   SECTION UTILITIES
═══════════════════════════════════════════════ */
section { padding: 88px 0; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: var(--blue-light);
    padding: 5px 13px;
    border-radius: 20px;
    border: 1px solid var(--border-mid);
}

/* Legacy label for older pages */
.section-label {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: var(--blue-light);
    padding: 5px 13px;
    border-radius: 20px;
    border: 1px solid var(--border-mid);
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.1rem;
    color: var(--text-dark);
    line-height: 1.18;
}
.section-title em {
    font-style: normal;
    color: var(--text-dark);
    border-bottom: 3px solid var(--text-dark);
    padding-bottom: 1px;
}

.section-body,
.section-sub {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.78;
    max-width: 580px;
}

.section-header {
    margin-bottom: 52px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.section-header.center { text-align: center; align-items: center; }
.section-header.center .section-body,
.section-header.center .section-sub { margin: 0 auto; }

/* Card tag */
.card-tag {
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-dark);
    background: var(--blue-light);
    padding: 4px 11px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 12px;
    border: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════
   PAGE HERO (inner pages)
═══════════════════════════════════════════════ */
.page-hero {
    padding: 120px 0 68px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -120px; right: -80px;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,0,0,0.03) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero .eyebrow,
.page-hero .section-label { margin-bottom: 14px; }
.page-hero h1 {
    font-size: 2.6rem;
    color: var(--text-dark);
    margin-bottom: 16px;
    max-width: 700px;
    line-height: 1.15;
}
.page-hero h1 em,
.page-hero h1 span { font-style: normal; color: var(--text-dark); }
.page-hero > .container > p,
.page-hero p {
    font-size: 1rem;
    color: var(--text-body);
    max-width: 580px;
    line-height: 1.78;
    margin-bottom: 32px;
}

/* ═══════════════════════════════════════════════
   STATS BAR
═══════════════════════════════════════════════ */
.stats-bar {
    background: var(--text-dark);
    padding: 60px 0;
}
.stats-bar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}
.stats-bar-item {
    text-align: center;
    padding: 0 24px;
    position: relative;
}
.stats-bar-item + .stats-bar-item::before {
    content: '';
    position: absolute;
    left: 0; top: 10%; bottom: 10%;
    width: 1px;
    background: rgba(255,255,255,0.15);
}
.stats-bar-item .s-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.04em;
}
.stats-bar-item .s-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    font-weight: 400;
}

/* Legacy stats (about page) */
.stats {
    background: var(--text-dark);
    padding: 60px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.stat-item {
    text-align: center;
    padding: 0 24px;
    position: relative;
}
.stat-item + .stat-item::before {
    content: '';
    position: absolute;
    left: 0; top: 10%; bottom: 10%;
    width: 1px;
    background: rgba(255,255,255,0.15);
}
.stat-item .num {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.04em;
}
.stat-item .desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
}

/* ═══════════════════════════════════════════════
   CTA BANNER
═══════════════════════════════════════════════ */
.cta-banner {
    background: var(--text-dark);
    padding: 96px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    bottom: -80px; right: -80px;
    width: 380px; height: 380px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    pointer-events: none;
}
.cta-banner::after {
    content: '';
    position: absolute;
    top: -60px; left: -60px;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: rgba(255,255,255,0.02);
    pointer-events: none;
}
.cta-banner h2 {
    font-size: 2.3rem;
    color: var(--white);
    margin-bottom: 16px;
}
.cta-banner p {
    font-size: 1rem;
    color: rgba(255,255,255,0.62);
    max-width: 520px;
    margin: 0 auto 38px;
    line-height: 1.78;
}
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
footer {
    background: #080808;
    padding: 72px 0 32px;
    color: rgba(255,255,255,0.5);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 52px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 28px;
}
.footer-logo {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 14px;
}
.footer-logo img { height: 34px; width: 34px; border-radius: 8px; object-fit: cover; }
.footer-logo span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--white);
}
.footer-brand > p {
    font-size: 0.875rem;
    line-height: 1.75;
    margin-bottom: 22px;
    color: rgba(255,255,255,0.40);
    max-width: 280px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 34px; height: 34px;
    border-radius: 7px;
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.48);
    font-size: 0.875rem;
    transition: all 0.2s;
}
.footer-social a:hover { background: rgba(255,255,255,0.18); color: var(--white); }

.footer-col h5 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.44);
    transition: color 0.2s;
}
.footer-col ul li a:hover { color: rgba(255,255,255,0.88); }

.footer-contact { list-style: none; }
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.44);
    margin-bottom: 12px;
}
.footer-contact li i { color: rgba(255,255,255,0.55); margin-top: 3px; flex-shrink: 0; font-size: 0.8rem; }
.footer-contact li a { color: rgba(255,255,255,0.44); transition: color 0.2s; }
.footer-contact li a:hover { color: rgba(255,255,255,0.88); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.26); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.26);
    transition: color 0.2s;
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.65); }

/* ═══════════════════════════════════════════════
   GENERIC CARD
═══════════════════════════════════════════════ */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s;
}
.card:hover {
    border-color: #AAAAAA;
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.card-icon {
    width: 46px; height: 46px;
    background: var(--blue-light);
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 18px;
}

/* ═══════════════════════════════════════════════
   LEGAL PAGES
═══════════════════════════════════════════════ */
.legal-body { padding: 88px 0; }
.legal-wrap { max-width: 820px; margin: 0 auto; }
.legal-wrap h2 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin: 38px 0 13px;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--border);
}
.legal-wrap h2:first-child { margin-top: 0; }
.legal-wrap p {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.85;
    margin-bottom: 14px;
}
.legal-wrap ul { margin: 8px 0 18px 22px; }
.legal-wrap ul li {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.85;
    margin-bottom: 7px;
    list-style: disc;
}
.legal-wrap a { color: var(--text-dark); text-decoration: underline; }
.legal-wrap a:hover { color: var(--text-mid); }
.legal-meta {
    background: var(--bg-light);
    border: 1px solid var(--border-mid);
    border-radius: var(--radius);
    padding: 14px 20px;
    font-size: 0.875rem;
    color: var(--text-mid);
    font-weight: 500;
    margin-bottom: 40px;
}

/* ═══════════════════════════════════════════════
   PARTNER CARDS (about page)
═══════════════════════════════════════════════ */
.partner-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    text-align: left;
    transition: all 0.25s;
}
.partner-card:hover {
    border-color: #999999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.09);
    transform: translateY(-2px);
}
.partner-card img { height: 40px; object-fit: contain; flex-shrink: 0; }
.partner-card h4 { font-size: 0.95rem; color: var(--text-dark); margin-bottom: 5px; }
.partner-card p { font-size: 0.82rem; color: var(--text-light); line-height: 1.6; }

/* ═══════════════════════════════════════════════
   ANIMATIONS & SCROLL REVEALS
═══════════════════════════════════════════════ */

/* ── Keyframes ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-32px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(32px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.94); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,0,0,0.08); }
    50%       { box-shadow: 0 0 0 8px rgba(0,0,0,0); }
}
@keyframes floatY {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-8px); }
}
@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.6); opacity: 0.5; }
}
@keyframes logoScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes countUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Hero card subtle float ── */
.hero-animate-card {
    animation: scaleIn 0.9s 0.18s cubic-bezier(0.16,1,0.3,1) both,
               floatY 4s 1.1s ease-in-out infinite;
}

/* ── Live indicator dot pulse ── */
.live-indicator {
    animation: dotPulse 2s ease-in-out infinite;
}
/* hero eyebrow dot */
.hero-eyebrow .dot {
    animation: dotPulse 1.8s ease-in-out infinite;
    display: inline-block;
}

/* (trusted logo marquee styles defined inline in index.html) */

/* ── Section header entrance ── */
.section-header.reveal.revealed h2,
.section-header.reveal.revealed p,
.section-header.reveal.revealed .eyebrow {
    animation: fadeUp 0.6s cubic-bezier(0.16,1,0.3,1) both;
}
.section-header.reveal.revealed .eyebrow { animation-delay: 0ms; }
.section-header.reveal.revealed h2       { animation-delay: 80ms; }
.section-header.reveal.revealed p        { animation-delay: 160ms; }

/* ── Integration badge hover ── */
.integration-badge {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.integration-badge:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 6px 18px rgba(0,0,0,0.10);
    border-color: rgba(0,0,0,0.18);
}

/* ── Step-row number bounce on reveal ── */
.step-row.revealed .step-num {
    animation: scaleIn 0.5s cubic-bezier(0.16,1,0.3,1) both;
}

/* ── cs-card hover accent bar grow ── */
.cs-card::before {
    transition: width 0.35s cubic-bezier(0.16,1,0.3,1);
}
.cs-card:hover::before { width: 100%; }

/* ── Scroll-reveal base states ── */
/* Elements start invisible; JS adds .revealed to trigger animation */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1),
                transform 0.65s cubic-bezier(0.16,1,0.3,1);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1),
                transform 0.65s cubic-bezier(0.16,1,0.3,1);
}
.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right {
    opacity: 0;
    transform: translateX(32px);
    transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1),
                transform 0.65s cubic-bezier(0.16,1,0.3,1);
}
.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1),
                transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Staggered children — delay each .reveal inside a .stagger-group */
.stagger-group .reveal:nth-child(1) { transition-delay: 0ms; }
.stagger-group .reveal:nth-child(2) { transition-delay: 80ms; }
.stagger-group .reveal:nth-child(3) { transition-delay: 160ms; }
.stagger-group .reveal:nth-child(4) { transition-delay: 240ms; }
.stagger-group .reveal:nth-child(5) { transition-delay: 320ms; }
.stagger-group .reveal:nth-child(6) { transition-delay: 400ms; }

/* ── Hero entrance (plays immediately on load) ── */
.hero-animate-title {
    animation: fadeUp 0.8s cubic-bezier(0.16,1,0.3,1) both;
}
.hero-animate-sub {
    animation: fadeUp 0.8s 0.12s cubic-bezier(0.16,1,0.3,1) both;
}
.hero-animate-cta {
    animation: fadeUp 0.8s 0.22s cubic-bezier(0.16,1,0.3,1) both;
}
.hero-animate-proof {
    animation: fadeUp 0.8s 0.32s cubic-bezier(0.16,1,0.3,1) both;
}
.hero-animate-card {
    animation: scaleIn 0.9s 0.18s cubic-bezier(0.16,1,0.3,1) both;
}

/* ── Trusted bar logo hover lift ── */
.trusted-logos img {
    transition: filter 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}
.trusted-logos img:hover {
    transform: translateY(-3px) scale(1.06);
}

/* ── Card hover — extra lift for prod/value/use-case cards ── */
.prod-card, .value-card, .use-case, .team-card, .partner-card {
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.prod-card:hover    { transform: translateY(-6px); }
.value-card:hover   { transform: translateY(-4px); }
.use-case:hover     { transform: translateY(-4px); }
.team-card:hover    { transform: translateY(-4px); }

/* ── Button pulse on hover ── */
.btn-primary:hover {
    animation: pulseGlow 0.6s ease;
}

/* ── Section label slide-in accent ── */
.section-label {
    position: relative;
    display: inline-block;
}
.section-label::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-dark);
    transition: width 0.5s cubic-bezier(0.16,1,0.3,1);
}
.section-label.revealed::after {
    width: 100%;
}

/* ── Stat number counter highlight ── */
.s-num, .num {
    display: inline-block;
    transition: color 0.3s;
}

/* ── Float animation for hero card ── */
@keyframes floatCard {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
}
.hero-animate-card {
    animation: scaleIn 0.9s 0.18s cubic-bezier(0.16,1,0.3,1) both,
               floatCard 5s 1.2s ease-in-out infinite;
}

/* (trusted logo marquee now defined inline in index.html) */

/* ── Live indicator pulse ── */
@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
    50%       { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}
.live-indicator {
    animation: livePulse 2s ease-in-out infinite;
}

/* ── Section accent fade-in ── */
@keyframes accentExpand {
    from { width: 0; opacity: 0; }
    to   { width: 40px; opacity: 1; }
}

/* ── Stagger extended (up to 9 children) ── */
.stagger-group .reveal:nth-child(7)  { transition-delay: 480ms; }
.stagger-group .reveal:nth-child(8)  { transition-delay: 560ms; }
.stagger-group .reveal:nth-child(9)  { transition-delay: 640ms; }
.stagger-group .reveal-scale:nth-child(7) { transition-delay: 480ms; }
.stagger-group .reveal-scale:nth-child(8) { transition-delay: 560ms; }
.stagger-group .reveal-scale:nth-child(9) { transition-delay: 640ms; }

/* ── cs-card footer author image subtle reveal ── */
.cs-card-footer img {
    transition: transform 0.3s ease, filter 0.3s ease;
}
.cs-card:hover .cs-card-footer img {
    transform: scale(1.08);
    filter: grayscale(0%) opacity(1) !important;
}

/* ── Mini-stat number highlight on reveal ── */
@keyframes numPop {
    0%   { transform: scale(0.8); opacity: 0; }
    70%  { transform: scale(1.06); }
    100% { transform: scale(1); opacity: 1; }
}
.mini-stat.revealed .num,
.stat-item.revealed .num,
.stats-bar-item.revealed .s-num {
    animation: numPop 0.55s cubic-bezier(0.16,1,0.3,1) both;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-left, .reveal-right, .reveal-scale,
    .hero-animate-title, .hero-animate-sub, .hero-animate-cta,
    .hero-animate-proof, .hero-animate-card,
    .trusted-logos-track, .live-indicator {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .stats-bar-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
    .stats-bar-item + .stats-bar-item::before { display: none; }
    /* Add subtle top border to separate rows in 2-col layout */
    .stats-bar-grid .stats-bar-item:nth-child(3),
    .stats-bar-grid .stats-bar-item:nth-child(4) {
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 40px;
    }
    .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
    .stat-item + .stat-item::before { display: none; }
    .stats-grid .stat-item:nth-child(3),
    .stats-grid .stat-item:nth-child(4) {
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 40px;
    }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    nav, .header-actions { display: none; }
    .hamburger { display: flex; }
    section { padding: 56px 0; }
    .page-hero { padding: 100px 0 52px; }
    .page-hero h1 { font-size: 1.95rem; }
    .section-title { font-size: 1.7rem; }
    .cta-banner h2 { font-size: 1.75rem; }
    .cta-banner p { font-size: 0.93rem; }
    .cta-banner { padding: 60px 0; }
    .legal-body { padding: 60px 0; }
    /* Stats — 2 col on tablet */
    .stats-bar { padding: 48px 0; }
    .stats-bar-item .s-num { font-size: 2.1rem; }
    .stats { padding: 48px 0; }
    .stat-item .num { font-size: 2.1rem; }
}

@media (max-width: 540px) {
    .container { padding: 0 16px; }
    /* Stats — keep 2-col on small phones, shrink numbers */
    .stats-bar { padding: 40px 0; }
    .stats-bar-grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
    .stats-bar-item .s-num { font-size: 1.85rem; letter-spacing: -0.03em; }
    .stats-bar-item .s-label { font-size: 0.78rem; }
    .stats-bar-grid .stats-bar-item:nth-child(3),
    .stats-bar-grid .stats-bar-item:nth-child(4) { padding-top: 32px; }
    .stats { padding: 40px 0; }
    .stats-grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
    .stat-item .num { font-size: 1.85rem; letter-spacing: -0.03em; }
    .stat-item .desc { font-size: 0.78rem; }
    .stats-grid .stat-item:nth-child(3),
    .stats-grid .stat-item:nth-child(4) { padding-top: 32px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-bottom-links { justify-content: center; }
    .page-hero h1 { font-size: 1.65rem; }
    .page-hero { padding: 90px 0 44px; }
    .mobile-nav-actions { flex-direction: column; }
    .cta-actions { flex-direction: column; align-items: stretch; }
    .cta-actions .btn { justify-content: center; }
    .legal-wrap { padding: 0 2px; }
    .legal-wrap h2 { font-size: 1.1rem; }
    .legal-meta { padding: 12px 16px; font-size: 0.82rem; }
    .btn-lg { padding: 13px 20px; font-size: 0.88rem; }
    .section-title { font-size: 1.5rem; }
    .section-body, .section-sub { font-size: 0.93rem; }
}
