/* ── MCCore Public Site — Design System ──────────────────────────────────── */
:root {
    --blue:   #2563EB;
    --purple: #7C3AED;
    --dark:   #0A0A0B;
    --grad:   linear-gradient(135deg, var(--blue), var(--purple));
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #fff;
    color: #111827;
    -webkit-font-smoothing: antialiased;
}

/* ── Typography ─────────────────────────────────────────────────────────── */
.gradient-text {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--grad);
    color: #fff; font-weight: 600; border-radius: 9999px;
    padding: 12px 28px; font-size: 15px; border: none; cursor: pointer;
    transition: opacity .2s, transform .2s, box-shadow .2s;
    box-shadow: 0 4px 14px -2px rgba(37,99,235,.4);
    text-decoration: none;
}
.btn-primary:hover { opacity: .9; transform: translateY(-1px); box-shadow: 0 8px 20px -4px rgba(37,99,235,.5); }

.btn-secondary {
    display: inline-flex; align-items: center; justify-content: center;
    border: 1.5px solid rgba(255,255,255,.3);
    color: #fff; font-weight: 600; border-radius: 9999px;
    padding: 11px 28px; font-size: 15px; cursor: pointer;
    background: rgba(255,255,255,.06); backdrop-filter: blur(8px);
    transition: background .2s, border-color .2s;
    text-decoration: none;
}
.btn-secondary:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); }

