/* ============================================
   FuriosaCRM Marketing Site — Global Styles
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --teal: #00b0c6;
    --teal-dark: #009aad;
    --teal-light: #e6f8fa;
    --navy: #082f3c;
    --navy-light: #0f3e47;
    --navy-deep: #061e28;
    --green-accent: #0f3e47;
    --green-glow: rgba(0, 176, 198, 0.15);
    --text: #1a1a2e;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --page-bg: #f0f7f8;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.05);
    --shadow-lg: 0 10px 25px rgba(0,0,0,.08), 0 4px 10px rgba(0,0,0,.05);
    --shadow-xl: 0 20px 40px rgba(0,0,0,.1);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition: .25s cubic-bezier(.4,0,.2,1);
    --font: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Navigation (Floating Pill) ---------- */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 24px 0;
    pointer-events: none;
}
.site-nav .container {
    display: flex;
    align-items: center;
    height: 56px;
    gap: 28px;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 100px;
    padding: 0 8px 0 20px;
    border: 1px solid rgba(0,176,198,.35);
    box-shadow:
        0 4px 24px rgba(8,47,60,.08),
        0 1px 3px rgba(0,0,0,.04),
        inset 0 1px 0 rgba(255,255,255,.7);
    pointer-events: auto;
    transition: box-shadow .3s ease, background .3s ease;
}
.site-nav .container:hover {
    box-shadow:
        0 8px 32px rgba(8,47,60,.12),
        0 2px 6px rgba(0,0,0,.06),
        inset 0 1px 0 rgba(255,255,255,.7);
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
    flex-shrink: 0;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}
.nav-links a {
    font-size: .85rem;
    font-weight: 500;
    color: var(--text-light);
    transition: color var(--transition);
    position: relative;
    white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--teal); }
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0; right: 0;
    height: 2px;
    background: var(--teal);
    border-radius: 2px;
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 20px;
}
.nav-login {
    font-size: .85rem;
    font-weight: 500;
    color: var(--text-light);
    transition: color var(--transition);
    white-space: nowrap;
}
.nav-login:hover { color: var(--teal); }
.nav-actions .btn-sm {
    border-radius: 100px;
    padding: 9px 22px;
}
.nav-mobile-toggle { display: none; }

/* ---------- Mobile Menu (Floating Pill Dropdown) ---------- */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    margin: 8px 24px 0;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 20px;
    border: 1px solid rgba(0,176,198,.1);
    box-shadow:
        0 12px 40px rgba(8,47,60,.12),
        0 2px 8px rgba(0,0,0,.06),
        inset 0 1px 0 rgba(255,255,255,.6);
    pointer-events: auto;
    animation: menuReveal .25s cubic-bezier(.2,0,.2,1);
}
@keyframes menuReveal {
    from { opacity: 0; transform: translateY(-8px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    font-size: .9rem;
    font-weight: 500;
    color: var(--text-light);
    padding: 10px 16px;
    border-radius: 12px;
    transition: all var(--transition);
}
.mobile-menu a:hover {
    color: var(--teal);
    background: rgba(0,176,198,.06);
}
.mobile-menu .btn {
    color: #fff;
    border-radius: 100px;
    margin-top: 4px;
}

/* Space for fixed nav so content isn't hidden behind it */
body { padding-top: 88px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    background: linear-gradient(to bottom right, #082f3c, #0f3e47, #082f3c);
    color: #fff;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    line-height: 1.4;
}
.btn:hover {
    background: var(--teal);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 176, 198, 0.35);
}
.btn-sm { padding: 9px 20px; font-size: 0.75rem; }
.btn-primary {
    background: linear-gradient(135deg, var(--teal), #00c8e0);
    color: #fff;
    box-shadow: 0 2px 12px rgba(0, 176, 198, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 176, 198, 0.4);
}
.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}
.btn-outline:hover {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 176, 198, 0.4);
}
.btn-white {
    background: var(--white);
    color: var(--navy);
    font-weight: 700;
    border: 1px solid transparent;
}
.btn-white:hover {
    background: var(--white);
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* ---------- Section Labels / Titles ---------- */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--navy);
    background: linear-gradient(135deg, rgba(0,176,198,.12), rgba(15,62,71,.08));
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid rgba(0,176,198,.2);
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---------- Page Hero ---------- */
.page-hero {
    text-align: center;
    padding: 80px 0 72px !important;
    background: linear-gradient(180deg, rgba(0,176,198,.06) 0%, rgba(15,62,71,.04) 40%, transparent 100%) !important;
    position: relative;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,176,198,.08) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(15,62,71,.06) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero + section,
.page-hero + .features-overview,
.page-hero + div {
    padding-top: 56px !important;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ============================================
   Pricing Page
   ============================================ */

/* ---------- Pricing Toggle ---------- */
.pricing {
    padding: 64px 0 80px;
}
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}
.pricing-toggle-label {
    font-size: .9rem;
    font-weight: 500;
    color: var(--text-lighter);
    cursor: pointer;
    transition: color var(--transition);
    user-select: none;
}
.pricing-toggle-label.active {
    color: var(--text);
    font-weight: 600;
}
.pricing-toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    background: var(--border);
    border-radius: 13px;
    cursor: pointer;
    transition: background var(--transition);
}
.pricing-toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition);
}
.pricing-toggle-switch.annual {
    background: var(--teal);
}
.pricing-toggle-switch.annual::after {
    transform: translateX(22px);
}
.pricing-save-badge {
    display: inline-flex;
    align-items: center;
    font-size: .75rem;
    font-weight: 700;
    color: var(--navy);
    background: linear-gradient(135deg, rgba(0,176,198,.15), rgba(15,62,71,.08));
    border: 1px solid rgba(0,176,198,.2);
    padding: 4px 10px;
    border-radius: 20px;
    margin-left: 4px;
}

