/* ========== FONTS ========== */
@font-face {
    font-family: 'Sofia Pro';
    src: url('../fonts/SofiaProRegular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Sofia Pro';
    src: url('../fonts/SofiaPro-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Sofia Pro';
    src: url('../fonts/SofiaPro-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Sofia Pro';
    src: url('../fonts/SofiaPro-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --purple-dark: #2d1b69;
    --purple-mid: #4a2c8a;
    --purple-light: #6b3fa0;
    --orange: #e8623f;
    --orange-light: #f4845f;
    --coral: #ff6b6b;
    --blue-accent: #4285f4;
    --text-dark: #2d3142;
    --text-gray: #555;
    --text-light: #888;
    --bg-light: #f8f7fc;
    --white: #ffffff;
}

html, body {
    overflow-x: hidden;
}
body {
    font-family: 'Sofia Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

img { max-width: 100%; height: auto; }

/* ========== COMMON UTILITIES ========== */
.gradient-text {
    background: linear-gradient(90deg, #187be0, #876bcf, #ff7347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ========== TOP BAR ========== */
.top-bar {
    background: linear-gradient(135deg, #e8623f 0%, #9b4dca 50%, #e8623f 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    color: white;
    text-align: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
}
.top-bar a { color: white; }
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ========== NAVBAR ========== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    height: 64px;
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

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

.logo svg {
    height: 28px;
    width: auto;
}

.nav-center {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 0;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-item > a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 18px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.2s;
    border-bottom: 3px solid transparent;
}

.nav-item:hover > a,
.nav-item.active > a {
    color: var(--orange);
    border-bottom-color: var(--orange);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.btn-demo {
    background: linear-gradient(135deg, var(--orange) 0%, var(--coral) 100%);
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-demo:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(232, 98, 63, 0.4);
}

.nav-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-dark);
    border-radius: 50%;
    transition: background 0.2s;
}
.nav-icon:hover { background: var(--bg-light); }

/* Hamburger button - hidden on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ========== MEGA DROPDOWN ========== */
.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
    z-index: 999;
    min-width: 720px;
}

.nav-item:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
}

.mega-dropdown-inner {
    display: flex;
    gap: 30px;
}

.mega-col {
    min-width: 180px;
}

.mega-col h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.mega-col ul {
    list-style: none;
}

.mega-col ul li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 0;
    font-size: 13px;
    color: var(--text-gray);
    transition: color 0.2s;
}
.mega-col ul li a:hover {
    color: var(--purple-mid);
}

.tag-new {
    display: inline-block;
    background: #e2d134;
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
    text-transform: uppercase;
}

.tag-hiring {
    display: inline-block;
    background: #81d742;
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
}

.mega-highlight {
    background: #f8f7fc;
    border-radius: 12px;
    padding: 20px;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mega-highlight img {
    width: 100%;
    border-radius: 8px;
}

.mega-highlight h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

.mega-highlight p {
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.5;
}

.mega-highlight .mega-cta {
    display: inline-block;
    background: var(--orange);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
    align-self: flex-start;
}

/* ========== SHARED BUTTONS ========== */
.btn-trial {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
    color: white;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    border: 1.5px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}
.btn-trial:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232,98,63,0.4);
}

.btn-video {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    gap: 10px;
    background: transparent;
    color: white;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    border: 1.5px solid rgba(255,255,255,0.4);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.btn-video:hover { border-color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.05); }

.btn-explore {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
}
.btn-explore:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,98,63,0.3); }

.arrow-circle {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.play-icon {
    width: 28px; height: 28px;
    border: 1.5px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* ========== FOOTER ========== */
.footer {
    padding: 60px 60px 0;
    background: white;
    border-top: 1px solid #eee;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 50px;
}
.footer-col h4 { font-size: 16px; font-weight: 700; margin-bottom: 20px; color: var(--text-dark); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: var(--text-gray); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--purple-mid); }

.footer-legal {
    padding: 30px 0;
    border-top: 1px solid #eee;
    max-width: 1400px;
    margin: 0 auto;
}
.legal-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 16px;
}
.legal-row .legal-label { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.legal-row a, .social-row a { font-size: 13px; color: var(--text-gray); transition: color 0.2s; }
.legal-row a:hover, .social-row a:hover { color: var(--purple-mid); }
.social-row { display: flex; align-items: center; gap: 24px; }
.social-row .social-label { font-size: 14px; font-weight: 700; color: var(--text-dark); }

.copyright-bar {
    background: var(--text-dark);
    padding: 20px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.copyright-bar span { font-size: 13px; color: rgba(255,255,255,0.5); }
.copyright-bar .copyright-logo svg { height: 22px; }

/* ========== MOBILE NAV OVERLAY ========== */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}
.mobile-nav-overlay.active {
    z-index: 998;
    opacity: 1;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: white;
    z-index: 999;
    overflow-y: auto;
    transition: right 0.3s ease;
    padding: 80px 0 30px;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
}
.mobile-nav.active {
    right: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid #f0f0f0;
}
.mobile-nav-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}
.mobile-nav-item > a .chevron {
    transition: transform 0.3s;
}
.mobile-nav-item.open > a .chevron {
    transform: rotate(180deg);
}
.mobile-nav-item > a:hover {
    color: var(--orange);
}

.mobile-subnav {
    display: none;
    padding: 0 24px 16px;
}
.mobile-nav-item.open .mobile-subnav {
    display: block;
}
.mobile-subnav-group h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin: 12px 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0f0f0;
}
.mobile-subnav-group a {
    display: block;
    padding: 12px 0;
    font-size: 14px;
    color: var(--text-gray);
}
.mobile-subnav-group a:hover {
    color: var(--purple-mid);
}

