/* FlowMatch - site styles (additions on top of Tailwind CDN). */

:root {
    --fm-blue:   #1F6FA8;
    --fm-blue-d: #145A8E;
    --fm-teal:   #3FB3A4;
    --fm-mint:   #5DC8B6;
    --fm-orange: #F08C42;
    --fm-orange-d: #DC7A30;
    --fm-ink:    #1A1F2E;
    --fm-ink-2:  #2D3142;
    --fm-muted:  #6B7280;
    --fm-soft:   #F7F9FB;
    --fm-line:   #E5E9EF;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans Georgian', 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
    color: var(--fm-ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

/* Brand gradient - reused for headings, accents, mesh */
.brand-gradient-text {
    background: linear-gradient(95deg, #1F6FA8 0%, #3FB3A4 55%, #F08C42 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-gradient-bg {
    background: linear-gradient(95deg, #1F6FA8 0%, #3FB3A4 60%, #F08C42 110%);
}

/* Animated mesh hero background */
.hero-mesh {
    background:
        radial-gradient(ellipse 60% 50% at 15% 25%, rgba(31, 111, 168, 0.35), transparent 70%),
        radial-gradient(ellipse 50% 40% at 85% 15%, rgba(63, 179, 164, 0.30), transparent 70%),
        radial-gradient(ellipse 55% 45% at 70% 80%, rgba(240, 140, 66, 0.22), transparent 70%),
        #0B1220;
}

/* Subtle grid overlay */
.grid-overlay {
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
}

/* Feature card hover */
.feature-card {
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px -25px rgba(31, 111, 168, 0.35);
    border-color: rgba(63, 179, 164, 0.5);
}

/* Pillar number style */
.pillar-num {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* CTA button */
.btn-primary {
    background: var(--fm-orange);
    color: #fff;
    box-shadow: 0 8px 24px -8px rgba(240, 140, 66, 0.5);
    transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-primary:hover {
    background: var(--fm-orange-d);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -10px rgba(240, 140, 66, 0.65);
}

.btn-ghost {
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    transition: background .2s, border-color .2s;
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.3);
}

/* Comparison table */
.cmp-table th, .cmp-table td {
    border-bottom: 1px solid var(--fm-line);
}
.cmp-flowmatch {
    background: linear-gradient(180deg, rgba(63,179,164,0.06), rgba(31,111,168,0.04));
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}

/* Section spacing */
.section { padding: 6rem 0; }
@media (max-width: 768px) {
    .section { padding: 4rem 0; }
}

/* Tighter line-height for Georgian H2 headings (Noto Sans Georgian renders tall). */
@media (min-width: 768px) {
    .md\:text-5xl {
        font-size: 3rem;
        line-height: 1.15;
    }
}

/* Anchor offset for sticky nav */
section[id] { scroll-margin-top: 72px; }

/* ───────────────────────── LANGUAGE SWITCHER ───────────────────────── */
.lang-switch {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--fm-line);
    border-radius: 999px;
    background: #fff;
}
.lang-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--fm-muted);
    transition: background .2s, color .2s, box-shadow .2s;
    letter-spacing: 0.04em;
    text-decoration: none;
}
.lang-pill img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: block;
}
.lang-pill:hover:not(.is-active) {
    background: var(--fm-soft);
    color: var(--fm-ink);
}
.lang-pill.is-active {
    background: linear-gradient(95deg, rgba(31,111,168,0.12), rgba(63,179,164,0.12));
    color: var(--fm-ink);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* AI chat column - scrollable */
.ai-chat-scroll {
    height: 460px;
    overflow-y: scroll;
    padding-right: 8px;
    scroll-behavior: smooth;
}
.ai-chat-scroll::-webkit-scrollbar { width: 4px; }
.ai-chat-scroll::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
}
.ai-chat-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #1F6FA8, #3FB3A4);
    border-radius: 2px;
}