/* ---------- Pricing Full Grid (7 cards → 4 cols) ---------- */
.pricing-full-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

/* ---------- Small Pricing Card ---------- */
.pricing-card-small {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all var(--transition);
}
.pricing-card-small:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(8,47,60,.12);
    border-color: rgba(0,176,198,.3);
}
.pricing-card-small.featured {
    border-color: var(--teal);
    border-width: 2px;
    background: linear-gradient(180deg, rgba(0,176,198,.03) 0%, var(--white) 100%);
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(0,176,198,.15);
}
.pricing-card-small.featured:hover {
    box-shadow: 0 16px 40px rgba(0,176,198,.18), 0 0 0 1px rgba(0,176,198,.25);
}
.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: var(--white);
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(8,47,60,.3);
}
.pricing-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.pricing-desc {
    font-size: .82rem;
    color: var(--text-lighter);
    margin-bottom: 16px;
    line-height: 1.5;
}
.pricing-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
    margin-bottom: 2px;
    transition: opacity .15s ease;
}
.pricing-price-note {
    font-size: .75rem;
    color: var(--text-lighter);
    margin-bottom: 20px;
}
.pricing-features {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}
.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: .82rem;
    color: var(--text-light);
    line-height: 1.45;
}
.pricing-check {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.pricing-check svg {
    width: 12px;
    height: 12px;
    stroke: var(--navy);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.pricing-card-small .btn {
    width: 100%;
    margin-top: auto;
}

/* ---------- Enterprise Bar ---------- */
.pricing-enterprise-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background: linear-gradient(135deg, var(--navy-deep), var(--navy), var(--navy-light));
    color: var(--white);
    padding: 40px 48px;
    border-radius: var(--radius-lg);
    margin-top: 12px;
    position: relative;
    overflow: hidden;
}
.pricing-enterprise-bar::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0,176,198,.15) 0%, transparent 70%);
    pointer-events: none;
}
.pricing-enterprise-bar h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.pricing-enterprise-bar p {
    font-size: .95rem;
    color: rgba(255,255,255,.7);
    max-width: 600px;
    line-height: 1.6;
}

/* ============================================
   Features Comparison Table
   ============================================ */