.btn-outline {
    display: inline-flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--blue);
    color: var(--blue); font-weight: 600; border-radius: 9999px;
    padding: 11px 28px; font-size: 15px; cursor: pointer;
    background: transparent;
    transition: background .2s, color .2s;
    text-decoration: none;
}
.btn-outline:hover { background: var(--blue); color: #fff; }

/* Deprecated aliases kept for backwards compat */
.cta-button    { background: var(--grad); color:#fff; font-weight:600; border-radius:9999px; padding:12px 28px; font-size:15px; display:inline-block; transition:opacity .2s; box-shadow:0 4px 14px -2px rgba(37,99,235,.4); text-decoration:none; }
.cta-button:hover { opacity:.9; }
.secondary-button { border:1.5px solid var(--blue); color:var(--blue); border-radius:9999px; padding:11px 28px; font-size:15px; display:inline-block; transition:background .2s, color .2s; text-decoration:none; }
.secondary-button:hover { background:var(--blue); color:#fff; }

/* ── Navigation ─────────────────────────────────────────────────────────── */
.glass-nav {
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav-link       { color:#4b5563; font-weight:500; font-size:14px; padding:8px 14px; border-radius:8px; transition:color .15s, background .15s; text-decoration:none; display:inline-block; }
.nav-link:hover { color:#111827; background:#f9fafb; }
.nav-link.active { color: var(--blue); }
.dropdown-menu { opacity:0; transform:translateY(-8px); pointer-events:none; transition:all .18s cubic-bezier(.16,1,.3,1); }
.group:hover .dropdown-menu { opacity:1; transform:translateY(0); pointer-events:auto; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero-section {
    position: relative;
    background: var(--dark);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 140px 24px 100px;
}
.hero-section::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(37,99,235,.18) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(124,58,237,.14) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 50% 10%, rgba(16,185,129,.06) 0%, transparent 50%);
    z-index: 0;
    animation: aurora 8s ease-in-out infinite alternate;
}
@keyframes aurora {
    0%   { opacity:1; transform:scale(1); }
    100% { opacity:.7; transform:scale(1.04); }
}
.hero-section::after {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.055) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: 0;
}
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 900px; width: 100%; }
.hero-headline {
    font-size: clamp(38px, 5.5vw, 76px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.03em;
    color: #fff;
}
.hero-subtext {
    font-size: clamp(16px, 1.8vw, 19px);
    color: rgba(255,255,255,.62);
    max-width: 600px;
    margin: 24px auto 0;
    line-height: 1.65;
}

/* ── Trust bar ───────────────────────────────────────────────────────────── */
.trust-bar {
    display: flex; align-items: center; justify-content: center;
    gap: 32px; padding: 20px 24px;
    background: #fff; border-bottom: 1px solid #f3f4f6; flex-wrap: wrap;
}
.trust-badge {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 600; color: #374151; white-space: nowrap;
}
.trust-badge svg { color: #22c55e; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.feature-card {
    background: #fff; border: 1px solid #f0f0f0; border-radius: 16px;
    padding: 28px 26px; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.feature-card:hover {
    box-shadow: 0 12px 32px -8px rgba(0,0,0,.1);
    transform: translateY(-2px);
    border-color: #ddd6fe;
}
.feature-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px; flex-shrink: 0;
}

.integration-card {
    background: #fff; border: 1px solid #f0f0f0; border-radius: 14px;
    padding: 22px; transition: all .2s;
}
.integration-card:hover {
    border-color: var(--blue);
    box-shadow: 0 8px 24px -4px rgba(37,99,235,.12);
    transform: translateY(-2px);
}

/* ── Stats band ──────────────────────────────────────────────────────────── */
.stats-band {
    background: linear-gradient(135deg, #1e1b4b 0%, #0c4a6e 100%);
    padding: 72px 24px;
}
.stat-number {
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 800; letter-spacing: -.03em;
    color: #fff; line-height: 1;
}
.stat-label { font-size: 14px; color: rgba(255,255,255,.5); margin-top: 8px; font-weight: 500; }

/* ── Section labels ──────────────────────────────────────────────────────── */
.section-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.section-eyebrow::before {
    content: ''; width: 20px; height: 2px;
    background: var(--blue); border-radius: 1px;
}

/* ── Steps (How it works) ────────────────────────────────────────────────── */
.step-number {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--grad); color: #fff;
    font-size: 18px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-connector { width: 1px; height: 48px; background: #e5e7eb; margin: 8px 0 8px 24px; }

/* ── Testimonial ─────────────────────────────────────────────────────────── */
.testimonial-card {
    background: #fff; border: 1px solid #f0f0f0;
    border-radius: 20px; padding: 40px 48px;
    position: relative; overflow: hidden;
}
.testimonial-card::before {
    content: '"'; font-size: 220px; line-height: 1;
    position: absolute; top: -30px; left: 24px;
    background: var(--grad);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    opacity: .07; font-family: Georgia, serif; pointer-events: none;
}
.testimonial-quote { font-size: 21px; font-style: italic; color: #1f2937; line-height: 1.65; position: relative; z-index: 1; }
.testimonial-avatar {
    width: 50px; height: 50px; border-radius: 50%;
    background: var(--grad); display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 18px; flex-shrink: 0;
}

/* ── Bottom CTA ──────────────────────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0c4a6e 100%);
    padding: 100px 24px; position: relative; overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
    background: #050508;
    border-top: 1px solid rgba(255,255,255,.05);
    color: rgba(255,255,255,.45);
}
.footer-bg { background: #050508; } /* legacy */
.footer-heading { color: rgba(255,255,255,.85); font-size: 12px; font-weight: 600; margin-bottom: 18px; letter-spacing: .08em; text-transform: uppercase; }
.footer-link { font-size: 13px; color: rgba(255,255,255,.4); text-decoration: none; transition: color .15s; display: block; margin-bottom: 10px; }
.footer-link:hover { color: rgba(255,255,255,.8); }

/* ── Scroll reveal ───────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.delay-100 { transition-delay: .1s; }
.reveal.delay-200 { transition-delay: .2s; }
.reveal.delay-300 { transition-delay: .3s; }
.reveal.delay-400 { transition-delay: .4s; }
/* Legacy reveal names */
.fade-in-element { opacity:0; transform:translateY(16px); transition:opacity .6s ease, transform .6s ease; }
.is-visible .fade-in-element, .fade-in-element.is-visible { opacity:1; transform:translateY(0); }

/* ── Carousel (legacy pages) ─────────────────────────────────────────────── */
.solutions-carousel-container { position:relative; overflow:hidden; }
.solutions-carousel-track { display:flex; overflow-x:scroll; gap:20px; padding-bottom:8px; scroll-snap-type:x mandatory; scrollbar-width:none; }
.solutions-carousel-track::-webkit-scrollbar { display:none; }
.solutions-carousel-card { flex-shrink:0; width:280px; background:#fff; border-radius:16px; overflow:hidden; border:1px solid #f0f0f0; scroll-snap-align:start; }
.solutions-carousel-card img { width:100%; height:160px; object-fit:cover; }
.carousel-nav-button { position:absolute; top:50%; transform:translateY(-50%); background:#fff; border:1px solid #e5e7eb; border-radius:50%; width:40px; height:40px; display:flex; align-items:center; justify-content:center; cursor:pointer; font-size:16px; box-shadow:0 2px 8px rgba(0,0,0,.1); }
.carousel-prev-button { left:0; } .carousel-next-button { right:0; }

/* ── Integrations sidebar ────────────────────────────────────────────────── */
.sidebar-link { display:flex; align-items:center; padding:8px 12px; border-radius:8px; color:#4b5563; font-weight:500; transition:all .2s; cursor:pointer; text-decoration:none; }
.sidebar-link:hover,.sidebar-link.active { background:#f3f4f6; color:#111827; }

/* ── Orbit animation (legacy) ────────────────────────────────────────────── */
.orbiting-item,.role-orbiting-item { display:flex; align-items:center; gap:8px; background:#fff; color:#111827; padding:10px 20px; border-radius:9999px; font-size:14px; font-weight:500; position:absolute; left:50%; top:50%; white-space:nowrap; box-shadow:0 4px 15px rgba(0,0,0,.07); border:1px solid #E5E7EB; }
#hero-canvas { position:absolute; top:0; left:0; width:100%; height:100%; z-index:0; pointer-events:none; }
#hero-canvas-about { position:absolute; top:0; left:0; width:100%; height:100%; z-index:0; pointer-events:none; }
