:root {
    --brand: #2b6f65;
    --brand-dark: #1e4e47;
    --brand-light: #5cc2b0;
    --page: #f4f5f6;
    --line: #e6e8eb;
    --fg: #14171a;
    --sub: #5f6773;
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
    background: var(--page);
    color: var(--fg);
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--brand); color: #fff; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* Subtle dotted field behind heroes */
.dot-field {
    background-image: radial-gradient(#d3d8dd 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.dark-glow { background: radial-gradient(60% 60% at 50% 0%, rgba(92, 194, 176, 0.16), transparent 70%); }

/* Reveal on scroll (only when JS runs) */
.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Marquee */
.marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* FAQ accordion */
details summary::-webkit-details-marker { display: none; }
details summary { list-style: none; }
details[open] summary .faq-icon { transform: rotate(45deg); color: var(--brand); }

/* Thin scrollbars */
.thin-scroll { scrollbar-width: thin; scrollbar-color: #324340 transparent; }
.thin-scroll::-webkit-scrollbar { width: 6px; height: 6px; }
.thin-scroll::-webkit-scrollbar-thumb { background: #324340; border-radius: 3px; }
.thin-scroll::-webkit-scrollbar-track { background: transparent; }

/* Chat demo */
.msg-in { animation: msg-in 0.28s ease-out; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.typing span { width: 6px; height: 6px; border-radius: 9999px; background: #8d9895; display: inline-block; animation: typing 1s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-bubble a { color: var(--brand-light); text-decoration: underline; }
@keyframes flash { 0% { background-color: rgba(92, 194, 176, 0.20); } 100% { background-color: transparent; } }
.flash { animation: flash 1.2s ease-out; }

/* Pulsing live dot */
@keyframes ping-soft { 0% { box-shadow: 0 0 0 0 rgba(92, 194, 176, 0.55); } 100% { box-shadow: 0 0 0 10px rgba(92, 194, 176, 0); } }
.live-dot { animation: ping-soft 1.6s ease-out infinite; }

/* CRM demo */
.kanban-col.drag-over { border-color: rgba(92, 194, 176, 0.6); background-color: rgba(43, 111, 101, 0.10); }
.lead-card.dragging { opacity: 0.4; }
.crm-tab[aria-selected="true"] { background: #1c2826; color: #fff; }
.crm-tab[aria-selected="true"] iconify-icon { color: var(--brand-light); }
.chart-tip { position: absolute; pointer-events: none; transform: translate(-50%, -100%); white-space: nowrap; }

/* Range sliders (light surfaces) */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 9999px; background: var(--line); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 9999px; background: var(--brand); border: 4px solid #fff; box-shadow: 0 0 0 1px var(--brand), 0 2px 6px rgba(0, 0, 0, 0.15); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 9999px; background: var(--brand); border: 4px solid #fff; box-shadow: 0 0 0 1px var(--brand); cursor: pointer; }
input[type="range"]:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(43, 111, 101, 0.25); }

/* Mini animated previews (home "experimente" cards) */
@keyframes bubble-in { 0%, 8% { opacity: 0; transform: translateY(8px); } 14%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
.seq > * { opacity: 0; animation: bubble-in 9s ease-out infinite; }
.seq > *:nth-child(2) { animation-delay: 1.2s; }
.seq > *:nth-child(3) { animation-delay: 2.4s; }
.seq > *:nth-child(4) { animation-delay: 3.6s; }

/* ================= Dark pages (Arkom-inspired, brand green instead of gold) ================= */
body[data-theme="dark"] { background: #050807; color: #fff; color-scheme: dark; }
body[data-theme="dark"] ::selection { background: var(--brand-light); color: #050807; }
body[data-theme="dark"] :focus-visible { outline-color: var(--brand-light); }

.glass {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 62%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    backdrop-filter: blur(24px) saturate(1.5);
}
.glass-strong {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 38%, rgba(255, 255, 255, 0.03) 62%, rgba(255, 255, 255, 0.10) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    backdrop-filter: blur(24px) saturate(1.5);
}
.metal-text {
    background: linear-gradient(180deg, #ffffff 0%, #d8dadc 48%, #9a9c9e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.glow-text { color: var(--brand-light); text-shadow: 0 0 22px rgba(92, 194, 176, 0.45), 0 0 4px rgba(170, 235, 222, 0.35); }
.glow-line { height: 1px; background: linear-gradient(90deg, transparent, rgba(92, 194, 176, 0.7), transparent); }
.hero-aura { background: radial-gradient(55% 60% at 70% 35%, rgba(43, 111, 101, 0.35), transparent 70%), radial-gradient(40% 50% at 10% 90%, rgba(92, 194, 176, 0.10), transparent 70%); }

/* Word-by-word "materialize" (hero) */
@keyframes materialize { from { opacity: 0; filter: blur(12px); transform: translateY(14px); } to { opacity: 1; filter: blur(0); transform: none; } }
.materialize { opacity: 0; animation: materialize 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards; animation-delay: calc(var(--i, 0) * 70ms + 150ms); }
span.materialize { display: inline-block; }

/* Rotating word: letters morph in / out */
@keyframes char-in { from { opacity: 0; filter: blur(8px); transform: translateY(0.35em); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes char-out { to { opacity: 0; filter: blur(8px); transform: translateY(-0.3em); } }
.char { display: inline-block; animation: char-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: calc(var(--i, 0) * 35ms); }
.char.out { animation: char-out 0.35s ease-in both; animation-delay: calc(var(--i, 0) * 20ms); }

/* Scroll-driven word reveal */
[data-words] .w { opacity: 0.12; transition: opacity 0.5s ease; transition-delay: calc(var(--i, 0) * 45ms); }
[data-words].words-in .w { opacity: 1; }

/* Capsule button. On hover a metallic green fill fades in, the capsule slides to the right end,
   its icon turns into an arrow and the label runs left (site.js wraps the label in .btn-label). */
.btn-cap {
    --cap: 38px; --cap-gap: 6px; --label-gap: 12px; --pad-end: 22px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    position: relative; overflow: hidden; isolation: isolate;
    display: inline-flex; align-items: center; height: 52px;
    padding: 0 var(--pad-end) 0 calc(var(--cap-gap) + var(--cap) + var(--label-gap));
    border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.16);
    font-weight: 600; font-size: 0.9375rem; white-space: nowrap; color: #fff;
    transition: color 0.38s var(--ease-out), border-color 0.38s var(--ease-out), box-shadow 0.38s var(--ease-out), scale 0.15s ease-out;
}
.btn-cap::before { content: ''; position: absolute; left: 10%; right: 10%; top: 8%; height: 46%; border-radius: 999px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)); filter: blur(6px); pointer-events: none; z-index: 0; }
.btn-cap::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(146deg, #a3ecdc 0%, #5cc2b0 52%, #3a9486 100%); opacity: 0; transition: opacity 0.38s var(--ease-out); }
.btn-cap:hover, .btn-cap:focus-visible { color: #03201b; border-color: rgba(163, 236, 220, 0.75); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 12px 34px rgba(92, 194, 176, 0.32); }
.btn-cap:hover::after, .btn-cap:focus-visible::after { opacity: 1; }
.btn-cap:active { scale: 0.98; }
.btn-cap .btn-label { position: relative; z-index: 1; transition: transform 0.38s var(--ease-out); }
.btn-cap:hover .btn-label, .btn-cap:focus-visible .btn-label { transform: translateX(calc(var(--pad-end) - (var(--cap-gap) + var(--cap) + var(--label-gap)))); }
.btn-cap .cap {
    position: absolute; z-index: 1; top: 50%; left: var(--cap-gap); translate: 0 -50%;
    width: var(--cap); height: var(--cap); border-radius: 50%; display: grid; place-items: center;
    background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2);
    transition: left 0.38s var(--ease-out), background-color 0.38s var(--ease-out), border-color 0.38s var(--ease-out);
}
.btn-cap:hover .cap, .btn-cap:focus-visible .cap { left: calc(100% - var(--cap) - var(--cap-gap)); background: rgba(255, 255, 255, 0.22); border-color: rgba(3, 32, 27, 0.35); }
.btn-cap .cap iconify-icon { grid-area: 1 / 1; font-size: 18px; transition: opacity 0.17s ease-out; }
.btn-cap .cap iconify-icon:last-child { opacity: 0; }
.btn-cap:hover .cap iconify-icon:first-child, .btn-cap:focus-visible .cap iconify-icon:first-child { opacity: 0; }
.btn-cap:hover .cap iconify-icon:last-child, .btn-cap:focus-visible .cap iconify-icon:last-child { opacity: 1; }

/* Idle looks: glass (default) and brand-filled (primary) */
.btn-cap, .btn-cap-glass { background: linear-gradient(155deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 38%, rgba(255, 255, 255, 0.03) 62%, rgba(255, 255, 255, 0.10) 100%); }
.btn-cap-primary { background: linear-gradient(146deg, #37877b 0%, #2b6f65 58%, #235b53 100%); border-color: rgba(92, 194, 176, 0.45); box-shadow: 0 10px 40px -12px rgba(43, 111, 101, 0.9); }
.btn-cap-primary .cap { background: rgba(255, 255, 255, 0.14); }

/* Orb hero */
.hero-title { color: #eaf4f1; text-shadow: 0 0 28px rgba(190, 235, 225, 0.30), 0 0 2px rgba(255, 255, 255, 0.35); }
.eyebrow-caps { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 600; }
.rings > span { position: absolute; left: 50%; top: 50%; border-radius: 9999px; border: 1px solid rgba(255, 255, 255, 0.045); transform: translate(-50%, -50%); }
.dot-glow { box-shadow: 0 0 10px #5cc2b0; }

/* Hub tiles */
.hub-tile { transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s, box-shadow 0.35s; }
.hub-tile:hover { transform: translateY(-4px); border-color: rgba(92, 194, 176, 0.45); box-shadow: 0 24px 60px -30px rgba(92, 194, 176, 0.55); }

/* Phones and touch screens: keep the glass look without the costly backdrop blur */
@media (max-width: 767px), (hover: none) {
    .glass, .glass-strong, .btn-cap-glass, .invite-seal { -webkit-backdrop-filter: none; backdrop-filter: none; }
    .glass { background: linear-gradient(155deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.025) 62%, rgba(255, 255, 255, 0.06) 100%), rgba(12, 17, 16, 0.55); }
    .glass-strong { background: linear-gradient(155deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 38%, rgba(255, 255, 255, 0.03) 62%, rgba(255, 255, 255, 0.10) 100%), rgba(12, 17, 16, 0.7); }
}

/* Invitation block (Arkom "conversa individual" pattern): narrow, quiet panel, white glass seal */
.invite { max-width: 760px; margin: 0 auto; }
.invite-panel {
    position: relative; overflow: hidden; text-align: center;
    padding: 54px clamp(24px, 5vw, 64px) 48px; border-radius: 20px;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
}
.invite-seal {
    position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 18px;
    border-radius: 50%; color: #fff; font-size: 22px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 38%, rgba(255, 255, 255, 0.03) 62%, rgba(255, 255, 255, 0.1) 100%);
    -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.28), inset 0 -1px 1px rgba(255, 255, 255, 0.08), 0 12px 32px rgba(0, 0, 0, 0.45);
}
.invite-seal::after { content: ''; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); box-shadow: 0 0 24px rgba(255, 255, 255, 0.12); animation: breathe 4s ease-in-out 1.4s infinite; opacity: 0.35; }
@keyframes breathe { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
.invite-label { margin: 0 0 14px; font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(250, 250, 247, 0.5); }
.invite-text { margin: 0 auto 30px; max-width: 30ch; color: #fafaf7; font-size: clamp(1.5rem, 1.2vw + 1rem, 2.125rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
.words-blur[data-words] .w { display: inline-block; opacity: 0; transform: translateY(16px); filter: blur(10px); transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease; transition-delay: calc(var(--i, 0) * 45ms); }
.words-blur[data-words].words-in .w { opacity: 1; transform: none; filter: blur(0); }
.js .invite-cta { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.9s, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.9s; }
.js .is-visible .invite-cta { opacity: 1; transform: none; }

/* AI hub diagram (ia.html) */
.infra-core { border-radius: 28px; background: linear-gradient(155deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.03) 60%, rgba(255, 255, 255, 0.08) 100%), #0c1110; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 30px 60px -20px rgba(0, 0, 0, 0.9), 0 0 90px -20px rgba(92, 194, 176, 0.4); }
.infra-node {
    position: absolute; translate: -50% -50%; width: 11%; aspect-ratio: 1; border-radius: 9999px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    font-size: 14px; font-weight: 600; color: #fff; cursor: default;
    background: radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02) 62%), #0b100f;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 24px 40px -22px rgba(0, 0, 0, 0.9);
    transition: border-color 0.3s, box-shadow 0.3s, scale 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
a.infra-node { cursor: pointer; }
.infra-node iconify-icon { font-size: 20px; color: #cdd5d3; transition: color 0.3s; }
.infra-node:hover, .infra-node.on { border-color: rgba(92, 194, 176, 0.65); scale: 1.05; box-shadow: 0 0 44px -8px rgba(92, 194, 176, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.16); }
.infra-node:hover iconify-icon, .infra-node.on iconify-icon { color: var(--brand-light); }
.infra-path { stroke: rgba(92, 194, 176, 0.3); stroke-width: 1.2; transition: stroke 0.3s, stroke-width 0.3s; }
.infra-path.on { stroke: rgba(163, 236, 220, 0.95); stroke-width: 1.8; filter: drop-shadow(0 0 4px rgba(92, 194, 176, 0.9)); }
.infra-particles circle { filter: drop-shadow(0 0 4px rgba(92, 194, 176, 0.95)); }
@keyframes spin360 { to { transform: rotate(360deg); } }
.spin-slow { transform-origin: 50px 50px; animation: spin360 6s linear infinite; }
.spin-rev { transform-origin: 50px 50px; animation: spin360 9s linear infinite reverse; }
@keyframes speck { 0%, 100% { opacity: 0.15; } 50% { opacity: 0.8; } }
.infra-specks circle { animation: speck 4s ease-in-out infinite; }
.infra-specks circle:nth-child(2n) { animation-delay: 1.3s; }
.infra-specks circle:nth-child(3n) { animation-delay: 2.4s; }
@media (prefers-reduced-motion: reduce) { .infra-particles { display: none; } }

/* Orbit questions */
.orbit-node circle.dot { fill: #1c2826; stroke: rgba(255, 255, 255, 0.25); transition: fill 0.4s, stroke 0.4s; }
.orbit-node.active circle.dot { fill: var(--brand-light); stroke: var(--brand-light); filter: drop-shadow(0 0 8px rgba(92, 194, 176, 0.9)); }
.orbit-node text { fill: #6b7673; font-weight: 700; font-size: 15px; transition: fill 0.4s; }
.orbit-node.active text { fill: #fff; }
.orbit-q { transition: opacity 0.5s ease, transform 0.5s ease; }
.orbit-q[hidden] { display: block !important; position: absolute; inset: 0; opacity: 0; transform: translateY(10px); pointer-events: none; }
.orbit-q em { font-style: normal; color: var(--brand-light); text-shadow: 0 0 22px rgba(92, 194, 176, 0.45); }

/* Rotating bullet strip */
.bullet-rot > li { transition: opacity 0.5s ease, transform 0.5s ease; }
.bullet-rot > li:not(.on) { position: absolute; opacity: 0; transform: translateY(8px); }

/* Timeline chat typing dots */
.tl-dots { display: inline-flex; gap: 4px; }
.tl-dots i { width: 5px; height: 5px; border-radius: 99px; background: #6b7673; animation: typing 1s infinite ease-in-out; }
.tl-dots i:nth-child(2) { animation-delay: 0.15s; }
.tl-dots i:nth-child(3) { animation-delay: 0.3s; }
.tl-line .tl-dots { transition: opacity 0.3s; }
.tl-line.words-in .tl-dots { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
    .materialize, .char { opacity: 1; animation: none !important; filter: none; transform: none; }
    [data-words] .w { opacity: 1; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
    .js [data-reveal] { opacity: 1; transform: none; }
    .seq > * { opacity: 1; }
    .marquee-track { animation: none; }
}

/* Google Translate overrides */
.goog-te-banner-frame.skiptranslate, .goog-te-gadget-icon { display: none !important; }
body { top: 0 !important; position: static !important; }
.goog-tooltip, .goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background-color: transparent !important; box-shadow: none !important; border: none !important; }
#google_translate_element, .skiptranslate > iframe { display: none !important; }