.comparison-section {
    padding: 80px 0;
    background: var(--white);
}
.comparison-section .section-title {
    text-align: center;
    margin-bottom: 8px;
}
.comparison-section .section-subtitle {
    text-align: center;
    margin-bottom: 48px;
}
.comparison-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.comparison-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    font-size: .85rem;
}
.comparison-table thead th {
    background: var(--page-bg);
    font-weight: 600;
    color: var(--text);
    padding: 14px 16px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    white-space: nowrap;
}
.comparison-table thead th:first-child {
    text-align: left;
    min-width: 200px;
}
.comparison-table thead th.featured-col {
    background: var(--teal-light);
    color: var(--teal-dark);
}
.comparison-table tbody td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-light);
}
.comparison-table tbody td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text);
}
.comparison-table tbody td.featured-col {
    background: rgba(0,176,198,.03);
}
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:hover td { background: var(--page-bg); }
.comparison-table tbody tr:hover td.featured-col { background: rgba(0,176,198,.06); }
.table-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0,176,198,.15), rgba(15,62,71,.1));
}
.table-check svg {
    width: 10px;
    height: 10px;
    stroke: var(--navy);
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.table-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--text-lighter);
    font-size: .85rem;
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--page-bg) 0%, rgba(0,176,198,.04) 100%);
}
.faq-section .section-title {
    text-align: center;
    margin-bottom: 8px;
}
.faq-section .section-subtitle {
    text-align: center;
    margin-bottom: 48px;
}
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}
.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}
.faq-item:hover {
    border-color: rgba(0,176,198,.4);
    box-shadow: 0 4px 16px rgba(8,47,60,.06);
}
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    font-size: .92rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    user-select: none;
    transition: color var(--transition);
}
.faq-question:hover { color: var(--teal); }
.faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition);
}
.faq-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--text-lighter);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
}
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-item.open .faq-icon svg { stroke: var(--teal); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}
.faq-answer-inner {
    padding: 0 24px 20px;
    font-size: .88rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(8,47,60,.03) 0%, rgba(0,176,198,.05) 50%, rgba(15,62,71,.03) 100%);
    text-align: center;
    position: relative;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,176,198,.3), transparent);
}
.cta-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,176,198,.3), transparent);
}
.cta-section .section-title { margin-bottom: 12px; }
.cta-section .section-subtitle { margin-bottom: 32px; }
.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: rgba(255,255,255,.85);
    padding: 64px 0 32px;
    position: relative;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--navy), var(--teal), var(--navy));
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand .nav-logo { margin-bottom: 12px; }
.footer-brand .nav-logo span { color: var(--white); }
.footer-tagline {
    font-size: .9rem;
    color: rgba(255,255,255,.55);
    line-height: 1.6;
}
.footer-col h4 {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255,255,255,.45);
    margin-bottom: 16px;
}
.footer-col a {
    display: block;
    font-size: .9rem;
    color: rgba(255,255,255,.7);
    padding: 4px 0;
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 24px;
    text-align: center;
}
.footer-bottom p {
    font-size: .82rem;
    color: rgba(255,255,255,.4);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .pricing-full-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .nav-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        transition: background var(--transition);
        flex-shrink: 0;
    }
    .nav-mobile-toggle:hover { background: rgba(0,176,198,.08); }
    .nav-mobile-toggle.open { background: rgba(0,176,198,.1); }
    .site-nav { padding: 10px 12px 0; }
    .site-nav .container {
        justify-content: space-between;
        height: 52px;
        padding: 0 6px 0 16px;
    }
    .mobile-menu { margin: 8px 12px 0; }

    .page-hero { padding: 48px 0 32px; }

    .pricing { padding: 40px 0 56px; }
    .pricing-full-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .pricing-enterprise-bar {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }
    .pricing-enterprise-bar p { max-width: none; }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .cta-buttons { flex-direction: column; }
    .cta-buttons .btn { width: 100%; }
}

@media (max-width: 540px) {
    .pricing-full-grid {
        grid-template-columns: 1fr;
    }
    .pricing-toggle { flex-wrap: wrap; justify-content: center; }
    .pricing-save-badge { margin-left: 0; margin-top: 4px; }
}