.mobile-nav-cta {
    padding: 24px;
}
.mobile-nav-cta .btn-demo {
    width: 100%;
    text-align: center;
    display: block;
    padding: 14px;
}

/* ========== SHARED PAGE HERO ========== */
.page-hero {
    background: linear-gradient(135deg, #1a0a3e 0%, #2d1b69 30%, #4a2c8a 60%, #6b3fa0 100%);
    padding: 80px 60px;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(107,63,160,0.4) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(74,44,138,0.3) 0%, transparent 60%);
    z-index: 1;
}
.page-hero > * {
    position: relative;
    z-index: 2;
}
.page-hero h1 {
    font-family: 'Sofia Pro', sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.page-hero p {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 36px;
}
.page-hero .hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

/* ========== SHARED SECTION STYLES ========== */
.section-light {
    padding: 80px 60px;
    background: white;
}
.section-gray {
    padding: 80px 60px;
    background: var(--bg-light);
}
.section-light h2,
.section-gray h2 {
    font-family: 'Sofia Pro', sans-serif;
    font-size: 35px;
    font-weight: 800;
    margin-bottom: 50px;
    line-height: 1.25;
    text-align: center;
}

/* ========== CTA BANNER ========== */
.cta-banner {
    background: linear-gradient(135deg, #1a0a3e 0%, #2d1b69 50%, #4a2c8a 100%);
    padding: 60px;
    text-align: center;
    color: white;
}
.cta-banner h2 {
    font-family: 'Sofia Pro', sans-serif;
    font-size: 35px;
    font-weight: 800;
    margin-bottom: 16px;
    color: white;
}
.cta-banner p {
    font-size: 18px;
    opacity: 0.85;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.cta-banner .btn-trial {
    font-size: 16px;
    padding: 16px 40px;
}

/* ========== FEATURE GRID (shared) ========== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.feature-card {
    background: white;
    border-radius: 16px;
    padding: 36px 28px;
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.feature-card .icon {
    width: 56px;
    height: 56px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.feature-card .icon svg {
    width: 28px;
    height: 28px;
    color: var(--purple-mid);
}
.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}
.feature-card p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* ========== KEYFRAMES ========== */
@keyframes floatUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
